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

2009-10-01 Thread Gulfam
Hi, Kasper86 i am facing problem same as you. i am showning progress dialog but when i have changed my handset position from portrait to landscape or landscape to portrait it show error like activity has leaked window. i have make changes in my activity as said by manoj public void onConfigu

[android-developers] Trouble using ListView

2009-10-01 Thread gonzo
Hi, I'm just trying to set the content of a List View from a String[] array. and i tried using the ArrayAdapter to set the List Adapter. as... setListAdapter(new ArrayAdapter(this,R.layout.mycustomlayout, R.id.content_text_view, list); where list is my String[] array. mycustomlayout file is as

[android-developers] Is there a way for inter task communication

2009-10-01 Thread Amitkeerti
hi, Lets suppose that Activity 1 calls startActivtyForResult with an intent which starts Activity 2. Now lets suppose that in the AndroidManifest, for Activity 2 we have : android:launchMode="singleInstance" or android:launchMode="singleTask" Now the Activity 2 gets launched in a separate task

[android-developers] Upload image to my database from phone

2009-10-01 Thread ragavendran s
In my app i want to Upload my photos to my phone database.when i click upload option it wil show browse options and then i wil find the location of an image i.e., any folder...if i select any image it wil store it into my databse..whenever i want to view my photo means i will click Viewphot

[android-developers] Re: Cannot write SharedPreferences after update!! Help!

2009-10-01 Thread Sheado
Thanks for your response Mark. I came across some posts explaining how copy protected apps are run with different security/permission checks. So I just upgraded my app and everything worked fine. To summarize what I learned: If you have a copy protected app, don't try to test an update by instal

[android-developers] Re: activity leaked a window

