[android-developers] Re: HOME Button

2009-02-24 Thread Immy
at myself) > > On 24 Feb., 14:12, Immy wrote: > > > On click of some button, is it possible to perform the operation or > > call the method the HOME button calls by default? > > > In other words, I just want to "Minimize my application" or moving my > > a

[android-developers] Re: HOME Button

2009-02-24 Thread Immy
om" wrote: > sending an Intent with action android.intent.action.MAIN and category > android.intent.category.HOME might do the trick > (haven't tested that myself) > > On 24 Feb., 14:12, Immy wrote: > > > On click of some button, is it possible to perform the oper

[android-developers] Re: Check whether a thread is running

2009-02-24 Thread Immy
t > running on multi-core device). > > On Sun, Feb 22, 2009 at 10:39 AM, Immy wrote: > > > Hi, > > > I am using this method to identify if a thread is running at any point > > of time, irrespective of whether the enclosing activity is running or > > not. >

[android-developers] HOME Button

2009-02-24 Thread Immy
On click of some button, is it possible to perform the operation or call the method the HOME button calls by default? In other words, I just want to "Minimize my application" or moving my application to the background on pressing the back button. Thanks, Immanuel --~--~-~--~~

[android-developers] Check whether a thread is running

2009-02-22 Thread Immy
Hi, I am using this method to identify if a thread is running at any point of time, irrespective of whether the enclosing activity is running or not. Is this the right way? Please reply. Java: Thread t = new Thread(new Runnable(){ public void run() {

[android-developers] Re: How to prevent my application being closed on clicking the back button on emulator

2009-02-22 Thread Immy
Constants is just another class, created by you. Just used it to store static variables... U need to define it... :) On Feb 19, 5:28 am, Komal wrote: > Hi Immy, > Thnx for replying. > I am facing an error when i m using Constants. > It can't find Constants class/interface. &

[android-developers] Re: Close all activities in tabbed application

2009-02-20 Thread Immy
Now i'm trying to launch TabActivity from the first activity, with the FLAG_ACTIVITY_NO_HISTORY flag. But it still continues to be in history. Any solutions? Thanks, Immanuel On Feb 20, 5:07 pm, Immy wrote: > Hi, > > Can someone tell me how to close all activities running under

[android-developers] Close all activities in tabbed application

2009-02-20 Thread Immy
Hi, Can someone tell me how to close all activities running under a tab? My initial activity does not need a tabbed view. Therefore, to initiate a tab for the next (remaining) activities, I call a class that extends TabActivity, from the first tab. All this class does is to assign and call acti

[android-developers] Parsing data from a xml file - Dataset

2009-02-18 Thread Immy
Hi, I am trying to parse a xml file that contains a dataset, which has the structure below. 20 I am using the code below to save the incoming "Logo's".. but the whole dataset is not being parsed. The start, length attributes of "End Element" are not right as far as I can tell. [syntax="

[android-developers] Cursor - Add Columns

2009-02-16 Thread Immy
Is there any way to modify the contents on a Cursor, or to add columns into a existing cursor? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-de

[android-developers] Re: How to prevent my application being closed on clicking the back button on emulator

2009-02-16 Thread Immy
); } Called Activity, On pressing back button: this.setResult(Constants.SUBACTIVITY_RESULTCODE_MOVEBACK); this.finish(); On Feb 16, 7:25 am, Komal wrote: > Hi Immy > Thnx  for  replying. > I want to use the back button for going back, i dont want to prevent > it. >

[android-developers] Synchronization using Alarm Manager

2009-02-16 Thread Immy
Hi, I'm trying to sync data connecting to a web service at periodic intervals. As of now, i'm using a Alarm Manager. But the BroadcastReceiver does not fire the class which does all the syncing. I am passing the context of the BroadcastReceiver as a parameter for this class. Is this the right w

[android-developers] Map not displayed due to "Maps_Persistence" error

2009-02-15 Thread Immy
Hi, I'm facing a new problem with maps. Only blank tiles get displayed. Here is the log. [syntax="java"]02-15 18:21:05.379: INFO/ActivityManager(50): Starting activity: Intent { comp={com.SC.UI/com.SC.UI.MapContacts} } 02-15 18:21:05.737: WARN/Maps_Persistence(1466): Couldn't find file: / da

[android-developers] Re: How to prevent my application being closed on clicking the back button on emulator

2009-02-12 Thread Immy
or use StartActivityforResult... Do a search for StartActivityforResult On Feb 13, 10:47 am, Immy wrote: > Use intents this way, > Intent i = new Intent(this, CardView.class); > startActivity(i); > > Close with finish() for that activity when you are done. > > This's

[android-developers] Re: How to prevent my application being closed on clicking the back button on emulator

2009-02-12 Thread Immy
Use intents this way, Intent i = new Intent(this, CardView.class); startActivity(i); Close with finish() for that activity when you are done. This's how you override the back button to prevent it from going back. @Override public boolean onKeyDown(int keyCode, KeyEvent event) { // T

[android-developers] Re: _id column in list adapter

2009-02-02 Thread Immy
I'll try that. Thanks a lot... On Feb 2, 5:02 pm, Mark Murphy wrote: > Immy wrote: > > I am tryin to use a list adapter. > > > While querying, i need to have a column called "_id" which helps to > > scroll through the database. > > > I have

[android-developers] _id column in list adapter

2009-02-02 Thread Immy
I am tryin to use a list adapter. While querying, i need to have a column called "_id" which helps to scroll through the database. I have an other primary key in this table. Can I use a custom column name, or am i bound to the "_id" column. Many thanks, Immanuel --~--~-~--~~

[android-developers] Re: Context of a class

2009-01-28 Thread Immy
tance. > > > > On Wed, Jan 28, 2009 at 7:26 PM, suhas gavas wrote: > > > try passing getBaseContext() in place of this > > > On Wed, Jan 28, 2009 at 9:28 PM, Immy wrote: > > >> Hi, > > >> Thanks for the reply.. > > >> This is what

[android-developers] Re: Context of a class

2009-01-28 Thread Immy
this class needs to access the database. How do I do that? Also, periodically connecting to a web service to update a database is a bad practice? Btw, your book is great :).. thanks.. Regards, Immanuel On Jan 28, 9:09 pm, Mark Murphy wrote: > Immy wrote: > > Hi, > > > Th

