Re: [android-developers] Column headings in TableLayout

2010-08-29 Thread Kostya Vasilyev
What I ended up doing in my app, is: I use a ListView instead, and, just like you, I created a header view that doesn't scroll. ListView items, as well as the header, use RelativeLayout. Some views are positioned left to right, others, right to left, and one view in the middle grows when in

Re: [android-developers] Re: Negative comment causing drop in sales

2010-08-29 Thread Kostya Vasilyev
One of my apps received more than the usual number of can't open comments within the last week. I guess the word widget in its title isn't understood for some reason -- Kostya Vasilyev -- http://kmansoft.wordpress.com 29.08.2010 0:31 пользователь cyxb cyxb.andr...@gmail.com написал: My

[android-developers] Re: Cupcake(API3) friendly way to pause/stop sound loops in SoundPool? Any ideas?

2010-08-29 Thread Jason
I use the pause() method in SoundPool... implemented since API level 1 http://developer.android.com/reference/android/media/SoundPool.html#pause(int) The streamID(int) is obtained when you play the sound: http://developer.android.com/reference/android/media/SoundPool.html#play(int, float,

[android-developers] Re: Game math/logic calulating movement

2010-08-29 Thread Jason
hmmm.. it seems to me that all the trig functions (sin/cos etc) are unnecessary. The screen is just a 2D grid, so the difference in position between one point and another is always just a difference of x/y values. If I were you, I would just determine the difference in x and y between your start

[android-developers] MapView + Image Overlay question

2010-08-29 Thread Tommy
Hi everyone, I currently have a mapview and I want to overlay radar images from the NWS ontop of my mapview. Just like weatherbug does or the weatherchannel. My problem is I can't seem to figure out how to make the image I get lay ontop of the box the image is suppose to cover. The images are 600

[android-developers] Re: Game math/logic calulating movement

2010-08-29 Thread Jason
oh.. and be aware that if you decide to use opengl, the y axis is reversed. That is, in the standard Canvas system, 0,0 is TOP left, whereas in OpenGL 0,0 is BOTTOM left (which makes much more sense to me) On Aug 29, 5:27 pm, Jason jason.poli...@gmail.com wrote: hmmm.. it seems to me that all

Re: [android-developers] Taking a Picture

2010-08-29 Thread Mark Murphy
On Fri, Aug 27, 2010 at 12:52 PM, Pedro Teixeira pedroteixeir...@gmail.com wrote: I'm wondering.. is a SurfaceView still tappable even if we have something overlaying it? Let's say a picture, or a piece of text? Does that work ? set THING=picture, or a piece of text If you tap on the $THING,

Re: [android-developers] Re: Negative comment causing drop in sales

2010-08-29 Thread Fabrizio Giudici
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/28/10 22:30 , cyxb wrote: My favorite one-star Market comment: Rate one star if you want the full version to be free!. Or another 1 star classic: Make the full version free cuz my mom won't let me buy it People are like lemmings. A

[android-developers] Re: Negative comment causing drop in sales

2010-08-29 Thread Anil
I have a suggestion. Make short 1 minute video clips of people using your app and saying why they like it - post these on youtube. Then have a web page with links to these and also text comments from Market. Try to find balanced comments - all excessively sweet will make people mistrust your

[android-developers] Re: Cannot use explicit intents to call another application?

2010-08-29 Thread Anil
thanks! On Aug 29, 1:58 am, Kostya Vasilyev kmans...@gmail.com wrote: Don't need the trailing .class, take it out (in component name). Trailing .class is Java syntax to get the class object of another object, that's why you often see it for starring activities and services in the same

[android-developers] How to prevent auto whitespace trimming in TextView?

2010-08-29 Thread Mark Carter
When setting text on a TextView, all leading/trailing whitespace is trimmed. Is there a way to stop this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

[android-developers] Browser Source code

2010-08-29 Thread zohar lerman
Hi, Where can i find the Android Browser source code? Thanks Zohar -- 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

Re: [android-developers] Browser Source code

2010-08-29 Thread Mark Murphy
http://android.git.kernel.org/?p=platform/packages/apps/Browser.git;a=summary On Sun, Aug 29, 2010 at 7:20 AM, zohar lerman lirazo...@gmail.com wrote: Hi, Where can i find the Android Browser source code? Thanks Zohar -- You received this message because you are subscribed to the Google

