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

2010-05-11 Thread String
In fairness, Cameron, the docs don't actually say that android:anyDensity="false" causes resources to be pulled from mdpi. The documentation for that attribute is buried in the middle of the "Support for Multiple Screens" page, and mostly talks about pixel density math. The confusion is compounded

[android-developers] GLSurfaceView transparent bg within a ViewGroup

2010-05-11 Thread George
I am able to get a GLSurfaceView to have a transparent background with mGLSurfaceView.setEGLConfigChooser(8, 8, 8, 8, 16, 0); mGLSurfaceView.getHolder().setFormat(PixelFormat.TRANSLUCENT); when I set the Activity's window background to transparent and the GLSurfaceView is the cont

[android-developers] Sqllite database join query

2010-05-11 Thread yves...@gmail.com
Hi, I already use getContentResolver().query(uri, null, null, null, null) to do a query. What if I have two databases, and I want to do one query on two databases and get one data set back? Thanks. -- You received this message because you are subscribed to the Google Groups "Android Developers"

[android-developers] How do I enable the phone's key guard programmatically?

2010-05-11 Thread Walles
Hi! How do I enable the phone's key guard programmatically? The use case is that I want to make an app that enables the key guard when I use my Bluetooth headset to answer a call. Currently with my HTC Hero there's no way for me to physically enable the key guard during a call since the phone's

[android-developers] Re: Widget like MapView

2010-05-11 Thread Ajay
Another related question: Is there a widget that can scroll diagonally? The only way I know to make a view scroll both horizontally and vertically is to have nested views like have a ScrollView inside a HorizontalScrollView. But, in this way I cannot scroll diagonally and it always has to move in a

[android-developers] Fwd: 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 w

Re: [android-developers] Re: Delete MMS messages

2010-05-11 Thread Mani Android
Hi Reju Try this Uri msgUri = ContentUris.withAppendedId(Mms.Inbox.Content_Uri,"1"); SqliteWrapper.delete(this, getContentResolver(), msgUri, null, null); (or) getContentResolver().delete(msguri, null, null); Regards Manikandan.D On Wed, Mar 3, 2010 at 6:19 AM, Reju wrote: > Help Pl

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

2010-05-11 Thread Maps.Huge.Info (Maps API Guru)
The dock app for the Droid does a similar thing. When you press the home key (while in the dock) the dock app is displayed. In order to get to the device home screen, the back key has to be pressed. -John Coryat -- You received this message because you are subscribed to the Google Groups "Androi

[android-developers] Widget like MapView

2010-05-11 Thread Ajay
Hi, I read some tutorial about loading a MapView in your own activity. The Google maps is a beautiful application that scrolls in any direction the user moves around. I want to develop a similar application, that could scroll in any direction, but the difference being it has to display it's own

[android-developers] how to get CPU speed

2010-05-11 Thread sleith
Hi, is there anyway to know CPU speed running on device? 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 unsubscribe from this group, send email to androi

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

2010-05-11 Thread Divkis
Hi, > You can do it by calling setChildrenDrawingOrderEnabled(true) and then > implementing getChildDrawingOrder(int, int). That solves my problem. The only glitch was that this method is available from API-7 onwards only. Thanks a ton, Regards, DivKis -- You received this message because you

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

2010-05-11 Thread Nathan
On May 11, 4:51 am, Mark Murphy wrote: > > PendingIntent.getActivity() will return a unique PendingIntent object > *only* if the Intent you supply to that call is materially different > than those used by other outstanding PendingIntents. By "materially > different", I mean where Intent#filterEq

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

2010-05-11 Thread Dianne Hackborn
Again, if you want to support multiple densities DON'T SAY YOU DON'T SUPPORT THEM. Seriously! :) The first thing to do is get rid of android:anyDensity="false" so the system doesn't try to make your app think it is running in mdpi. If you still have problems after that, then we can talk about th

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

2010-05-11 Thread brucko
Quick question guys. I have no real knowledge in this but am quite interested. Assuming that the devices belong to an enterprise, can you just replace the Home application with your application? Like... http://developer.android.com/resources/samples/Home/index.html That way when the home button

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

