Re: [android-developers] Re: On using themes?!

2010-05-11 Thread Dianne Hackborn
You need to define an attribute for your value: attr name=myColor format=color / Then make a custom theme that supplies a value for it: style name=MyTheme parent=android:Theme item name=com.my.package:myColor#ff808080/item /style And now you can reference that value from other XML: shape

[android-developers] Multiple Notifications - PendingNotifications with different data?

2010-05-11 Thread Nathan
Let's say I have a background service that performs several tasks. As it completes task A, it posts notification A with a certain intent and some extra data that indicates viewing result of A. As it completes task B, it posts notification B with a certain intent and some extra data that indicates

[android-developers] Re: WCF complex types with android

2010-05-11 Thread ko5tik
I developed small JSON datamarshaller suitable for android (really small, only 2 classes ): http://github.com/ko5tik/jsonserializer it is capable to read / write complex object trees. I use it on device to serialize my application data, and to transfer highscores back and forth to server (

[android-developers] Re: On activity (re)usage en creation

2010-05-11 Thread EnnaN
Any thoughts on how bad the current behaviour is? Not sure what you mean - but if you haven't touched anything else, the current behavior is the default behavior, which should suffice for most apps. My point was, you're basically doing the equivalent of browsing a site. But for each click

[android-developers] Re: How can I know if OpenGl has drawn something?

2010-05-11 Thread Robert Green
Hmm.. I'm sorry but this has reached the limit of what I know off- hand. I'd have to get into debugging your code to be able to help more. I have a feeling one of two things is wrong: 1) Your projection matrix is not matching what glOrthof is doing (fix by using glLoadMatrix there) 2)

[android-developers] Re: How to create uses-library

2010-05-11 Thread Vinay S
Hi Karteek, As Mr. Mark Murphy has suggested create a new project for your reusable set of code. Export the same as Jar and include where ever you need them. Regards, Vinay On May 11, 10:53 am, Dianne Hackborn hack...@android.com wrote: On Mon, May 10, 2010 at 10:29 PM, karteek

[android-developers] Changing the battery icon position

2010-05-11 Thread ankita.nhst
Hi everyone, I want to take my activity the entire screen of the device and I could do that by making appropriate changes in the android manifest file(Theme.NoTitleBar.Fullscreen). But, now I just want battery status icon on my screen alongwith other components of my activity. Is that possible??

Re: [android-developers] Multiple Notifications - PendingNotifications with different data?

2010-05-11 Thread skink
Nathan wrote: Let's say I have a background service that performs several tasks. As it completes task A, it posts notification A with a certain intent and some extra data that indicates viewing result of A. As it completes task B, it posts notification B with a certain intent and some

Re: [android-developers] Re: WCF complex types with android

2010-05-11 Thread Gyan
ReST+JSON works best In other case, use need to have the classes in the client side as a separate Jar with a separate java project meant for the service consumption -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

Re: [android-developers] Re: On using themes?!

2010-05-11 Thread Mariano Kamp
Hi Dianne. Thanks very much, almost there. I understand the procedure, it would do what I want, but I run into an exception: D/NewsRobDefaultExceptionHandler( 1839): Caused by: java.lang.UnsupportedOperationException: Can't convert to color: type=0x2 D/NewsRobDefaultExceptionHandler( 1839): at

[android-developers] Re: Namespaces and custom widgets

2010-05-11 Thread Edward Falk
Another example of someone trying to do this was in this thread: http://groups.google.com/group/android-developers/browse_thread/thread/d36983a8159f303b/ Everybody just says use getIdentifier(), but nobody says what arguments you might pass it in order to return a styleable. -- You received

[android-developers] WPA-EAP support in Android

2010-05-11 Thread guru
Hi All Does Android support Wifi WPA-EAP security mode?. Currently they are filtering secured and hidden networks. wifilayer.java /* * Ignore enterprise-secured, or hidden networks. * Hidden networks show up with empty SSID. */

[android-developers] Make the Video size play in full screen (stretch to fit width and height)

2010-05-11 Thread brian karlo gutierrez
Hello Everyone,     I have this question regarding on how to create a player in my application to play a video in fullscreen(stretch to fit width and height).     I have this in my code already and setting the layout width and height in the ui xml file to fill parent but still does not stretch

[android-developers] Service stops works after 30 minutes when Android is turned off (trickles every 30 minutes for 5 minutes)

