[android-developers] How to Disable GPS Provider from Application

2009-05-01 Thread mak
Hi All, In Android settings, Enable GPS Satellite menu is provided to enable / disable GPS. How to enable/disable GPS from Any android java application ? I understood that there is no api expose to do that. Any workaround or solution. --~--~-~--~~~---~--~~ You

[android-developers] Re: Android Market app suspended. What do I do?

2009-05-01 Thread Al Sutton
Have a look at passing off - http://en.wikipedia.org/wiki/Passing_off . It's part of UK law (it's in the UK Tradmarks Act 1994). I'm guessing Google did the moron in a hurry test which although has been shown to not be legally enforceable, it's Googles market and their TCs say they can basically

[android-developers] How to call the phone programmatically ?

2009-05-01 Thread Olivier Tournaire
Hi all, I am wondering if it is possible for a program to call the device at a defined hour. If you have any hint on this, please let me know. Regards, Olivier --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: When is a good time to require 1.5?

2009-05-01 Thread Dianne Hackborn
There was a recent blog post describing how you can use 1.5 APIs while remaining compatible with 1.1. On Thu, Apr 30, 2009 at 8:54 PM, EboMike ebom...@gmail.com wrote: Yeah, I did that, and I had to make minor changes to a TableLayout so it looked right in an 1.5 environment. The real thing

[android-developers] Re: surprise, No process called surfaceflinger listed by ps

2009-05-01 Thread Dianne Hackborn
It's because it doesn't live in its own process, and this question belongs in android-porting. On Thu, Apr 30, 2009 at 9:35 PM, wen yi wen...@gmail.com wrote: After I did a 'ps' I am surprised not to be able to see surfaceflinger process listed even though I saw the binary /system/

[android-developers] Re: design Q: persisting activity state

2009-05-01 Thread Dianne Hackborn
It is perfectly fine to persist state in storage (via SharedPreferences, flat files, databases, etc). There are some things you will almost certainly want to store in onSaveInstanceState() (such as the current position in the list... well the framework does that for you already), and some things

[android-developers] StreeView

2009-05-01 Thread Olivier Tournaire
Hi all, I am currently trying to use StreetView in my application, but I does not work. I use an AVD based on the Google API which has Maps (display a simple map works well). My activity extends MapActivity and tries to call streetview: String

[android-developers] Changin view on Activity

2009-05-01 Thread Robert Slama
Hi there, I have 1 activity class as entry point to application. There have 2 View (extends from SurfaceView) and I have problem with showing second view. First view is showed correctly but when I call setContentView(secondView) I getting exception W/System.err( 1241):

[android-developers] How to change RadioButton size?

2009-05-01 Thread Daehoon Jeon
How to change RadioButton size? It's too large. I want a small radioButton... --~--~-~--~~~---~--~~ 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: GridView and BaseAdapter position bug

2009-05-01 Thread Illidane
I have frame animation on each cell. On 30 апр, 18:24, Romain Guy romain...@google.com wrote: Why don't you just use a LayoutAnimation? That's what it's for. 2009/4/30 Illidane illid...@gmail.com: I did that ( write somewhere in getView ) : if(position == mGameModel.getCount() - 1)

[android-developers] Changes to the rendering of widgets overlayed onto VideoView in 1.5

2009-05-01 Thread Tom Gibara
In updating an application to ensure its compatible with 1.5 I've observed some changes in the way that widgets are rendered when they are overlayed on video. I use a RelativeLayout to place various information boxes over a VideoView. Some boxes are translucent, some are invisible until they

[android-developers] Re: Maps Intent in CupCake

2009-05-01 Thread Mark Murphy
JP wrote: Also, map tiles are not displayed with a 1.5-based build of the app. The 1.1-based build using identical source code base runs on an id=3 AVD just fine. Except for the Street View issue, of course. Don't know if this helps, but in a related thread, somebody wrote: I had to

[android-developers] Re: How to call the phone programmatically ?

2009-05-01 Thread Mark Murphy
Olivier Tournaire wrote: I am wondering if it is possible for a program to call the device at a defined hour. If you have any hint on this, please let me know. If by call you mean place a voice call, then a program running on the device cannot call itself, since the line will busy. If by call

[android-developers] Re: android 1.5: How do we use the AudioTrack class?

