[android-developers] ImageButton handling of transparent src pngs

2009-11-27 Thread Mark Rosenberg
ImageButton doesn't honor the transparency of my android:src png. My src image is a rounded rectangle, with the remaining portion of the bounding rectangle set to be transparent. When the button is displayed, what should be transparent is a dark shadowy color. The images I'm using are OK, and displ

[android-developers] Add custom View to XML layout

2009-11-27 Thread babu
Hi, Currently, I am creating a custom View class (DrawView) that inherits the View class and adding to my activity programatically by using RelativeLayout and LaoutParams etc. But is there an easier way to do this by adding my DrawView to the layout XML file? -- You received this message because

[android-developers] Re: How to set location of buttons programmatically

2009-11-27 Thread babu
Thank you. That worked. On Nov 27, 8:52 pm, Anirudh wrote: > One plausible way is to use the RelativeLayout as your base layout and > add all other children views to this layout using the > RelativeLayout.LayoutParams class for setting the layout parameters. > The RelativeLayout.Layoutparams.left

Re: [android-developers] Re: Android in China - What is going on?

2009-11-27 Thread Hong
Google has already complied with the Chinese government by using Google.cn and g.cn instead of Google.com in China. Everything (DNS, servers, routers) are under local government surveillance and control. Not much they can do. On Fri, Nov 27, 2009 at 9:02 PM, shimsim wrote: > Appreciate the work

[android-developers] Re: How to set location of buttons programmatically

2009-11-27 Thread Anirudh
One plausible way is to use the RelativeLayout as your base layout and add all other children views to this layout using the RelativeLayout.LayoutParams class for setting the layout parameters. The RelativeLayout.Layoutparams.left and RelativeLayout.Layoutparams.top attributes can be your (x,y) co-

[android-developers] How to enable different css in WebView

2009-11-27 Thread James Wang
Hi, we have a web page which include two different css: portrait.css and landscape.css. We want load this page only once and enable the right css according to phone's orientation. We have a plan to develop a chrome plugin by c++ to make it which got us to have to change firmware. I just wonder wh

[android-developers] Re: disabling button onclicklistener for certain time

2009-11-27 Thread Anirudh
How about setting the onClickListener to null for that period of time and resetting it to a valid listener again? On Nov 26, 4:15 am, Mark Murphy wrote: > Jags wrote: > > I have a typical problem where if i keep repetedly press a button, a > > certain value increases, actually i am supposed to in

[android-developers] Re: How to release Drawable object from memory ?

2009-11-27 Thread Anirudh
As a crude sort of way to get around this problem, you can assign your drawable references to null once you do not find a use for them so that the GC can free these allocations. On Nov 26, 10:23 am, "daniel.benedykt" wrote: > Hi > > Probably you are having a memory leak > > Read this article from

[android-developers] Re: Detect/intercept screen turning off

2009-11-27 Thread Anirudh
Hi, just came across this thread http://www.mail-archive.com/android-developers@googlegroups.com/msg63994.html. Hope this might help you. Also, does the use of android.os.PowerManager.WakeLock class feasible for your apps? On Nov 27, 3:47 am, David Given wrote: > -BEGIN PGP SIGNED MESSAGE---

[android-developers] Re: How to set location of buttons programmatically

2009-11-27 Thread Mark Wyszomierski
Not sure if it's the best way, but you can use padding to position elements in an absolute way. I think AbsoluteLayout is deprecated now, but you used to be able to use that to do what you want. On Nov 27, 8:01 pm, babu wrote: > Hi, > > How do I set the location of buttons/other views programmati

[android-developers] Question about selling paid apps from other countries

2009-11-27 Thread Illidane
Hello! Can I sell paid apps in Android Market with Google Checkout if I live in Ukraine and have bank account in U.K. ? Or I need to register a company in U.K. with physical adress? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to

[android-developers] Delete Bookmark?