2010-05-11 Thread spachner
Dear forum, I wrote a service which continuously reports data to a remote server via HTTP. As a service should do it keeps working even when the Android is turned off (by a short press on the power button) and is not powered externally. This works fine on a Motorola Milestone (Android 2.1) until

[android-developers] Re: Wired crash with ActivityUnitTestCase and dimens.xml

2010-05-11 Thread T-Droid
No comments? What I did not mentioned is that there is another file called styles.xml which combines the values together: resources style name=Theme parent=android:Theme item name=theHeight@dimen/my_height/item /style /resources I'm not really sure if it is a misunderstanding

[android-developers] Problem installing your own developed app

2010-05-11 Thread nep0x
Hi all! I m trying to understand the different ways you can install your app on your device. It's clear for me that we have to use the .apk file and the command adb install packagename. One of my question is which is the difference between an unsigned app and a signed one? Other doubt is related

[android-developers] Nexus one gps issue

2010-05-11 Thread Namrata
Hi, I am working app for nexus one which uses gps. I have placed turning on code of gps in onStart() of Activity and and turning off code in onStop(). As per logs On/Off works fine specially turning off. But then gps icon stays forever on notification bar. Is there any bug/ issue with Nexus One

[android-developers] Nexus one gps issue

2010-05-11 Thread Namrata
Hi, I am working app for nexus one which uses gps. I have placed turning on code of gps in onStart() of Activity and and turning off code in onStop(). As per logs On/Off works fine specially turning off. But then gps icon stays forever on notification bar. Is there any bug/ issue with Nexus One

[android-developers] ServiceConnectionLeaked Error

2010-05-11 Thread yangm
My app meet a ServiceConnectionLeaked Error: E ActivityThread: android.app.ServiceConnectionLeaked: Activity com.my has leaked ServiceConnection com.m...@463dc0a0 that was originally bound here My app are two part, UI and service, Like music playback, the service will always running, until

Re: [android-developers] Re: [Help] how to draw multiple lines in Edittext?

2010-05-11 Thread Vincent Tsao
On Mon, May 10, 2010 at 9:59 PM, social hub shubem...@gmail.com wrote: What exactly is your problem here . getting line count 18 when u filled textbox with 18 lines? not a problem but a tricky solution. y, in this solution , i fill 18 empty lines so getLinecount will return me 18 On Sat,

[android-developers] [Help] Activity pause timeout for HistoryRecord -- Any idea how does this happen ?

2010-05-11 Thread Vincent Tsao
i'm start a new Activity B from Activity A, and find launch Activiy B is very slow, cost over 3000 Milliseconds, and when i click back to Activity A, then i found this log below: *05-11 15:19:30.201: WARN/ActivityManager(79): Activity pause timeout for HistoryRecord{43aaedc8

[android-developers] Re: timeout for HistoryRecord

2010-05-11 Thread Vincent Tsao
hi, Anzi, any progress here? i have the same problem -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Sharing gps stuff between several activity

2010-05-11 Thread Federico Paolinelli
I found myself using the same code for accessing to gps / cell location stuff from a couple of activities of my application. What I was wondering now is, which is the best way to avoid code duplication? Should I use a superclass for the activities which implements that kind of stuff? Use an helper

[android-developers] getting R.String Value using different class

2010-05-11 Thread Mookie
Im not quite sure of what it is that im doing wrong, but im sure its a simple mistake. essentially im having a problem with the following String Hello; Hello = getString(R.string.Hello); R.String.Hello does have a value if i look at it in my expressions window but if i use the getString

[android-developers] Multi instance of app launch from status bar notification.

2010-05-11 Thread yangm
When My app started, show a notification. then pull down the status bar, click this notification, the app UI showed. But when I press back button, the my-app disappeard, and the other my-app show on top window, press back button again, get the home screen. It's seem like two my-app in window

[android-developers] someone please help me with these issues.

2010-05-11 Thread aishwarya shukla
1. I am using a Broadcast Receiver which acquires a static WakeLock, then immediately starts an activity which starts a media player instance inside its onCreate, at the last line of OnCreate i have released the static wakelock which i had acquired in the BroadCastReceiver. Everything seems to

Re: [android-developers] Re: How to disable home and other buttons so as to persist an app?

