[android-developers] Re: ADC2 submissions and Android 1.6 (Donut)

2009-09-30 Thread Dan Sherman
Crashing on unofficial builds is worse than crashing at startup on official builds? =P - Dan On Wed, Sep 30, 2009 at 1:49 AM, Pieter pie...@gamesquare.nl wrote: The problem is a little worse for us. Our app does runs fine on 1.6 in the simulator, but we got complaints about crashes from

[android-developers] Re: How to add 3rd party package in android framework

2009-09-30 Thread Dianne Hackborn
Hi, please post these kinds of questions to android-porting; thanks. On Tue, Sep 29, 2009 at 10:33 PM, Rahul Bhagwat rahul3...@gmail.com wrote: I have developed my java library package I want to use this package from other Android applications such as Gallery and Music. so I've put this

[android-developers] Re: Is it possible to upgrade HTC Magic G2 from 1.5-Cupcake to 1.6-Donut ?

2009-09-30 Thread Kasmoori Bindu
Hi. Thank you for the quick reply. Im currently using released phone(HTC Magic G2)which is not a developer handset. Is there any lock for the firmware? Any response would be highly appreciated. Best Regards, Bindu On Tue, Sep 29, 2009 at 5:39 PM, Kasmoori Bindu bindukasmo...@gmail.comwrote:

[android-developers] Re: How to manage 2 versions of the same app: a lite version and a full version?

2009-09-30 Thread mjc147
So if you have three different projects (each with their own package) then you have three different generated R files. So the generic project uses its own R.java and the pro project uses its own R.java AND the R.java for the generic project. I'm not sure I understand the problem - maybe because

[android-developers] Re: How to manage 2 versions of the same app: a lite version and a full version?

2009-09-30 Thread Dianne Hackborn
If someone wants to add an option to aapt to rewrite the .apk to have a different package name than the one in the manifest, I'd love to review it. This is a little tricky -- you need to rewrite the manifest's components and such to also work with the new package -- but should be quite doable.

[android-developers] Android G1 Phone and Proxy Server

2009-09-30 Thread Isuru danagalle
Hi All, Anybody knows how to setup proxy server in android?Ryt now I have an app working without proxy server When proxy is enabled application terminates.Anybody knows how to do proxy settings in android G1 phone?? Thanks Isuru --~--~-~--~~~---~--~~

[android-developers] Re: Android G1 Phone and Proxy Server

2009-09-30 Thread Chi Kit Leung
Do you force G1 phone to use a proxy server or run a proxy server in G1 phone? On Wed, Sep 30, 2009 at 4:42 PM, Isuru danagalle iisuru@gmail.comwrote: Hi All, Anybody knows how to setup proxy server in android?Ryt now I have an app working without proxy server When proxy is

[android-developers] Re: Take an action when soft keyboard is launched

2009-09-30 Thread AJ
Hi Thomas, I think you can do this on the basis of parameters of onSizeChanged. void onSizeChanged (int w, int h, int oldw, int oldh) Parameters w Current width of this view. h Current height of this view. oldwOld width of this view. oldhOld height of this view. Thanks,

[android-developers] Re: Android G1 Phone and Proxy Server

2009-09-30 Thread Isuru Samaraweera
I have connected to a wireless network which uses a proxy server.I ran the application in the same network before proxy is enabled.Once the proxy is enabled in the network application did not work Thanks Isuru On Wed, Sep 30, 2009 at 12:21 PM, Chi Kit Leung michaelchi...@gmail.comwrote: Do you

[android-developers] Re: neighbor cell information yields odd results with 3G

2009-09-30 Thread Will 'Varfar'
there's quite a history of people asking this exact question. Not a single answer yet though. Quite what you can do with a CID without the LAC and MNC etc is a bit unclear anyway. And these questions, they keep disappearing from the search results. Search this group for

[android-developers] Insufficient log / Scala deployment fails

2009-09-30 Thread Marco
Hi, I want to develop in Scala (within Eclipse) and have followed the procedure given in http://www.scala-lang.org/node/160. The build process works but when I try to deploy the application (emulator or device) I get the error: [2009-09-30 09:06:34 - mySecondTry]Installation error:

[android-developers] VM crash in mobile for a code good working in Emulator

