[android-beginners] Need Help : canvas.drawtext() for a lengthy string

2010-01-07 Thread Latha Shivanna
Hi All I am stuck in a very simple problem. I have one lengthy string I need to draw that on the device display. My code is as follows: void ShowText(String text) { canv = thread.mSurfaceHolder.lockCanvas(); if (text!= null) {

Re: [android-beginners] Re: How can I make a vew show up really, really fast?

2010-01-07 Thread Sean Hodges
The method really depends on your requirements: * If the amount of work isn't too great, and you just want the activity to be drawn before the processing starts, then postDelayed() is a sensible approach. * If you have a lot of processing to do, and the execution needs to be linear (e.g. (a)

Re: [android-beginners] Re: how to structure my app to run in background

2010-01-07 Thread Sean Hodges
You can create a ContentProvider for this: http://developer.android.com/intl/fr/guide/topics/providers/content-providers.html A tutorial can be found here: http://www.devx.com/wireless/Article/41133 It will provide a interface to your database, that can be shared between applications. On

[android-beginners] Re: How can I make a vew show up really, really fast?

2010-01-07 Thread skink
On Jan 7, 10:26 am, Sean Hodges seanhodge...@googlemail.com wrote: The method really depends on your requirements: * If the amount of work isn't too great, and you just want the activity to be drawn before the processing starts, then postDelayed() is a sensible approach. * If you have a

[android-beginners] Re: problem with adb

2010-01-07 Thread Rc3375
1. Windows7 2. Eclipse android were installed in C;\dirname of software pkg. 3. Got it to fire up, but the emulator does not pick up the pkg I'm trying to debug. And if you just right click on that pkg and say run/debug, that's when that error comes up. But if you go 2 preferences and click on

[android-beginners] how to turn gps on/off programatically

2010-01-07 Thread Yousuf Faheem
Hi, I am writting a code which has to turn gps on when its needed and turn gps off when its not needed. This is different from enabling or disabling the gps. Is there any api that is used for this purpose. Thanks Regards, Yousuf. -- You received this message because you are subscribed to the

[android-beginners] launch an activity right into the background

2010-01-07 Thread Michael Dorin
Can I launch an activity and have it go strait into the background without the user seeing it, until they select to launch it themselves? Basically I have an application that takes a long time to start the first time, but is super snappy after that. -Mike -- You received this message because

Re: [android-beginners] how to turn gps on/off programatically

2010-01-07 Thread Justin Anderson
How is this different from disabling and enabling GPS? -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On

Re: [android-beginners] how to turn gps on/off programatically

2010-01-07 Thread Sean Hodges
On Thu, Jan 7, 2010 at 3:42 PM, Yousuf Faheem yousuf.syed@gmail.com wrote: Hi, I am writting a code which has to turn gps on when its needed and turn gps off when its not needed. This is different from enabling or disabling the gps. Is there any api that is used for this purpose. How is

Re: [android-beginners] launch an activity right into the background

2010-01-07 Thread Sean Hodges
I assume this carries on from your earlier question about delaying tasks in an onCreate()? It is technically possible to move your intensive code into a Service and have it start when the phone boots up, but bear in mind that this is an unpopular method, as users will find their phones become

[android-beginners] Re: launch an activity right into the background

2010-01-07 Thread bsd_mike
Thanks, you are of curse correct...I was being lazy. I did try the postDelay and that helped a bit but not as much as I need. My layout is really super complicated too..is it possible some of the time is stuck unwinding that? Is it possible to load a different, less complicated layout then

Re: [android-beginners] Re: launch an activity right into the background

2010-01-07 Thread Justin Anderson
Complicated layouts definitely have a huge impact on speed... Perhaps some of the pointers on these pages could help: http://developer.android.com/resources/articles/layout-tricks-reuse.html http://developer.android.com/resources/articles/layout-tricks-efficiency.html

Re: [android-beginners] how to turn gps on/off programatically

2010-01-07 Thread Yousuf Faheem
Hi, Thanks, I was trying to do it programatically. But as you said the GPS is turn on/off automatically I dont have to switch it on/off. Now I will need to check whether GPS is on/off. will the Location manager be helpful for this or do I need to access a different set of apis. Thanks Regards,

Re: [android-beginners] how to turn gps on/off programatically

2010-01-07 Thread Caius 'kaio' Chance
(2010年01月08日 01:59), Sean Hodges wrote: On Thu, Jan 7, 2010 at 3:42 PM, Yousuf Faheemyousuf.syed@gmail.com wrote: How is it different? Are you looking for some callback to tell you whether the GPS is currently in use? Save battery. -- Caius 'kaio' Chance ☺ かいお Fedora Project

Re: [android-beginners] Re: Databases in Android

2010-01-07 Thread Kevin Duffey
I've only read a little bit about the DB.. is it possible to create/store on on the SD card? If we're limited to 24MB ram, 16MB on older devices, does that restrict the amount of data a DB can store as well? Seems it should be possible to put the DB on the SD card. On Wed, Jan 6, 2010 at 11:56

[android-beginners] Reminder IRC office hours today 5:00- 6:00 PST

2010-01-07 Thread Megha Joshi
Office hours Thursday Jan 7th 5:00 - 6:00 PST, post questions @ http://moderator.appspot.com/#15/e=120951t=126bf1 Thanks, Megha -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at

[android-beginners] Re: Reminder IRC office hours today 5:00- 6:00 PST

2010-01-07 Thread Megha Joshi
Answers to 12/17 office hours have been posted: http://moderator.appspot.com/#15/e=120951t=121ce5 2010/1/7 Megha Joshi mjo...@google.com Office hours Thursday Jan 7th 5:00 - 6:00 PST, post questions @ http://moderator.appspot.com/#15/e=120951t=126bf1 Thanks, Megha -- You received this

Re: [android-beginners] Re: Giving selection priority in XML Layout

2010-01-07 Thread Caius 'kaio' Chance
(2010年01月05日 06:34), Roman Romano wrote: Many thanks for your help. I think it was an error on my part :-) i needed to: btn_Contact.setFocusableInTouchMode(true); once that was set, the btn_Contact.requestFocus(); worked fine Very interesting that it was not true by default. -- Caius 'kaio'

Re: [android-beginners] Re: Alphabetical Method Index for Android SDK

2010-01-07 Thread Caius 'kaio' Chance
(2010年01月06日 02:31), BeWillDir wrote: An alphabetical list of methods! What an interesting concept! What ever made you think that anyone would find this useful? (-; On Dec 1 2009, 9:35 pm, jdeisenbergjdavid.eisenb...@gmail.com wrote: The Java SDK documentation contains an alphabetical

[android-beginners] Re: onDestroy() caused application stopped unexpectedly

2010-01-07 Thread ZhouSu
Thanks Justin and TreKing! I haven't found the error for onDestroy after looking at the log but I've managed to close the application using JAVA System.exit() instead. It does stop retrieving GPS signals after I exit the app. On Jan 7, 2:20 am, TreKing treking...@gmail.com wrote: BTW, if

Re: [android-beginners] Re: onDestroy() caused application stopped unexpectedly

2010-01-07 Thread Justin Anderson
Any particular reason you are using System.exit() as opposed to finish()??? finish() gives Android the opportunity to do any cleanup that it needs to when your app gets done... I would imaging that System.exit() bypasses this.