Re: [android-developers] AsyncTask and UI activity

2010-08-11 Thread raju bhusani
When doing the Asy Task on InBackground method you can do the restore process and put the user in wait by showing progress dialog in PreExecute and dissmis it in post..! On Tue, Aug 10, 2010 at 1:30 AM, Kim D. kdame...@gmail.com wrote: Hi all, I know this is not how an async task

[android-developers] Content Encoding and decoding

2010-08-11 Thread raju bhusani
Hi All, Can anyone tell me how to store the encoded content which is in xml in to the string variable and after that i will display that in webview. please help me! -- Thanks Regards B.NagaRaju Software Engineer 9966990732 WWW.arijasoft.com -- You received this message because you are

[android-developers] Re: Routing audio input to bluetooth headset

2010-08-11 Thread Anzi
Any help ? On Aug 9, 2:51 pm, Anzi anji...@gmail.com wrote: Hi, With the given APIs i am not able route the audio to bluetooth sco headset. Can you please figure what is missing in code. Note that Bluetooth headset is paired and connected before executing the following code. AudioManager

[android-developers] Re: Content Encoding and decoding

2010-08-11 Thread Kumar Bibek
Can you give a sample of your encoded data? There are a few Encoding and Decoding classes on Android which you can directly use, depending upon your enconding. -Kumar Bibek http://techdroid.kbeanie.com On Aug 11, 11:22 am, raju bhusani raju.bhus...@gmail.com wrote: Hi All,    Can anyone tell

[android-developers] Re: Conversion to Dalvik format failed with error 1

2010-08-11 Thread Kumar Bibek
Are you trying to include some third party libraries? Or something else? -Kumar Bibek http://techdroid.kbeanie.com On Aug 11, 6:15 am, Hiko hikosais...@gmail.com wrote: Hi, I faced to the serious problem when building my environment. I use below software for compiling. android SDK(android

[android-developers] Re: ERROR/LicenseValidator(4883): Signature verification failed.

2010-08-11 Thread Don
Hi All, I have also found that it I rename the failing app's package name (i.e. from com.mycompany.myapp to com.mycompany.myapp1), then the licensing works! Is there anyone here that can help me? Cheers, Donal On Aug 5, 9:51 am, Trevor Johns tjo...@google.com wrote: Hi Donal, If you're getting

[android-developers] Re: How do I know current run Activity name?

2010-08-11 Thread Kumar Bibek
Why exactly would you want to do that? If you want to pass some message from the service to the Activity, it should be done in a different way. Register your activity to listen to a particular kind of broadcast which the service would send with the message, and so whatever you need to do. -Kumar

Re: [android-developers] Re: About external Storage

2010-08-11 Thread Yves Liu
I found the post about Incredible. It queries images on both EXTERNAL_CONTENT_URI and phoneStorage. That is a very good solution for this, but it is not finished. For example, if you have images on both phone storage and external SD card, and check the image full path will contain both locations,

Re: [android-developers] Re: How do I know current run Activity name?

2010-08-11 Thread CaryWang
I write android demo I want use service put message current app,but servie don't know current app name.so I want that. 2010/8/11 Kumar Bibek coomar@gmail.com Why exactly would you want to do that? If you want to pass some message from the service to the Activity, it should be done in a

[android-developers] Re: With the new Froyo update, my app is being killed instead of running in the background

2010-08-11 Thread Pent
If you are running a service that the user is aware of, you should use Service.startForeground().  One of the things this does is tell the system the user would not be happy if the service's process gets temporarily One of the other things it does is make the user unhappy and write to you

[android-developers] Re: ERROR/LicenseValidator(4883): Signature verification failed.

2010-08-11 Thread Don
Interestingly, I've tested what happens when I rename the app's package back to the original and it seems to have solved the issue! I wonder is it an Eclipse project problem? Donal On Aug 11, 7:43 am, Don donal.morris...@gmail.com wrote: Hi All, I have also found that it I rename the failing

Re: [android-developers] AsyncTask and UI activity

2010-08-11 Thread Kim Damevin
Thanks guy, that's what I did. While the async task is running i display a progress bar which disapear when finished and display a success/error message. In case someone is interested, I also used transaction on the SQL lite database to avoid any inconsistency. Kim On Wed, Aug 11, 2010 at 8:09

[android-developers] Launch App in device start-up