2010-05-11 Thread Maps.Huge.Info (Maps API Guru)
or... the surest way to prevent anyone from copying your code is to write such a crappy app that nobody will want it. In the JavaScript world, where I usually live, code piracy is a way of life. Just accept it as a compliment and move on. -John Coryat -- You received this message because you ar

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

2010-05-11 Thread brucko
Hi Mohammad, I suspect you are using Eclipse and whilst stepping through the code you are getting "source not found" whilst calling methods that you have not written yourself. There is no bug. You probably don't have the source code files for Android on your system. This is the default and is not

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

2010-05-11 Thread yangm
Thanks, resolved as your solution. (singleTask) Ming. 2010/5/12 TreKing > On Tue, May 11, 2010 at 4:18 AM, yangm 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 > - d

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

2010-05-11 Thread Greg Donald
On Tue, May 11, 2010 at 1:03 PM, André wrote: > 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? Did you guys notice anything about ProGuard actually supporting encryption? Nope. It just says "obfuscator". http://proguard.sou

Re: [android-developers] GPS beacon icon does not go away after LocationManager.removeUpdates

2010-05-11 Thread Mark Murphy
MB wrote: > I would really appreciate any ideas regarding the following. Not > disabling the GPS would sap all the battery. > > The GPS beacon icon does not go away even though I invoke > LocationManager.removeUpdates in onDestroy. This consistently > reproduces in the emulator. That's an emulato

[android-developers] GPS beacon icon does not go away after LocationManager.removeUpdates

2010-05-11 Thread MB
Hi, I would really appreciate any ideas regarding the following. Not disabling the GPS would sap all the battery. The GPS beacon icon does not go away even though I invoke LocationManager.removeUpdates in onDestroy. This consistently reproduces in the emulator. I have verified in the debugger th

[android-developers] RadioButton setChecked not working on configuration change

2010-05-11 Thread abhi
Hello, I am trying to set a RadioButton as checked/not checked through code. It is working the first time I set it, but the second time, the code does not set the button. Here is the relevant part of my code. I have commented on the problematic part. private boolean val; @Override protected

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

2010-05-11 Thread Jonathan
I'm hoping we don't start debating the usefulness of this issue here. It has been debated quite enough in other threads and on other forums. All I would like at this point is some official response from someone who knows why the behavior is what it is. If it is firmware and it is controlled by the

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

2010-05-11 Thread mike
On 05/11/2010 03:56 PM, Kelly wrote: I hear the word 'firmware' being used, which is closely monitored and work on by the manufacturer (HTC, Motorola, Sony Ericsson). I can unserstand why google would have nothing to say, since this is likely 100% controlled by the phone manufacturer who wants to

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

2010-05-11 Thread Kelly
I hear the word 'firmware' being used, which is closely monitored and work on by the manufacturer (HTC, Motorola, Sony Ericsson). I can unserstand why google would have nothing to say, since this is likely 100% controlled by the phone manufacturer who wants to extend battery life by turning off per

RE : Re: [android-developers] starting an application with Android 1.5

2010-05-11 Thread Thierry Legras
Hi Mark, Yes sorry, my mail was not clear but you got it. I was really sure this was available from 1.6. It seems I need to have a rest! I will try that tomorrow. Thanks you both for the lightning fast help :) Thierry Le 12 mai 2010, 12:32 AM, "Mark Murphy" a écrit : Thierry Legras wrote: > How

[android-developers] Re: SocketTimeoutException: Read Timed Out Occurs Only via Mobile

2010-05-11 Thread Jeffrey
I've been experiencing something similar using HttpClient (also using URLConnection): java.net.SocketTimeoutException: The operation timed out The quick fix seems to be retrying the connection, but I'd like to think there's a better way of handling it. On May 4, 1:26 am, Paul Tongyoo wrote: > H

Re: [android-developers] starting an application with Android 1.5

2010-05-11 Thread Mark Murphy
Thierry Legras wrote: > How can i start an application just knowing the package name, not the > classname? There is no concept in Android of "start an application". There is "start an activity", even "start an activity that appears in the Launcher". > Ok, there is Intent.setComponent solution wou

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

2010-05-11 Thread Maps.Huge.Info (Maps API Guru)
If you're attending IO 2010, you should have (or will receive) a new device. US residents receive the Droid (by mail) and non-US residents receive the N1 upon registration. -John Coryat -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To po

