Re: [android-developers] Mapview can not be resolved to a type

2011-06-23 Thread Samson Akisanya
Check ur android properties of your project...it should be set to Google api not 2.2 etc On 23 Jun 2011 23:43, juhi paunikar juhi.pauni...@gmail.com wrote: Hi, i tried the project which is given belows link: http://developer.android.com/resources/tutorials/views/hello-mapview.html i am

Re: [android-developers] Fragments won't display in port orientation

2011-04-17 Thread Samson Akisanya
Aren't you also supposed to specify the orientation of the fragment as well ...so the xml definition is fine but i think u should look at the fragment definition as well. On 17 Apr 2011 09:42, Brill Pappin bpap...@sixgreen.com wrote: I'm very confused on why my fragments refuse to draw in

Re: [android-developers] Database shared by Activity and Service. What's the best approach?

2011-04-16 Thread Samson Akisanya
Would a content provider work? On 14 Apr 2011 04:56, bogde bogde...@gmail.com wrote: I'm new here and new to Android development too, so I want to apologize for my ignorance. I'm working on an application that is supposed to gather some data from an external device continuously, display the

Re: [android-developers] static variable set to null

2011-04-12 Thread Samson Akisanya
your code force closing is preventable by a simple null check.. if(yourvariable != null){ do something}else{do something else or do nothing and display an error message}. The question about whether youwant to share global variable between activities is something you should really ask yourself...

Re: [android-developers] Background service stay alive

2011-04-10 Thread Samson Akisanya
Most likely ur music will be in a separate process, that can run in its own service and communicate VIA an aidl interface On 9 Apr 2011 10:10, Eason dragonea...@gmail.com wrote: Hi all, I am trying to make several apps that can listen to system states all the time and give responses when there

Re: [android-developers] Background service stay alive

2011-04-10 Thread Samson Akisanya
For the battery state use a broadcast receiveru shouldnt need need a service for that On 9 Apr 2011 10:10, Eason dragonea...@gmail.com wrote: Hi all, I am trying to make several apps that can listen to system states all the time and give responses when there is any event happens. For

Re: [android-developers] Thread and ProgressDialog

2011-04-08 Thread Samson Akisanya
new PersonnelLookUpTask();// start task..choose where u want to start it..oncreate or button click..ur choice. Input|Progress(u can ignore this parameter)|Output private class YourLookUpTask extends AsyncTaskString,Void ,ArrayListPersonnelObject{ @Override protected

Re: [android-developers] Problem with ListAdapters and Cursors

2011-04-08 Thread Samson Akisanya
I would use a hash map ...key value Map yourMap = new HashMap(String,ListString); populate your adapter from the list after identifying which key u are interested in On 8 April 2011 12:35, Duskox dus...@gmail.com wrote: Hello people, so I am trying to build a somewhat simple app where I am

Re: [android-developers] Re: ListView + Activity change

2011-04-08 Thread Samson Akisanya
ListView l1 l1.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView? arg0, View v,int arg2, long arg3) { xxxYourObject Type selectedObject = YourObjectList.get(arg2);/ Intent intent = new Intent(v.getContext(), YourActivity.class);