[android-developers] how can I know the service is already started

2010-03-20 Thread rizwan
I am looking to code simple application let's say I have an activity that starts a service which is simply a counter and counter value is reflected on activity UI , when I navigate away from this .I want this counter to be continue and when I get back to Activity I want to see counter count.so

[android-developers] Use Mobile Device CPU or Server CPU

2010-03-20 Thread raqz
Hi, I am planning to design and write an application which displays all possible restaurants/malls etc around the mobile device. For this, do I send the GPS info to the server and let server do the processing and return the list of all possible restaurants/malls or let the mobile device itself

[android-developers] Re: Use Mobile Device CPU or Server CPU

2010-03-20 Thread Yahel
Hi raqz, It sounds like the perfect job for a web service. The gps coordinate are sent to the server which computes the complete list of restaurant nearby. Pros : - You can make your app available on any platform(iphone, facebook app) without a need to change the server side code. - You don't

[android-developers] Re: App not visible in Australia

2010-03-20 Thread Yahel
There is an issue with Optus and associated carriers as they don't have an agreement in place for paid apps, hence no paid apps currently show in the market for those users. Ok, I still don't get that and nobody has ever been able to explain to me that carrier thing. Optus, vodafone, or

[android-developers] how display unicode characters

2010-03-20 Thread Muhammad Hakim
hi all, i want to ask i store an unicode resource file at /res/raw/text_jp.txt - text in japanese than i want to display it on an View, so i load it like this: try{ InputStreamReader isr = new InputStreamReader(is,UTF-8); BufferedReader br = new BufferedReader(isr); String

[android-developers] Re: App not visible in Australia

2010-03-20 Thread String
On Mar 20, 9:07 am, Yahel kaye...@gmail.com wrote: Ok, I still don't get that and nobody has ever been able to explain to me that carrier thing. Here's one explanation: the 30% cut from your Market sales go to the carrier. So if there's no agreement with a carrier, there will be no sales.

[android-developers] Re: AlarmManager on droids

2010-03-20 Thread Derek
Hi Mark, I've implemented it and I got the crash report from the end user. See details below. The error report is VerifyError when the broadcastReceiver tries to start the WakefulIntentService. It happens on Cupcake/Samsumg. I've tested under emulator with 1.5 (minSDK=3) and it works perfect. It

[android-developers] Re: Big difficult to develop in Android :( (I'm italian)

2010-03-20 Thread massimo
For example, I have try to use the demo files of Lunar. But there isn't a file inside di example. There isn't R.java file. On 19 Mar, 18:36, Steeler cowboyd...@yahoo.com wrote: Yes, use the tutorials. When I started, I thought I could learn faster by just studying the Lunar Lander sample

[android-developers] Re: My ProgressDialog suffers from ANR timeouts?

2010-03-20 Thread dsukhram
Thanks Paul you were correct. I increased the buffer size by 8 times and it worked. On Mar 19, 10:28 pm, Paul Turchenko paul.turche...@gmail.com wrote: Try increasing your buffer size (or better, make it content-length- dependent). It seems that UI theread reseives too much tasks to do and

[android-developers] Re: Use Mobile Device CPU or Server CPU

2010-03-20 Thread raqz
hey thanks Yahel... Could you please suggest me a good/efficient way to communicate with the server. I could think of two options 1) Use http post methods to send data to a php script at the server which would later call the google api's written in another java program (jar)\or use php to use

Re: [android-developers] Re: Big difficult to develop in Android :( (I'm italian)

2010-03-20 Thread Mark Murphy
massimo wrote: For example, I have try to use the demo files of Lunar. But there isn't a file inside di example. There isn't R.java file. R.java is generated as part of the compile process. You will find it in the gen/ directory tree after your first build. -- Mark Murphy (a Commons Guy)

Re: [android-developers] Re: Application losing SharedPreferences and Sqlite database on Droid

2010-03-20 Thread Mark Murphy
Matt (preinvent) wrote: Well there it is: 03-19 22:43:02.624: ERROR/AndroidRuntime(2002): Caused by: android.database.sqlite.SQLiteDatabaseCorruptException: database disk image is malformed 03-19 22:43:02.624: ERROR/AndroidRuntime(2002): at

Re: [android-developers] Re: AlarmManager on droids

2010-03-20 Thread Mark Murphy
Derek wrote: I've implemented it and I got the crash report from the end user. See details below. The error report is VerifyError when the broadcastReceiver tries to start the WakefulIntentService. It happens on Cupcake/Samsumg. I've tested under emulator with 1.5 (minSDK=3) and it works

Re: [android-developers] how can I know the service is already started

2010-03-20 Thread Mark Murphy
rizwan wrote: I am looking to code simple application let's say I have an activity that starts a service which is simply a counter and counter value is reflected on activity UI , when I navigate away from this .I want this counter to be continue and when I get back to Activity I want to

[android-developers] How can i select data onListClick

2010-03-20 Thread Nandan .
Hiii i had used Listview to display phoneno from phonebook.now i want on the onListClick event just select the phonno and pass phone no to another activity. but its not working . can anyone help me . my code is below. Thank you very much for help. private void populateContactList() { //

[android-developers] Re: How can i select data onListClick

2010-03-20 Thread Nandan .
its pass bellow information to another activity android.content.contentresolver$cursorwrapperin...@43d4e598 plz help me On Sat, Mar 20, 2010 at 5:50 PM, Nandan . bhavesh2...@gmail.com wrote: Hiii i had used Listview to display phoneno from phonebook.now i want on the onListClick event just

[android-developers] Re: EXTRA_OUTPUT problem with video camera - breaks 'retake' and 'delete' buttons

2010-03-20 Thread kevikev2020
i had the same problem, ugggh On Mar 16, 5:43 pm, Anna PS annapowellsm...@googlemail.com wrote: Any ideas, anyone? wondering if this is an Android bug, or if I'm doing something wrong. Seems to work fine when taking photos, just not videos. On Mar 12, 7:27 pm, Anna PS

[android-developers] Preventing dialog auto-dismiss on button click

2010-03-20 Thread westmeadboy
Is there any way (the best way) to avoid this happening? I am using a ProgressDialog which has one cancel button. On clicking the cancel button I want to disable the cancel button and change the message to Canceling That bit's easy. Only once the cancellation has been fully processed do I

[android-developers] Re: Can't dynamically update ListAdapter for ListView

2010-03-20 Thread Tatyana Ulyanova
Hello, Kumar! I have a problem when I try to add items to my custom adapter. Everytime when i add new item to adapter for(int i=0;im_orders.size();i++) m_adapter.add(m_orders.get(i)); the size of m_orders (ArrayList joined to ListAdapter) also increase and application hangs.

[android-developers] Re: Is there any changes in crop image activity

2010-03-20 Thread Tom
Very disappointed to see cropping removed. On Mar 10, 6:33 am, Adarsh Pandey pandey.adarsh...@gmail.com wrote: So now, how to call CropImage Activity from other third party application. On Feb 15, 6:52 pm, Scytmo i...@scytmo.org.uk wrote: I think the answer is here:  

[android-developers] Problems accessing location data in emulator

2010-03-20 Thread Sven Jacobs
Hi all, I'm trying to access location data in the emulator but always receive null values :( This is the code: final LocationManager locationManager = (LocationManager) getSystemService( Context.LOCATION_SERVICE ); if ( locationManager == null ) { return; } final Criteria criteria = new

[android-developers] Re: Can't dynamically update ListAdapter for ListView

2010-03-20 Thread Tatyana Ulyanova
Hello, Kumar! I have a problem when I try to add items to my custom adapter. Everytime when i add new item to adapter for(int i=0;im_orders.size();i++) m_adapter.add(m_orders.get(i)); the size of m_orders (ArrayList joined to ListAdapter) also increase and application hangs.

Re: [android-developers] Problems accessing location data in emulator

2010-03-20 Thread Mark Murphy
Please do not simultaneously post to multiple lists. Sven Jacobs wrote: I'm trying to access location data in the emulator but always receive null values :( This is the code: final LocationManager locationManager = (LocationManager) getSystemService( Context.LOCATION_SERVICE ); if (

[android-developers] Re: My ProgressDialog suffers from ANR timeouts?

2010-03-20 Thread Paul Turchenko
Well, but generally, it's not a solution. Try making your buffer size content-length dependent: totalSize = conn.getContentLength(); . byte data[] = new byte[totalSize/100]; This way you'll get exactly +1% update for download progress. For most generic case I would suggets somethig line

Re: [android-developers] Preventing dialog auto-dismiss on button click

2010-03-20 Thread TreKing
On Sat, Mar 20, 2010 at 8:26 AM, westmeadboy westmead...@yahoo.co.ukwrote: The only way I can think of is to use a custom layout but I would rather keep the default dialog look and feel (rather than trying to simulate it with my own code). Don't think so. I had a lengthy discussion with

Re: [android-developers] Preventing dialog auto-dismiss on button click

2010-03-20 Thread Mark Murphy
TreKing wrote: On Sat, Mar 20, 2010 at 8:26 AM, westmeadboy westmead...@yahoo.co.uk mailto:westmead...@yahoo.co.uk wrote: The only way I can think of is to use a custom layout but I would rather keep the default dialog look and feel (rather than trying to simulate it with my own

[android-developers] Re: Android Bluetooth Development - Problem connecting

2010-03-20 Thread philDev
push On Mar 17, 7:23 pm, philDev philipptoe...@gmail.com wrote: OK, but still thank you On Mar 17, 7:10 pm, DonFrench dcfre...@gmail.com wrote: BTW: There is some very important Information missing on theAndroid- dev Page about theBluetoothAPI. Theandroid.Permissions.INTERNET have to

[android-developers] Re: My ProgressDialog suffers from ANR timeouts?

2010-03-20 Thread skink
On Mar 20, 2:20 pm, Paul Turchenko paul.turche...@gmail.com wrote: Well, but generally, it's not a solution. Try making your buffer size content-length dependent: totalSize = conn.getContentLength(); . byte data[] = new byte[totalSize/100]; This way you'll get exactly +1% update for

[android-developers] Re: How can i select data onListClick

2010-03-20 Thread Paul Turchenko
What exactly not working? On Mar 20, 2:34 pm, Nandan . bhavesh2...@gmail.com wrote: its pass bellow information to another activity android.content.contentresolver$cursorwrapperin...@43d4e598 plz help me On Sat, Mar 20, 2010 at 5:50 PM, Nandan . bhavesh2...@gmail.com wrote: Hiii i

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-20 Thread Arnon
Has anyone from Italy recieved a confirmation mail or the actual phone? Thanks On 20 מרץ, 05:12, CHUA Chee Wee chu...@gmail.com wrote: Reporting in from Singapore. I've just received my program confirmation today. Let's see when I'll receive my Nexus One. :o) On Mar 20, 12:04 am, Blake La

[android-developers] Re: Audio Flickering - my code, my computer or android emulator?

2010-03-20 Thread Gabriel Simões
In this case no news = bad news ... Based on Mario´s post and the possibilities I could think about in the last days I have modified the code trying to isolate the issues like calling blocking methods and as a consequence loosing part of the audio stream, having buffer overflows, etc, as this

[android-developers] Re: Can't connect to SPP device

2010-03-20 Thread philDev
As I wrote in my Email I got similiar Problems but I'm really certain that your app is the client here. There is not as much Documentation available as I hoped but here is some: http://developer.android.com/intl/de/guide/topics/wireless/bluetooth.html Greets Philipp Toelle On Mar 19, 1:12 pm,

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-20 Thread dgoemans
To be honest, i don't think anyone from this has actually received their phone yet. It'd be nice to get people on her confirming that they've got their Nexus One, and they weren't already waiting on one from ADC. On Mar 20, 8:05 pm, Arnon arnonse...@gmail.com wrote: Has anyone from Italy

[android-developers] Using Multiple addProximityAlerts

2010-03-20 Thread Prasanna Perera
Hello, I want the user to enter several addresses and check a check box next to each address if she wants to be notified when she come close to this particular address. I am trying to use addProximityAlert() to do this. I am using the same PendingIntent when calling addProximityAlert() for each

Re: [android-developers] Using Multiple addProximityAlerts

2010-03-20 Thread Mark Murphy
Prasanna Perera wrote: I want the user to enter several addresses and check a check box next to each address if she wants to be notified when she come close to this particular address. I am trying to use addProximityAlert() to do this. I am using the same PendingIntent when calling

[android-developers] Cloud2db JDBC driver for Google Android platform

2010-03-20 Thread Sandeep
Hi Everyone, Cloud2db is pleased to announce the availability of Cloud2db JDBC driver for Google Android platform. With this driver you will be able to access your Cloud2db instance on Google App Engine from the Android applications using standard JDBC concepts. Please download the Cloud2db

[android-developers] Re: Google Checkout Finally Arrives in Canada?

2010-03-20 Thread TheBeefiest
I attempted to purchase a game from the market today , but it did not work. I have a T-mobile G1, on the canadian Fido network. I have already used google checkout to pay for my Android Developers registration. Everything seemed to be going fine, i got an email saying here is your reciept, then

[android-developers] Re: how can I know the service is already started

2010-03-20 Thread john
how can I know the service is already started ? if you have only one service in application,try this, private void checkservice() { int chk=0; ListActivityManager.RunningServiceInfo procList = getRunningAppProcessesList(); if ((procList == null) || (procList.size()

[android-developers] Use HTTP post method or Simple Java Socket Program

2010-03-20 Thread raqz
Hi, Could someone please suggest me a good/efficient way to communicate with the server. I could think of two options 1) Use http post methods to send data to a php script at the server which would later call the google api's written in another java program (jar)\or use php to use google api's

Re: [android-developers] Use HTTP post method or Simple Java Socket Program

2010-03-20 Thread David Ashwood
Didn't you already ask this raqz? https://mail.google.com/mail/?tab=cm#inbox/1277ab8600744cb5 On 21 March 2010 02:44, raqz abdulraqee...@gmail.com wrote: Hi, Could someone please suggest me a good/efficient way to communicate with the server. I could think of two options 1) Use http post

[android-developers] Re: Google Checkout Finally Arrives in Canada?

2010-03-20 Thread Andrei
I can conform several people bought app from Ontario On Mar 17, 12:10 am, Agus agus.sant...@gmail.com wrote: Based on todays' news Canadians can buy paid apps from the Market. Can anyone (from Google) confirm if Google Checkout finally work for Canadian users? -- You received this message

[android-developers] SOLVED - Eclipse problem with Project contains errors and nothing is obviously wrong

2010-03-20 Thread Stephen Lebed
I haven't seen this mentioned anywhere so I'm posting it here if other people come across this issue. Somethings I'll have an ?.xml file selected when I compile a project, only to have a ?.out.xml generated. Deleting the file doesn't clear the error, and Eclipse won't compile the project. It