2009-05-01 Thread blindfold
Should I file a bug report for Cupcake's onMarkerReached() in AudioTrack playback? The only workaround I currently have for onMarkerReached() never getting invoked is to explicitly poll getPlaybackHeadPosition(), while taking into account extra margins for sample rates 11025 and 22050 because

[android-developers] Re: Tabhost Disappearing List view

2009-05-01 Thread Mark Murphy
cre wrote: I got to see the error condition with hierarchyviewer. The ListView is visible but the TextViews that contain the lines of text are missing from the diagram. That is why the list of items does not appear. That suggests that the adapter for that list thinks it has no contents at

[android-developers] Re: AnimationDrawable class recompile error

2009-05-01 Thread Illidane
error on super(orig, owner); it's jump a little) On 1 май, 14:07, Illidane illid...@gmail.com wrote: Hi all :) I'm trying to recompile AnimationDrawable class ( source code tooked from android source ) but I get some errors: private final static class AnimationState extends

[android-developers] AnimationDrawable class recompile error

2009-05-01 Thread Illidane
Hi all :) I'm trying to recompile AnimationDrawable class ( source code tooked from android source ) but I get some errors: private final static class AnimationState extends DrawableContainerState { private int[] mDurations; private boolean mOneShot;

[android-developers] Re: SQLite Pre-populated Database

2009-05-01 Thread Mark Murphy
hivebrain wrote: Do you know if after the resource has been moved to the SD card, whether it can be deleted from the package to free up main memory for the user? No, APKs cannot be modified once installed. Hence, there are no ways to delete or modify resources or assets in installed APKs. I

[android-developers] Re: URGENT!!!!! Can't update apps in android market!!!

2009-05-01 Thread jarkman
We found the same problem this morning, and worked round it by moving the uses-sdk element to be the first child of the manifest element. Thanks, Richard On Apr 28, 6:26 pm, Raphael r...@android.com wrote: Actually the element order makes a difference. It's a bug in the current Market

[android-developers] images on my list view mess when i scroll down to bottom

2009-05-01 Thread zeeshan
Hi Experts, i have a list view which renders some images on it. it words alryt untill there is no scroll but mess when i scroll down till bottom. if i restart my app again it works ok. any solution? --~--~-~--~~~---~--~~ You received this message because you

[android-developers] 1.5 SDK export unsigned application - no files inside

2009-05-01 Thread Alec
Hi all i really need some help this issue is driving me nuts. I have got my application that i had working on 1.1 sdk. I transfered the workspace to a new computer running ubuntu 8.1 install eclipse, the adt, and downloaded the new 1.5 sdk. I updated my application, and ive tested it in the

[android-developers] Re: 1.5 SDK export unsigned application - no files inside

2009-05-01 Thread Mark Murphy
Alec wrote: Hi all i really need some help this issue is driving me nuts. I have got my application that i had working on 1.1 sdk. I transfered the workspace to a new computer running ubuntu 8.1 install eclipse, the adt, and downloaded the new 1.5 sdk. I updated my application, and ive

[android-developers] Problems with 1.5 r1 on 64 bit Ubuntu 9.04?

2009-05-01 Thread csyperski
Has anyone been able to get the sdk version 1.5 to work with Ubuntu 9.04 (64 bit)? I have tried the upgrade from and it fails with: Eclipse throws a An SWT Error has occurred... message then I get a second dialog saying: pingUsageServer failed Android SDK Ping pingUsageServer failed Anyone

[android-developers] Re: Problems with 1.5 r1 on 64 bit Ubuntu 9.04?

2009-05-01 Thread csyperski
Here is what I am getting in my .log file: !ENTRY com.android.ide.eclipse.adt 4 0 2009-05-01 07:28:32.470 !MESSAGE pingUsageServer failed !STACK 0 org.eclipse.swt.SWTError: Not implemented [multiple displays] at org.eclipse.swt.SWT.error(SWT.java:3803) at

[android-developers] Re: Problems with 1.5 r1 on 64 bit Ubuntu 9.04?

2009-05-01 Thread Eric Chen
I fixed the problem by restart Eclipse and set the Auto update, may be you should try to fix the project too. Best Regards Eric Chen On Fri, May 1, 2009 at 8:33 PM, csyperski csyper...@gmail.com wrote: Here is what I am getting in my .log file: !ENTRY com.android.ide.eclipse.adt 4 0

[android-developers] Trying to fetch the Events from Calendar Provider doesnt return proper result