2009-10-01 Thread Romain Guy
If you create the popup windows you are responsible for managing them on orientation change. That bug is yours :) On Thu, Oct 1, 2009 at 9:20 PM, Vijay wrote: > > Is the 'Activity leaked window' issue (http://code.google.com/p/ > beepmystuff/issues/detail?id=3) fixed in any of the latest Android

[android-developers] Re: activity leaked a window

2009-10-01 Thread Vijay
http://code.google.com/p/beepmystuff/issues/detail?id=3 is the link for the bug. Thanks. On Oct 1, 11:20 pm, Vijay wrote: > Is the 'Activity leaked window' issue (http://code.google.com/p/ > beepmystuff/issues/detail?id=3) fixed in any of the latest Android > releases? I'm not sure about the An

[android-developers] activity leaked a window

2009-10-01 Thread Vijay
Is the 'Activity leaked window' issue (http://code.google.com/p/ beepmystuff/issues/detail?id=3) fixed in any of the latest Android releases? I'm not sure about the Android version I'm using. I get this error during orientation changes. I create PopupWindows inside TextView. When I change orienta

[android-developers] Tabview with same activity in tabs

2009-10-01 Thread Nirav
I am trying to use same activity in different tabs in tabview. But, Instead of starting new activity, it shares variables. I want that each activity in a tab should not share any variable and they all activity should be seperated from each other. In short , i want to start new activity though it

[android-developers] Re: AudioTrack question

2009-10-01 Thread niko20
I dont think you can write non-blocking. It's actually an advantage since you can just create a thread that keeps pumping data into the buffer and waits for the write to complete. -niko On Oct 1, 9:56 pm, Tim Newsham wrote: > On Sep 29, 11:06 am, Tim Newsham wrote: > > > How do the position ma

[android-developers] Educating users - this isn't an iphone!

2009-10-01 Thread niko20
I have a music app for android that works really well, and I've tried to model the app after other iphone music apps that I have seen. However, the problem is that I get emails from users about "can it do like this app on the iphone", so then I try to write them an email back saying, yes, I'm try

[android-developers] Re: AudioTrack question

2009-10-01 Thread Tim Newsham
On Sep 29, 11:06 am, Tim Newsham wrote: > How do the position marker notifications work?  They seem to be > measured in "frames", what is a frame?  Where can I find documentation > on frames? No reply so I'll answer my own question for those playing along at home: A frame seems to be a single s

[android-developers] Android Device security ???

2009-10-01 Thread HandsomeboyIT
Hi al, my device ( id - HT845GZ49033 ) has "ro.secure" value 1. I can not start server on it. The HierarchyViewer tool can not view application on it. I can not telnet to the device too. So, does anyone know how to set the "ro.secure" property to 0 or another way to start the server on the device?

[android-developers] Auto answer calls and hangup programmetically

2009-10-01 Thread BQ
Hi, Can anyone point me how to auto answer calls and hangup programmetically, and the related permission? Sample or skeleton code is appreciated. Thanks, BQ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android D

[android-developers] Discussion on localizing-android-apps-draft

2009-10-01 Thread Chih-Wei
I have two questions about localization. First, can I control which strings should to be localized and which shouldn't be? I asked this question since it complains when some strings are not set to be localized in class TextView and Button (at least I noticed). I don't believe I have to localize st

[android-developers] Re: How to solve the error: This attribute must be localized

2009-10-01 Thread Chih-Wei
Anybody could give me a hint? Why "this attribute must be localized" must be an error? Can't it just be a warning? On 10月1日, 上午9時55分, Chih-Wei wrote: > Hi, > I'm trying to compile an app via Android 1.6, > and got errors shown below. > It said some strings in TextView and Button are not localize

[android-developers] Re: WebServer Android

2009-10-01 Thread Mark Murphy
> I'm a student and I'm working in a thesis about Android; i'd like to > know if > there are web server which can be installed in Android; at the moment > the > only one i could find is i-jetty. I used NanoHTTPD in one project. It required some tweaks and is rather old (e.g., HTTP/1.0), but it mo

[android-developers] Problem with creating AVD with 1.6 SDK

2009-10-01 Thread dsurround
I upgraded to the new SDK and I am using eclipse. I attempt to create a new AVD following the directions. I start up Android in a command window so I can see what is failing. I am getting the following error(s): C:\Users\Dad\Desktop\Java Programs\android-sdk- windows-1.6_r1\tools>android Starti

[android-developers] Re: sending an event / intent to an AppWidgetProvider

2009-10-01 Thread sdphil
I'm trying to do this in my service, and it never makes any calls into my app widget... @Override public void onStart(Intent intent, int startId) { super.onStart(intent, startId); Context context = (Context) this; String packageName = context.getPackageName(); RemoteViews update

[android-developers] Re: Application Manager & Force Close

2009-10-01 Thread Dianne Hackborn
This is what force stop does. It's not a bug, it is very much a feature. 2009/10/1 José Prieto Garay > > Hello Emiliano, > > I'm having the same issue, that "Force Stop" is destroying everything > related to my package and process: Activities, BroadcastReceivers and > Services, then callback me

[android-developers] Re: Application Manager & Force Close

2009-10-01 Thread José Prieto Garay
Hello Emiliano, I'm having the same issue, that "Force Stop" is destroying everything related to my package and process: Activities, BroadcastReceivers and Services, then callback methods aren't called, onDestroy() isn't called for example. It's like your package and process can't be notified th

[android-developers] Android 1.6 Maps Application

2009-10-01 Thread MarcoCanali
is there somewhere the code of application Maps on Android 4 API ?? --~--~-~--~~~---~--~~ 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 T

[android-developers] Re: Image scaling by BitmapFactory.decodeResource()

2009-10-01 Thread Tom Gibara
Possibly not as happy as it made me :) It really must have saved so much effort on my part. 2009/10/1 Dianne Hackborn > On Thu, Oct 1, 2009 at 3:27 PM, Tom Gibara wrote: > >> So far I've adapted two applications with no code changes whatsoever >> (other than the aforementioned workaround). > >

[android-developers] Re: Image scaling by BitmapFactory.decodeResource()

2009-10-01 Thread Dianne Hackborn
On Thu, Oct 1, 2009 at 3:27 PM, Tom Gibara wrote: > So far I've adapted two applications with no code changes whatsoever (other > than the aforementioned workaround). That makes me happy. :) -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private que

[android-developers] Re: Image scaling by BitmapFactory.decodeResource()

2009-10-01 Thread Tom Gibara
I realize based on my previous response that yes - I can't say 1.5 and 1.6 are incompatible. I retract that statement. Though I'm struggling to find a simple word to describe the situation. In any case, this is a very minor issue - the support for different densities is * terrific* - and I would mu

[android-developers] Re: Image scaling by BitmapFactory.decodeResource()

2009-10-01 Thread Dianne Hackborn
Put -v4 at the end of the resource directory to limit it to platform 4 or later. This isn't any different than any other new API -- you need to make sure you don't use it on older versions of the platform or you will break. That just a basic fact of life. On Thu, Oct 1, 2009 at 3:03 PM, Tom Gibar

[android-developers] Re: sending an event / intent to an AppWidgetProvider

2009-10-01 Thread Paul Turchenko
Just retrieve appwidgetprovider and use RemoteViews to do that On Oct 2, 12:19 am, sdphil wrote: > ping.  any thoughts? > > On Sep 30, 7:01 pm, sdphil wrote: > > > From a service that's running, how do I send an event or an intent to > > an app widget that is just sitting their idle... > > > ti

[android-developers] Re: Image scaling by BitmapFactory.decodeResource()

2009-10-01 Thread Tom Gibara
That's exactly what my code does. :) 2009/10/1 Romain Guy > > > * I can't disable the scaling with the Option flag (not supported in 1.5) > > Use reflection to set the flag in Options. > > > ergo. > > 1.5 and 1.6 are incompatible with each other, at least as far as my > > application is concerne

[android-developers] Re: Image scaling by BitmapFactory.decodeResource()

2009-10-01 Thread Romain Guy
> * I can't disable the scaling with the Option flag (not supported in 1.5) Use reflection to set the flag in Options. > ergo. > 1.5 and 1.6 are incompatible with each other, at least as far as my > application is concerned (and I'm sure some others). > Tom. > 2009/10/1 Dianne Hackborn >> >> Th

