Posts by Morfina • 307 points
12 posts
-
2
votes2
answers1296
viewsQ: Generating Bitmap of photo taken
I’m trying to generate a bitmap of a photo taken: public void onClick(View v) { final Runnable runnable = new Runnable() { @Override public void run() { Intent cameraIntent = new…
-
0
votes1
answer74
viewsA: Error creating thread inside a Handler
I decided to do the following: private void createHandler() { Thread thread = new Thread() { public void run() { Looper.prepare(); final Handler handler = new Handler(); handler.postDelayed(new…
-
3
votes1
answer74
viewsQ: Error creating thread inside a Handler
I need to delay 5 seconds in one of the parts of my application: final Runnable runnable = new Runnable() { @Override public void run() { // Encadeia trabalho serializado jobChain.append(new Job() {…
-
3
votes1
answer87
viewsQ: Dialog appears only after it has been called
Hello! In my application, I have a Button, that when clicked, opens the device’s camera so the user can take a photo: @Override public void onClick(View v) { //dialog da minha aplicação final…
-
1
votes1
answer98
viewsQ: Error: The method getFragmentManager() is Undefined for the type Activitieslistadapter
What do I call a Fragment from a Basedapter? I will call him at the click of the button, and I must also pass some information. I’m trying to call it that: Fragment fr = new Fragment();…
-
1
votes1
answer210
viewsQ: Retrieving texts typed in Edittext generated at runtime
In my project I have some Edittext being generated at runtime, the number of Edittext is variable. I need to retrieve the typed text and store it in different variables, then create a Json object…
-
3
votes2
answers3886
viewsQ: How to change edittext line color programmatically
I need to change the line color of Edittext programmatically, as I do? I tried to set an xml in the drawable folder, but it does not change the line color anyway...
-
2
votes1
answer39
viewsA: I cannot create layout inside the json request
I managed to solve it. I programmatically declared the layouts within the Handler, and within this.runOnUiThread(new Runnable() { public void run() {…
-
-1
votes1
answer39
viewsQ: I cannot create layout inside the json request
Hello! In my project, I receive some fields via JSON, I have an empty layout, and I must create the elements (textview, imageview, edittext...) according to the data received from JSON. JSON is…
-
1
votes1
answer67
viewsQ: Download tagged <a> in webview
Hello! I have a webview working, I’m trying to create the following html tag: for(int i = 0; i < nm.size(); i++) { html.append("<a…
-
1
votes2
answers177
views -
2
votes0
answers433
viewsQ: How to destroy previous Ragment?
In my Android project I navigate between fragments, in one of these fragments, there is a list that receives information from a json. It appeared the need to update this list every 1 minute, I’m…