[android-developers] starting an application with Android 1.5

2010-05-11 Thread Thierry Legras
Hi, How can i start an application just knowing the package name, not the classname? Ok, there is Intent.setComponent solution would be what i need ... if it was compatible with 1.5 :( I guess i have to play with getPackageManager() but how can i use it? Thanks for any help, -- Thierry. -- Yo

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

2010-05-11 Thread TreKing
On Tue, May 11, 2010 at 3:59 PM, BobG wrote: > Would that work? Why don't you try and see? - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobile

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

2010-05-11 Thread TreKing
On Mon, May 10, 2010 at 5:34 PM, dillipk wrote: > The following code doesn't work correctly... What does "doesn't work correctly..." mean? - TreKing - Chicago transit tracking app for Android-powere

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

2010-05-11 Thread TreKing
On Tue, May 11, 2010 at 8:33 AM, Mohammad Siddiqui wrote: > what would be the problem? Um ... you don't have the source? - TreKing - Chicago transit tracking app for Android-powered devices http://si

[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 tri

[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 I'v

[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 w

[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 "An

[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 Thanks

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

2010-05-11 Thread Cameron.M.Johnson
This is from the Android Dev Guide 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 witho

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 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 play around with

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... b

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 wrote: > Hello, > > I have an app that stores a database on SD card. > > If I don't use begi

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

2010-05-11 Thread Nathan
On May 11, 11:33 am, skink 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 en

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 wrote: > 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] 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

[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 agressi

[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 running

[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 (coord

[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] 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 clic

[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 f

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 wrote: > 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 duplication? > Do

[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

[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 w

[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 {

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

2010-05-11 Thread TreKing
On Tue, May 11, 2010 at 3:18 AM, nep0x 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 [INSTALL_PARSE

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

2010-05-11 Thread TreKing
On Tue, May 11, 2010 at 1:59 AM, ankita.nhst wrote: > 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 status icon along with you

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 wrote: > Hi, >     I have an application wherein I extend the ViewGroup class for > laying out the child views as per my requirements.

[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 render

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 ge

[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 it

[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 "Androi

[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 ha

[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 wrote: > Has anyone tried using an obfuscator on their app before apk'ing it? > Something likehttp://proguard.sourceforge.net/ > > I'm going to g

[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 wrote: > On May 11, 10:32 am, Ma

[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 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 that won't w

[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: 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. On May 11, 9:53 am, HeHe wrote: > t

[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 r

[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

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 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 that? I was wond

[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 wrote: > can you

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 > > getApplicationContext () > > Since: API Level 1 > > > Return the context of the single

[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 wrote

[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 com

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 pause

[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, Nath

[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 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 uses. It could be > u

[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

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 an

[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

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

2010-05-11 Thread social hub
public Context getApplicationContext () Since: API Level 1 Return the context of the single, global Application object of the current process. public Cont

[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 t

[android-developers] Bubbling Event between Controls

2010-05-11 Thread Mark Hansen
I have a situation where I have a Gallery control, within the control I wish to try and detect when a user flings up or down on the images within the Gallery. I've had no problem getting this to work with a GestureDetector, but since my ImageView is now absorbing the onTouch event, the Gallery con

[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 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 getContacts(){ > >  

[android-developers] Re: MapView Marker and Parameter

2010-05-11 Thread Ning
Thank you, TreKing. That helps. On May 11, 10:30 am, TreKing wrote: > On Mon, May 10, 2010 at 11:39 PM, Ning 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 yo

[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 v

Re: [android-developers] MapView Marker and Parameter

2010-05-11 Thread TreKing
On Mon, May 10, 2010 at 11:39 PM, Ning 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 around the dot

[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 questio

[android-developers] Re: Nexus one gps issue

2010-05-11 Thread Namrata
Please anybody knows about it?? On May 11, 1:42 pm, Namrata 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 off. But > then gps i

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 wrote: > 1. I am us

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 d

[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 = getContentResolver().

[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 wrote: > Thanks Guys. Its working

[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 th

[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): java.lang.NullPointerException

[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 i

[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] 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 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 > showing NullPointer exce

[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 wrote: > I ran into the same problem a few monthes back. > > I spent hour

[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 applic

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

  1   2   >