[android-developers] Re: Context of a class

2009-01-28 Thread Immy
I am accepting context as a parameter in the constructor of the class... but that's what the error says.. On Jan 28, 8:58 pm, Immy wrote: > Hi, > > Thanks for the reply.. > > This is what I'm doing in all other classes, which happen to be > Activities... > But h

[android-developers] Re: Context of a class

2009-01-28 Thread Immy
ivity > { >      Viewclass myclass; >       public oncreate() >       { >          myclass = new Viewclass (this); > >        } > > } > > --- > > class Viewclass > { >     public Viewclass (Context context) &

[android-developers] Context of a class

2009-01-27 Thread Immy
Hi, Can anyone tell me how to access context of a class which is not an activity? Thanks, Immanuel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andr

[android-developers] GetWritableDatabase generates a nullPointerException

2009-01-21 Thread Immy
Hi, I'm using a class, say TEMP which extends activity to access a already created database. This activity doesn't have anything to do with UI. I am using TEMP only to insert and update records in a database. >From this class, i.e TEMP, i try to access the database helper of the database class.

[android-developers] Import Bulk Data

2009-01-20 Thread Immy
Hi.. Anyone know's how to import bulk data into a sqlite table through code? Thanks, Immanuel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-d

[android-developers] Re: Keeping a Service Alive

2009-01-16 Thread Immy
That helped me,... Thanks a ton On Dec 15 2008, 9:36 pm, "Sergi Velez" wrote: > Maybe AlarmManager will work for > you:http://code.google.com/android/reference/android/app/AlarmManager.html > --- > sergi.ve...@gmail.com > ["In theory, theory and practice are the same. In practice, they are not.

[android-developers] Re: Unparsed aapt error(s)! Check the console for output

2008-12-26 Thread Immy
Just delete the R.java file. It will get recreated again. and your problem is solved :) On Nov 3, 11:31 am, Qi (蒞) wrote: > The aapt.exe compiles the Resources and generates the R.java > > If you see this error, likely there is some error in your resource > files. As it says, check the console