2010-08-11 Thread Muthu Kumar K.
Hi, I am trying to launch my application instead of android home screen. Can you tell me what i have to do for this? Thanks in Advance, Muthu Kumar K. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Re: With the new Froyo update, my app is being killed instead of running in the background

2010-08-11 Thread Dianne Hackborn
The JIT takes about 100K per process. It is pretty insignificant. On Tue, Aug 10, 2010 at 7:11 PM, Eric F ericfrie...@gmail.com wrote: I am running CM6 RC2 on my Droid, and one thing I think about is whether or not the extra overhead per dalvik process of the JIT on the limited RAM of the

Re: [android-developers] Re: With the new Froyo update, my app is being killed instead of running in the background

2010-08-11 Thread Dianne Hackborn
On Wed, Aug 11, 2010 at 12:04 AM, Pent tas...@dinglisch.net wrote: One of the other things it does is make the user unhappy and write to you because they have a permanent notification in their status bar. So you are saying the user doesn't want to know who is playing sounds in the background

Re: [android-developers] Re: Strange out of memory on bitmap but there is free heap space

2010-08-11 Thread Davide
2010/8/10 Davide d...@vide.bz: So i will try to download the bytes of the image and save they on the Hi, this is what I have done but does not work :-( Now I download images from internet into the getCache() dir of the app. Then when I need to use an image I read it from local cache and

[android-developers] Sharable Custom UI components

2010-08-11 Thread SAM
Hi All, I want to develop and distribute some custom UI components for android apps. This custom component can do some network communicatioon too with my server. So by this I want to hide the communication protocol from my component users, and will show the content as provided by my control eg

[android-developers] Re: How safe is emailing a signed App apk?

2010-08-11 Thread Bob Kerns
They can't do anything bad to you with a signed .apk. They can't do anything but install it, or perhaps redistribute it -- but they'd be able to do that anyway. A signed .apk does NOT contain ANYTHING from your keystore, except your PUBLIC certificate, which serves to identify who signed it. The

[android-developers] Re: Shared library symbols are not loaded.

2010-08-11 Thread FrankG
I think at first you should go to the android-platform group. Beside this, did you check whether any app can use your native code ? And imho put your stuff in a vendor extension under app/mydroid/vendor, this makes it more transparent from where it comes and so on. Good luck ! Frank On 10

[android-developers] Changing app name in market

2010-08-11 Thread Peter Webb
This has come up before, but I'm still not clear. I published my first app last night. It sunk like a stone. I want to change its name. I don't want to force the few people who have downloaded it to get an update. It seems to me that if I: 1. Change the android:label in the manifest to be the

Re: [android-developers] Re: FTP Application for IPv6

2010-08-11 Thread Joe Petruchi
Hello Zirk I am finding it difficult to get the CafeFtp application. Google Market is not able to find it . so If you send it across to me(.apk file) over e-mail it will be great Best Regards Ajan Daniel On Tue, Aug 10, 2010 at 11:43 PM, Joe Petruchi petruchi.dr...@gmail.comwrote: Zirk will

[android-developers] Re: With the new Froyo update, my app is being killed instead of running in the background

2010-08-11 Thread Pent
So you are saying the user doesn't want to know who is playing sounds in the background and have a clear way to get to the app to stop it? A service doesn't need foreground to play noises in the background. If it IS foreground, the notification doesn't help to 'get to it' or stop it. If my

[android-developers] Re: developing with htc aria

2010-08-11 Thread FrankG
No, I don't think so. In the driver INF file you have already several VID/PID pairs, for them it works out of the box .. new one must be added. The other think is if you have a composite device, then you maybe need also a specific driver. Good luck ! Frank On 10 Aug., 10:35, Kostya Vasilyev

Re: [android-developers] Changing app name in market

2010-08-11 Thread { Devdroid }
On 11 August 2010 10:21, Peter Webb r.peter.w...@gmail.com wrote: This has come up before, but I'm still not clear. I published my first app last night. It sunk like a stone. I want to change its name. I don't want to force the few people who have downloaded it to get an update. Simply keep

[android-developers] android service

2010-08-11 Thread neil
I have a question regarding on accessing a service on a second activity executed from main activity. do i have to create another service connection as i have created on the main activity. thanks for replies... -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: With the new Froyo update, my app is being killed instead of running in the background

2010-08-11 Thread William Ferguson
Dianne, since Service.setForeground() has been deprecated, what should we use to stop a service being killed? In particular, how should you keep a service alive that needs to listen and respond to phone state events? And on phone state events, why is it that responding to an inbound phone call

[android-developers] Re: FTP Application for IPv6

2010-08-11 Thread Dragan Andric
If you type FtpCafe in Market search it's the only hit you will get. It's only available for versions 1.6 onwards though. Dragan On Aug 11, 9:24 am, Joe Petruchi petruchi.dr...@gmail.com wrote: Hello Zirk I am finding it difficult to get the CafeFtp application. Google Market is not able to

[android-developers] Get Video Thumbnail For Android OS Version 1.5

2010-08-11 Thread Rahul
hi i want to retrive the videos thumbnail for Android OS 1.5 And 1.6.MediaStore.Video.Thumbnails. this class is only work for android 2.0 and more. So please tel me is there any way to retrive the videos from SDCARD in 1.5 and 1.6. Please give me reply urgent . Thanks -- You received this

Re: [android-developers] android service

2010-08-11 Thread vineeshkc
use intent to connect the activity -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Share AccountAuthenticator between multiple applications

2010-08-11 Thread Marcus Wolschon
I have 2 applications that both require the same account-type from the same, custom AccountAuthenticator . 1) How do I deploy the custom AccountAuthenticator? Separately or with both applications? Will it be shown once or twice in the account-manager if supplied by 2 apps? If supplied