2010-05-11 Thread Ashok Jeevan
Hi, Thanks Mr Romain Guy, for the information. @Mike dg : The requirement is that one app has to be loaded at startup which displays a browser with a specified URL. And one of the requirement is that whatever buttons the user presses or clicks, the browser shouldn't exit. The browser with the

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-05-11 Thread Mark Gjøl
Fed-ex came, and delivered. For some reason they had been trying to deliver the phone to 21, 5B instead of 215B on the same road, resulting in a two week delay I finally got it, though, and am filled with joy! Thank you Google overlords! :D On May 9, 1:15 am, TreKing treking...@gmail.com wrote:

Re: [android-developers] Problem installing your own developed app

2010-05-11 Thread Jim Blackler
A signed and an unsigned version of your app are seen as different applications by the device. You have to uninstall one before you can install the other. Jim On 11 May 2010 09:18, nep0x nespap...@yahoo.es wrote: Hi all! I m trying to understand the different ways you can install your app

[android-developers] NullPointer Exception When Clicking on Map with OverlayItems

2010-05-11 Thread Nithin
Hi, I am displaying google map and over that some Overlay items are there. In onTap(), I am displaying dialog. Its showing map and the overlayItem on top of the map. But if I click anywhere in Map, its showing NullPointer exception. Any Idea why this occurs Nithin -- You received this message

[android-developers] Multi Touch - Does anyone know how it works

2010-05-11 Thread momojo
Ok So I've gone through several tutorials on the web. I understand how the pointerCount works , I can get two points, etc, etc. My problem is I am trying to implement a game control, i.e. dpad and some buttons. The buttons are actually TextView objects with images. I Implement OnTouchListener

[android-developers] Re: Multi Touch - Does anyone know how it works

2010-05-11 Thread niko20
No you cant just add onTouch to each button. The way multitouch is designed it will only work inside one view. You will need to draw everything yourself - you cant use multitouch over multiple view objects. It only works inside one View. Create a big view covering the screen, draw the contents

Re: [android-developers] Multiple Notifications - PendingNotifications with different data?

2010-05-11 Thread Mark Murphy
Nathan wrote: Let's say I have a background service that performs several tasks. As it completes task A, it posts notification A with a certain intent and some extra data that indicates viewing result of A. As it completes task B, it posts notification B with a certain intent and some extra

[android-developers] How to detect in my application that Camera Settings has been changed?

2010-05-11 Thread AJ
Hi group, I am using camera in my application. It works well until following scenario:- 1- I start my application which in turn start the camera. 2- I press the home key button, so my Application is running in background now 3- Now I start the camera and change the settings of the camera

[android-developers] Re: PNG quality in WebView based app

2010-05-11 Thread Jeff
Wow! That must have driven you nuts trying to figure that one out. What provider were you using? Did you write a simple servlet or something that would serve the file as application/octet-stream? On May 10, 4:52 pm, Yahel kaye...@gmail.com wrote: I ran into the same problem a few monthes back.

[android-developers] Re: NullPointer Exception When Clicking on Map with OverlayItems

2010-05-11 Thread Pratap
Can you post the logcat? On May 11, 3:59 pm, Nithin nithin.war...@gmail.com wrote: Hi, I am displaying google map and over that some Overlay items are there. In onTap(), I am displaying dialog. Its showing map and the overlayItem on top of the map. But if I click anywhere in Map, its

[android-developers] MediaPlayer pause on loop

2010-05-11 Thread Jason
Hi all, I am having an issue with a looping audio file using MediaPlayer. I am developing a realtime game and have a 100K MP3 file I want to loop as background music. The size of the file means I can't pre-load into memory (using SoundPool) so I am using the MediaPlayer to stream the data. All

[android-developers] Apply Alphabetical Filters on listViewApply Alphabetical Filters on listView

2010-05-11 Thread mudit
Hi.. i need to create a list view that display same functionality as Contact App. I need to have a scroller through which i can traverse the list alphabetically. To achieve this i am following an example from API demos com.example.android.apis.view.List1.java. It is using a textfilter. When i

[android-developers] Re: NullPointer Exception When Clicking on Map with OverlayItems

2010-05-11 Thread Nithin
Hi, What is shown in logcat is, 05-11 17:41:04.591: INFO/System.out(1183): # Ending designMap() : 05-11 17:59:27.070: ERROR/AndroidRuntime(1338): Uncaught handler: thread main exiting due to uncaught exception 05-11 17:59:27.080: ERROR/AndroidRuntime(1338):