2009-11-27 Thread Bobbie
How can I programmatically delete a bookmark in Android? Can't figure it out. Please let me know, thanks! -- 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 unsubscr

[android-developers] Re: Android in China - What is going on?

2009-11-27 Thread shimsim
Appreciate the workaround Hong, i will give it a try. Don't get me wrong, i am not blaming Google for the cause of the problem, its not their fault they are being blocked but they must be aware of the problem and should make a statement as to what is happening will it stay like this or are th

[android-developers] Re: KeyEvent and GLSurfaceView

2009-11-27 Thread Lance Nanek
Are you sure that the view you are expecting to receive key events has focus? On Nov 27, 6:30 pm, Mike wrote: > Hi, > > as soon as there's a GLSurfaceView in use, no other views receive any > KeyEvents. > MotionEvents however, are still working as expected. > Is there a way to prevent GLSurfaceVi

Re: [android-developers] How to update G1 firmware version to 2.0?

2009-11-27 Thread Mark Murphy
Fion Z wrote: > Hello, android-beginners Please do not cross post to multiple mailing lists. > How to update my G1 firmware version to 2.0, current is 1.5. Android 2.0 has not been officially released for the T-Mobile G1. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter

[android-developers] How to update G1 firmware version to 2.0?

2009-11-27 Thread Fion Z
Hello, android-beginners How to update my G1 firmware version to 2.0, current is 1.5. Thank you. BR, Fion -- 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 unsu

Re: [android-developers] Re: Anyone get Camera#takePicture() to work on DROID?

2009-11-27 Thread Mark Murphy
blindfold wrote: > Did you try any other picture taking apps from the Market for > comparison? No, because I wasn't sure how I'd tell Camera#takePicture() from launching the camera Intent. > I cannot tell because I have no Droid to test with, but my app does a > takePicture() when key 'p' is pres

[android-developers] Re: KeyEvent and GLSurfaceView

2009-11-27 Thread Jack Palevich
I don't think you have fully identified the problem you are experiencing. If you read the source for GLSurfaceView, you will see that it does nothing special to handle KeyEvents. So the problem you are having is probably unrelated to GLSurfaceView. On Nov 28, 7:30 am, Mike wrote: > Hi, > > as soo

[android-developers] How to set location of buttons programmatically

2009-11-27 Thread babu
Hi, How do I set the location of buttons/other views programmatically? Below is my program snippet in the onCreate() method of my activity. //Create two buttons Button button1 = new Button(this); Button button2 = new Button(this); //Create layout params. Here, don

Re: [android-developers] Re: How to get the highest API level supported by the device?

2009-11-27 Thread Dianne Hackborn
It's only deprecated because it's better to use SDK_INT if your minSdkVersion is >= 4. On Fri, Nov 27, 2009 at 3:23 PM, patrick wrote: > be aware that android.os.Build.VERSION.SDK is deprecated and > android.os.Build.VERSION.SDK_INT only available in level 4. > > On Nov 26, 8:16 pm, Agus wrote:

[android-developers] KeyEvent and GLSurfaceView

2009-11-27 Thread Mike
Hi, as soon as there's a GLSurfaceView in use, no other views receive any KeyEvents. MotionEvents however, are still working as expected. Is there a way to prevent GLSurfaceView from swallowing all KeyEvents? -- You received this message because you are subscribed to the Google Groups "Android D

[android-developers] Re: How to get the highest API level supported by the device?

2009-11-27 Thread patrick
be aware that android.os.Build.VERSION.SDK is deprecated and android.os.Build.VERSION.SDK_INT only available in level 4. On Nov 26, 8:16 pm, Agus wrote: > thanks > > On Thu, Nov 26, 2009 at 10:55 AM, Mark Murphy wrote: > > > Agus wrote: > > > How to get the highest API level supported by the devi

Re: [android-developers] Re: Cant react to home button...