[android-developers] Re: Image scaling by BitmapFactory.decodeResource()

2009-10-01 Thread Tom Gibara
It's a compatibility issue in this sense: * I have an app currently targeted at 1.5. * I need to target 1.6 to support devices with lower screen densities. * For current users I need to continue supporting 1.5. * My code generates a picture based on bitmaps loaded via BitmapFactory.decodeRe

[android-developers] Re: How to put TextView in same position in landscape and portrait mode in Android

2009-10-01 Thread Paul Turchenko
Can you please post the layout you use? On Oct 1, 7:26 am, Jitu wrote: > Hi All, > > I am facing a problem when i put a textview on screen in landscape > mode it position is fine but when i switch to portrait mode it > position is remain fix it not change according to screen resolution. > please

[android-developers] an app widget with two buttons start the same activity, but in different ways.

2009-10-01 Thread sdphil
i create two separate intents using new Intent(context, MyActivity.class). I need to know which button was pressed so I add intent.putExtra(...). But since these are pending intents, it always sends the first one. how do I launch the same activity from the same app widget, but with different in

[android-developers] Re: App upgrade (with zipalign) causes force closes/disappearing of app icon

2009-10-01 Thread Xavier Ducrohet
On Thu, Oct 1, 2009 at 10:47 AM, n.a wrote: > > I had the same problem with my app. I found that there is a bug in the > export function in Eclipse in windows. > When you pick the location where you want your .apk to be exported > make sure that you don't see a double back slash. > > For example:

[android-developers] Re: AppWidgetProvider.onUpdate() -- setOnClickPendingIntent

2009-10-01 Thread Paul Turchenko
Perhaps you will need to provide more information. What kind of intents are you sending via remote views? Is there any possibility you've messed up something with references of widget's xml layout. Please give as much information as possible? On Oct 2, 12:20 am, sdphil wrote: > ping.  any though

[android-developers] Re: Image scaling by BitmapFactory.decodeResource()

2009-10-01 Thread Dianne Hackborn
This isn't a compatibility issue -- 1.5 doesn't know anything about "nodpi" so if you try to use it there you will not get the right result. (I am pretty sure what happens is it sees this as a really high dpi and thus scales it down.) It's just a case of not being able to use newer APIs on an old

[android-developers] Re: code for Home Screen

2009-10-01 Thread Romain Guy
http://android.git.kernel.org/?p=platform/packages/apps/Launcher.git;a=summary On Thu, Oct 1, 2009 at 2:09 AM, Deepak Arul wrote: > > Where is the code for Home Screen activity located ? > > There is a Home application in development/samples/Home  --> I am not > sure if it is the Home Screen cod

[android-developers] Re: Image scaling by BitmapFactory.decodeResource()

2009-10-01 Thread Romain Guy
> As far as I understand from this thread, after changing target SDK to > android:targetSdkVersion="4, method BitmapFactory.decodeResource > changes behavior and now scales images according to screen dpi. Is > that right? The targetSdkVersion does not matter. > So if I got it right, after moving

[android-developers] Re: How to display a local file in the browser?

2009-10-01 Thread plafayette
The HTMLViewer app is used for local file access in the latest SDK. On Sep 8, 7:13 pm, Megha Joshi wrote: > local file access from the browser will be available in one of the upcoming > sdk releases. thanks! > > 2009/9/8 riosalado > > > Hi Megha, > > > Could you provide more details on: > > > 1