[android-developers] Debugg problem source not found

2010-05-11 Thread Mohammad Siddiqui
Hi everyone when i am debugging the android application either on device or emulator.for some classes i got the error sorce not found eg. ActivityThread.performLaunchActivity(ActivityThread $ActivityRecord, Intent) line: 2418 ViewRoot.performTraversals() line: 643 i have already copied the

[android-developers] Re: Application wake up

2010-05-11 Thread SAM
Hi, Has anyone found any solution for Port directed SMS OR App directed SMS in android? Although the Inbox SMS hook is working but I am still unable to delete this SMS from Inbox. I dont want user to see this SMS notification. Thanks Sam On Apr 16, 5:04 pm, SAM gulati...@gmail.com wrote:

[android-developers] ContactsContract and target version

2010-05-11 Thread Pinheiro
Hi! I'm creating an app that needs to create a contact. My 1st attempt was: ContentValues values = new ContentValues(); values.put(Contacts.People.NAME, Name); values.put(People.Phones.TYPE, People.Phones.TYPE_MOBILE); values.put(People.Phones.NUMBER, +1); Uri myUri =

Re: [android-developers] Re: Application wake up

2010-05-11 Thread Timo Prill
Send binary SMS to the specific port on the phone, they won't be shown in the inbox.. (except the HTC Tattoo sometimes shows binary SMS in the inbox.. seems to be a device-specific bug) cheers Am 11.05.2010 15:36, schrieb SAM: Hi, Has anyone found any solution for Port directed SMS OR App

Re: [android-developers] someone please help me with these issues.

2010-05-11 Thread Satya Komatineni
Aishwarya, You may want to break up the issues individually and post them. Optionally, you may also want to post sample code for each issue on some blog and put a pointer to it for someone to take a look at the code quickly. On Tue, May 11, 2010 at 5:43 AM, aishwarya shukla

[android-developers] Re: Nexus one gps issue

2010-05-11 Thread Namrata
Please anybody knows about it?? On May 11, 1:42 pm, Namrata puranik.namr...@gmail.com wrote: Hi, I am working app for nexus one which uses gps. I have placed turning on code of gps in onStart() of Activity and and turning off code in onStop(). As per logs On/Off works fine specially turning

[android-developers] Need your expertise on Tab control

2010-05-11 Thread dillipk
Hello, My app's main screen consists of 5 tabs. First Second Tabs have integrated the same ListActivity , because both displays similar data(List of - images, text etc..). Each time I click on those 2 tabs, it should refresh the image list dynamically based on some condition. Now my

Re: [android-developers] MapView Marker and Parameter

2010-05-11 Thread TreKing
On Mon, May 10, 2010 at 11:39 PM, Ning zeeg...@gmail.com wrote: Is there API to draw the blue flashing circle at arbitrary location same as the one provided by MyLocationOverlay in Google Map API? Yes, the Canvas object passed to your draw function. And is it possible to draw a parameter

[android-developers] Multiple Notifications - PendingIntents with different data?

2010-05-11 Thread Nathan
Let's say I have a background service that performs several tasks. As it completes task A, it posts notification A with a certain intent and some extra data that indicates viewing result of A. As it completes task B, it posts notification B with a certain intent and some extra data that indicates

[android-developers] Re: MapView Marker and Parameter

2010-05-11 Thread Ning
Thank you, TreKing. That helps. On May 11, 10:30 am, TreKing treking...@gmail.com wrote: On Mon, May 10, 2010 at 11:39 PM, Ning zeeg...@gmail.com wrote: Is there API to draw the blue flashing circle at arbitrary location same as the one provided by MyLocationOverlay in Google Map API? Yes,

[android-developers] Re: How to get selected items in a ListView (multi selection check boxes)? - URGENT PLZ

2010-05-11 Thread dillipk
Anyone please... On May 10, 6:34 pm, dillipk codersnet2...@gmail.com wrote: Hello,  How do I get the selected items in a ListView which contains a multi selelected check boxes.? The following code doesn't work correctly... getContacts() is being called in a Button click(). private String

[android-developers] APKTool - decoding our apps

2010-05-11 Thread André
Hello, I stumbled across this program on the web: http://code.google.com/p/android-apktool/ And realized that it works pretty well. I can decode the programs I've made from the apk files. I can't really say I like that. Does anyone know of a way create the apk file without having programs like