[android-developers] Re: Popping up Toast (or something like it) from a thread

2010-08-29 Thread Droid
Are you using a message handler? they are better than spinning a naked thread. You may be blocking the UI thread or similar unwanted consequence. There is loads of code around but I can put some here if you want about message handlers in threads. On Aug 28, 10:45 pm, Bret Foreman

[android-developers] Re: Browser Source code

2010-08-29 Thread zohar lerman
thanks On Aug 29, 2:27 pm, Mark Murphy mmur...@commonsware.com wrote: http://android.git.kernel.org/?p=platform/packages/apps/Browser.git;a... On Sun, Aug 29, 2010 at 7:20 AM, zohar lerman lirazo...@gmail.com wrote: Hi, Where can i find the Android Browser source code? Thanks Zohar

[android-developers] Re: Is there a way to request permissions from a user as you need them?

2010-08-29 Thread Zsolt Vasvari
Dianne, Sorry but you are wrong.  When my wife got her Droid and started installing apps, she quickly came to me asking about a game she was installing that said it would read her contact data.  She knew what that meant, and wasn't happy about it, and decided not to install the app. If my

[android-developers] Re: Is there a way to request permissions from a user as you need them?

2010-08-29 Thread ls02
It turned out to be a big issue for our app too. We have several comments from concerned customers why we need this and that permission. Many permissions are needed only to execute specific and often rare feature like we pre-fill customer's email address when sending request to customer service.

[android-developers] Re: Android Market, google checkout minimal sum to be collected before payment.

2010-08-29 Thread Zsolt Vasvari
You cannot just add an account. For security reasons, Google verifies that the account is yours by depositing a few cents. I think what you are asking might be doable, if you are allowed to have no account linked, but it is sure a PITA. Persoanlly, I am not sure why Google is doing the daily

[android-developers] Re: Is there a way to request permissions from a user as you need them?

2010-08-29 Thread Zsolt Vasvari
On a somewhat related note, I decided I would try to integrate the Bump functionality into my app -- some users asked for ways to exchange transactions between phones in the family, and this seemed pretty good. But then I opened the docs and here it what it says: Add uses-permission

[android-developers] Re: Android libraries

2010-08-29 Thread Günther
Xavier, yes, I'm referencing it through the Android settings, as the R files and resources seem to be handled correctly. However, I found a work-around last night, which is adding a linked source to the app project, which is pointing to the library source directory. I didn't not think this was

[android-developers] Re: Setup Multiple Alarms

2010-08-29 Thread Brian Swartzfager
I just recently released an app where notification messages are generated from records in a SQLite table. To create a unique action/ id for my alarm intents, I take the primary key of the database record and combine it with the package name for my app: ... String intentId=

Re: [android-developers] Re: Is there a way to request permissions from a user as you need them?

2010-08-29 Thread Mark Murphy
On Sat, Aug 28, 2010 at 4:00 PM, Dianne Hackborn hack...@android.com wrote: My focus right now is on simplifying permissions, giving apps other ways to do things that are safe without requiring permissions, etc.  Making things more complex for users is not desired. Let's take the case of

Re: [android-developers] Re: Is there a way to request permissions from a user as you need them?

2010-08-29 Thread Mark Murphy
I have not looked at Bump's API. I'll assume those permissions are truly needed by the Bump API and not just for some sample app. Off the cuff, the solution for Bump is to: -- use PackageManager#checkPermission() to figure out if the app has those permissions (probably requires you to supply the

[android-developers] Bringing an Activity to front

2010-08-29 Thread Teo [GD API Guru]
Hi, i have multiple instances of the same activity, is there a way to programatically bring one of the instances to the front? I've read some existing threads and it seems there's no way to do this... My specific use case is of a Snooze/Dismiss type of screen. The problem would appear when the

[android-developers] Re: Is there a way to request permissions from a user as you need them?

2010-08-29 Thread niko20
I also agree that the permissions system is not as good as you are claiming, Dianne. First of all, even with a small number of permissions, users really dont know what the permissions mean. For example, the Get Call State and Identity permission is too large. It needs to be more granular. I have

Re: [android-developers] Re: Is there a way to request permissions from a user as you need them?