2009-11-27 Thread Romain Guy
onPause/onStop can happen for any number of reasons, not just pressing the Home button... On Fri, Nov 27, 2009 at 2:44 PM, dapaintballer331 wrote: > I figured out how to get it to work! > > For the record: > I'm unsure of why onPause / onStop won't start an activity in the > emulator, if the home

[android-developers] Re: Cant react to home button...

2009-11-27 Thread dapaintballer331
I figured out how to get it to work! For the record: I'm unsure of why onPause / onStop won't start an activity in the emulator, if the home button is pressed (SDK 1.5), however a solution is to have onPause create an alarm to do the work for you :) -Brandon On Nov 27, 3:42 pm, dapaintballer331

[android-developers] Re: Anyone get Camera#takePicture() to work on DROID?

2009-11-27 Thread blindfold
> Has anyone gotten takePicture() to work on a DROID? Did you try any other picture taking apps from the Market for comparison? I cannot tell because I have no Droid to test with, but my app does a takePicture() when key 'p' is pressed, so it is among the apps that you could try. However, I also

[android-developers] Anyone get Camera#takePicture() to work on DROID?

2009-11-27 Thread Mark Murphy
I'm getting a SIGSEGV when trying to take a picture using Camera#takePicture() on a Motorola DROID. Has anyone gotten takePicture() to work on a DROID? More details, including the code of mine that's causing the MediaServer crash, can be found here: http://code.google.com/p/android/issues/detail?

[android-developers] Re: Cant react to home button...

2009-11-27 Thread dapaintballer331
The logcat says its launching the activity, however it only is displayed if the back key triggered this. On Nov 27, 3:29 pm, Mark Murphy wrote: > dapaintballer331 wrote: > > So do activities receive anything when the button is pressed? > > > I thought activities are paused when they become hidden

[android-developers] Re: Cant react to home button...

2009-11-27 Thread dapaintballer331
Nevermind, they are being called, however when the onStop/onPause is called because of the home button, it won't let me launch an activity. It only lets me if the back key is pressed. On Nov 27, 3:29 pm, Mark Murphy wrote: > dapaintballer331 wrote: > > So do activities receive anything when the b

[android-developers] Re: Cant react to home button...

2009-11-27 Thread dapaintballer331
Thanks, I guess my cupcake/1.5 emulator is broken. The home key doesn't call onPause nor onStop On Nov 27, 3:29 pm, Mark Murphy wrote: > dapaintballer331 wrote: > > So do activities receive anything when the button is pressed? > > > I thought activities are paused when they become hidden... > > A

Re: [android-developers] Re: Cant react to home button...

2009-11-27 Thread Mark Murphy
dapaintballer331 wrote: > So do activities receive anything when the button is pressed? > > I thought activities are paused when they become hidden... Activities will be called with onPause() and onStop() when the HOME key is pressed. They will be called with those two methods in many other scena

[android-developers] Re: Cant react to home button...

2009-11-27 Thread dapaintballer331
So do activities receive anything when the button is pressed? I thought activities are paused when they become hidden... On Nov 27, 6:09 am, Mark Murphy wrote: > dapaintballer331 wrote: > > How can I get my app to react when the "Home" button is pushed in the > > emulator? > > You can't. Activit

[android-developers] Re: AccountManager Authenticator only runs once per emulator restart.

2009-11-27 Thread Micah
It appears it's because there is some caching going on where my authenticator service is getting launched, the bind fails to return an authenticator IBinder, and then binding is not tried again for future runs of the application. Even if I install a new authenticator, the OS never bothers to try i

[android-developers] Re: Advice on keeping app running/available