[android-developers] which is better to use to avoid mem leaks== getbasecontext or getApplicationcontext

2010-05-11 Thread social hub
public Contexthttp://developer.android.com/reference/android/content/Context.html getApplicationContext () Since: API Level 1http://developer.android.com/guide/appendix/api-levels.html#level1 Return the context of the single, global Application object of the current process. public

[android-developers] Re: APKTool - decoding our apps

2010-05-11 Thread Nathan
I don't know, but I find the summary of it interesting. . It is a tool for reengineering 3rd party, closed, binary Android apps. It is NOT intended for piracy and other non-legal uses. It could be used for localizing, adding some features or support for custom platforms and other GOOD purposes.

Re: [android-developers] Re: Multi Touch - Does anyone know how it works

2010-05-11 Thread Kevin Duffey
Do you guys know if this is why the bug that many game developers have come across occurs.. where trying to simulate two joysticks on the screen wont work due to wrong touch info being consumed? I forget the details, but I think it had to do with if you touch one point, and while doing so, touch

[android-developers] Re: Nexus one gps issue

2010-05-11 Thread Streets Of Boston
You probably do NOT want to put the starting and stopping of the location (GPS) providers in the onStart() and onStop(). The onStop() may not be called when your activity goes to the background: - It is not called because your activity remains active in the background - It is not called because

[android-developers] Re: APKTool - decoding our apps

2010-05-11 Thread André
Interesting that it's hosted on google as well! On May 11, 6:00 pm, Nathan critter...@crittermap.com wrote: I don't know, but I find the summary of it interesting. . It is a tool for reengineering 3rd party, closed, binary Android apps. It is NOT intended for piracy and other non-legal

[android-developers] Re: APKTool - decoding our apps

2010-05-11 Thread pacoder
Has anyone tried using an obfuscator on their app before apk'ing it? Something like http://proguard.sourceforge.net/ I'm going to give it a try and then try to reverse engineer it to see if it helps. Don't like the idea of people reverse engineering our code either... On May 11, 12:00 pm,

Re: [android-developers] Re: How to disable home and other buttons so as to persist an app?

2010-05-11 Thread Kevin Duffey
So you're trying to be an iPhone? :D Yah, as they said, there is no way to make that work. Romain, one question on the Home key.. is there any way to detect it so you can close your app when they press the Home key? I would assume the standard lifecycle events still fire, so you can at least

[android-developers] Re: How to disable home and other buttons so as to persist an app?

2010-05-11 Thread Streets Of Boston
That won't work. What you want to do is not possible unless you create your own ActivityManager allowing just one activity: your activity. I guess you have to create your own AOSP branch for this to happen. All apps play by the same rules. And what if the user gets a phone call? What if a SMS

[android-developers] Re: How to set and get thread priority from Java and native layers

2010-05-11 Thread Streets Of Boston
It could be that the thread's ThreadGroup has a maximum priority of 5. A thread's priority cannot be higher than it's thread-group max- priority. It could be that some code you didn't code, but call instead, that sets the thread priority to 5. On May 10, 11:37 pm, Krishnakumar Ramachandran

Re: [android-developers] which is better to use to avoid mem leaks== getbasecontext or getApplicationcontext

2010-05-11 Thread Mark Murphy
social hub wrote: public Context http://developer.android.com/reference/android/content/Context.html getApplicationContext () Since: API Level 1 http://developer.android.com/guide/appendix/api-levels.html#level1 Return the context of the single, global

[android-developers] Re: [android-beginners] ubuntu 10.04 emulator not launching

2010-05-11 Thread riazrahaman
Yes I did try the verbose option. I find a segmentation fault. It got fixed now after some updates to Ubuntu 10.04. Not sure what fixed it but after some updates the emulator has started to work again now. Regards, Riaz Ur Rahaman On Thu, May 6, 2010 at 6:13 AM, David Turner di...@android.com

Re: [android-developers] Re: On activity (re)usage en creation

2010-05-11 Thread TreKing
On Tue, May 11, 2010 at 1:31 AM, EnnaN nhui...@gmail.com wrote: It is in this case easiest to make a separate activity for each type of page, but this means that while 'browsing' you're making a new activity for each click and that feels a bit redundant, expensive or.. well, something like

