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" wrote: > Hi, > i tried the project which is given belows link: > http://developer.android.com/resources/tutorials/views/hello-mapview.html > > i am getting error as given

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" wrote: > I'm very confused on why my fragments refuse to draw in portrait mode and > draw

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" 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 data on a cha

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... p

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" 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 > example, a battery

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" 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 ha

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); intent.putExtras(YourObject.toBun

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 AsyncTask>{ @Override protected ArrayList doInBackground(String... params) { //put the stu

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(>); populate your adapter from the list after identifying which key u are interested in On 8 April 2011 12:35, Duskox wrote: > Hello people, > > so I am trying to build a somewhat simple app where I am working with > an array of obj