[android-developers] Re: how to turn a color into a resource.

2009-10-01 Thread Steven Holder
You could create a colors.xml file in your values directory with the contents like this #66FF Where the color is AARRGGBB. Call this by R.color.background On Oct 1, 1:00 pm, sdphil wrote: > i want to change the background image of a button either into a > resource drawable or a sol

[android-developers] Re: App upgrade (with zipalign) causes force closes/disappearing of app icon

2009-10-01 Thread n.a
I had the same problem with my app. I found that there is a bug in the export function in Eclipse in windows. When you pick the location where you want your .apk to be exported make sure that you don't see a double back slash. For example: C:\\App.apk if you export the apk this way it will be bro

[android-developers] Returning a value from TabActivity.

2009-10-01 Thread Osmo Maatta
Hello, How can I return a value from TabActivity? It seems that the return value from tab pages vanishes and the caller always receives RESULT_CANCELED instead of RESULT_OK. Here is a simple but complete example. http://www.futuredesktop.org/tmp/TabTest.zip Please take some time to study and test

[android-developers] Re: Hmm... at last ADC2 is out of our way ... tell about your app and experience

2009-10-01 Thread cellurl
Hi , Details on our submissiont to ADC2: App Name: Speedlimits Category: Games: Casual/Puzzle Developer:James Pruett Website: http://www.wikispeedia.org http://code.google.com/p/speedlimit/ Description: A game to use while driving. It yells at the driver if he/

[android-developers] Returning a value from TabActivity.

2009-10-01 Thread Moma
Hello, How can I return a value from TabActivity? It seems that the return value from tab pages vanishes and the caller always receives RESULT_CANCELED instead of RESULT_OK. Here is a simple but complete example. http://www.futuredesktop.org/tmp/TabTest.zip Please take some time to study and tes

[android-developers] Send Mock Gps Data to real Device

2009-10-01 Thread HectorSavage
Hello, ich want to know if it's possible to send mock gps data to a real device that runs my application in debug mode via DDMS. Sending Mock Gps data to the emulator itself works perfect, but I want to send the mock data to my device, too. Thanks for your help --~--~-~--~~---

[android-developers] Re: sending an event / intent to an AppWidgetProvider

2009-10-01 Thread sdphil
ping. any thoughts? On Sep 30, 7:01 pm, sdphil wrote: > From a service that's running, how do I send an event or an intent to > an app widget that is just sitting their idle... > > tia. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Re: Wake Locks and the Cellular antenna...

2009-10-01 Thread G
It seems indeed clear that the antenna stays on ... however, is it guaranteed that a phone state listener is notified of telephony state changes when the main CPU is asleep? Thanks, On Oct 1, 3:27 am, Dianne Hackborn wrote: > I must be missing something here...  the antenna stays on even if no

[android-developers] How do I call another activity method?