[android-developers] Re: clock of emulator 1.6 runs 100% slower than real time clock!!!

2010-05-11 Thread HeHe
is this clock slowness of emulator 1.6 a direct cause of the freaky behavior of AudioRecorder class that quite some developers found with SDK 1.6??? that is, the slowness of system clock causes AudioRecorder to sample audio 100% slowlier than the speed it should?? if yes, what action should i

[android-developers] PLEASE HELP!!! may i develop app for Android 1.6 using SDK 2.x?

2010-05-11 Thread HeHe
the slowness of system clock with SDK 1.6 makes debugging of my app that heavily depends on correct clock timing impossible. hence, i would like to know if i can develop app for Android 1.5/1.6 using more recently released SDK (eg. 2.0)? if yes, how? thanks in advancet for any advice!! -- You

[android-developers] Re: PLEASE HELP!!! may i develop app for Android 1.6 using SDK 2.x?

2010-05-11 Thread Mark Wyszomierski
If I understand your question correctly, then yes. In your manifest, just set the following: uses-sdk android:minSdkVersion=3 android:targetSdkVersion=6 / the app will still work on 1.5+. Just make sure you don't use any SDK methods that don't exist on earlier platforms without

[android-developers] Re: PLEASE HELP!!! may i develop app for Android 1.6 using SDK 2.x?

2010-05-11 Thread Nathan
On May 11, 10:32 am, Mark Wyszomierski mar...@gmail.com wrote: the app will still work on 1.5+. Just make sure you don't use any SDK methods that don't exist on earlier platforms without checking the user's local sdk version. A further tip: as one of the ways to check you aren't using API

[android-developers] Re: PLEASE HELP!!! may i develop app for Android 1.6 using SDK 2.x?

2010-05-11 Thread HeHe
hi Nathan and Mark, thanks a lot to both of you!! one more question: in Eclipse, how can i set project properties to 1.5? could you elaborate the menu options or point me to the documentation page that indicates how-to. thanks again!! On May 11, 10:50 am, Nathan critter...@crittermap.com wrote:

[android-developers] Re: APKTool - decoding our apps

2010-05-11 Thread André
That looks good. But I have no idea how to use it? I've been trying to find a tutorial for it. Have you found that? -André On May 11, 6:09 pm, pacoder sove...@gmail.com wrote: Has anyone tried using an obfuscator on their app before apk'ing it? Something likehttp://proguard.sourceforge.net/

[android-developers] Re: startActivityForResult returns result BEFORE activity starts.

2010-05-11 Thread Nathan
It does say that it won't work if the activity is in the singleTask mode. I haven't tried to launch the activity in singleTask mode, and the API examples don't seem to have done anything special to make it *not* be singleTask mode. android:launchMode=standard is in the manifest. But I'll try

[android-developers] Re: Multiple Notifications - PendingIntents with different data?

2010-05-11 Thread Nathan
I've done it successfully by using setData(Uri) and making sure Intent.FILL_IN_DATA is set. I'm not sure why it won't see the intent as unique when it differs by Extra Data only, but at least this works. Nathan -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: PLEASE HELP!!! may i develop app for Android 1.6 using SDK 2.x?

2010-05-11 Thread HeHe
thanks, Mark. i think i need to upgrade SDK asap, or i will become crazy! emulator 1.6 is far more terrible than 1.5. beside the slow clock issue, it tends to lose connection with adb, so i have been having to either kill emulator or kill adb frequently to debug my app. enough. i cannot stand

Re: [android-developers] Re: Multiple Notifications - PendingIntents with different data?

2010-05-11 Thread skink
Nathan wrote: I've done it successfully by using setData(Uri) and making sure Intent.FILL_IN_DATA is set. I'm not sure why it won't see the intent as unique when it differs by Extra Data only, but at least this works. Nathan it's enough to use unique requestCode when calling getActivity

[android-developers] Controlling the rendering order of child views

2010-05-11 Thread Divkis
Hi, I have an application wherein I extend the ViewGroup class for laying out the child views as per my requirements. Some of the child views are instances of ImageView class and have partly transparent background. Given the alpha blending is order dependent, I would like to control the

Re: [android-developers] Controlling the rendering order of child views

2010-05-11 Thread Romain Guy
Hi, You can do it by calling setChildrenDrawingOrderEnabled(true) and then implementing getChildDrawingOrder(int, int). On Tue, May 11, 2010 at 11:37 AM, Divkis divick.kish...@gmail.com wrote: Hi,     I have an application wherein I extend the ViewGroup class for laying out the child views as