2009-11-27 Thread Loki117
Hey Carl, Is any intent thrown upon receiving an SMS? My idea was going to be a BroadcastReceiver outlined in the manifest file to be run whenever a specific intent / pendingIntend is broadcast? On Nov 27, 1:59 pm, Carl Barton wrote: > I have spent a lot of time playing and researching (includin

[android-developers] Re: Pixel Format Conversion in SF

2009-11-27 Thread android-newbie
Thank you Dianne. But if I set my CameraSurfaceView is of type mHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS) for the purpose of pushing the preview frame onto the surface for display, does this surface also serve as my UI window? Thanks alot for your help! On Nov 27, 1:52 pm, Dianne H

Re: [android-developers] changing the content of the .apk archive at runtime

2009-11-27 Thread Mark Murphy
Mr.No wrote: > it is allowed to change the content of a file in the .apk archive at > runtime? SDK applications cannot access the APK, let alone modify it, at runtime. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 1.6 Programming Books: http://com

Re: [android-developers] Advice on keeping app running/available

2009-11-27 Thread Mark Murphy
Carl Barton wrote: > I have spent a lot of time playing and researching (including > subscribing to the Mark Murphy’s CommonsGuy stuff...excellent by the > way) and I think I have enough info to be dangerous. > I am just having issues coming up with best practices for doing what I > need to do. Wh

[android-developers] changing the content of the .apk archive at runtime

2009-11-27 Thread Mr.No
Hello, it is allowed to change the content of a file in the .apk archive at runtime? because the signature of the application will change. Thanks in advance -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email

Re: [android-developers] Re: how can I target api 1.6, but use packages from 2.0 (and safely)

2009-11-27 Thread Dianne Hackborn
Sorry I'm not sure what telephony stuff the emulator does. On Thu, Nov 26, 2009 at 9:55 PM, Bryan wrote: > Thank you everyone for the helpful replies. I've used a class wrapper > as detailed by the android backwards compatibility blog to add support > for Droid. It runs in the 2.0 emulator as ex

[android-developers] Advice on keeping app running/available

2009-11-27 Thread Carl Barton
I have spent a lot of time playing and researching (including subscribing to the Mark Murphy¹s CommonsGuy stuff...excellent by the way) and I think I have enough info to be dangerous. I am just having issues coming up with best practices for doing what I need to do. My app is collecting specially

Re: [android-developers] Re: how can I target api 1.6, but use packages from 2.0 (and safely)