2009-09-30 Thread André Charles Legendre
I get stuck from one week to find a solution for a VM crash in a Samsung Galaxy running a code good working with emulator. (I don't know if this code works in any real device) Initialy my code line crashing the VM was : responseString = EntityUtils.toString(response.getEntity()); This code works

[android-developers] Re: Extensible Apps with Scripting or Bytecode Downloading

2009-09-30 Thread Miguel Paraz
On Sep 30, 1:51 am, Mark Murphy mmur...@commonsware.com wrote: I would like the runtime to be a Java app itself, like JavaScript using Rhino (and not using a WebView). So, use Rhino. Or Beanshell. With some classes added to Android 1.5, I suspect Rhino will build from source without

[android-developers] Re: Build APK file from command line...

2009-09-30 Thread Babyboo
I have tried to write this command line to generate the unsigned apk : apkbuilder.bat %UNSIGNED_FILE_NAME% -u -z %RESOURCE_FOLDER%bin \resources.ap_ -f %RESOURCE_FOLDER%bin\classes.dex -rf %RESOURCE_FOLDER% but an Exception has occured with this message : [ java.util.zip.ZipException: duplicate

[android-developers] Re: Signature matching problem

2009-09-30 Thread Babyboo
Thanks Diana. hmm, there is a problem that I must sign my Instrumentation project with the same certificate as target app. So, do you know how to get certificate of any target application (in case that I have only the target apk file, nothing else)???

[android-developers] Re: Signature matching problem

2009-09-30 Thread Babyboo
Thanks Diana. hmm, there is a problem that I must sign my Instrumentation project with the same certificate as target app. So, do you know how to get certificate of any target application (in case that I have only the target apk file, nothing else)???

[android-developers] CPU usage detect

2009-09-30 Thread Reznic Alexander
How to see CPU usage on device? --~--~-~--~~~---~--~~ 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

[android-developers] Re: Signature matching problem

2009-09-30 Thread Babyboo
Thanks Diana. hmm, there is a problem that I must sign my Instrumentation project with the same certificate as target app. So, do you know how to get certificate of any target application (in case that I have only the target apk file, nothing else)???

[android-developers] Re: Android kernel

2009-09-30 Thread Cronix
Correct, but not to 2.6.32 and i want to integrate some patches, kernel modifications, thats why i need a custom compiled kernel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: Signature matching problem

2009-09-30 Thread Dianne Hackborn
That's why I say you need to build the target application yourself. Generally you aren't going to have access to the cert used to sign someone else's app, since they don't want to give out their private key. On Wed, Sep 30, 2009 at 1:03 AM, Babyboo handsomebo...@gmail.com wrote: Thanks Diana.

[android-developers] Re: Now ADC2 judging has begun.

2009-09-30 Thread Cédric Berger
On Tue, Sep 29, 2009 at 18:01, Flo rehf...@gmail.com wrote: I posess a G, too and during my reviews I had only 2% working from the first time, 50% with 2 to 6 attempts and remaining ~48% with far too many cancel/download/cancel/download iterations, that really stops me from judging better.

[android-developers] Re: Flash for android

2009-09-30 Thread Juan Delgado
I'm a Flash dev and I have a Hero, wrote about developing / testing on it: http://blog.zarate.tv/2009/09/13/running-flash-apps-on-androidhtc-hero/ For example you cannot test on the emulator as it doesn't include HTC's Flash player. Hopefully we will get better news this week from Adobe MAX.

[android-developers] Re: ProgressDialog with a second thread - Screen Orientation and back button. How to restore progress dialog?

2009-09-30 Thread Kacper86
If I have a long running operation should i spawn a new thread or create new service with different process id (without creating new thread)? Because I'm not sure I understand the difference, despite the fact I read a lot of information concerning the subject. On Sep 29, 4:32 pm, Streets Of

[android-developers] ViewGroup#onInterceptTouchEvent is only called once

2009-09-30 Thread Gavin Bong
In my custom ViewGroup, I am returning false after handling the MotionEvent.ACTION_DOWN event. According to the javadoc: For as long as you return false from this function, each following event (up to and including the final up) will be delivered first here and then to the target's

[android-developers] Service.onDestroy() invalid?

2009-09-30 Thread Alex Tang
I use AlarmManager to restart my service, code is: AlarmManager aman = (AlarmManager)getSystemService (Context.ALARM_SERVICE); PendingIntent pi = PendingIntent.getBroadcast(this,0, new Intent (this,BootCompleteReceiver.class), 0); aman.set(AlarmManager.RTC_WAKEUP,

[android-developers] Logcat View fails with Could not create the view: For input string: our

2009-09-30 Thread Mak
Hi all. I have a problem with my DDMS in eclipse. In the logcat view appears only this failure: Logcat View fails with Could not create the view: For input string: our I uninstalled and reinstalled the adt and ddms already without any change. I can use the logcat in the command line (tools-

[android-developers] Re: outgoing sms

2009-09-30 Thread Mika
Could you be a bit more specific?? I know you can register a broadcast receiver for incoming sms messages but to my knowledge there isn't a broadcast for outgoing sms messages. -Mika On Sep 30, 8:33 am, kapnk...@gmail.com wrote: yes you can add brodcast receiver to listen n show sms sent

[android-developers] Re: zipalign : could be done at distribution or installation time ?

2009-09-30 Thread Jason Van Anden
I just attempted to upgrade my app from Eclipse (Export Signed Application) and got a message that said: The zlipalign tool was not found in the SDK. Please update to the latest SDK and re-export your Application or run zipalign manually. blah, blah, blah ... attached. This ran fine last

[android-developers] Re: Signature matching problem

2009-09-30 Thread Babyboo
So, I want to test some android system application with Instrumentatioin framework, such as Contact, Calculator, SMS, etc How do I resolve the certificate problem? On Sep 30, 3:18 pm, Dianne Hackborn hack...@android.com wrote: That's why I say you need to build the target application

[android-developers] Rotating Camera Preview

2009-09-30 Thread Fin
Hi All, I have a camera preview in a portion of the main screen of my app. I want it to work in both lanscape and portrait mode. Is there any way to get a preview working in portrait mode which doesnt rotate the image 90 degrees? The only successful method I have tried so far is forcing the

[android-developers] How to receive an incoming call programmatically?

2009-09-30 Thread Nemat
is it possible to intercept an incoming call? I want my application to receive the call automatically through programming.Can we do this in SDK-1.6? Thanks Nemat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: ADC2 submissions and Android 1.6 (Donut)

2009-09-30 Thread Cédric Berger
On Wed, Sep 30, 2009 at 01:58, b2amedina b2amed...@gmail.com wrote: If the rumors are true and Donut does become available next week won't that make judging unfair since some judges may be using 1.6 The 1.6 SDK was made available on Sept 15 and the ADC2 submissions closed Aug 30th. Donut

[android-developers] Secure Credentials in Donut

2009-09-30 Thread al capwn
I noticed a new set of options in donut, under Security, for Secure Credentials. Is there an api to use this, and if not, are there plans to open this up for dev use in the future? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Join

2009-09-30 Thread Sasikumar.S
pls join this group to share ideas http://groups.google.com/group/mobile-application-developers -- Thanks Regards Sasikumar.S --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] can we give margin in percentage instead of pixel??

2009-09-30 Thread Jitu
Hi All, I am facing a problem on UI creation for example (android:layout_marginLeft=100px) when i switch to portrait to landscape then left margin is fix but i want same left margin like we mentioned in percentage.. Here in android dev how i mention left margin in percentage?? - Jitu

[android-developers] Emulating OpenGL

2009-09-30 Thread rich...@stickycoding.com
I've been building my game using a real device, and it gets a steady 50fps. But when I try it on the emulator, it rarely goes above 12. I'm assuming the emulator is using software rather than hardware to do all its drawing. I'm trying to make a video of my game - using fraps (or something

[android-developers] Re: ApplicationContext.java and Activity.java. Is ApplicationContext not used ?

2009-09-30 Thread amit
hi Dianne, thanks for the reply... I think the name ApplicationContext is slightly misleading. Because the ApplicationContext object acts as a Base Context object which gets stored in ContextWrapper / ContextThemeWrapper Whereas when I call myActivity.getApplicaitonContext, I actually get the

[android-developers] Animation Maker and Viewer ?

2009-09-30 Thread ginnie
Hey.. I needed some insight on this issue : ( sorry if it sounds trivial :) ) Is there a way to make and/or run an animation on android ? (animations as in flash / powerpoint / applet or any thing else.. ) does webview support downloading and viewing any animation? i intend to use some kind

[android-developers] Re: Android G1 Phone and Proxy Server

2009-09-30 Thread Chi Kit Leung
Sorry, I don't know much about. I think you are asking about running a proxy server on Android. I know about that. But as far as I know, that need the application level supports for proxying. But I can't find any apps on Android has proxy setting, even the web browser, the default webkit in

[android-developers] How to compile android code on a server, without eclipse, with a script

2009-09-30 Thread DaminouU
Hi, Could someone help me? I want to compile a android code on a server with a script, so without eclipse. Could you give me some explanations to do this? Thanks, D. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: Is audio stream analysis possible?

2009-09-30 Thread Ilya Shinkarenko
(up) Does anybody know how to do it with Android? 2009/9/24 Ilya Shinkarenko shin...@gmail.com: Thank you Chris, Could you pls tell me where do I find API for that? On Sep 24, 2009 4:11 AM, Chris Stratton cs07...@gmail.com wrote: Definitely possible when not on a call, not sure if you can

[android-developers] Notifications

2009-09-30 Thread fritzZz
I've written an activity that call a number that automatically send a sms with some informations. So I've created a BroadcastReceiver that handle SMS received from a specified originating address. This works fine... but i want to : 1. Disable notifications sound when I'm waiting for receiving

[android-developers] Re: How to compile android code on a server, without eclipse, with a script

2009-09-30 Thread Mark Murphy
I want to compile a android code on a server with a script, so without eclipse. Could you give me some explanations to do this? http://developer.android.com/guide/developing/other-ide.html Follow the instructions for using Ant. -- Mark Murphy (a Commons Guy) http://commonsware.com Android

[android-developers] Re: Notifications

2009-09-30 Thread Mark Murphy
1. Disable notifications sound when I'm waiting for receiving this sms (just 1 or 2 seconds) If it is your notification sound, just (re-)register the Notification without the sound. 2. Disable notifications of SMS default app and ChompSMS that handle incoming SMS. You cannot modify or

[android-developers] Re: Is audio stream analysis possible?

2009-09-30 Thread Mark Murphy
Does anybody know how to do it with Android? To record audio, use MediaRecorder. To obtain audio on the fly in a streaming fashion, use AudioRecord. To analyze the resulting audio, you're on your own, though you may wish to consider the Android NDK (Native Development Kit) so you can take

[android-developers] Re: Notifications

2009-09-30 Thread fritzZz
Thank you Mark for the answer, If it is your notification sound, just (re-)register the Notification without the sound. SMS's notification sound isn't managed by the system? I want to set volume to 0 or activate vibration unless I've received the message... On Sep 30, 3:15 pm, Mark Murphy

[android-developers] Re: EditText.onKeyUp() doesn't catch all keys

2009-09-30 Thread CG
On Sep 26, 8:39 pm, Dianne Hackborn hack...@android.com wrote: IMEs perform their edits through the InputConnection interface.  Apps should generally watch for edits on the text view rather than catching key events. Thanks for the quick answer. This approach looks somewhat different to the

[android-developers] Spammers like MSTAR LLC and Perfect Acumen..

2009-09-30 Thread niko20
Hi, Hi MSTAR LLC: I think everyone has noticed how you continue to spam the market with useless updates to 10 of your 100-200 or so apps most every day. It's becoming very tiresome. I noticed that even in your user comments many users are wondering what the update really is? Well it's only to

[android-developers] Re: Sending/Receiving Java Objects to Server

2009-09-30 Thread Evan Ruff
That's a great question and something that I'm wondering too. Perhaps there is an optimized version available that only does the simple encode/decode? FWIW, the Jackson JSON mapper that I'm using currently weighs in at 397kb. E On Sep 23, 11:44 pm, bseib broc.s...@gmail.com wrote: BTW, I

[android-developers] Re: Notifications

2009-09-30 Thread Mark Murphy
SMS's notification sound isn't managed by the system? I want to set volume to 0 or activate vibration unless I've received the message... Oh, I see. It should use one of the streams controlled by AudioManager. However, bear in mind that if you change the volume, you need to change it back

[android-developers] Re: Notifications

2009-09-30 Thread fritzZz
I'll try..thank you! On Sep 30, 3:59 pm, Mark Murphy mmur...@commonsware.com wrote: SMS's notification sound isn't managed by the system? I want to set volume to 0 or activate vibration unless I've received the message... Oh, I see. It should use one of the streams controlled by

[android-developers] Grabbing System Exception Android

2009-09-30 Thread vekexasia
Hi everyone, i'm andrea from androidiani.com, i'm working on a library that will help developers about managing unexpected exceptions. The library is quite simple on it's idea, but i can't grab the unexpected exception withouth the use of a global try catch clausole. I saw the instrumentation

[android-developers] Re: Take an action when soft keyboard is launched

2009-09-30 Thread Thomas
Hi AJ, this solution is not possible to me, because, I'd like to hide a menu when the soft keyboard appears. When I hide the keyboard, the View changes the size, so comparing the height and old height, it will think the soft keyboard disappeared. Thanks for you help thomas On Wed, Sep 30,

[android-developers] Re: Grabbing System Exception Android

2009-09-30 Thread Mark Murphy
i'm andrea from androidiani.com, i'm working on a library that will help developers about managing unexpected exceptions. The library is quite simple on it's idea, but i can't grab the unexpected exception withouth the use of a global try catch clausole. I saw the instrumentation class

[android-developers] Re: Eclipse crashing after update to ADT 0.9.3 and SDK 1.6

2009-09-30 Thread JMichel
It seems that some of the latest updates in Ganymede didn't find the XUL interpreter from my system so I needed to add this line at the end of eclipse.ini file: -Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner-1.9.1.3/ xulrunner Now Eclipse is launching but I still have the problem

[android-developers] Specifying relative positions in Layout?

2009-09-30 Thread Jitu
Hi All, I need to implement a screen containing a list of blocks one below the other. Each block will contain mutiple superimpose elements (Images, text) for which the relative position needs to be specified with respect to the top left corner of the block. For creating the list of blocks i

[android-developers] Re: Specifying relative positions in Layout?

2009-09-30 Thread Mark Murphy
Hi All, I need to implement a screen containing a list of blocks one below the other. Each block will contain mutiple superimpose elements (Images, text) for which the relative position needs to be specified with respect to the top left corner of the block. For creating the list of

[android-developers] Secure Credentials in Donut

2009-09-30 Thread Al
I noticed a new set of options in Donut, under Security, for Secure Credentials. Is there an api to use this, and if not, are there plans to open this up for dev use in the future? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: Specifying relative positions in Layout?

2009-09-30 Thread jitendra bachhav
Hi Mark, Thanx for reply. Do have any suggestions to solve this problem? Any sample code would be very helpful. On Wed, Sep 30, 2009 at 8:06 PM, Mark Murphy mmur...@commonsware.com wrote: Hi All, I need to implement a screen containing a list of blocks one below the other. Each block

[android-developers] Re: Grabbing System Exception Android

2009-09-30 Thread Matteo
On 30 Set, 16:14, Mark Murphy mmur...@commonsware.com wrote: i'm andrea from androidiani.com, i'm working on a library that will help developers about managing unexpected exceptions. The library is quite simple on it's idea, but i can't grab the unexpected exception withouth the use of

[android-developers] Layout that worked in Cupcake not working in Donut

2009-09-30 Thread Al
I have a layout file that was working fine in Cupcake (and below). With Donut, except for a single textview, none of the other widgets show up. I tried changing various things around, none of which have helped. My layout file is here: http://pastebin.ca/1586138 . Thanks.

[android-developers] changing default orange selection...

2009-09-30 Thread sdphil
is there a way to change the default orange selection color/image? I'd like to do this app wide and it would be nice not to have to do it for every control! tia. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: ADC2 submissions and Android 1.6 (Donut)

2009-09-30 Thread Warren
The second round of judging also includes user judging - 40% of the outcome if I remember correctly. So the likelihood that a significant number of judges will be running 1.6 before all judging ends is quite high in my opinion. Warren On Sep 30, 6:54 am, Cédric Berger cedric.berge...@gmail.com

[android-developers] Unique ID

2009-09-30 Thread Wayne Wenthin
I've seen alot of people say that using the IMEI is the way to go to validate uniqueness. Is this going to be valid on devices that are not phones but still use the Android OS?I'm getting ready to beta my app and am using the androidid. My only issue is that I haven't figure out a way to

[android-developers] Re: ADC2 submissions and Android 1.6 (Donut)

2009-09-30 Thread Maps.Huge.Info (Maps API Guru)
The only fair solution would be to make sure the judging app doesn't function on 1.6 -John Coryat What Zip Code? Radar Now! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] GLSurfaceView is black after incoming call

2009-09-30 Thread Gameboy
I do a test with incoming call when GLSurfaceView is on top of screen, after cancel incoming call, but screen becomes black. I try to put requestRender() in onResume(), debug with logcat, but seems some times it works when Render.onSurfaceChanged(GL10, int, int) is invoked. Any one knows the

[android-developers] Can we put inner layout in center of the screen.

2009-09-30 Thread jitendra bachhav
Hi All, I want to put inner layout in center of the screen. Please help me here. -- Regards, Jitendra Bachhav. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: ADC2 submissions and Android 1.6 (Donut)

2009-09-30 Thread ander...@phdgaming.com
The second round of judging also includes user judging - 40% of the outcome if I remember correctly. I believe you are incorrect on this. This first round of judging is user judging, and makes up 40% of an apps final rating. The second round is all expert judging by Google that counts for the

[android-developers] Re: ADC2 submissions and Android 1.6 (Donut)

2009-09-30 Thread Mobidev
+1 judging app shouldn't function on 1.6 ADC2-Round1 should end before 1.6 official upgrade. Existing judging app should not be used for ADC2-Round2 (create a new version) and... neither should the new judging app (round2) function on 1.6 On Sep 30, 8:44 pm, Maps.Huge.Info (Maps API Guru)

[android-developers] libdrm1.so and libdrm1_jni.so, what are those libs purpose ?

2009-09-30 Thread ColletJb
Hi everybody, My questions is already on the title of this post ^^ Does anyone know what are libdrm1.so and libdrm1_jni.so purpose ? Thanks for your explanations ColletJb --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Can we put inner layout in center of the screen.

2009-09-30 Thread Jitu
Hi All, I want to put inner layout in center of the screen. Please help me here. --~--~-~--~~~---~--~~ 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] Re: New Activity from MapActivity

2009-09-30 Thread jotobjects
The add-ons MapsDemo has two examples of creating a MapActivity, one with a layout file and one with a MapView constructor. BTW - I have asked other question about the ad-on Android Maps API without getting responses. Is there any other forum for this topic? Or are other developers simply not

[android-developers] Re: ProgressDialog with a second thread - Screen Orientation and back button. How to restore progress dialog?

2009-09-30 Thread Streets Of Boston
Depends. If premature interruption of the long running operation could cause data-corruption (e.g. uploading a large image on a remote server, for example), yes you should use a service. Note that Android can kill service-processes whenever it deems it necessary, or the user can power-off the

[android-developers] Re: Contact Photo in LiveFolder

2009-09-30 Thread nEx.Software
This is incredibly frustrating. If it helps, I get the same error regardless of whether it is a Contact photo or any other Bitmap. I even tried sending as a byte array. No luck. Always a NullPointerException when the Launcher application tries to createBitmapThumbnail. It seems it is getting

[android-developers] language/region combinations in Europe

2009-09-30 Thread jgostylo
I was wondering if anyone had compiled a list of all the language/ region combinations that are relevant to Android in Europe. Maybe I am going about this the wrong way. I am trying to set a server connection string based on where the user is from (North America, Europe, Russia, China). I am

[android-developers] Re: Contact Photo in LiveFolder

2009-09-30 Thread Romain Guy
The bitmap must be passed as a JPG or PNG byte array. On Wed, Sep 30, 2009 at 9:18 AM, nEx.Software email.nex.softw...@gmail.com wrote: This is incredibly frustrating. If it helps, I get the same error regardless of whether it is a Contact photo or any other Bitmap. I even tried sending as a

[android-developers] Re: Contact Photo in LiveFolder

2009-09-30 Thread Romain Guy
You can also look at the source code of the default live folders to see how the contacts live folders are implemented. On Wed, Sep 30, 2009 at 9:18 AM, nEx.Software email.nex.softw...@gmail.com wrote: This is incredibly frustrating. If it helps, I get the same error regardless of whether it

[android-developers] Re: Mediastore Thumbnails not generated until Gallery app is launched ?

2009-09-30 Thread Streets Of Boston
No well, at least I haven't found any. I'm writing an app that creates images. I needed to code this from scratch: - Call bitmap.compress to store JPEG of full image and then use MediaScannerConnection to insert it into the MediaStore. - Generate thumbnails for my images: Insert new one

[android-developers] Re: Contact Photo in LiveFolder

2009-09-30 Thread nEx.Software
The default contacts live folders don't pass photos from what I could tell in the source. I tried to send as PNG byte array to no avail. I'll try JPEG and see if that makes a difference. Thanks Romain. On Sep 30, 9:26 am, Romain Guy romain...@google.com wrote: You can also look at the source

[android-developers] Re: NumberFormat and comma as decimal separator

2009-09-30 Thread Streets Of Boston
I think that using the Number.valueOf and Number.toString methods should work fine. The system should deal with the currently installed and active locale. Unless you're creating an app that needs to deal with multiple locales at the same time or do some fancy formatting, i wouldn't bother much

[android-developers] VM crash

2009-09-30 Thread André Charles Legendre
Android VM crash in a Samsung Galaxy running a code good working with emulator. My code call facebook rest service to get my friends info. But when I get server response VM crash. And I really need help. Log is down here : D/UiHandler( 1488): executeMethodForMessage mFacebook.execute AFTER

[android-developers] Re: Contact Photo in LiveFolder

2009-09-30 Thread Romain Guy
Oh yeah, it used to but does not anymore. Anyway, without seeing your code... On Wed, Sep 30, 2009 at 9:29 AM, nEx.Software email.nex.softw...@gmail.com wrote: The default contacts live folders don't pass photos from what I could tell in the source. I tried to send as PNG byte array to no

[android-developers] Does onActivityResult get called when an activity is recreated?

2009-09-30 Thread Jeff King
I have a flow A-B-C-D where A desires some information that is obtained by D. B, C, and D propagate the data back through the flow using setResult(RESULT_OK, data) and finish(). All intents in A, B, and C are started with startActivityForResult. However, if B is reclaimed by Android and forced to

[android-developers] Re: jsonarray as listview source

2009-09-30 Thread Streets Of Boston
Implement your subclass of BaseAdapter (e.g. JSONArrayAdapter). Implement/override the getCount(), getItem(int position), etc. to make your BaseAdapter a proper list-adapter around your jsonarray. Implement the getView method; it provides the 'position' and 'contentView' parameters. - Use

[android-developers] Re: Contact Photo in LiveFolder

2009-09-30 Thread nEx.Software
I knew I should have included that... This is a bit messy at the moment. private static final String[] CURSOR_COLUMNS = new String[] { BaseColumns._ID, LiveFolders.NAME, LiveFolders.DESCRIPTION, LiveFolders.INTENT, LiveFolders.ICON_PACKAGE, LiveFolders.ICON_RESOURCE, LiveFolders.ICON_BITMAP

[android-developers] Re: Does onActivityResult get called when an activity is recreated?

2009-09-30 Thread Dianne Hackborn
It does get delivered when recreated (just confirmed by trying to attach an image in gmail and killing gmail while in the gallery); there must be some other wrinkle to your situation. On Wed, Sep 30, 2009 at 9:36 AM, Jeff King cmptrnr...@gmail.com wrote: I have a flow A-B-C-D where A desires

[android-developers] Re: Contact Photo in LiveFolder

2009-09-30 Thread Romain Guy
Why are you setting a bitmap and a resource for the icon? You are also not specifying the icon type. On Sep 30, 2009 9:44 AM, nEx.Software email.nex.softw...@gmail.com wrote: I knew I should have included that... This is a bit messy at the moment. private static final String[]

[android-developers] Regarding short cut icon

2009-09-30 Thread Guru
I found this peice of code for creating short-cut at the dektop: Intent shortcutIntent = new Intent (Intent.ACTION_MAIN); shortcutIntent.setClassName(this, this.getClass ().getName()); Intent intent = new Intent();

[android-developers] Re: NumberFormat and comma as decimal separator

2009-09-30 Thread Max_well
It's a Android bug. See http://code.google.com/p/android/issues/detail?id=2626 On Sep 30, 6:30 pm, Streets Of Boston flyingdutc...@gmail.com wrote: I think that using the Number.valueOf and Number.toString methods should work fine. The system should deal with the currently installed and

[android-developers] Re: Contact Photo in LiveFolder

2009-09-30 Thread nEx.Software
Well, I actually started off with just using the ICON_PACKAGE / ICON_RESOURCE method and wanted to use Photo instead. I have tried this without ICON_PACKAGE / ICON_RESOURCE to no avail. How do I specify the Icon type? On Sep 30, 9:48 am, Romain Guy romain...@google.com wrote: Why are you

[android-developers] Re: EditText.onKeyUp() doesn't catch all keys

2009-09-30 Thread Dianne Hackborn
You can look at the java docs for the things in android.text that related to this, and ask questions you have from there. On Wed, Sep 30, 2009 at 6:43 AM, CG christian.gr...@gmail.com wrote: On Sep 26, 8:39 pm, Dianne Hackborn hack...@android.com wrote: IMEs perform their edits through the

[android-developers] Re: ApplicationContext.java and Activity.java. Is ApplicationContext not used ?

2009-09-30 Thread Dianne Hackborn
Yes, I agree it is confusing, but it is not in the SDK so not a high priority to go through all the effort of changing. On Wed, Sep 30, 2009 at 5:41 AM, amit amitkee...@gmail.com wrote: hi Dianne, thanks for the reply... I think the name ApplicationContext is slightly misleading. Because

[android-developers] Re: Service.onDestroy() invalid?

2009-09-30 Thread Dianne Hackborn
Call stopSelf(). On Wed, Sep 30, 2009 at 3:09 AM, Alex Tang tangli1987...@gmail.com wrote: I use AlarmManager to restart my service, code is: AlarmManager aman = (AlarmManager)getSystemService (Context.ALARM_SERVICE); PendingIntent pi = PendingIntent.getBroadcast(this,0, new Intent

[android-developers] Re: NumberFormat and comma as decimal separator

2009-09-30 Thread Gerald
There is no valueOf method in the Number class. If I use the Double.valueOf method it fails to work according to my users. The Android docs on Double.valueOf are pretty thin, however the JDK docs are pretty clear that this accepts a string with a number formatted according to the Java Language

[android-developers] Re: Signature matching problem

2009-09-30 Thread Dianne Hackborn
My third answer is unfortunately going to be the same as my first two -- you need to have the target application built with the same certificate you can use to build your instrumentation. If you can't do that, you can't run instrumentation against the app (because it is not yours). Sorry I can't

[android-developers] Re: ViewGroup#onInterceptTouchEvent is only called once

2009-09-30 Thread Dianne Hackborn
Well it works fine for ScrollView: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/widget/ScrollView.java;h=703cd8e278b7e5771cbb9c8e2c10c69ae49590f6;hb=HEAD#l365 On Wed, Sep 30, 2009 at 3:08 AM, Gavin Bong gavin.emp...@gmail.com wrote: In my custom

[android-developers] Re: Does onActivityResult get called when an activity is recreated?

2009-09-30 Thread Jeff King
How did you kill gmail? I thought only Android could kill activities. I get desired results when onRestart is called but not when onCreate is called after returning to the activity that had been killed (left side of diagram

[android-developers] Re: Contact Photo in LiveFolder

2009-09-30 Thread Romain Guy
Oops, my bad I was thinking of something else. On Wed, Sep 30, 2009 at 9:51 AM, nEx.Software email.nex.softw...@gmail.com wrote: Well, I actually started off with just using the ICON_PACKAGE / ICON_RESOURCE method and wanted to use Photo instead. I have tried this without ICON_PACKAGE /

[android-developers] Re: Adding a JAR to my Android project?

2009-09-30 Thread Roman ( T-Mobile USA)
You need to update the properties of your project in Eclipse. Go to the Project Tab -- Properties and select the Java Build Path. After selecting this you should see 4 tabs with Projects and Libraries. For adding a JAR, select Libraries -- Add External JARs. That's it -- Roman

[android-developers] Re: Contact Photo in LiveFolder

2009-09-30 Thread Romain Guy
I'm finally at the office and I just read the live folders code. The constraints are: - If you use ICON_BITMAP, ICON_RESOURCE and ICON_PACKAGE *must* be null - The ICON_BITMAP has to be a Bitmap instance Somehow the generated javadoc in the documentation does not show everything. If you look at

  1   2   >