Re: [android-developers] Changing the battery icon position

2010-05-11 Thread TreKing
On Tue, May 11, 2010 at 1:59 AM, ankita.nhst ankita.kash...@nechclst.inwrote: But, now I just want battery status icon on my screen alongwith other components of my activity. Is that possible?? Nope. If you hide the status bar, the battery icon goes with it. If you want to show a battery

Re: [android-developers] Problem installing your own developed app

2010-05-11 Thread TreKing
On Tue, May 11, 2010 at 3:18 AM, nep0x nespap...@yahoo.es wrote: 2.- Which the difference between debug and run an app if the result is the same: install it on your device Debug allows you to step through your program in the debugger and stop at break points. Run just runs the app. Failure

[android-developers] Power-loss semantics of SQlite on Android

2010-05-11 Thread Tomei Ningen
Hello, I have an app that stores a database on SD card. If I don't use beginTransaction/endTransaction, does Android have any guarantee about the the contents of a database when power is lost? For example, if I have code like this: //db.beginTransaction(); //try {

[android-developers] Activity based Tabs

2010-05-11 Thread pawan nimje
Hi All, I have Activity based tabs...i.e i have used TabActivity,tabhost etc Now when we switch between the tabs, for the 1st time the oncreate is called and then after the onResume methode is called I want to know what event/function, of the activity, is called when i click on the the tab

[android-developers] drawable-hdpi not appearing in eclipse emulator

2010-05-11 Thread Cameron.M.Johnson
Hi there, So I have this game running on Android 1.6, and I put the different density images in their respective folders res/drawable-hdpi/image.png res/drawable-mdpi/image.png res/drawable-ldpi/image.png I made each image a different color so I can tell if it is loading the right image. When I

Re: [android-developers] Sharing gps stuff between several activity

2010-05-11 Thread TreKing
On Tue, May 11, 2010 at 4:06 AM, Federico Paolinelli fedep...@gmail.comwrote: I found myself using the same code for accessing to gps / cell location stuff from a couple of activities of my application. Yup, it happens. What I was wondering now is, which is the best way to avoid code

[android-developers] Can not create service interface

2010-05-11 Thread Anders
Hi, For some reason I can not create an AIDL service interface, no matter how simple it is. I am using the latest version of eclipse. This is what I get, no matter what service functions I add to the aidl file: The method attachInterface(IInterface, String) in the type Binder is not applicable

[android-developers] shouldOverrideUrlLoading not getting called for file:///android_asset links

2010-05-11 Thread Jeff
I am using WebView to display web content in my app. Since I want to keep all content in my webview and not launch the browser, I override shouldOverrideUrlLoading and call loadUrl(). One of the pages has an image that is very large, so I want to put it in the assets directory. When the user

[android-developers] Emulator (AVD) voice recording

2010-05-11 Thread Andya
Hello guys, Does anybody have any idea about how to record voice on the emulator from development machine? Please help me out!!! I tried different ways but couldn't do it. Thank you in advance!!! -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Sharing gps stuff between several activity

2010-05-11 Thread Federico Paolinelli
Create a helper class, sometimes static if it makes sense, that does the work you find yourself copying and pasting. For GPS, for example, I have a class that takes care of starting and stopping the GPS funtionality, keeps track of the current location, can return it in various forms

[android-developers] Re: Spurious calls to onPause?

2010-05-11 Thread asher
For whatever it's worth, this continues to happen. It seems to happen faster and more frequently if I'm running in the debugger, but it happens fairly often under all circumstances. I've had to move all my onPause code to onStop, which is not optimal but it's the only thing that works. I'm

[android-developers] Re: APKTool - decoding our apps

2010-05-11 Thread a1
Proguard make it a bit harder to RE, but it'll still possible (and the APKtool gives you possibility to debug which is a really powerful RE tool), moreover you cannot use all of proguard optimization because you will not be able to convert classes to dex, in fact you can only use shrink and

[android-developers] How to fix hit area after scaling

2010-05-11 Thread Jonathan
I am scaling the canvas of a linear layout on draw, but this throws off all the hit areas of my views inside of this layout. They respond as if there was no scaling taking place. What do I have to do to get themselves to re-register their hit areas? Thanks Jonathan -- You received this message