2009-05-01 Thread farida
I am trying to get the Events of today and later dates from the Provider using the below code, but not getting the desired result. It returns some events in the Calendar but doesnt list all the events Secondly doesnt satisfy the where clause of today and later dated events. It returns events at

[android-developers] Re: Tabhost Disappearing List view

2009-05-01 Thread cre
Mark, I never call setAdapter() anywhere but in onCreate. There is only a single definition in array.xml. I do not manually manipulate the content of list3's adapter. What happened to List3 happens to List1 and List2 at random and on occasion more than one list will disappear. Is there a way

[android-developers] Re: Problems with 1.5 r1 on 64 bit Ubuntu 9.04?

2009-05-01 Thread csyperski
I tried to set auto update and it didn't seem to help. I even created a new empty workspace. I happens most when I go to Window - Prefences - android That is when the message pops up, I doesn't allow me to set the sdk path! On May 1, 7:44 am, Eric Chen jude...@gmail.com wrote: I fixed the

[android-developers] Re: How to call the phone programmatically ?

2009-05-01 Thread Olivier Tournaire
Thank you Mark, On Fri, May 1, 2009 at 12:35 PM, Mark Murphy mmur...@commonsware.comwrote: Olivier Tournaire wrote: I am wondering if it is possible for a program to call the device at a defined hour. If you have any hint on this, please let me know. If by call you mean place a voice

[android-developers] Re: CheckedTextView - Changed?

2009-05-01 Thread nEx.Software
OK, well I give up then. I have done some testing in various scenarios and have found that this is simply inconsistent. My view hierarchy is not incredibly complex, nor is it particularly deep. What I do see is that some times my checkmarks display properly, then after displaying properly once in

[android-developers] undocumented for recording audio

2009-05-01 Thread jj
some where I read it. the undocumented intent for recording audio Intent intent = new Intent(MediaStoreAudio.Media.RECORD_SOUND_SCTION); is this true, I tested but it is not working. one more undocumented intent for capturing picture it is working fine Intent i = new

[android-developers] Apps built with 1.5 get a black-backgound icon in the Market

2009-05-01 Thread jarkman
We've rebuilt a couple of our apps with the 1.5 SDK (but targeting 1.1). The Market seems to have a bit of trouble with the background of the icons. They appear correctly (with transparent backgrounds) on the desktop, and they appear correctly when the app is downloaded from the Market and

[android-developers] Camera still regularly hangs with Cupcake, requiring power cycle

2009-05-01 Thread blindfold
I found that the old bug reported in http://code.google.com/p/android/issues/detail?id=1578 where only a power cycle brings back the camera still persists with the official Cupcake firmware on my ADP. When it happens - and I've encountered it several times in a few days now - no camera

[android-developers] Re: Porting 1.0 to 1.5, map tiles stopped displaying

2009-05-01 Thread JP
Thanks Ron, I stopped short of that, I'll give it a try. On Apr 30, 3:48 pm, Ron ry...@mac.com wrote: I had to generate a new Google maps key using the new keystore in my project before the tiles would show. On Apr 29, 8:44 pm, JP joachim.pfeif...@gmail.com wrote: I started porting a

[android-developers] Re: How to call the phone programmatically ?

2009-05-01 Thread Mark Murphy
Olivier Tournaire wrote: My intent is to make the phone ring. If by ring you mean you want to play a sound, use MediaPlayer or SoundPool (or perhaps AudioTrack -- I have not looked into that class), and use AlarmManager to schedule it. Also, be sure to use a WakeLock to ensure the device is

[android-developers] Re: Maps Intent in CupCake

2009-05-01 Thread JP
Thanks Mark, I've seen it and I'll give it a shot. After a couple of days testing on Cupcake my list grows... Can you confirm the problem I found calling Street View form any app, including the built-in Maps app? On May 1, 3:31 am, Mark Murphy mmur...@commonsware.com wrote: JP wrote: Also,

[android-developers] Re: CheckedTextView - Changed?

2009-05-01 Thread Mark Murphy
nEx.Software wrote: OK, well I give up then. I have done some testing in various scenarios and have found that this is simply inconsistent. My view hierarchy is not incredibly complex, nor is it particularly deep. What I do see is that some times my checkmarks display properly, then after

[android-developers] Re: SlidingDrawer issue #1?