[android-developers]

2010-08-11 Thread vineeshkc
does window 7 support android installlation -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] How to use Toast.makeText in Service

2010-08-11 Thread CaryWang
I run service in the background I want to use Toast.makeText display message to run Activity.but I don't know Activity context I know Activity packageName and className.What should I do? -- Cary -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] How to use Toast.makeText in Service

2010-08-11 Thread { Devdroid }
On 11 August 2010 11:50, CaryWang wangjf...@gmail.com wrote: I run service in the background I want to use Toast.makeText display message to run Activity.but I don't know Activity context I know Activity packageName and className.What should I do? What about just using getApplicationContext()?

[android-developers] How does PackageManager detect what architecture APK targets?

2010-08-11 Thread Mika
Hello everyone, I'm currently trying to specifically target ARMv7 custom hardware and I'm facing issues when trying to install the APK. When I try doing adb install app.apk Logcat informs me that : W/PackageManager( 1062): Native ABI mismatch from package file And does not install the APK.

Re: [android-developers] How to use Toast.makeText in Service

2010-08-11 Thread CaryWang
NO,getApplicationContext() is Service Context don't Activity Context. 2010/8/11 { Devdroid } webnet.andr...@gmail.com On 11 August 2010 11:50, CaryWang wangjf...@gmail.com wrote: I run service in the background I want to use Toast.makeText display message to run Activity.but I don't know

[android-developers] Re: How to use Toast.makeText in Service

2010-08-11 Thread Sarwar Erfan
Do you wan to display a Toast from a Service? You do not need any Activy to do so. A toast can be created and displayed from an Activity or Service. If you create a toast notification from a Service, it appears in front of the Activity currently in focus. A Service is indirectly derived from

[android-developers] Content Provider for shared preferences. ?

2010-08-11 Thread kunal khaire
Hi All, Shared Preferences are as such used to keep the data static and available.Is there a chance that i can use this ahred preference values over a content uri and make accessible to all ? Thanks -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Re: How to use Toast.makeText in Service

2010-08-11 Thread CaryWang
I use Toast.makeText(getApplicationContext(), test, Toast.LENGTH_SHORT).show(); don't display in the Activity.why? 2010/8/11 Sarwar Erfan erfanonl...@gmail.com Do you wan to display a Toast from a Service? You do not need any Activy to do so. A toast can be created and displayed from an

[android-developers] Re: How to use Toast.makeText in Service

2010-08-11 Thread Sarwar Erfan
On Aug 11, 3:57 pm, CaryWang wangjf...@gmail.com wrote: NO,getApplicationContext() is Service Context don't Activity Context. Go to this page: http://developer.android.com/reference/android/widget/Toast.html Under the description of the method makeText, you will find: Parameters context

Re: [android-developers] Content Provider for shared preferences. ?

