Posts by Emerson Barcellos • 954 points
68 posts
-
1
votes1
answer1437
viewsQ: How to return a string from the method that queries Sqlite?
How to make a method that returns a string with a single result? I’m trying something like this: public String getString(String var) { String selectQuery = "SELECT * FROM "+TABLE_STATUS+" WHERE…
-
0
votes1
answer239
viewsQ: How to open an actitivity from a java Fragment
How to open an Activity after clicking on a Listview that is in Fragment, I am using: public void onActivityCreated(Bundle savedInstanceState) { // TODO Auto-generated method stub…
-
1
votes1
answer321
viewsQ: How to know which image was clicked in java
I have 4 images in my layout, how to know which one was clicked and do conditional? my scribe: Oncreate: ImageView bancada_tv = (ImageView)findViewById(R.id.main_bancada); ImageView aguarda_tv =…
-
1
votes1
answer7556
viewsQ: How to get the value of a particular item from the java android listview
How I get the value of a particular item(Textview) from listview. I’m trying something like this: public void onItemClick(AdapterView<?> a, View v, int position, long id) { Object obj…
-
0
votes1
answer1324
viewsQ: How to create Listview with Sqlite data in Fragment
How do I insert the Sqlite data into this listview of my code: @Override public void onActivityCreated(Bundle savedInstanceState) { String[] sCheeseStrings = {"Emerson","Simone","Samara"};…
-
0
votes1
answer4810
viewsQ: How to Select Java Listview Item
How to use the method to work with the selected Listview item? Activity: public class ListaProntos extends Activity implements AdapterView.OnItemClickListener { ArrayList<Contact> imageArry =…
-
0
votes1
answer55
viewsQ: Tabhost does not call the onTabChanged() method
Because when you start Tab, you don’t call the method onTabChanged(). public class MainActivity extends TabActivity { private TabHost mTabHost; @Override protected void onCreate(Bundle…
-
0
votes1
answer532
viewsQ: Problems with Adapter in Fragment
I’m having trouble with Adapter in Fragment. Meu Fragment: public class HomeActivity extends Fragment { private final DataBaseHandler db = new DataBaseHandler(getActivity()); public View…
-
0
votes1
answer53
viewsQ: Fragmentactivity in tab Swiper
I’m not getting to insert a Fragmentactivity for tab Swiper: @Override public Fragment getItem(int position) { switch (position) {case 0: return new HomeActivity(); case 1: return new…
-
5
votes2
answers4323
viewsQ: How to update BD sqlite java android
How do I add a column in the database of my android java application without losing data from the current database? My code: public DataBaseHandler(Context context) { super(context, DATABASE_NAME,…
-
0
votes3
answers902
viewsQ: Pass value to a java function
Hello! in Javascript to pass a value to the function I do: <button onclick="myFunction('valor')">Click me</button> and crawl like this: function myFunction(a){alert(a);} and in java on…
-
0
votes1
answer172
viewsQ: Simplecursoradapter java display images
How do I display the images in the layout with Simplecursoradapter? My code . java: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);…
-
1
votes1
answer121
viewsQ: How to use the same Sqllite BD with java and Cordova?
Can I use the same BD using Java and Cordova? Ex: access data with Cordova in a java-based BD.
-
2
votes1
answer347
viewsQ: Restart requestLocationUpdates() with Sleep
How do I start the requestLocationUpdates() with Thread.sleep(); in the Android? My code: public void onLocationChanged(Location loc) { Date d = new Date(); SimpleDateFormat sdf = new…
-
1
votes1
answer865
viewsQ: Update Progressbar in the background java android
How do I update the background service ProgressBar in the Android? My code: public void onClick(View v) { // inicial o progressbar progressBar = new ProgressDialog(v.getContext());…
-
0
votes1
answer3888
viewsQ: How to get latitude and longitude without internet on Android?
How do I get latitude and longitude in Java to the Android without using the internet, only with GPS. I think there is some way yes, because the application "Maps" of Android does not use the…
-
0
votes1
answer739
viewsQ: Pick up date time device phonegap
How do I get the device time date using phonegap?
-
8
votes4
answers17179
viewsQ: How to know if an element was clicked using pure Javascript
How to know if a descendant of a <li> was clicked using pure Javascript. <div id="list"> <a href="#">one</a> <a href="#">two</a> <a href="#">three</a>…