2010-08-29 Thread Mark Carter
On 29 August 2010 15:05, Mark Murphy mmur...@commonsware.com wrote: 3. Move READ_CONTACTS into some sort of plug-in/add-on APK, so the main Evernote app lacks the permission, but those who also install the add-on get the additional feature. Now some percentage of the users have 2x the

Re: [android-developers] Bringing an Activity to front

2010-08-29 Thread Mark Murphy
I'm not sure how you would be able to identify which instance to bring to the front, if they are all the same activity. Have you considered updating your flow, such that the second alarm brings the existing activity instance to the front, which then displays snooze/dismiss options for both

Re: [android-developers] Re: Is there a way to request permissions from a user as you need them?

2010-08-29 Thread Jonas Petersson
On 08/29/2010 03:05 PM, Mark Murphy wrote: [ Problems with permissions using Evernote as an example ] What I'd like to see is: 4. Evernote makes READ_CONTACTS optional. Users see that READ_CONTACTS is optional, and those who are concerned about it can go toggle it off. Evernote adds an if()

Re: [android-developers] Re: Is there a way to request permissions from a user as you need them?

2010-08-29 Thread Jonas Petersson
On 08/29/2010 03:23 PM, Mark Carter wrote: On 29 August 2010 15:05, Mark Murphy mmur...@commonsware.com mailto:mmur...@commonsware.com wrote: 3. Move READ_CONTACTS into some sort of plug-in/add-on APK, [...] Maybe have some generic READ_CONTACTS app (as opposed to each dev making their

Re: [android-developers] Bringing an Activity to front

2010-08-29 Thread Teo
That's not a bad idea actually, but that would mean i'd have to keep tabs on all the stuff myself... What i'm doing now is using a Handler for the snooze time (don't want to mix AlarmManager alarms with the app's own alarms). Each Activity instance has its own Handler, so when the Runnable is run

[android-developers] Re: Android libraries

2010-08-29 Thread Mark Carter
It would be great if both the following ways of including shared Android code/resources were possible: 1. Adding a library .apk file to the build path (in the same way you would add a .jar file) 2. Adding an Android Library Project to the build path as a Project dependency (in the same way you

Re: [android-developers] Bringing an Activity to front

2010-08-29 Thread Mark Murphy
On Sun, Aug 29, 2010 at 9:59 AM, Teo teomina...@gmail.com wrote: What i'm doing now is using a Handler for the snooze time (don't want to mix AlarmManager alarms with the app's own alarms). That will only work if the activity stays in RAM. That's fairly likely in your case, but not assured. --

[android-developers] Re: Input Method Framework: How to use?

2010-08-29 Thread Tez
To be a little more specific...I need some material on how to use a soft keyboard. From the sample I have understood that it is a service. How do I change the system IME to my custom IME? is this possible? How do I specify that I want to use this in some activity. Cheers, Earlence On Aug 29,

[android-developers] Using IMEs

2010-08-29 Thread Tez
1. The softkeyboard sample, after installation, how do I use it? 2. Can I replace the default system IME (popup keyboard)? If yes, how? Cheers, Earlence -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Re: Input Method Framework: How to use?

2010-08-29 Thread Mark Murphy
On Sun, Aug 29, 2010 at 10:36 AM, Tez earlencefe...@gmail.com wrote: How do I change the system IME to my custom IME? is this possible? The user can enable your IME through the Settings application. How do I specify that I want to use this in some activity. You don't. The user chooses the IME

[android-developers] Changing the name of a project/package

2010-08-29 Thread Bret Foreman
I changed the name of a project with a package of the same name. However, the Resource Manager is still building R.java in gen/com/ oldname instead of gen/com/newname. I can't find the setting in Eclipse that tells the Resource Manager where to store the R.java file. I also notice that the package

[android-developers] Re: Setup Multiple Alarms

2010-08-29 Thread Bret Foreman
I do something similar to Brian but, since I have just a few Intents to manage, I store strings in the Shared Preferences database. It's simpler to use than SQLite if you just have a few pieces of (serializable) data. On Aug 29, 6:03 am, Brian Swartzfager bcswa...@gmail.com wrote: I just

[android-developers] Re: Bluetooth Conenction Problem

2010-08-29 Thread oguz gurler
Isn't there an expert on bluetooth programming? 2010/8/26 Oguz oguzgur...@gmail.com Hi, I developed a bluetooth client android application on Htc Hero and developed on windows a bluetooth server application. Server application make SDP successfully and i can connect from android

Re: [android-developers] Re: Negative comment causing drop in sales

2010-08-29 Thread Fabrizio Giudici
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/29/10 12:41 , Anil wrote: I have a suggestion. Make short 1 minute video clips of people using your app and saying why they like it - post these on youtube. Then have a web page with links to these and also text comments from Market. Try to

Re: [android-developers] Changing the name of a project/package

2010-08-29 Thread YuviDroid
Did you change the name of the Eclipse Project or the name of your java package? Changing just the name of the project won't touch your code. If instead you renamed your package, then you should also update the AndroidManifest.xml to point to the new package: manifest

[android-developers] Re: Changing the name of a project/package

2010-08-29 Thread Bret Foreman
That worked great. 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 android-developers+unsubscr...@googlegroups.com

[android-developers] Re: Input Method Framework: How to use?

2010-08-29 Thread Tez
thanks! On Aug 29, 7:42 pm, Mark Murphy mmur...@commonsware.com wrote: On Sun, Aug 29, 2010 at 10:36 AM, Tez earlencefe...@gmail.com wrote: How do I change the system IME to my custom IME? is this possible? The user can enable your IME through the Settings application. How do I specify

[android-developers] Re: Using IMEs

2010-08-29 Thread Tez
I got the answer on my other thread. On Aug 29, 7:38 pm, Tez earlencefe...@gmail.com wrote: 1. The softkeyboard sample, after installation, how do I use it? 2. Can I replace the default system IME (popup keyboard)? If yes, how? Cheers, Earlence -- You received this message because you are

[android-developers] IME: How does the system replace the current keyboard?

2010-08-29 Thread Tez
To use a custom IME, it must be selected from the Settings app. How does the system do this operation? What are the code files that changes the settings? Cheers, Earlence -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] Re: permission denied when trying to pull apk from phone to computer

2010-08-29 Thread lee dallas
How about try adb remount first? 2010/8/28 Anil anil.r...@gmail.com I had cd-ed to the directory. But anyway, I tried your suggestion and get 'permission denied'. $ adb pull /system/app/Youtube.apk adb pull /system/app/Youtube.apk adb: permission denied On Aug 27, 6:01 pm,

[android-developers] Re: Application permissions

2010-08-29 Thread Tez
how do u do that? On Aug 20, 2:04 am, String sterling.ud...@googlemail.com wrote: Sign it with the same cert as the system. String On Aug 19, 6:50 pm, Stephen Lin stephen.xi@gmail.com wrote: Hi Dianne, I am building an application to configure Ethernet on a custom Android

[android-developers] Audio internals

2010-08-29 Thread GDroid
Hi all, I have been using the different Audio API's for sometime now. Yet there are still somethings I'm not sure of and that are behaving differently on different handsets. I failed to find good documentation on the relations between the following: 1. AudioManager Mode - which I can change

Re: [android-developers] Re: Application permissions

2010-08-29 Thread Mark Murphy
On Sun, Aug 29, 2010 at 12:18 PM, Tez earlencefe...@gmail.com wrote: how do u do that? You either work for a device manufacturer, or you compile and sign your own firmware. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog |

[android-developers] Re: User photo + latitude-like marker in Custom View

2010-08-29 Thread Joao Luis
Thank you. I now understand how simplistic the approach is. Composition of views, one for the outer marker and other for the picture, just didn't cross my mind. :-) Best regards. -- J On Aug 28, 5:25 pm, Frank Weiss fewe...@gmail.com wrote: Here's a good starting

[android-developers] Using CameraApplication to Take a Picture

2010-08-29 Thread Patrick
Hallo! Taking the following code from a Tutoral I want the build in camera application to take a picture using the camera. After clicking a button I execute the following code: String _path = Environment.getExternalStorageDirectory() + make_machine_example.jpg;

[android-developers] Re: permission denied when trying to pull apk from phone to computer

2010-08-29 Thread Anil
$ adb remount adb remount adb: permission denied On Aug 29, 12:06 pm, lee dallas mswplandr...@gmail.com wrote: How about try adb remount first? 2010/8/28 Anil anil.r...@gmail.com I had cd-ed to the directory. But anyway, I tried your suggestion and get 'permission denied'. $ adb pull

[android-developers] Re: refresh gallery after saving photo in android

2010-08-29 Thread Patrick
I wanted to bring up this querstion again, since I stumble upon the same problem but still haven't found a solution. Does anyone know how to programmatically refresh a gallery after storing a photo? On Jul 1, 2:45 am, Julian lepin...@gmail.com wrote: Well, for starters most of the code samples

Re: [android-developers] MapView + Image Overlay question

2010-08-29 Thread Frank Weiss
A simple solution: prevent zoom. Crummy solution: scale the images. Best solution: prescaled images on server, if possible. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Re: permission denied when trying to pull apk from phone to computer

2010-08-29 Thread Dianne Hackborn
adb pull /system/app/YouTube.apk YouTube.apk will work, I guarantee you. (As long as YouTube.apk actually exists at all.) There is something causing problems that is not in what you are posting. On Sun, Aug 29, 2010 at 10:53 AM, Anil anil.r...@gmail.com wrote: $ adb remount adb remount adb:

Re: [android-developers] IME: How does the system replace the current keyboard?

2010-08-29 Thread Dianne Hackborn
Please post questions about platform development on one of the relevant groups, thanks. On Sun, Aug 29, 2010 at 9:02 AM, Tez earlencefe...@gmail.com wrote: To use a custom IME, it must be selected from the Settings app. How does the system do this operation? What are the code files that

Re: [android-developers] Bringing an Activity to front

2010-08-29 Thread Dianne Hackborn
On Sun, Aug 29, 2010 at 6:59 AM, Teo teomina...@gmail.com wrote: That's not a bad idea actually, but that would mean i'd have to keep tabs on all the stuff myself... You really don't want to avoid keeping track of what you are doing. Throwing stuff up into the system and hoping it all comes

[android-developers] Re: Negative comment causing drop in sales

2010-08-29 Thread Michael A.
On Aug 29, 11:04 am, Fabrizio Giudici fabrizio.giud...@tidalwave.it wrote: -BEGIN PGP SIGNED MESSAGE- I suppose in the end this kind of social Market features (starts and comments) are just useless. I suppose what irritates a little bit about this is that it shouldn't be useless. Peer

Re: [android-developers] Re: Negative comment causing drop in sales

2010-08-29 Thread Kostya Vasilyev
Not being able to respond to a comment in a situation like this, just like with comments caused by lack of knowledge on the user's part is well very painful indeed. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 29.08.2010 23:05 пользователь Michael A. michael.aki...@gmail.com

Re: [android-developers] Re: Is there a way to request permissions from a user as you need them?

2010-08-29 Thread Dianne Hackborn
On Sun, Aug 29, 2010 at 5:31 AM, Zsolt Vasvari zvasv...@gmail.com wrote: On a somewhat related note, I decided I would try to integrate the Bump functionality into my app -- some users asked for ways to exchange transactions between phones in the family, and this seemed pretty good. But

Re: [android-developers] Re: Is there a way to request permissions from a user as you need them?

2010-08-29 Thread Dianne Hackborn
On Sun, Aug 29, 2010 at 6:46 AM, Jonas Petersson jonas.peters...@xms.sewrote: I've been pondering this too for my apps, what I'd like to see is something that just could call pick contact and the result would be JUST the data related to that particular contact (for most cases, the DISPLAY_NAME

[android-developers] Re: permission denied when trying to pull apk from phone to computer

2010-08-29 Thread Anil
$ pwd pwd / $ adb pull /system/app/YouTube.apk YouTube.apk adb pull /system/app/YouTube.apk YouTube.apk adb: permission denied $ ls -l /system/app/YouTube.apk ls -l /system/app/YouTube.apk -rw-r--r-- root root 622732 2010-05-10 08:30 YouTube.apk Same error. It is present. Does the phone

[android-developers] Re: MapView + Image Overlay question

2010-08-29 Thread Maps.Huge.Info (Maps API Guru)
Weatherbug and Weather Channel have specialized servers that deliver this content to the app. Unless you want to go through all that trouble yourself, you might reconsider your plan. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] Re: Is there a way to request permissions from a user as you need them?

2010-08-29 Thread Dianne Hackborn
On Sun, Aug 29, 2010 at 6:25 AM, Jonas Petersson jonas.peters...@xms.sewrote: On 08/29/2010 03:05 PM, Mark Murphy wrote: [ Problems with permissions using Evernote as an example ] What I'd like to see is: 4. Evernote makes READ_CONTACTS optional. Users see that READ_CONTACTS is optional,

[android-developers] Re-ordering child views of a layout?

2010-08-29 Thread Sy
Hi, I have a number of child views, each child is a TableRow and I need to be able to change the order of the TableRows, such that I can swap the rows into any order. I know there is a method called removeAllViews() but I don't really want to remove and re-create the views if its possible to

Re: [android-developers] Re: Is there a way to request permissions from a user as you need them?

2010-08-29 Thread Dianne Hackborn
On Sun, Aug 29, 2010 at 12:14 PM, Dianne Hackborn hack...@android.comwrote: I suspect it hasn't been changed in 2.2, but this is the kind of thing that we should extend and if we aren't doing it fast enough would most likely accept patches for. Btw, for many of these things, solutions can be

[android-developers] Re: Negative comment causing drop in sales

2010-08-29 Thread niko20
Yes it will always show in the dev console, because it's the Market app that filters out the comments that are marked as spam. A definitive test is to mark a comment as spam, and then see if another user with a device can see the comment or not. As a test, look at Electrum Drum Machine, and tell

[android-developers] Re: Piracy Breakdown by Country

2010-08-29 Thread Bob Kerns
Someone else already pointed to the possibility that your app was included in some pirate bundle that raised the number of pirated copies. I'd like to touch on some other possibilities: * Your data is corrupt somehow. ** For example, people from China using proxies in Australia to bypass local

[android-developers] Re: Re-ordering child views of a layout?

2010-08-29 Thread Sy
Just a thought, could this be done using the Gallery view? I've noticed that the Gallery has a method called getChildDrawingOrder(int childCount, int i) which according to the docs, says Returns the index of the child to draw for this iteration. On Aug 29, 8:30 pm, Sy

[android-developers] Re: Bug in Android 2.2 with move to sdcard home screen shortcuts?

2010-08-29 Thread Bob Kerns
Thanks for the heads-up. This strikes me as an unnecessary inconsistency making the API more complex and hard to understand. But it strikes me as a more serious flaw that it does not cause a visible exception at the point of creating the shortcut. Rather than logging it and ignoring it, and

[android-developers] Re: permission denied when trying to pull apk from phone to computer

2010-08-29 Thread Maps.Huge.Info (Maps API Guru)
The device doesn't have to be rooted in order to get the apk's off the thing. I've done it with every device I have (Evo, Droid, N1, Magic) and none are rooted and have the standard os installed. As Dianne commented, you must have something else going on. I think I see it. You're running adb

Re: [android-developers] Bringing an Activity to front

2010-08-29 Thread Teo
Will the process/activity be killed if it has a Handler running in it? Managing the stuff myself would mean i'll have a list of Handlers/Runnables instead of single fields, but nothing of consequence in the activity changes (e.g. another app might take focus, not only an activity from my own app,

[android-developers] Re: remote db connection

2010-08-29 Thread Tim
DanH is incorrect in his assertion that There is no remote DB paradigm in Android. The Android framework supports full standard database JDBC connectivity to databases such as Oracle, SQL Server and MySQL. A direct connection to a remote database is perfectly secure, usable and technically

[android-developers] Re: permission denied when trying to pull apk from phone to computer

2010-08-29 Thread Anil
Yes! thanks! :) On Aug 29, 3:50 pm, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: I think I see it. You're running adb shell. Do the pull command from the PC's command line, not from shell in adb. -John Coryat -- You received this message because you are subscribed to the Google