2010-08-11 Thread Pampapathi
I am also want the same , if any one of you know about this, please respond. Thanks, Pampapathi K . On 11 August 2010 15:33, kunal khaire deepvanshkha...@gmail.com wrote: Hi All, Shared Preferences are as such used to keep the data static and available.Is there a chance that i can use this

Re: [android-developers] How to use Toast.makeText in Service

2010-08-11 Thread { Devdroid }
On 11 August 2010 11:57, CaryWang wangjf...@gmail.com wrote: NO,getApplicationContext() is Service Context don't Activity Context. Service got no Activity, remember? Just use getApplicationContext() as I said, because it's valid for services too, becasue: java.lang.Object ↳

[android-developers] Re: FTP Application for IPv6

2010-08-11 Thread Joe Petruchi
Hello All, I am trying to download the apk from my country India. But I am not able to do so. It would be really nice if you could send the apk through e-mail. Best Regards Petruchi On Tue, Aug 10, 2010 at 6:01 PM, Joe Petruchi petruchi.dr...@gmail.comwrote: Hello All, Does any body

[android-developers] Question about purpose of CALL_PRIVILEGED permission (not working as stated in the docs)

2010-08-11 Thread Mathias Lin
Hi Dianne (and anbody else), on http://developer.android.com/reference/android/Manifest.permission.html I read CALL_PRIVILEGED: Allows an application to call any phone number, _including emergency numbers_, without going through the Dialer user interface for the user to confirm the call

[android-developers] Want to read data @ content provider before system initialisation

2010-08-11 Thread kunal khaire
Hi All, I need to read the data at a content provider before the system actually initialises. Probably what i understand is that a boot complete intent would launch a homescreen activity.Exactly before the system initialises i want to see the data provided by the content provider and use it.I

Re: [android-developers] Content Provider for shared preferences. ?

2010-08-11 Thread Olivier Guilyardi
I think that you want to make a Content Provider: http://developer.android.com/guide/topics/providers/content-providers.html With this you can allow other apps to retrieve data from your app. Internally, you can store this data the way you want, in shared preferences, in a sqlite database, etc..

[android-developers] Re: How to use Toast.makeText in Service

2010-08-11 Thread Bob Kerns
No, it's not either one, it's Application context. But you want the service context, which is just 'this' (i.e. the service itself). The application context would work too, but generally you should go with the most specific context available unless you have a reason otherwise. Using some context

[android-developers] Re: How to use Toast.makeText in Service