2009-11-27 Thread Dianne Hackborn
(But there really should be little difference between GSM and CDMA, from an application's perspective.) On Fri, Nov 27, 2009 at 10:56 AM, Dianne Hackborn wrote: > Sorry I'm not sure what telephony stuff the emulator does. > > > On Thu, Nov 26, 2009 at 9:55 PM, Bryan wrote: > >> Thank you everyon

[android-developers] Re: Copy protection bug statuses

2009-11-27 Thread Matt Hall
It looks like I spoke too soon, we've had a few users on the Hero (OS 1.5) that are having the copy protection problem (i.e. crashing on startup). An uninstall/reinstall fixes the problem as before, but they lose their saved data. I've had no reports from other phones of problems yet. Could it be t

Re: [android-developers] "Something wrong here" error message

2009-11-27 Thread Dianne Hackborn
Don't worry about it, it's not an issue. 2009/11/27 Per Sandström > I have had a few reports coming in from Droid-users using my apps and > getting this error message: > > 11-25 16:17:44.589 W/UsageStats( 1015): Something wrong here, didn't > expect (package name) to be resumed > > Everytime I h

Re: [android-developers] Re: What is the use of task switcher ?

2009-11-27 Thread Dianne Hackborn
Correct, this is not showing running tasks, but the most recent tasks you have launched or switched to. On Fri, Nov 27, 2009 at 6:52 AM, Lance Nanek wrote: > I've heard it called the recent activities window as well. That naming > makes more sense to me than task switcher because it shows recent

Re: [android-developers] Re: Pixel Format Conversion in SF

2009-11-27 Thread Dianne Hackborn
Yes, you set the format and such by the setters you mentioned. The relation with surfaceChanged() is that this gets called after any such parameters have changed to provide a surface with the new configuration. On Fri, Nov 27, 2009 at 8:20 AM, android-newbie wrote: > Thanks Dianne so much for y

Re: [android-developers] Re: Crashed Service not restarting - TasKiller or Android issue ?

2009-11-27 Thread Dianne Hackborn
Fyi, you can use "adb shell dumpsys activity.services" to see the state of all active services, including those that are started but not currently running and waiting for a restart. On Fri, Nov 27, 2009 at 10:44 AM, Derek wrote: > Hi Nicolas, > > Thanks for the feedback. I've double checked the

[android-developers] Re: Crashed Service not restarting - TasKiller or Android issue ?

2009-11-27 Thread Derek
Hi Nicolas, Thanks for the feedback. I've double checked the logs and I don't see anything about TasKiller when the process has died. In the meantime I've read the following thread about developers complaining about Task killers applications (not yours especially). http://groups.google.com/group/a

[android-developers] Re: Crashed Service not restarting - TasKiller or Android issue ?

2009-11-27 Thread Nicolas Thibaut
Hi, Taskiller use ActivityManager to "kill" process (there is no kill but uninstall process). If I kill taskiller itselfs, the log are: 11-27 19:16:58.952 I/ActivityManager( 75): Displayed activity com.tni.TasKiller/.TasKiller: 2023 ms (total 2023 ms) 11-27 19:16:59.032 I/ActivityManager( 75)

Re: [android-developers] Re: Android in China - What is going on?

2009-11-27 Thread Hong
I will not go into details as why Chinese gov't blocking this and that, there are many reasons, and you certainly cannot hold Google accountable for the problems you have. Anyway, edit /system/etc/hosts, add "74.125.93.113 android.clients.google.com" to your Android phone, and you are good to go.

[android-developers] Re: Crashed Service not restarting - TasKiller or Android issue ?

2009-11-27 Thread Derek
Hi Diane, We've have exactly the same problem. We have TasKiller v2.2 installed but we DO NOT use it to kill our app. However, our service (running every one minute thanks to AlarmManager) never restarts after process has died. Here are the log extracted today on my HTC device under 1.6: [...] 11-

[android-developers] Re: Reference external lib resources?

2009-11-27 Thread Loki117
Yeah just read some other posts you had placed on the subject thanks for that Mark. Seems like such a horrible restriction though back the drawing board I guess. On Nov 27, 12:02 pm, Mark Murphy wrote: > Loki117 wrote: > > I hope you can help. I'm trying to reference a resource of an external > >

[android-developers] toast

2009-11-27 Thread Greg Donald
How can I keep Toast from building up a queue of messages? I'm working on a board game and I'm sending status messages back to the user with this wrapper function I created for Toast: private void toast( String s ) { if( t != null ) t.cancel

Re: [android-developers] Reference external lib resources?

2009-11-27 Thread Mark Murphy
Loki117 wrote: > I hope you can help. I'm trying to reference a resource of an external > JAR file in my android manifest to be used as an icon for the > application. That is not possible, insofar as Android resources cannot be contained in JAR files. -- Mark Murphy (a Commons Guy) http://commo

Re: [android-developers] How to Calculate Temperature

2009-11-27 Thread Mark Murphy
SIDIBE Ali-Broma wrote: > I want to determine temperature of my phone based SensorManager? > > In Sensor we have a SENOR_TEMPERATURE! > How i can use it? There are no devices that support that sensor, AFAIK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy

[android-developers] Selector with the ImageView?

2009-11-27 Thread Business Talk
Is there any way to use the selector drawable with the ImageView instead of the ImageButton ( http://developer.android.com/reference/android/widget/ImageButton.html )? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group,

[android-developers] Reference external lib resources?

2009-11-27 Thread Loki117
Hey Guys, I hope you can help. I'm trying to reference a resource of an external JAR file in my android manifest to be used as an icon for the application. Does anyone know the correct syntax? I am using something like shown below but it doesn't work as it assumes this to be a string. Is there a w

[android-developers] How to Calculate Temperature

2009-11-27 Thread SIDIBE Ali-Broma
Hi I want to determine temperature of my phone based SensorManager? In Sensor we have a SENOR_TEMPERATURE! How i can use it? Regards SIDIBE Ali-Broma -- 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] UI window in Camera Preview application

2009-11-27 Thread android-newbie
Let's say in my example I am working with SurfaceView for my CameraSurfaceView. I have a few questions, hope you can help me. 1. When this SurfaceView gets created (I assume via final CameraSurfaceView cameraView = new CameraSurfaceView (getApplicationContext()), this will result in a call creat

[android-developers] Re: Pixel Format Conversion in SF

2009-11-27 Thread android-newbie
Thanks Dianne so much for your reply. So let's say in my example I am working with SurfaceView for my CameraSurfaceView. I have a few questions, hope you can help me. 1. When this SurfaceView gets created (I assume via final CameraSurfaceView cameraView = new CameraSurfaceView (getApplicationCo

[android-developers] Re: How to test if app is shown on Market for all screensizes

2009-11-27 Thread blindfold
Are you talking about Droid, Milestone or HTC Tattoo here? Thus far there seem to be 2 separate patterns: apps can be invisible on the Market for Droid and Milestone when copy protection is on, OR apps can be invisible on the Market for HTC Tattoo when the CAMERA permission is used. On Nov 27, 3:

[android-developers] Re: Rotate TextView 90 degrees text out of view.

2009-11-27 Thread benbenbenben
Sorry, my fault. Still it doesn't work. When rotated, the canvas hight still seems to be the TextView width. Does anyone has a solution? Thanks, Ben On 17 nov, 12:07, benbenbenben wrote: > I just changed the textsize to 14 and now it works great! Also with > size 10, only not with size 12. Bug

[android-developers] Use Camera API for normal quality pictures

2009-11-27 Thread benbenbenben
I'm using the default camera API of Android 1.6 like this: Intent photoIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); photoIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(new File (Environment.getExternalStorageDirector

[android-developers] Re: Need an invitation to google Wave?

2009-11-27 Thread sheik
i like to have one googlewave account . kindly send me one , please .. thanks .. email id : sheik...@gmail.com regards Sheik On Nov 10, 12:12 am, shobhit kasliwal wrote: > Hi > I also want one google wave invite if you have one > My Email id is shobhit.kasli...@gmail.com > > Thanks > Shobhi

[android-developers] Re: Need an invitation to google Wave?

2009-11-27 Thread sheik
hi .. guys .. iam too excited kindly send me one inviteee... thanks .. email id : sheik...@gmail.com regards Sheik On Nov 10, 12:12 am, shobhit kasliwal wrote: > Hi > I also want one google wave invite if you have one > My Email id is shobhit.kasli...@gmail.com > > Thanks > Shobhit > > > > On

[android-developers] Re: wvga854 avd screen size problem?

2009-11-27 Thread feeling3_4
Pieter, thank you for your reply. I am a little confused here. please see the two images below http://www.screencast.com/t/ZGZlZjVhO (this one is wvga854 avd under Mac os + android skd 2.0) http://www.screencast.com/t/NTYzYmJh (this is wvga854 avd under Windows + android sdk 2.0) Why the density

Re: [android-developers] What is the use of task switcher ?

2009-11-27 Thread Cédric Berger
On Fri, Nov 27, 2009 at 14:34, pink 444 wrote: > >Why is task switcher(Which appears when we press home button > for long time) provided. > >We have application launcher ,from where we can launch any > applications. > > What is interesting is you do not have to go back to Home. (w

Re: [android-developers] start activity without mention in androidmanifestfile

2009-11-27 Thread Mark Murphy
saikiran n wrote: > I want to start an activity without mention it in AndroidManifest.xml > file. All activities have to be declared in the manifest. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 1.6 Programming Books: http://commonsware.com/books

[android-developers] start activity without mention in androidmanifestfile

2009-11-27 Thread saikiran n
Hi, I want to start an activity without mention it in AndroidManifest.xml file.Is it possible,If so how it is Give me me a sample code, I have tried the following but it throws exception activity not found Intent i=new Intent(); ComponentName cn=new ComponentName("com.android.Layout","com

[android-developers] Re: What is the use of task switcher ?

2009-11-27 Thread Lance Nanek
I've heard it called the recent activities window as well. That naming makes more sense to me than task switcher because it shows recent activities even if they have been force stopped and runs them fine when selected. On Nov 27, 8:34 am, pink 444 wrote: > Hi all, > >         Why is task switcher

[android-developers] Re: How to test if app is shown on Market for all screensizes

2009-11-27 Thread Marcus
Same with me. App uses Camera, but is not copy protected. supports-screens entries in manifest are there and "true". minSDK=3 targetSDK=4 -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-develo

[android-developers] What is the use of task switcher ?

2009-11-27 Thread pink 444
Hi all, Why is task switcher(Which appears when we press home button for long time) provided. We have application launcher ,from where we can launch any applications. Then what is the need of the task switcher. Even though some task are not running , still appear

Re: [android-developers] Re: How to test if app is shown on Market for all screensizes

2009-11-27 Thread Mark Murphy
rflexor wrote: > Now that the new Motorola Milestone Phones came out in Germany (aka > Droid in the US) we, too, are facing the problem of users not seeing > our application in the market. > Copy-Protection active. Turning off Android Market copy protection has worked for others, though I'm not

[android-developers] Re: How to test if app is shown on Market for all screensizes

2009-11-27 Thread rflexor
Now that the new Motorola Milestone Phones came out in Germany (aka Droid in the US) we, too, are facing the problem of users not seeing our application in the market. Our settings: No CAMERA-permission. Copy-Protection active. The customer is using the standard Milestone ROM. He doesn't se

[android-developers] Re: Need Help with the android:weightSum and layout_weight attributes

2009-11-27 Thread Business Talk
Thanks to all, it worked. You can only guess how much time you saved me. Good Luck On Nov 26, 8:38 pm, Romain Guy wrote: > Using 0px is mostly an optimization. It is not required. > > On Nov 26, 2009 5:16 PM, "steelbytes" wrote: > > I think you have to set the width of each item to 0px. then the

Re: [android-developers] Re: no title bar

2009-11-27 Thread Ian Guedes Maia
> another thing is, when titlebar is sown, can i show the title text at > the center ? Extending the default theme and overriding WindowTitle's android:gravity doesn't work -- there's an issue about that: http://code.google.com/p/android/issues/detail?id=4395 One workaround is to replace the title

[android-developers] Re: How to fill paricular portion of text content with chosen color

2009-11-27 Thread skink
On Nov 27, 8:54 am, "Dexter's Brain" wrote: > Well, for a textview, you cannot fetch the characters on which the > mouse is residing. yes, you can see docs about text layouts pskink -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To p

[android-developers] Re: wvga854 avd screen size problem?

2009-11-27 Thread Pieter
You app probably runs in "compatibility mode", presenting a lower "virtual" resolution and then scaling all graphics up to the actual device resolution. For more information, see the "supports-screens" manifest element: http://developer.android.com/sdk/android-1.6.html and: http://developer.android

[android-developers] Detect/intercept screen turning off

2009-11-27 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is there any way where I can detect that the screen is about to turn off, so I can do some work *before* it happens? I need this to work around bug 3755: OpenGL apps sometimes crash when the screen gets turned off because they don't get surfaceDestroy

[android-developers] Walking by dates using Calendar

2009-11-27 Thread Bossly
Next day, Previous day using Calendar There are two method to increase/decrease date. add() and roll() methods. But use: calendar.add(Calendar.DAY_OF_MONTH, -1); // go to previous day calendar.add(Calendar.DAY_OF_MONTH, 1); // go to next day not calendar.roll(Calendar.DAY_OF_MONTH, -1); // se

Re: [android-developers] Re: How to start up the native gallery app?

2009-11-27 Thread Mark Murphy
pcm2a wrote: > Maybe I'm asking the totally wrong question here: > > On any android phone I can press the up arrow and get a list of all > the built in and install application. What is the recommended way to > get a list of all these items, their icons, and their start intents. > Current'y I'm us

Re: [android-developers] Cant react to home button...

2009-11-27 Thread Mark Murphy
dapaintballer331 wrote: > How can I get my app to react when the "Home" button is pushed in the > emulator? You can't. Activities do not receive this key event. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Consulting/App Development: http://commo

[android-developers] Re: High performance access on static data: What is your approach?

2009-11-27 Thread Marc Reichelt
Hi there, I have an additional cache where images are stored on the SD card. These are loaded pretty fast. But my data right now consists of many objects with many fields. This is a totally different use case. Of course I would not use serialization for images. ;-) Regards Marc Reichelt ||

[android-developers] Cant react to home button...

2009-11-27 Thread dapaintballer331
How can I get my app to react when the "Home" button is pushed in the emulator? The back button works fine. I tried logging something every time onPause or onStop is called, but the button isn't triggering anything. How can I react to this action? I did research and know that onKeyDown won't work

[android-developers] Re: How to start up the native gallery app?

2009-11-27 Thread pcm2a
Maybe I'm asking the totally wrong question here: On any android phone I can press the up arrow and get a list of all the built in and install application. What is the recommended way to get a list of all these items, their icons, and their start intents. Current'y I'm using the PackageManager cl

[android-developers] Re: How to set layout_width="wrap_content" in code?

2009-11-27 Thread roland
http://developer.android.com/intl/fr/reference/android/view/ViewGroup.LayoutParams.html LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams ( LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); On Nov 27, 11:06 am, Mike wrote: > Hello, > > h

[android-developers] How to set layout_width="wrap_content" in code?

2009-11-27 Thread Mike
Hello, how can the xml attribute layout_width="wrap_content" be set in code? Don't know where this is buried in the docs... -- 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@googlegroup

[android-developers] Re: no title bar

2009-11-27 Thread Jags
thanks. actually i am in a typical situation where i need to hide title bar for a screen, and show for another screen [i mean xml layout] in the same activity. Is it possible programmatically doing it ? another thing is, when titlebar is sown, can i show the title text at the center ? regards On

Re: [android-developers] Re: Automatic permissions in my T-Mobile G1

2009-11-27 Thread Guillaume Perrot
Thanks for the answer, it make sense now ^^ 2009/11/27 Dianne Hackborn > > http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#DONUT > > On Thu, Nov 26, 2009 at 4:53 PM, Guillaume Perrot < > guillaume.p...@gmail.com> wrote: > >> READ_PHONE_STATE is not a new permission, is

[android-developers] Re: ImageView with zoom, or just use WebView somehow?

2009-11-27 Thread Stoyboy
I would also be really interested to know how to do this. Or how to show more then 1 image where its like the gallery view On Nov 16, 12:32 am, Mark Wyszomierski wrote: > Hi, > > I'd like to display a single image from the web. It'd be nice if it > could be zoomable and pan-able. I was thinking o

[android-developers] "Something wrong here" error message

2009-11-27 Thread Per Sandström
I have had a few reports coming in from Droid-users using my apps and getting this error message: 11-25 16:17:44.589 W/UsageStats( 1015): Something wrong here, didn't expect (package name) to be resumed Everytime I have got an error description for this, I have never been able to reproduce the er