[android-developers] Re: Sound levels in games

2010-08-29 Thread guruk
did you tried: float streamVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC); streamVolume = streamVolume / mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); On Aug 26, 10:41 pm, Neilz neilhorn...@gmail.com wrote: I'm having very

RE: [android-developers] Re: MapView + Image Overlay question

2010-08-29 Thread Tommy
Hm ok well that's a bummer. I guess I'll have to re-think a way to do what needs to be done. Thanks to all for the input/advice -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Maps.Huge.Info (Maps API Guru) Sent:

[android-developers] Sim Contacts

2010-08-29 Thread William Ferguson
I have some code that manipulates the Contacts database via the Contacts Provider (ContactsContract.RawContacts.CONTENT_URI), so I can add/edit/delete my Google contacts, Phone contacts and the Sim contacts cached there. Changes to the Phone contacts are immediate, changes to the Google contacts

Re: [android-developers] Re: Is there a way to request permissions from a user as you need them?

2010-08-29 Thread Jonas Petersson
On 08/29/2010 09:14 PM, Dianne Hackborn wrote: On Sun, Aug 29, 2010 at 6:46 AM, Jonas Petersson jonas.peters...@xms.se mailto:jonas.peters...@xms.se wrote: I've been pondering this too for my apps, what I'd like to see is something that just could call pick contact and the result would