2010-08-11 Thread Bob Kerns
My guess? I'd guess that you're expecting it to immediately show up, and you're continuing to do something right afterwards. It will not show up until after you exit from the method. Toast.show() queues up a request to show it, it doesn't actually do anything on the screen itself. (It can't).

[android-developers] Re:

2010-08-11 Thread Bob Kerns
Yes. I'm running Windows 7 64-bit. On Aug 11, 2:49 am, vineeshkc kcvine...@gmail.com wrote: does window 7 support android installlation -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Programmatically access Android social network settings

2010-08-11 Thread t
is there a way to retrieve the user's social network accounts via his selections under Settings-Social Networks? I'm trying to save the user from double entering his social networks username passwords in my app, and only display the allow this app.. window. -- You received this message because

[android-developers] Making HorizontalScrollView scroll programatically

2010-08-11 Thread Amit
Hi All, I have a horizontal scroll view containing multiple Bitmaps of variable length. My question is how can i make a particular bitmap selected which in not visible on the current screen and let the horizontal scroll to scroll such that the earlier invisible Bitmap is now visible. Thanks in

Re: [android-developers] Re: How to know the home launcher app packagename through programming?

2010-08-11 Thread Mark Murphy
On Tue, Aug 10, 2010 at 11:24 PM, manoj manojkumar.m...@gmail.com wrote: HI Mark, thanks for the help. I implemented as you suggested. But it is giving the list of activities which contains those categories (DEFAULT, HOME, ...etc). But I want only one activity's package name (because only

Re: [android-developers] Re:

2010-08-11 Thread vineeshkc
how u installl it pls say -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com

[android-developers] Autocomplete with suggestions in Custom Dialog

2010-08-11 Thread titleist
Hi, I'm having problem with creating AutocompleteTextView in custom dialog. In every example i saw, the autocomplete feature is only in the classes that extends activity. I need to have autocomplete in custom dialog that I created. The problem is that this: AutoCompleteTextView textView =

Re: [android-developers] Re: With the new Froyo update, my app is being killed instead of running in the background

2010-08-11 Thread Mark Murphy
On Wed, Aug 11, 2010 at 4:36 AM, Pent tas...@dinglisch.net wrote: So you are saying the user doesn't want to know who is playing sounds in the background and have a clear way to get to the app to stop it? A service doesn't need foreground to play noises in the background. If it IS

Re: [android-developers] Re: With the new Froyo update, my app is being killed instead of running in the background

2010-08-11 Thread Mark Murphy
On Wed, Aug 11, 2010 at 5:08 AM, William Ferguson william.ferguson...@gmail.com wrote: In particular, how should you keep a service alive that needs to listen and respond to phone state events? Don't use a service. Use a manifest-registered BroadcastReceiver watching for

[android-developers] problem in updating custom property using property_set

2010-08-11 Thread Suchita Sharma
Hi all, I am trying to update some system property using *native api property_set (/cutils/properties.h*) .But it is not changing the value of property . I am running my application as system Server UID using android:sharedUserId=android.uid.system iin manifest file.. I have tried several times

Re: [android-developers] Re: Location from cell site or from Triangulation

2010-08-11 Thread Mark Murphy
On Wed, Aug 11, 2010 at 1:00 AM, Ajmer singh ajmer.si...@evontech.com wrote: Thanks for your reply.However can you please let me know how we can do that in android i mean is there any code that you can send or a link to that code packet. http://developer.android.com Look up LocationManager

Re: [android-developers] Launch App in device start-up

2010-08-11 Thread Mark Murphy
On Wed, Aug 11, 2010 at 3:21 AM, Muthu Kumar K. muthum...@gmail.com wrote: I am trying to launch my application instead of android home screen. Can you tell me what i have to do for this? Step #1: Write your own home screen. There is a sample home screen activity in the samples installed with

Re: [android-developers] How does PackageManager detect what architecture APK targets?

2010-08-11 Thread Mark Murphy
On Wed, Aug 11, 2010 at 5:55 AM, Mika mts...@googlemail.com wrote: I'm currently trying to specifically target ARMv7 custom hardware and I'm facing issues when trying to install the APK. When I try doing adb install app.apk Logcat informs me that :    W/PackageManager( 1062): Native ABI

[android-developers] Re: With the new Froyo update, my app is being killed instead of running in the background

2010-08-11 Thread William Ferguson
Ahh, thanks Marc. I have been using Intent.ACTION_NEW_OUTGOING_CALL to determine if an outgoing call was being placed. I wasn't aware of the TelephonyManager.ACTION_PHONE_STATE_CHANGED Intent. Won't it fire for both incoming and outgoing calls? Seems strange the 2 Intents are not co-located. But

[android-developers] Enable usb debugging (under settings/applications/development) programatically from within app

2010-08-11 Thread Mathias Lin
Is it possible to enable usb debugging (under settings/applications/development) programatically from within my app? I was looking at Permission.WRITE_SETTINGS and http://developer.android.com/reference/android/provider/Settings.System.html but couldn't find any appropriate setting there. --

Re: [android-developers] Programmatically access Android social network settings

2010-08-11 Thread { Devdroid }
On 11 August 2010 13:38, t tomers...@gmail.com wrote: is there a way to retrieve the user's social network accounts via his selections under Settings-Social Networks? I'm trying to save the user from double entering his social networks username passwords in my app, and only display the allow

Re: [android-developers] Re: With the new Froyo update, my app is being killed instead of running in the background

2010-08-11 Thread Mark Murphy
On Wed, Aug 11, 2010 at 8:36 AM, William Ferguson william.ferguson...@gmail.com wrote: Ahh, thanks Marc. I have been using Intent.ACTION_NEW_OUTGOING_CALL to determine if an outgoing call was being placed. I wasn't aware of the TelephonyManager.ACTION_PHONE_STATE_CHANGED Intent. Won't it fire

[android-developers] Re: Changing app name in market

2010-08-11 Thread Peter Webb
On Aug 11, 6:55 pm, { Devdroid } webnet.andr...@gmail.com wrote: On 11 August 2010 10:21, Peter Webb r.peter.w...@gmail.com wrote: This has come up before, but I'm still not clear. I published my first app last night. It sunk like a stone. I want to change its name. I don't want to

[android-developers] Re: Do we need to call System.gc() ?

2010-08-11 Thread DanH
Of course, finalizers have been all but deprecated on big Java. Too unreliable -- not guaranteed to run. If the image data management scheme relies on finalizers it's broken by design. On Aug 10, 11:54 pm, Bob Kerns r...@acm.org wrote: This has been discussed a fair bit in the past, if you

[android-developers] Re: OpenSource REST Client for Android

2010-08-11 Thread Robert Nekic
FYI, there is an hour long video from this year's Google IO about building Android REST client apps. http://code.google.com/events/io/2010/sessions/developing-RESTful-android-apps.html On Aug 11, 12:47 am, Kevin Duffey andjar...@gmail.com wrote: You can use HTTPClient very easily to make REST

[android-developers] Remote Service - Reconnecting

2010-08-11 Thread maecky
Hi, I have implemented a RemoteService which will increment a countere ( just for testing purposes ). Therefore I have a Task class which implements Runnable and the method run() where a infinite while loop increments the variable. From the client side, I start the RemoteService with

[android-developers] Re: Stop scrolling ListView

2010-08-11 Thread Nithin
ok, from this thread, http://groups.google.com/group/android-developers/browse_thread/thread/b648ce2fe622463/e47e778c3fd4f423?lnk=gstq=getscrolly%28%29#e47e778c3fd4f423 I think, we can't stop scrolling. ListView is doing scrolling for us and we can't stop scrolling. I also tried getScrollY(),

Re: [android-developers] Remote Service - Reconnecting

2010-08-11 Thread Mark Murphy
On Wed, Aug 11, 2010 at 9:19 AM, maecky markus.feuerst...@gmail.com wrote: How do I know if the service has already been started (therefore i would only need to bind to the service again) or not (then I would need to call startService() first and then bind to the service)? You don't know.

[android-developers] Re: Conversion to Dalvik format failed with error 1

2010-08-11 Thread sws-vinpa
Start Eclipse from a shell with option -clean. sws-vinpa On Aug 10, 9:15 pm, Hiko hikosais...@gmail.com wrote: Hi, I faced to the serious problem when building my environment. I use below software for compiling. android SDK(android 2.1) eclipse 3.5.2 At first , this problem occurred on

Re: [android-developers] Remote Service - Reconnecting

2010-08-11 Thread Markus Feuerstein
Thanks for your quick answer. If I understand right, I could solve it like this: @Override public void onStart( Intent intent, int startId ){ super.onStart( intent, startId ); if( !mServiceRunning ) { mServiceHandler = new Handler();

Re: [android-developers] Remote Service - Reconnecting

2010-08-11 Thread Kostya Vasilyev
Markus, You should match up calls to bindService() and unbindService(). If you bind to the service in your Activity's onStart(), call unbindService in onStop(). Next time your activity is started, it will call bindService() again. Service lifecycle is managed by Android, and the service

Re: [android-developers] Re: How to know the home launcher app packagename through programming?

2010-08-11 Thread Kostya Vasilyev
A situation can arise where the user has installed an additional (replacement) Home application, but hasn't made it the default yet. If that's the case, each time the user presses the Home key, he will be choosing between the default and the replacement Home app (s). I've actually done this,

Re: [android-developers] Remote Service - Reconnecting

2010-08-11 Thread Mark Murphy
On Wed, Aug 11, 2010 at 9:50 AM, Markus Feuerstein markus.feuerst...@gmail.com wrote: Thanks for your quick answer. If I understand right, I could solve it like this:     @Override     public void onStart( Intent intent, int startId ){         super.onStart( intent, startId );         if(

[android-developers] Re: RawContactsEntity - Invalid column aggregation_mode

2010-08-11 Thread William Ferguson
Bump - No one finds it odd that RawContactsEntity.AGGREGATION_MODE is an invalid column for the RawContactsEntity.CONTENT_URI? On Aug 10, 5:25 pm, William Ferguson william.ferguson...@gmail.com wrote: I've been poking around retrieving RawContactsEntity records (ie RawContacts joined with

[android-developers] Re: Programmatically access Android social network settings

2010-08-11 Thread t
thanks, but what about lower OS versions? my target is HTC G2 On Aug 11, 3:39 pm, { Devdroid } webnet.andr...@gmail.com wrote: On 11 August 2010 13:38, t tomers...@gmail.com wrote: is there a way to retrieve the user's social network accounts via his selections under Settings-Social

[android-developers] Hi, really need help with Android Camera

2010-08-11 Thread Pedro Teixeira
Hi there, I have a cameraView class which shows me the Cam View with a button placed on the corner. Once I click that button I'd like to go to another activity which also contains the camera view but some other properties. My code is giving me an undetectable error. I'm not sure what to do. Here

Re: [android-developers] Hi, really need help with Android Camera

2010-08-11 Thread Mark Murphy
On Wed, Aug 11, 2010 at 10:25 AM, Pedro Teixeira pedroteixeir...@gmail.com wrote: Hi there, I have a cameraView class which shows me the Cam View with a button placed on the corner. Once I click that button I'd like to go to another activity which also contains the camera view but some other

Re: [android-developers] Re: Changing app name in market

2010-08-11 Thread { Devdroid }
The app name is set in the developer console; doesn't matter what you use in the app. What you can change in console app title seen in Market. It got nothing to do with app name itself. Unfortunately, to change anything in the market youhave to re-load your app, Which is quite obvious if

[android-developers] Re: With the new Froyo update, my app is being killed instead of running in the background

2010-08-11 Thread Pent
My app needs a permanent background service for monitoring. Why? For numerous reasons, a primary one being I can't figure out when a new app launches within a reasonable time and resource usage otherwise. We can't even change the icon dynamically to give it some informational use, as I

Re: [android-developers] Hi, really need help with Android Camera

2010-08-11 Thread Pedro Teixeira
Hey there, Thanks for the quick answer. I also considered keeping everything in the same activity, but as you, I'm also a fan of small independent and specific activities. The thing is.. one of this camera activities will work with pictures and my server database, and the other one will work

[android-developers] Re: Record audio problem on the LG Ally

2010-08-11 Thread Gene R.
I too am experiencing the same exact problem. I'm using AudioRecord and my app works fine on my Nexus, Behold II, Cliq XT, Droid and Droid X. LG Ally users (and Samsung Moment users) are reporting crashes. I'm locked in at 8khz sample rate. It would be useful to have a logcat from an LG Ally

Re: [android-developers] Changing app name in market

2010-08-11 Thread TreKing
On Wed, Aug 11, 2010 at 3:55 AM, { Devdroid } webnet.andr...@gmail.comwrote: 1. Change the android:label in the manifest to be the new name, and 2. Resubmit it with the same version number Then the name in the market should change but not force an update. Is this correct? Correct.

Re: [android-developers] About Promo code concept in android

2010-08-11 Thread TreKing
On Tue, Aug 10, 2010 at 11:29 PM, raju bhusani raju.bhus...@gmail.comwrote: Can any one tell me, is there any promo code concept in android for our apps like in the iPhone. Nope. - TreKing

Re: [android-developers] Re: With the new Froyo update, my app is being killed instead of running in the background

2010-08-11 Thread Mark Murphy
On Wed, Aug 11, 2010 at 10:43 AM, Pent tas...@dinglisch.net wrote: For numerous reasons, a primary one being I can't figure out when a new app launches within a reasonable time and resource usage otherwise. This should be a hint that what you're doing isn't really supported by the platform.

[android-developers] Re: LVL airplane mode use case ...

2010-08-11 Thread OldSkoolMark
If LVL just allows me to verify once that the user has a right to use the app that is a big step forward. Buy the app, validate right to use on first use, cache results for a long time to accommodate airplane mode. I believe some of the mainstream PC music software I use uses the internet once to

[android-developers] Re: LVL Feedback

2010-08-11 Thread mot12
Thanks for sharing; I have been on the sidelines until now myself. Google strongly recommends obfuscating the entire source code if LVL is used. Have you gone through that trouble? I would highly appreciate any pointers (I have read the developer docs on this topic of course but still feel a bit

[android-developers] Froyo: files picked have prefix 'mnt' before the actual filename... why?

2010-08-11 Thread Abhi
I have a video player application that I am trying to run on my moto droid with Froyo. When the user picks a particular video file for playback, the file picked is seen to have a filename with a prefix 'mnt' added to its actual name. This is causing a lot of problems within my application as I am

[android-developers] Re: With the new Froyo update, my app is being killed instead of running in the background

2010-08-11 Thread Pent
skipped text before I start getting all religious I agree that it'd be nice for a user to be able to bless a service, such that it wouldn't need startForeground(), or perhaps so its icon just wouldn't show up even if startForeground() is called. However, I can't fault the current

Re: [android-developers] Froyo: files picked have prefix 'mnt' before the actual filename... why?

2010-08-11 Thread Mark Murphy
On Wed, Aug 11, 2010 at 11:43 AM, Abhi abhishek.r.sha...@gmail.com wrote: I have a video player application that I am trying to run on my moto droid with Froyo. When the user picks a particular video file for playback, the file picked is seen to have a filename with a prefix 'mnt' added to its

Re: [android-developers] Re: How to use Toast.makeText in Service

2010-08-11 Thread TreKing
On Wed, Aug 11, 2010 at 6:26 AM, Bob Kerns r...@acm.org wrote: But you want the service context, which is just 'this' (i.e. the service itself). The application context would work too, but generally you should go with the most specific context available unless you have a reason otherwise.

[android-developers] Re: LVL Feedback

2010-08-11 Thread Pent
Google strongly recommends obfuscating the entire source code if LVL is used. Have you gone through that trouble? Yes, I made the effort long ago. Pluses: - difficult to scavenge/analyse code - faster, smaller Disadvantages: - much harder to analyse stack traces you get from users,

[android-developers] Re: HTC Droid Eris - Accessing SD Card

2010-08-11 Thread JRich
Yeah, I replaced my hardcoding of sdcard/ with a variable filled by Environment.getExternalStorageDirectory and the Eris is still returning the same error of not being able to find that location. Other devices are still fine. Odd thing is, that's the same path I'm using to save the file and the

[android-developers] Re: How to remove an activity from the navigation stack (without finishing)

2010-08-11 Thread Matt Quigley
On Aug 10, 6:13 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Load the network data from a background thread or even a (background) service, not from your activity. For an even better user-experience, you may want to consider caching the data as well (if that's possible). OK, well we

[android-developers] Re: How to remove an activity from the navigation stack (without finishing)

2010-08-11 Thread Indicator Veritatis
The confusion is not yours;) Streets of Boston had the right idea: don't do the network data loading from the Activity, do it from a Service instead. The Service keeps running until someone calls Context.stopService() on it [or until it calls stopSelf() on itself]. For an example, see

Re: [android-developers] about handle the home key

2010-08-11 Thread dan raaka
can you post $ adb shell getprop | grep finger on the device you are trying .. -Dan On Sat, Aug 7, 2010 at 9:47 PM, 实 lishi1...@gmail.com wrote: I'm working on a slide-unlock program and I want it take the place of Android KeyguardLock. there is one last thing todo.it's the home key. I

Re: [android-developers] Hi, really need help with Android Camera

2010-08-11 Thread Pedro Teixeira
I've tried stop the cam preview and release it before calling the intent.. it actually goes to the other activity now. but gives an error 1 second after This is the errors on the logcat: 08-11 17:22:06.943: ERROR/MediaPlayer(542): Unable to to create media player 08-11 17:22:06.953:

[android-developers] Re: HTC Droid Eris - Accessing SD Card

2010-08-11 Thread Robert Nekic
What error are you seeing? My app writes to the SD card and I've tested on an Eris before and it did not present a problem. On Aug 11, 11:59 am, JRich richma...@gmail.com wrote: Yeah, I replaced my hardcoding of sdcard/ with a variable filled by Environment.getExternalStorageDirectory and

[android-developers] Re: How to remove an activity from the navigation stack (without finishing)

2010-08-11 Thread Indicator Veritatis
Google advises against overriding the Back key event. I am inclined to agree, since once the user gets used to Android, he also gets used to a certain behavior out of the Back key. 99 times out of 100, that behavior is the same as calling finish() on the Activity. Of course, the OP could be one

[android-developers] Re: With the new Froyo update, my app is being killed instead of running in the background

2010-08-11 Thread Alessandro Pellizzari
On Wed, 11 Aug 2010 11:04:19 -0400, Mark Murphy wrote: I agree that it'd be nice for a user to be able to bless a service, such that it wouldn't need startForeground(), or perhaps so its icon just wouldn't show up even if startForeground() is called. However, I can't fault the current

  1   2   >