2009-10-01 Thread f0rzan
Hello! Ok here is my problem. I have one Activity (Activity1) containing a tabhost. In one of the tabs I have a listActivity (Activity2) Activity2 implements ListActivity I want to call ( Activity2 ) thisMethodIWantToCall() from Activity1. Activity1 Intent myHomeIntent = new Intent(this, Acti

[android-developers] Re: Image scaling by BitmapFactory.decodeResource()

2009-10-01 Thread Marcin_GUmeR
As far as I understand from this thread, after changing target SDK to android:targetSdkVersion="4, method BitmapFactory.decodeResource changes behavior and now scales images according to screen dpi. Is that right? I have lots of bitmaps, in standard drawable directory, which are pushed to OpenGL

[android-developers] Re: Inertial Sensor on HTC Hero

2009-10-01 Thread DD
Hi there, I guess I'm doing the pretty much same project as you r. Actually I've no idea about how to answer your question...but just wanna ask you how you filter G out? You mentioned " I creates a threshold of ±1 m/s^2 for every output of accelerometer to filter out which sample is gravity (9.8

[android-developers] API responsable to make transfert dwonlaod ,upload with ftp ou 3G protocol

2009-10-01 Thread midoub
hi, please someone know wich APIs it's are responsable to transfer data on ftp ,download or upload. I want use this APIs to create application . any suggestions are welcome. thank you for your help. Best regards, --~--~-~--~~~---~--~~ You received this message be

[android-developers] code for Home Screen

2009-10-01 Thread Deepak Arul
Where is the code for Home Screen activity located ? There is a Home application in development/samples/Home --> I am not sure if it is the Home Screen code. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android

[android-developers] WebServer Android

2009-10-01 Thread Fabio Melpignano
Good Morning, I'm a student and I'm working in a thesis about Android; i'd like to know if there are web server which can be installed in Android; at the moment the only one i could find is i-jetty. Thanks for attention, Melpignano Fabio --~--~-~--~~~---~--~~ You

[android-developers] Re: AppWidgetProvider.onUpdate() -- setOnClickPendingIntent

2009-10-01 Thread sdphil
ping. any thoughts here? On Sep 30, 2:45 pm, sdphil wrote: > i have an app widget that has a couple of buttons on it, and in my > onUpdate() call, I am hooking up the buttons to do something when you > press them -- > >                 RemoteViews remoteViews = new > RemoteViews(context.getPac

[android-developers] Re: Application Manager & Force Close

2009-10-01 Thread Romain Guy
So you want to restart your app when the user just explicitly said he didn't want to run your app anymore?? Don't do that. On Thu, Oct 1, 2009 at 2:13 PM, Emiliano Schiano wrote: > Hello Everybody, > I´m having the following issue. > The ApplicationManager is killing the process of my applicatio

[android-developers] Application Manager & Force Close

2009-10-01 Thread Emiliano Schiano
Hello Everybody, I´m having the following issue. The ApplicationManager is killing the process of my application when the user presses on "FORCE STOP" on the Aplication Manager. MENU-> SETTINGS -> APPLICATIONS -> MANAGE APPLICATIONS -> My APP .> FORCE STOP. According to the documentation a broadc

[android-developers] Re: EditText`s hint disappeared when "Input Type" is set.

2009-10-01 Thread ponkin
Ok I think I`ve found the cause of bug, at least, you can reproduce it on your SDK. Just set EditText`s "Input Type" attribute to, for example, "textPassword" and then set "Gravity" attribute to "center" or "center_horizontal" - these steps will make EditText`s hint disappear. If you switch "Gravi

[android-developers] Re: does Android support displaying HTML, javascript, etc. within an application?

2009-10-01 Thread Mark Murphy
> We have an Android application. Now I need to conduct a user survey > for this application. Our app will display a list of selections, etc. > This view and it's control will be data driven by (a) document(s) > downloaded from a server. What Android utilities I can use to > displaying HTML, javas

[android-developers] does Android support displaying HTML, javascript, etc. within an application?

2009-10-01 Thread sherry
We have an Android application. Now I need to conduct a user survey for this application. Our app will display a list of selections, etc. This view and it's control will be data driven by (a) document(s) downloaded from a server. What Android utilities I can use to displaying HTML, javascript, etc

[android-developers] Re: App upgrade (with zipalign) causes force closes/disappearing of app icon

2009-10-01 Thread fadden
On Oct 1, 12:52 am, SCMSoft wrote: > Almost all our users complain that after upgrading to the newest > version of our "Camera Pro" app, either the app crashes or the icon is > not showing up anymore in the home screen. The problem seems to be > gone after deinstalling and reinstalling the app. >

[android-developers] Re: ActivityNotFoundException on explicit class declared in manifest on G1, emulator OK

2009-10-01 Thread David Bernstein
Found the problem due to problem with release build scripts. Diagnosis: pilot error. DOH! On Sep 30, 6:33 pm, David Bernstein wrote: > I have some code that starts another activity based on a menu item > selection: > >     public boolean onOptionsItemSelected( MenuItem item ) { >         Log.d(

[android-developers] Re: java.lang.OutOfMemoryError after orientation changed

2009-10-01 Thread Stefan
hi, i have test it without the mapView and my app work fine after i rotate the emulator. so the problem is the mapView. Can the display size a problem?? Because the button, which is over the MapView (if it will be activated), is positionated at the button of the display. But than i think, the Map

[android-developers] Re: where is sleep/screen behavior documented?

2009-10-01 Thread Dianne Hackborn
Unless there is a third party app messing with you, there is something broken with your software. The typical behavior is: - Screen dims after the screen-off timeout sets in preferences, and then turns off (and locks) a few seconds later. - Screen turns off and locks with you press them end call

[android-developers] Re: where is sleep/screen behavior documented?

2009-10-01 Thread Yusuf Saib (T-Mobile USA)
One place to start is to learn about the PowerManager: http://developer.android.com/reference/android/os/PowerManager.html Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not nec

[android-developers] Re: lock_layer() Warnings

2009-10-01 Thread nstegg
My bad, the above mentioned solution did not correct my issue after all, I just happened to have a lucky run, or perhaps I didn't wait long enough. Continuing to check for a solution. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: ActivityNotFoundException on explicit class declared in manifest on G1, emulator OK

2009-10-01 Thread David Bernstein
Found the problem due to problem with release build scripts. Diagnosis: pilot error. DOH! On Sep 30, 6:33 pm, David Bernstein wrote: > I have some code that starts another activity based on a menu item > selection: > >     public boolean onOptionsItemSelected( MenuItem item ) { >         Log.d(

[android-developers] Re: ActivityNotFoundException on explicit class declared in manifest on G1, emulator OK

2009-10-01 Thread David Bernstein
Found the problem due to problem with release build scripts. Diagnosis: pilot error. DOH! On Sep 30, 6:33 pm, David Bernstein wrote: > I have some code that starts another activity based on a menu item > selection: > >     public boolean onOptionsItemSelected( MenuItem item ) { >         Log.d(

[android-developers] where is sleep/screen behavior documented?

2009-10-01 Thread Richard Schilling
I'm looking around and trying to find out where sleep behavior is documented - and I mean in the general sense. When the phone is left alone: * Sometimes the phone screen dims and doesn't shut off. * Sometimes the phone screen goes dark in five seconds * Sometimes the menu lock happens. * Sometim

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

2009-10-01 Thread Ray da Costa
I had something similar, the procedures adopted: 1 - made sure that the version he was using was a 1.6 jdk 2 - I downloaded the ADT 0.9.3, did not update via the site, I place the installation process. Ai ran smoothly. The eclipse has a lot of it, sometimes it takes the jdk that exist in the machin

[android-developers] Re: Android 1.6 SDK is here!

2009-10-01 Thread Peter Jeffe
On Sep 15, 5:22 pm, Xavier Ducrohet wrote: > http://android-developers.blogspot.com/2009/09/android-16-sdk-is-here... And today T-Mobile is starting to roll it out to customers. Does anyone else think 2 weeks is a bit short of a time for developers to ensure that their app works with a new OS l

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

2009-10-01 Thread ander...@phdgaming.com
It would appear 1.6 is now being rolled out to all T-mobile users ( http://forums.t-mobile.com/tmbl/board/message?board.id=AndroidGeneral&thread.id=6733 and most android news sites). Ouch for those who happen to have application problems under the new release. --~--~-~--~~

[android-developers] Re: lock_layer() Warnings

2009-10-01 Thread nstegg
Upon further testing, it seems to have been my use of the android.os.SystemClock time methods instead of using System.currentTimeMillis() in my game loop thread timing, which is what I had originally used (read somewhere to use the android ones instead). At any rate, having reverted back, I am no

[android-developers] Re: Android 1.6 on ADP1 Force close

2009-10-01 Thread Andrew
On Oct 1, 4:44 pm, Guillaume Perrot wrote: > Everything work as expected for me including GTalk and Market. > Maybe because I performed a factory reset after upgrade. The problem is that your device is still using the (wrong) test keys instead of the release keys, so you have to wipe & flash you

[android-developers] DDMS doesn't show wake locks.

2009-10-01 Thread Richard Schilling
I can't get DDMS to show the wake locks on a device when it's tethered. Does anyone else have this problem? Thanks. Richard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to thi

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

2009-10-01 Thread JMichel
After trying the revert option of Eclipse it seems it does not working correctly. I selected the latest version with the XML editor 3.04, then Eclipse restarts and the versions of all my plugins are the same. XML editor stays to 3.1. Anyone with the same problem? On Sep 30, 10:20 am, JMichel wr

[android-developers] Re: java.lang.OutOfMemoryError after orientation changed

2009-10-01 Thread Beowolve
Actually I thought you set the size by your self, didn't notice that you posted the xml file. So you could have wrote the size to logcat with Log. So in this I don't know whats causing the view to consume memory that way it does. On 1 Okt., 17:25, Stefan wrote: > Hi > > On Oct 1, 5:09 pm, Beowol

[android-developers] Re: how to turn a color into a resource.

2009-10-01 Thread Dianne Hackborn
Use setBackgroundColor() On Thu, Oct 1, 2009 at 10:00 AM, sdphil wrote: > > i want to change the background image of a button either into a > resource drawable or a solid color. > > findViewById(R.id.myView).setBackgroundResource( xyz == 0 ? > R.drawable.myBackground : 0); > > instead of zero,

[android-developers] Re: Android 1.6 SDK is here!

2009-10-01 Thread Dianne Hackborn
Are you using android:targetSdkVersion="4"? The namespace prefix is important. As long as your manifest has a under the manifest tag, you won't be forced to have the permissions. On Thu, Oct 1, 2009 at 10:52 AM, Peter wrote: > > I'm having trouble getting rid of the permission warning for the

[android-developers] Re: Issue in broadcasting SMS through Android

2009-10-01 Thread Joe
Right, I don't want my phone to be sending thousands of sms without letting me know either. On Oct 1, 3:27 am, Cédric Berger wrote: > On Wed, Sep 30, 2009 at 18:25, Nainos wrote: > > > Hi! > > > There seems to be a limit to the number of SMS that can be sent > > programmatically. It seems to b

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

2009-10-01 Thread jotobjects
Thanks - That saves me trying it out in an AVD target that does not include the maps API shared library. I do not get the rationale for Google not making the library available so the API could be used without the device dependency. Is there a way to find out which devices have the Maps API add-on

[android-developers] Re: New Activity from MapActivity

2009-10-01 Thread jotobjects
I think you want to be able to zoom. Call setBuiltInZoomControls. MapView mapView = (MapView) findViewById(R.id.myMapViewId); mapView.setBuiltInZoomControls(true); On Sep 30, 2:35 pm, ssun wrote: > Hijotobjects, > > Thanks for your reply, I just realize there is an example fro

[android-developers] Re: Wake Locks and the Cellular antenna...

2009-10-01 Thread Richard Schilling
Yes - this is true, which makes my dilemma more surprising and perplexing. When I have a PhoneStateListener object registered with the TelephonyManager, PhoneStateListener.onSignalStrengthChanged(int) is not called when the CPU goes to sleep, AND when I have a partial wake lock. The only way I c

[android-developers] Re: Android 1.6 SDK is here!

2009-10-01 Thread Peter
I'm having trouble getting rid of the permission warning for the new WRITE_EXTERNAL_STORAGE permission. Here are the instructions from the release notes: WRITE_EXTERNAL_STORAGE: Allows an application to write to external storage. Applications using API Level 3 and lower will be implicitly grante

[android-developers] Re: Custom Views Timerview

2009-10-01 Thread andr0id
I figured it out, the problem wasn't coming from this piece of code, my bad.. On 1 oct, 15:53, Gopal Biyani wrote: > If you can send the exact exception from log cat, then it will be easy to > find error. > > On Thu, Oct 1, 2009 at 8:42 AM, andr0id wrote: > > > Hi everyone, > > > I've made a s

[android-developers] Re: MediaPlayer PVMVErrTimeout error

2009-10-01 Thread Mark Skiba
In an attempt to get more info on the leading "ERROR/PlayerDriver (26027): HandleInformationalEvent: type=28 UNHANDLED" log event, I added a MediaPlayer onInfo() handler. Unfortunately, the MediaPlayer onInfo() event doesn't fire when this error occurs. Does anyone know what this PlayerDriver Er

[android-developers] Re: A question about rtsp Streaming

2009-10-01 Thread Roman ( T-Mobile USA)
Have you tried to find out whether any traffic is successfully sent out the the device using tcpdump or wireshark? Also run a tcpdump on your device to see whether you receive any rtsp streaming. Only from reading about the problem, my first guess is that whatever is causing the problem, it shou

[android-developers] Re: MapView Overlays

2009-10-01 Thread polyclefsoftware
Are you aware of My Tracks? It's a free tracker and probably does exactly what you want. If you still wanted to develop your own, there's no need to mark every reading with a separate overlay. Just use a single image for the entire route and update the image every time you update the route. That

[android-developers] how to turn a color into a resource.

2009-10-01 Thread sdphil
i want to change the background image of a button either into a resource drawable or a solid color. findViewById(R.id.myView).setBackgroundResource( xyz == 0 ? R.drawable.myBackground : 0); instead of zero, i want some solid color... tia. --~--~-~--~~~---~--~~ Y

[android-developers] Re: App upgrade (with zipalign) causes force closes/disappearing of app icon

2009-10-01 Thread Dianne Hackborn
zipalign should have no impact on the running of your app at all, except for making some ways the system accesses it faster and lighter since it doesn't need to copy data out of your app. All applications built in to the system have always had zipalign run on them. On Thu, Oct 1, 2009 at 12:52 AM

[android-developers] Re: android:launchMode="singleInstance" pros AND cons

2009-10-01 Thread Dianne Hackborn
Don't use it. If you are asking these questions, you don't need to use it. The only two launch modes apps should use are multiple and singleTop. The others are for very unusual special cases and require great care and understanding in using them correctly. On Thu, Oct 1, 2009 at 5:38 AM, Chris

[android-developers] Re: Application object life cycle.

2009-10-01 Thread Dianne Hackborn
onTerminate is not called because your process is killed. At that point, it doesn't matter, the kernel is going to clean up all your stuff. Like I said, if you are getting a message about it not being closed, this is because you created and use the object and released all references on it before c

[android-developers] Re: Contact Photo in LiveFolder

2009-10-01 Thread nEx.Software
Finally got it to work. I needed to override fillWindow in my MatrixCursor and tell it to not get String values for every column. On Oct 1, 8:35 am, "nEx.Software" wrote: > Arg! So, I found the bug. Kind of. Somehow, all "get" calls (getLong > (), getBlob(), and of course getString()) on my Curs

[android-developers] Re: DATE_FORMAT (System.Settings) returns null since 1.6 (Donut)

2009-10-01 Thread EboMike
Unlikely, since I suddenly got a bunch of one-star "uh appilcatoin doesnt run under 1.6 lame" ratings. Well, if I could reply, I'd say that there is no official 1.6 out yet, but still. Assuming "MM-dd-" if the result is either null or an empty string fixed the problem. -Mike On Oct 1, 9:13

[android-developers] Re: DATE_FORMAT (System.Settings) returns null since 1.6 (Donut)

2009-10-01 Thread Max_well
I think (hope) it's an emulator bug. I filled a bug btw : http://code.google.com/p/android/issues/detail?id=3973 Simon On Oct 1, 7:44 am, EboMike wrote: > Settings.System.getString(resolver, Settings.System.DATE_FORMAT) > returns null if the user never made a selection. > > If the user does ch

[android-developers] Re: Application object life cycle.

2009-10-01 Thread gnugu
Thanks Dianne for your answers. My problem regarding the database is that I need it during the lifetime of the application. Now when you say that Application.onTerminate() is not normally called, I have no place to close it, other then open_and_close every time I need it. Would that be a standar

[android-developers] Re: java.lang.OutOfMemoryError after orientation changed

2009-10-01 Thread Stefan
Hi On Oct 1, 5:09 pm, Beowolve wrote: > From the stack trace it looks like the memory allocation is done > inside the "Map.resize" function. > So you most likely set a enormous size after the orientation change to > your mapview. hmmm, i never set any size in my source code. > Adding some Log.

[android-developers] Re: Contact Photo in LiveFolder

2009-10-01 Thread nEx.Software
Arg! So, I found the bug. Kind of. Somehow, all "get" calls (getLong (), getBlob(), and of course getString()) on my Cursor are being treated as getString(). This makes no sense to me at all. Why are they not getting directed to the correct functions? On Sep 30, 12:14 pm, "nEx.Software" wrote: >

[android-developers] Unswapped raw sensor orientation values?

2009-10-01 Thread RS
Does this still work? I don't see event value array lengths larger than 3 ever. From: http://developer.android.com/reference/android/hardware/SensorListener.html#onSensorChanged(int,%20float[]) " IMPORTANT NOTE: The axis are swapped when the device's screen orientation changes. To access the unsw

[android-developers] Re: Views - Orientation Change

2009-10-01 Thread Vijay
Just want to destroy popups when the orientation changes. On Oct 1, 10:01 am, Vijay wrote: > Do Views know changes in orientation? In my case, I create popups from > TextView and need to know when the orientation changes(porttrait<-- > > >landscape). I cannot depend on activity's onOrientationCh

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

2009-10-01 Thread Gerald
Thanks for the comments, I check with my user in Germany and he confirmed that he cannot type the comma into a decimal field in Android. The issue is arising for me because when I copy the text into the edit field I convert it into a localized String which has the comma in it. Once this gets into

[android-developers] Re: java.lang.OutOfMemoryError after orientation changed

2009-10-01 Thread Beowolve
>From the stack trace it looks like the memory allocation is done inside the "Map.resize" function. So you most likely set a enormous size after the orientation change to your mapview. Adding some Log.i functions might narrow it down to the source of the problem. On 1 Okt., 16:18, Stefan wrote:

  1   2   >