2009-05-01 Thread cannehal
I tkink I have the same issue. For handle I have ImageView and for content I am using LinearLayout with some views inside of it. There is probably problem with eclipse plugin because in runtime it works fine. On May 1, 7:01 am, Sheepz eladk...@gmail.com wrote: anyone else found something here?

[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-05-01 Thread John B. Hansen
Strange. When I manually deleted all the Import statements and then Reorganize Imports (Shift+Ctrl+O) again, it cleans up the problems. I had been using Organize-Imports (Shift+Ctrl+O) repeatedly on those migrated files but there may have been some stale imports that needed to be manually deleted

[android-developers] Re: Weird bug when saving picture to file system!?

2009-05-01 Thread L'\tty
I was also wondering how the insertImage() mehtod works. Is there source code for this method available, so I can write my own method? Best regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Maps Intent in CupCake

2009-05-01 Thread Mark Murphy
JP wrote: Thanks Mark, I've seen it and I'll give it a shot. After a couple of days testing on Cupcake my list grows... Can you confirm the problem I found calling Street View form any app, including the built-in Maps app? I am still recovering from back-to-back trips and have not yet begun

[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-05-01 Thread John B. Hansen
More info...it is specifically the import android.R statement that is causing the problem. It was in all my old files. When I delete it and re-generate the new imports, the problem goes away. Maybe this can be fixed in Eclipse or ADT. I'm sure other people must also be having this problem. jh

[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-05-01 Thread John B. Hansen
More info...it is specifically the import android.R statement that is causing the problem. It was in all my old files. When I delete it and re-generate the new imports, the problem goes away. Maybe this can be fixed in Eclipse or ADT. I'm sure other people must also be having this problem. jh

[android-developers] Re: Quality of paid applications on the Market...

2009-05-01 Thread Dave Orme
On Apr 30, 6:18 pm, Rob Franz rob.fr...@gmail.com wrote: Nothing, but when he's charging $5 for an app with info that you could google easily, you really kind of see what he's after. If you look at the feedback for his other apps, there's a recurring theme - he's almost a scam artist...

[android-developers] Re: Weird bug when saving picture to file system!?

2009-05-01 Thread admin.androidsl...@googlemail.com
A few people have come across this. It is a known bug and will be fixed in Cupcake. On May 1, 2:33 pm, L'\\tty adver...@hotmail.com wrote: I was also wondering how the insertImage() mehtod works. Is there source code for this method available, so I can write my own method? Best regards

[android-developers] How to avoid out of memery exception

2009-05-01 Thread L'\tty
Hi all! As mentioned in an earlier post, I am working on a image processing application for android. I encountered an issue regarding the memory contingent of the VMware. In other posts I read that it is not possible to import pictures in full size, they are automatically scaled to the display

[android-developers] Re: Weird bug when saving picture to file system!?

2009-05-01 Thread L'\tty
Okay, thank you so much. I am glad to hear that this is a bug which going to be fixed :-) On 1 Mai, 15:43, admin.androidsl...@googlemail.com admin.androidsl...@googlemail.com wrote: A few people have come across this. It is a known bug and will be fixed in Cupcake. On May 1, 2:33 pm, L'\\tty

[android-developers] Re: Weird bug when saving picture to file system!?

2009-05-01 Thread Streets Of Boston
I had the same problem. You can fix it yourself (for now), by running the MediaScanner over the file you just saved. Get the DATA column of your image-uri. The DATA (_data) column holds the physical file-path of your image. Use this file-path in the MediaScanner (and MediaScannerConnection) to

[android-developers] I got problem with running app on SDK 1.5

2009-05-01 Thread manoj
Hi friends, I have written an application which runs perfectly fine on SDK 1.0. Basically my app shows some data in list view. To day I downloaded the SDK 1.5 and tried to run the same application on SDK 1.5 emulator. The app crased when I tried to fling the list. The below is the log:

[android-developers] Re: R cannot be resolved after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-05-01 Thread John B. Hansen
More info...it is specifically the import android.R statement that is causing the problem. It was in all my old files. When I delete it and re-generate the new imports, the problem goes away. Maybe this can be fixed in Eclipse or ADT. I'm sure other people must also be having this problem. jh

[android-developers] Re: SlidingDrawer issue #1?

2009-05-01 Thread cannehal
I tkink I have the same issue. For handle I have ImageView and for content I am using LinearLayout with some views inside of it. There is probably problem with eclipse plugin because in runtime it works fine. On May 1, 7:01 am, Sheepz eladk...@gmail.com wrote: anyone else found something here?

[android-developers] Re: How to avoid out of memery exception

2009-05-01 Thread Streets Of Boston
You can load full-size pics with restrictions. I found out, i can load a full-sized pic (3MPixels) in RGB_565 mode. But trying to load it in ARGB_ fails (OOM exception) and i need to load it in a smaller size. Still, in my app i dilligently try to clean up bitmap memory (call recycle

[android-developers] Re: CheckedTextView - Changed?

2009-05-01 Thread nEx.Software
Thanks Mark for the suggestion, I will recreate in a non-production app and submit a bug report. I kind of forgot about the bug tracker. On May 1, 6:30 am, Mark Murphy mmur...@commonsware.com wrote: nEx.Software wrote: OK, well I give up then. I have done some testing in various scenarios

[android-developers] Re: E-books on Android?

2009-05-01 Thread Mark Murphy
Troglodad wrote: Is there an open source reader program/application I can use to encode a book to a specific format then upload it to the Market? There is FBReader/J, and perhaps others. How does Android ensure that there isn't a copyright violation going on? DMCA notices, and probably not

[android-developers] Re: undocumented for recording audio

2009-05-01 Thread Marco Nelissen
On Fri, May 1, 2009 at 6:20 AM, jj jagtap...@gmail.com wrote: some where I read it. the undocumented intent for recording audio Intent intent = new Intent(MediaStoreAudio.Media.RECORD_SOUND_SCTION); is this true, I tested but it is not working. Well, what you typed above won't compile.

[android-developers] E-books on Android?

2009-05-01 Thread Troglodad
Just wondering how folks are publishing to the Market. Is there an open source reader program/application I can use to encode a book to a specific format then upload it to the Market? How does Android ensure that there isn't a copyright violation going on?

[android-developers] Download Service in 1.5?

2009-05-01 Thread BoD
Hi! For some reason, I got the impression that there was gonna be a new API or Service in 1.5 to easily ask the system to download a file (instead of having to do everything manually with HttpClient or URL.openConnection, and so on). But I can't find anything in the API docs to that matter.

[android-developers] OutOfMemoryError from BitmapFactory

2009-05-01 Thread Ward Willats
At 2:35 PM -0700 4/30/09, fadden wrote: The hprof dump can help with that. I added a quick writeup: http://android.git.kernel.org/?p=platform/dalvik.git;a=blob_plain;f=docs/heap-profiling.html;hb=HEAD Thanks -- I used hprof with a previous layout leakage problem, and I think it is a huge turd

[android-developers] Re: Camera still regularly hangs with Cupcake, requiring power cycle

2009-05-01 Thread Dave Sparks
Can you repro this with the camera application? On May 1, 6:22 am, blindfold seeingwithso...@gmail.com wrote: I found that the old bug reported inhttp://code.google.com/p/android/issues/detail?id=1578 where only a power cycle brings back the camera still persists with the official Cupcake

[android-developers] what is the maximum size of an app?

2009-05-01 Thread manoj
Hi, what is the max heap size of an android app? Thanks, Manoj. --~--~-~--~~~---~--~~ 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

[android-developers] Re: AnimationDrawable class recompile error

2009-05-01 Thread Illidane
anybody? On 1 май, 14:11, Illidane illid...@gmail.com wrote: error on super(orig, owner); it's jump a little) On 1 май, 14:07, Illidane illid...@gmail.com wrote: Hi all :) I'm trying to recompile AnimationDrawable class ( source code tooked from android source ) but I get some

[android-developers] viewing logcat from phone not possible in Android 1.5?

2009-05-01 Thread mathias axelsson
Hi, After installing Android 1.5 on my ADP I can't check logcat directly from the phone. When running 'su', in terminal, I get 'uid X not allowed to su'. 'logcat' gives permission denied /dev/log/main. If I get an exception/force close in any of my apps I'd like to be able to check the

[android-developers] Re: what is the maximum size of an app?

2009-05-01 Thread Mark Murphy
manoj wrote: what is the max heap size of an android app? 16MB, IIRC. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You

[android-developers] Re: Tabhost Disappearing List view

2009-05-01 Thread Mark Murphy
cre wrote: Is there a way to test for this condition and manually update the list adapters? If I am correct, and the adapters think they have no contents, they will return 0 to a call to getCount(). You may want to check this, in part to confirm my adapter-thinks-it-is-empty theory. Do

[android-developers] Ho to deteck key press on soft keyboard

2009-05-01 Thread Yossi
Hi, I have an EditText control on a preference screen and I run some logic when the user enters a character. I've been using View.OnKeyListener but it does not work with the soft (virtual) keyboard (V1.5). What should I use instead? Thanks, Yossi

[android-developers] Re: Problems with 1.5 r1 on 64 bit Ubuntu 9.04?

2009-05-01 Thread csyperski
If anyone else has the issue it can be resolved by: Window - Preferences - Click Arrow next to android, not text itself or it will crash - Usage Stats - Send usage stats to google set to checked. I have no idea why this worked, but it fixed my problem. On May 1, 7:50 am, csyperski

[android-developers] Re: SurfaceFlinger and permitions

2009-05-01 Thread Jon Colverson
On Apr 30, 2:09 pm, Guian guiandou...@gmail.com wrote: The error is a little bit different since I moved from OpenGL ES 1.1 to OpenGL ES 1.0, but still here on the GPU surface request : E/SurfaceFlinger(   65): HW3D_REVOKE_GPU failed (Invalid argument), mFD=146, base=0x499f8000 but only on

[android-developers] Re: Maps Intent in CupCake

2009-05-01 Thread JP
On May 1, 6:34 am, Mark Murphy mmur...@commonsware.com wrote: JP wrote: However, I've never used the Street View intent, so I do not know if or when I will get a chance to try it -- I have plenty of existing code to test on 1.5 first. No need to review/create code. The built-in Maps app

[android-developers] Android 1.5 performance profiling

2009-05-01 Thread Stefan
One of the new features mentioned in the 1.5 SDK is Easier application performance profiling. Can somebody shed some light on what new profiling features are available in the new SDK? Are those enhancements to TraceView, DDMS, or new profiling APIs ? Stefan

[android-developers] Re: How to call the phone programmatically ?

2009-05-01 Thread Yusuf T. Mobile
To access the ringtones, I recommend android.media.RingtoneManager: http://developer.android.com/reference/android/media/RingtoneManager.html To show a ringtone picker to the user, use the android.intent.action.RINGTONE_PICKER intent to launch the picker as a subactivity. Yusuf Saib Android

[android-developers] Re: Camera still regularly hangs with Cupcake, requiring power cycle

2009-05-01 Thread blindfold
Probably not as it may be load dependent, but once it happens with my own app the built-in camera application also no longer works. It's like the camera lock is no longer available to any app at that point, including the one that last used it. Regards On May 1, 5:00 pm, Dave Sparks

[android-developers] Re: viewing logcat from phone not possible in Android 1.5?

2009-05-01 Thread fadden
On May 1, 8:06 am, mathias axelsson mathias.axels...@gmail.com wrote: When running 'su', in terminal, I get 'uid X not allowed to su'. 'logcat' gives permission denied /dev/log/main. To avoid creating a situation where an app could run su and do dastardly deeds, an explicit userid check

[android-developers] Re: OutOfMemoryError from BitmapFactory

2009-05-01 Thread fadden
On May 1, 7:55 am, Ward Willats goo...@wardco.com wrote: Thanks -- I used hprof with a previous layout leakage problem, and I think it is a huge turd on toast -- at least the default HTML output anyway. Lot's of noise and very little insight. Maybe there are better viewers for that data. If

[android-developers] Re: viewing logcat from phone not possible in Android 1.5?

2009-05-01 Thread Carter
You could also use Log Collector, which is available on the Android Market. On May 1, 1:26 pm, fadden fad...@android.com wrote: On May 1, 8:06 am, mathias axelsson mathias.axels...@gmail.com wrote: When running 'su', in terminal, I get 'uid X not allowed to su'. 'logcat' gives

[android-developers] How to create a Toast from a background operation?

2009-05-01 Thread Mariano Kamp
Hi, what is a good way to signal an error from a thread that is not the UI thread and you don't know which activity/handler is currently active? Can I somehow get eleto the current UI thread? Can I somehow use the MainLooper from the application context? I use notification for serious

[android-developers] Re: Tap Outside Listener for Dialog

2009-05-01 Thread UBZack
That should do the trick, thanks for your help! On Apr 30, 4:24 pm, Jeff Sharkey jshar...@android.com wrote: So Theme.Dialog Activities still receive onTouchEvent() calls, even outside of their floating window area.  If you can grab the exact window size, you could do the math to figure out

[android-developers] Re: How to create a Toast from a background operation?

2009-05-01 Thread Mark Murphy
Mariano Kamp wrote: what is a good way to signal an error from a thread that is not the UI thread and you don't know which activity/handler is currently active? Does it matter? I have not tried to have a background thread use a Handler or runOnUiThread() of an Activity that might not be

[android-developers] Re: How to create a Toast from a background operation?

2009-05-01 Thread Mariano Kamp
Hey Mark, well, if just sending a toast from any thread I get this: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() at android.os.Handler.init(Handler.java:121) at android.widget.Toast.init(Toast.java:397) at

[android-developers] Re: How to create a Toast from a background operation?

2009-05-01 Thread Mark Murphy
Mariano Kamp wrote: well, if just sending a toast from any thread I get this: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() at android.os.Handler.init(Handler.java:121) at android.widget.Toast.init(Toast.java:397) at

[android-developers] 1.5 upgrade issue

2009-05-01 Thread cindy
I am upgrading my project using Eclipse. I faced a problem to upgrade Update your Eclipse SDK Preferences. When I point to the new SDK directory, I got an error message Could not find C:\Documents and Settings\apu\M...s-1.5_r1\platforms \android-1.5\tools\adb.exe. Does anyone facing the same

[android-developers] Re: 1.5 SDK export unsigned application - no files inside

2009-05-01 Thread Alec
Thank you Mark I was being a bit silly. The actual issue was the corruption of files transfered onto the sdcard. I worked around it. Thank you for helping me diagnose the issue. Alec On May 1, 12:39 pm, Mark Murphy mmur...@commonsware.com wrote: Alec wrote: Hi all i really need some help

[android-developers] Re: How to call the phone programmatically ?

2009-05-01 Thread Olivier Tournaire
Thank you Yusuf, On Fri, May 1, 2009 at 6:44 PM, Yusuf T. Mobile yusuf.s...@t-mobile.comwrote: To access the ringtones, I recommend android.media.RingtoneManager: http://developer.android.com/reference/android/media/RingtoneManager.html Right ! This is exactly what I need ! To show a

[android-developers] Google voice recognition on Emulator

2009-05-01 Thread Yash Patel
HI, does any one know How to turn on Voice Recognition on Emulator. or is it required to have phone or dev phone to test voice recognition application? I would appreciate if you can reply. thanks Yash Patel --~--~-~--~~~---~--~~ You received this message

[android-developers] test post

2009-05-01 Thread Jason Proctor
guys, if you're going to filter *all* my posts, you might as well give me some idea as to why. -- jason.software.particle --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] SQLiteDatabase, rawQuery(), and attempt to acquire a reference on a close SQLiteClosable

2009-05-01 Thread Mark Murphy
I am beginning the long, slow process of updating my books to Android 1.5. In one of my code samples, I have the following method: static Cursor getAll(SQLiteDatabase db, String orderBy) { return(db.rawQuery(SELECT * FROM restaurants +orderBy, null)); } When I run it, sporadically, I

[android-developers] Re: How to Snap a picture of a Layouts contents?

2009-05-01 Thread dan raaka
Romain : however the drawing cache (or the code snippet i pasted before) will not work if the View has SurfaceView as its child On Thu, Apr 30, 2009 at 3:48 PM, Romain Guy romain...@google.com wrote: You can also use the View's drawing cache API. On Thu, Apr 30, 2009 at 3:38 PM, dan raaka

[android-developers] Re: Camera still regularly hangs with Cupcake, requiring power cycle

2009-05-01 Thread blindfold
Once the camera is in this state, Cupcake's built-in camera app gives in LogCat 05-01 21:48:03.941: DEBUG/CameraService(35): Connect E from ICameraClient 0x46290 05-01 21:48:03.951: DEBUG/CameraService(35): new client (0x46290) attempting to connect - rejected 05-01 21:48:03.951:

[android-developers] Re: How to call the phone programmatically ?

2009-05-01 Thread Olivier Tournaire
Hi, On Fri, May 1, 2009 at 8:13 PM, Olivier Tournaire olit...@gmail.com wrote: Thank you Yusuf, On Fri, May 1, 2009 at 6:44 PM, Yusuf T. Mobile yusuf.s...@t-mobile.comwrote: To access the ringtones, I recommend android.media.RingtoneManager:

[android-developers] Re: Will 2009 Google I/O Android sessions be on YouTube?

2009-05-01 Thread mathiastck
I hope so. Even if one attends one is unlikely to be able to attend all the sessions one wishes. On Apr 29, 12:26 pm, geoff.stromberg geoff.stromb...@gmail.com wrote: The 2008 Google I/O Android videos were a great resource. The 2009 Android sessions sound like they'll be great too. Can

[android-developers] WebView + soft keyboard + forms == usability problem

2009-05-01 Thread Mike Hearn
Hiya, The soft keyboard in 1.5 has the same behavior as the hard keyboard with respect to the enter key submitting forms. That's pretty reasonable for the hard keyboard as you can easily see that there are more fields to fill out, and can just tap the next field once to go there.

[android-developers] WebView + soft keyboard + forms == usability problem

2009-05-01 Thread Mike Hearn
Hiya, The soft keyboard in 1.5 has the same behavior as the hard keyboard with respect to the enter key submitting forms, that is, it submits the form. That's pretty reasonable for the hard keyboard as you can easily see that there are more fields to fill out, and can just tap the next field

[android-developers] Is there a way to listen for the completion of AnimationDrawable animation?

2009-05-01 Thread Illidane
I have tried to recompile AnimationDrawable class, but it's impossible :( Any thoughts? --~--~-~--~~~---~--~~ 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: Is there a way to listen for the completion of AnimationDrawable animation?

2009-05-01 Thread Romain Guy
Create your own AnimationDrawable. On Fri, May 1, 2009 at 1:35 PM, Illidane illid...@gmail.com wrote: I have tried to recompile AnimationDrawable class, but it's impossible :( Any thoughts? -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private

[android-developers] Re: Camera still regularly hangs with Cupcake, requiring power cycle

2009-05-01 Thread Dave Sparks
Are you using the camera unlock() method? There is a known issue where if the application calls unlock() and then exits for any reason, it can leave the camera service in a state where it will reject any subsequent attempts to reconnect. On May 1, 12:57 pm, blindfold seeingwithso...@gmail.com

[android-developers] Re: Google voice recognition on Emulator

2009-05-01 Thread Dave Sparks
Voice recognition is a technology. You need an application to make use of it, for example the voice dialer. On May 1, 11:17 am, Yash Patel yashjpa...@gmail.com wrote: HI, does any one know How to  turn on Voice Recognition on Emulator. or is it required to have phone or dev phone to test

[android-developers] Re: Camera still regularly hangs with Cupcake, requiring power cycle

2009-05-01 Thread blindfold
On May 1, 9:57 pm, blindfold seeingwithso...@gmail.com wrote: OK, moving from Proguard 4.1 to 4.3 seems to bring much improved stability as far my current testing goes, although I still managed to get the dreaded camera lock once after a stressful transition (quitting my app while it was

[android-developers] Re: camCorder not working well in emulator

2009-05-01 Thread David Turner
It is not working, there is no camera emulation at the moment in the Android emulator. On Thu, Apr 30, 2009 at 11:15 PM, Sheepz eladk...@gmail.com wrote: hi all, just installed myself a new AVD and set the camera to true, however the camcorder is very unresponsive and seems like it's not

[android-developers] Re: Ho to deteck key press on soft keyboard

2009-05-01 Thread Dianne Hackborn
The InputConnection interface is the API the IME has to your text editor. TextView provides a default implementation, returned by View.onCreateInputConnection. On Fri, May 1, 2009 at 8:27 AM, Yossi yossi@gmail.com wrote: Hi, I have an EditText control on a preference screen and I run

[android-developers] Re: Download Service in 1.5?

2009-05-01 Thread Dianne Hackborn
There's nothing new, sorry. On Fri, May 1, 2009 at 7:56 AM, BoD bodl...@gmail.com wrote: Hi! For some reason, I got the impression that there was gonna be a new API or Service in 1.5 to easily ask the system to download a file (instead of having to do everything manually with HttpClient or

[android-developers] Re: 1.5 upgrade issue

2009-05-01 Thread Mariano Kamp
I think you also need to download the SDK separately. http://developer.android.com/sdk/1.5_r1/index.html Or do you have a directory with the mentioned name? On Fri, May 1, 2009 at 8:10 PM, cindy ypu01...@yahoo.com wrote: I am upgrading my project using Eclipse. I faced a problem to upgrade

  1   2   >