[android-developers] Debugging power management - how to determine cpu state?

2010-08-29 Thread Tom
My application acquires and releases WakeLocks. What is the best way to test the app - i.e. is there a standard way to determine when the cpu is running (e.g. through a debug cable)? Thanks, Tom -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] c2dm delay_while_idle question

2010-08-29 Thread Maps.Huge.Info (Maps API Guru)
I'm testing out c2dm. I see everything working exactly as it should except that the c2dm message isn't received by the app if the device is idle. By that, I mean the screen is dark. If I revive (press the power button) the device, it works as expected. Shouldn't c2dm only do this if the

[android-developers] Screen flip doesn't trigger an orientation change and Activity destruction/recreation

2010-08-29 Thread Rob
I'm testing an app on a Droid. It's a kind of card matching game. I'd like to keep the cards physically located in the same place on the screen regardless of a screen rotation. For example, I can put my thumb on a card, rotate the phone any way I please and the card stays fixed under my thumb.

Re: [android-developers] Re: Is there a way to request permissions from a user as you need them?

2010-08-29 Thread Jonas Petersson
On 08/29/2010 09:27 PM, Dianne Hackborn wrote: On Sun, Aug 29, 2010 at 6:25 AM, Jonas Petersson jonas.peters...@xms.se mailto:jonas.peters...@xms.se wrote: On 08/29/2010 03:05 PM, Mark Murphy wrote: [ Problems with permissions using Evernote as an example ]

