Posts by ramaral • 44,197 points
1,060 posts
-
1
votes1
answer233
viewsA: Broadcastreceiver - how to register for addProximityAlert method
When creating Intentfilter you define the action you want. It is no more than a String. You just have to make sure that this string is unique. Usually you use the package name plus something that…
-
7
votes1
answer7034
viewsA: Take Edittext value from a layout passed as a parameter to a Alertdialog.Builder at the click of the button?
You are using the findViewById of Activity. You have to use the findViewById of the Alertdialog: dialog.findViewById(R.id.nomeArquivo); LayoutInflater li = getLayoutInflater(); View view =…
-
2
votes2
answers1054
viewsA: Keeping an item from a selected Listview when pressed
First create a class derived from LinearLayout or RelativeLayout implementing the interface Checkable Example for LinearLayout public class CheckableLinearLayout extends LinearLayout implements…
-
0
votes4
answers1443
viewsA: SQL query that meets a parameter that is a set
I haven’t tested. Quick response so you can test: SELECT SI.doencaId FROM sintomas SI WHERE SI.sintomasId IN ( SELECT CO_SI.sintomasID FROM consultas_sintomas CO_SI WHERE CO_SI.consultaId = id ) id…
-
1
votes2
answers694
viewsA: Running on Multiple Screens
If what you want is to use the same layout on multiple screens (layouts) you just have to create an xml with the layout you want to reuse and on the screen where you want to use it put this command:…
-
1
votes1
answer360
viewsA: Repeat the animated background
If I understand your question correctly what you have to do is add ad.setOneShot(false) before making ad.start(). public class Main extends Activity { LinearLayout bck; AnimationDrawable ad;…
-
2
votes1
answer62
viewsA: Set construction project JRE input path to 'Javase-1.7'
Your problem isn’t the PreparedStatementbecause it exists in Java 1.6. The problem is in the block try. The form you are using only exists in Java 1.7. You need to use the traditional block shape…
-
2
votes2
answers864
viewsA: How to get the registry ID that is populated in Listview
I assume you are referring to the registration ID that corresponds to the line that is clicked. For this you need to declare and assign a OnItemClickListener à ListView…
-
11
votes1
answer1387
viewsA: Display a message when Listview is empty
The implementation is very simple. You only need to declare one TextView with android:id="@android:id/empty" in the layout where stated the ListView which will be managed by Adapter. Layout:…
-
2
votes2
answers606
viewsA: View Listview with available networks
It will not be possible without going through the list returned by the method getScanResults. In the code posted this is done in the method addAllAdapter. This method goes through the list that is…