Re: [android-developers] getting R.String Value using different class

2010-05-11 Thread TreKing
On Tue, May 11, 2010 at 4:07 AM, Mookie charles.heath.ber...@gmail.comwrote: R.String.Hello does have a value if i look at it in my expressions window but if i use the getString Function, i end up with An exception occurred: java.lang.NullPointerException What's the full stack trace?

[android-developers] Re: Multiple Notifications - PendingIntents with different data?

2010-05-11 Thread Nathan
On May 11, 11:33 am, skink psk...@gmail.com wrote: Nathan wrote: I've done it successfully by using setData(Uri) and making sure Intent.FILL_IN_DATA is set. I'm not sure why it won't see the intent as unique when it differs by Extra Data only, but at least this works. Nathan it's

Re: [android-developers] Power-loss semantics of SQlite on Android

2010-05-11 Thread Dianne Hackborn
Android uses SQLite, so your questions are really about how SQLite behaves. On their web site, a relevant part might be: http://www.sqlite.org/faq.html#q19 On Tue, May 11, 2010 at 11:45 AM, Tomei Ningen tomei.nin...@yahoo.comwrote: Hello, I have an app that stores a database on SD card.

Re: [android-developers] drawable-hdpi not appearing in eclipse emulator

2010-05-11 Thread Dianne Hackborn
You told it you don't support densities with android:anyDensity=false. Thus it will run your app as if it is the original density, mdpi. In some cases the framework may be able to actually load the correct density resource and seamlessly use it while you still think you are running in mdpi...

Re: [android-developers] Multi instance of app launch from status bar notification.

2010-05-11 Thread TreKing
On Tue, May 11, 2010 at 4:18 AM, yangm yangm...@gmail.com wrote: It's seem like two my-app in window stack. *but my expect is one app instance.* Launching from home screen is different than launching from the status bar - different intents thus different instances of the activity. Look at and

[android-developers] Re: drawable-hdpi not appearing in eclipse emulator

2010-05-11 Thread Cameron.M.Johnson
This is from the Android Dev Guide http://developer.android.com/guide/ practices/screens_support.html Pre-scaling of resources (such as image assets) For example, if the current screen's density is high, the platform loads resources that are tagged with the qualifier hdpi and uses them without

[android-developers] Downloading Google Docs to Device

2010-05-11 Thread jeremynealbrown
Hello Developers, I have been working with the gdata-client-library for the past few days and I am officially stumped on how to go about downloading .csv and .xls files. I've posted a question here @ S.O. http://stackoverflow.com/questions/2813470/downloading-spreadsheets-from-google-docs

[android-developers] Example to increment a var on a timer and print it out?

2010-05-11 Thread BobG
Seems like I need something like onTickListener, then I increment my variable and setText and invalidate. If you have a view, you can set onClickListener then performClick. Would that work? Thanks... I'm confused -- You received this message because you are subscribed to the Google Groups

[android-developers] External allocation too large for this process OutOfMemoryException

2010-05-11 Thread Eric F
OK, so I've done some searching, seen others hit this problem but never really saw a solid resolution. I have a situation where I am loading large-ish images (~120KB jpg) from a remote webserver and displaying them to users in a gallery view. Now these images take a bit of time to download, so I

[android-developers] Re: Accelerometer not working when screen turns off

2010-05-11 Thread Jordan Frank
Holy crap, this again?!? I just discovered this because we ordered four Nexus Ones to do some demos of our research on the Discovery Channel. All of a sudden what was working perfectly on the G1 stopped working altogether on the Nexus One. If you read the archives of this list, you'll see that

[android-developers] Upgrading 2009 I/O device from Donut (1.6) to Eclair (2.0/2.1)?

2010-05-11 Thread tatlar
I have periodically attempted to search for information about this, but never really got to the bottom of it. Are there any instructions online for upgrading the 2009 I/O device from Donut (1.6) to Eclair (2.0/2.1)? I successfully updated from Cupcake (1.5) to Donut (1.6), but every time I have

Re: [android-developers] Debugg problem source not found

2010-05-11 Thread TreKing
On Tue, May 11, 2010 at 8:33 AM, Mohammad Siddiqui siddiqui.m...@gmail.comwrote: what would be the problem? Um ... you don't have the source? - TreKing - Chicago transit tracking app for

  1   2   >