[android-developers] New SPEECH_INPUT_MINIMUM_LENGTH_MILLIS extra

2010-08-29 Thread Veered
I am developing an app that requires the voice recognition to stay active for an entire minute. Upon reviewing the docs, I discovered SPEECH_INPUT_MINIMUM_LENGTH_MILLIS added to 2.2. However RECOGNIZE_SPEECH doesn't seem to support it. Does anybody know a way that I could force voice recognition

[android-developers] Re: remote db connection

2010-08-29 Thread Bob Kerns
I would urge anyone considering your toolset (which do look very nice, but I haven't really looked into them) to consider your sync server approach over direct JDBC connections. I can't speak to the quality of your efforts -- but from your stated feature set, I think it fills a major need, and I

[android-developers] Re: Is there a way to request permissions from a user as you need them?

2010-08-29 Thread Indicator Veritatis
In other words, it is your anecdotes against his. I thought I would not need to remind you, but I guess I do: THE PLURAL OF 'ANECDOTES' IS NOT DATA! BTW: adducing the MIDP and Win7 experience is most unconvincing even for its already unconvincing anecdotal class. This is because in both those

[android-developers] Re: Is there a way to request permissions from a user as you need them?

2010-08-29 Thread Bob Kerns
This flaw in their design is caused by a flaw in Google's design for distribution of apps. There is no reasonable way, that does not impose an unacceptable burden on users, to distribute an app that makes use of third party functionality like this that should live in its own .apk. And even if

[android-developers] Re: Is there a way to request permissions from a user as you need them?

2010-08-29 Thread Indicator Veritatis
You rightly say, should be taken down from Market if it is discovered, but if that need exists, then what will Google do to reassure users that somebody is watching for such violations? A Service should not HAVE the ability of share that data with other Applications unless they too have the same

[android-developers] Re: c2dm delay_while_idle question

2010-08-29 Thread Maps.Huge.Info (Maps API Guru)
It seems to be working now. I've disconnected it from the USB cable, which seems to make it work while inactive. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: remote db connection

2010-08-29 Thread DanH
Well, I've been told by TPTB that there is no remote DB support on Android. I suppose your package may offer it, but it's not part of the base OS. At least that's what I was told by People Who Ought To Know. On Aug 29, 2:53 pm, Tim t...@mobiforms.com wrote: DanH is incorrect in his assertion

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-08-29 Thread TreKing
On Sat, Aug 28, 2010 at 3:22 AM, William Ferguson william.ferguson.au@ gmail.com wrote: From the symptoms, the code you posted and the assumption that this section of code is multi-threaded, it looks like a race condition. That's for the suggestion, but where the static instance is used is

[android-developers] Re: App breaks for some users after they update from the Market

2010-08-29 Thread William Ferguson
Not real sure about this, just putting it out there .. But is is possible that Activity2 is started in a separate Task to Activity1? I can find any doco confirming or denying, but perhaps separate Tasks run in separate JVMs, hence the potential for non-initialization. What's the taskAffinity? I

[android-developers] Re: App breaks for some users after they update from the Market

2010-08-29 Thread William Ferguson
Actually I should have asked whether Activity2 is being created in a different Process as that will definitely be in a separate JVM. On Aug 30, 11:24 am, William Ferguson william.ferguson...@gmail.com wrote: Not real sure about this, just putting it out there .. But is is possible that

[android-developers] Pausing audio during voice search

2010-08-29 Thread brooke
I have an audio application and I want to pause audio when the user decides to use the voice search component of the built-in Search framework, which I have implemented as part of my application. I don't see any Intents, listeners or other means to detect when the user is performing a voice

[android-developers] Re: IME: How does the system replace the current keyboard?

2010-08-29 Thread Tez
ok On Aug 29, 11:59 pm, Dianne Hackborn hack...@android.com wrote: Please post questions about platform development on one of the relevant groups, thanks. On Sun, Aug 29, 2010 at 9:02 AM, Tez earlencefe...@gmail.com wrote: To use a custom IME, it must be selected from the Settings app.

Re: [android-developers] Re: Is there a way to request permissions from a user as you need them?

2010-08-29 Thread Frank Weiss
I've been following this discussion with some interest. I have no opinion at this point, but here's a data point that might be interesting. I'm developing an app with a particular set of POIs (points of interest). Originally the manifest had uses-permission

[android-developers] Re: Is there a way to request permissions from a user as you need them?

2010-08-29 Thread niko20
I still think if developers at least had the ability to insert comments into the permissions list thru the XML, it would help clarify things for users. So for example if I had a reason attribute in the permissions tag, and that string would be displayed if a user looked at the permissions of the

[android-developers] Re: Bluetooth listening to the RFCOMM connection failed.

2010-08-29 Thread Ryan Wang
The whole code I am using to implement the Obex protocol. The bluetooth adapter on the PC side will connect to the phone. But program is blocked in the accept() method. And I got nothing to receive. Why?? _server =

[android-developers] sdcard can't be recognized by android(app) after mounting

2010-08-29 Thread Nikkea Dong
Hey guys I think something wrong with my vold.fstab or some other issues. I lunched emulator in from eclipse avd. I set 128M sd card, but can't be detected in android. Then I used mount -t vfat /dev/block/mmcblk0p1 /mnt/* sd**card* , use df can show sd card under /mnt/sdcard. But the

[android-developers] Re: IllegalStateException with ExpandableListActivity and SimpleCursorTreeAdapter

2010-08-29 Thread OldSkoolMark
Documented where? On Aug 28, 4:17 pm, Kumar Bibek coomar@gmail.com wrote: Yup, you are right, It's well documented I guess. -Kumar Bibekhttp://techdroid.kbeanie.com On Aug 27, 11:47 pm, OldSkoolMark m...@sublimeslime.com wrote: I've resolved the issue. Not sure if this is a bug,

[android-developers] How to detect the phone has been connected

2010-08-29 Thread Bin Dou
Hi all How to detect a dialing or ringing call has been connected? .Are there any methods in the APIs? -- 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

[android-developers] Re: Negative comment causing drop in sales

2010-08-29 Thread OldSkoolMark
Very nice app. Yep. You got free website spam. Why google is moving so slowly to improve the market for both developers and potential users continues to mystify ... It is obvious that market support for communications between end user(s) and the developer is in the best interest of everyone. On

  1   2   >