[android-developers] Re: Making VideoView play automatically

2009-04-24 Thread Nithin Varamballi
HI... Create one one obect of VideoView then give objectname .start(); Thank You Nithin N V --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send e

[android-developers] Making VideoView play automatically

2009-04-24 Thread Miguel Paraz
Hi, How can I make a VideoView play immediately, without the user having to select the MediaPlayer UI Play button? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gro

[android-developers] Re: URGENT!!!!! Can't update apps in android market!!!

2009-04-24 Thread Josh Dobbs
I just did it with no problem I used put it right after the openin manifest tag. On Fri, Apr 24, 2009 at 6:40 PM, s...@zooropa.com wrote: > > I'm still having the same problem as below when I insert the: sdk android:minSdkVersion="1"> right after the manifest. > There must be a trick to wher

[android-developers] sqlite, big tables and like/glob statement

2009-04-24 Thread skink
hi, anyone working with big sqlite tables and trying to match rows using patterns (for example for autocomplete purposes) ? recently i played with LIKE statement and it seems it will never use table index (if any), you have to use GLOB instead. but... the weird thing is that you cannot use

[android-developers] Re: Think twice before turning on the "Copy Protection" option! -- there's a serious bug in Market

2009-04-24 Thread Huebi
I just hit the same issue and cannot disable copy protection any more. And the description in the Market is not exactly long enough to provide all the required information... :( In my case, the _new_ SQLite Database fails. There has never been one before in our app and still it breaks: 04-25 00:

[android-developers] Re: Can't upload my app in the market ! Market requires the minSdkVersion to be set in AndroidManifest.xml.

2009-04-24 Thread Huebi
which is nice because even the new (I know, it is a pre-release, but stull) Eclipse plugin does not put this as the first line... Thanks for those who fought until it worked :) On 25 Apr., 07:30, 6real wrote: > Yes it works : > as first child. > > THX !!! > > On 25 avr, 04:22, clark wrote: >

[android-developers] Re: Think twice before turning on the "Copy Protection" option! -- there's a serious bug in Market

2009-04-24 Thread Huebi
I just hit the same issue and cannot disable copy protection any more. And the description in the Market is not exactly long enough to provide all the required information... :( In my case, the _new_ SQLite Database fails. There has never been one before in our app and still it breaks: 04-25 00:0

[android-developers] Re: Can't upload my app in the market ! Market requires the minSdkVersion to be set in AndroidManifest.xml.

2009-04-24 Thread 6real
Yes it works : as first child. THX !!! On 25 avr, 04:22, clark wrote: > Mark, > > You're right, I was very unclear there.  I apologize as well. > > So it seems the solution so far is to put android:minSdkVersion="1" />, or whatever minSdkVersion you need, > right under > http://groups.googl

[android-developers] Recording Audio in a call

2009-04-24 Thread John Doe
Hi guys. I have a question and i am looking for an answer for a very long time. I am trying to record audio when i call someone and when someone calls me.I am using phonestatelisteners and i am able to record audio from outside (my voice) when i call someone. however when somebody calls me it doe

[android-developers] Re: Android v. 1.5 = FAIL #2: Directly Manipulating Settings

2009-04-24 Thread nEx.Software
It's a good thing I copied and duplicated all of the private APIs I used into my own project. :) I understand though, guess I didn't realize that Power Manager was using private APIs. I still think there were better ways to handle this, such as those mentioned above. I'd gladly make the decision

[android-developers] Re: optimization problem

2009-04-24 Thread Tom Gibara
I can't claim that this is what Romain meant, but I've done this sort of thing a few times. Here's a snippet of code from a game I'm working on: Resources resources = context.getResources(); FlowerColor[] flowerColors = FlowerColor.values(); String packageName = context.getPackageName(); for (int i

[android-developers] Re: optimization problem

2009-04-24 Thread Sahil Arora
Hi Roman, Can you please give a brief idea about using Package manager's API to simplify my code?? Thanks in advance. Best Regards, Zhubham On Fri, Apr 24, 2009 at 6:25 PM, Romain Guy wrote: > > You don't have to use reflection, you can use the package manager's > APIs to create ids from strin

[android-developers] Re: AutoCompleteTextView and SimpleCursorAdapter

2009-04-24 Thread Randy McEoin
I was struggling with the same problem. Thanks for your code example. I had to do a few tweaks to get it to work. I don't think that "ASC" is a valid orderby. It should be the name of a field and then the ASC. For example my table has a field called "modified" which contains the time the re

[android-developers] Re: Get scroll speed of a Listview

2009-04-24 Thread Romain Guy
Use ListView's scroll listener. You can see how I used it to implement exactly what you describe in my app called Shelves: http://code.google.com/p/shelves On Fri, Apr 24, 2009 at 6:48 PM, Ivan Soto wrote: > (Oops, I tabbed extra then Enter... msg sent, blame gmail hehe) > I've been playing arou

[android-developers] Re: Can't upload my app in the market ! Market requires the minSdkVersion to be set in AndroidManifest.xml.

2009-04-24 Thread clark
Mark, You're right, I was very unclear there. I apologize as well. So it seems the solution so far is to put , or whatever minSdkVersion you need, right under http://groups.google.com/group/android-developers/browse_frm/thread/9ccf30f7c3f20a3 Worked for me. ~clark On Apr 24, 6:29 pm, Mar

[android-developers] orientation change runtime option?

2009-04-24 Thread andrew
Hi, Is it possible to have a user choose how an app should respond to orientation changes? I have it set to android:screenOrientation="sensor" in the manifest but I would like users to be able to turn this on and off or set landscape or portrait orientation permanently. Thanks, Andrew --~--~

[android-developers] Re: minsdkversion required in manifest to upload an app upgrade

2009-04-24 Thread clark
Check out this thread http://groups.google.com/group/android-developers/browse_frm/thread/9ccf30f7c3f20a3 basically you need to put that right under , at least that's what people on that thread are saying and it worked for me. ~clark On Apr 24, 7:17 pm, "sage2...@gmail.com" wrote: > Hi - I ju

[android-developers] minsdkversion required in manifest to upload an app upgrade

2009-04-24 Thread sage2...@gmail.com
Hi - I just tried tonight (4/24) to upload an upgraded to my app, and saw something new. It won't let me do it, saying that the market requires a minsdkversion spec in the manifest. So I sez to meself: "OK, I'll just put one in there." Here is what I put, but it didn't solve the problem - no c

[android-developers] dear list moderators

2009-04-24 Thread Jason Proctor
how long do i need to be on probation before my posts take less than a week to reach the list, if at all? -- jason.software.particle --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To p

[android-developers] Re: Get scroll speed of a Listview

2009-04-24 Thread Ivan Soto
(Oops, I tabbed extra then Enter... msg sent, blame gmail hehe) I've been playing around with some apps for iphone I realized that a lot of them load pictures from lists when they are slowing down (or stopped). That really increases the overall performance On those apps, if I scroll fast I don't

[android-developers] Get scroll speed of a Listview

2009-04-24 Thread Ivan Soto
Ivan Soto Fernandez Web Developer http://ivansotof.com --~--~-~--~~~---~--~~ 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: URGENT!!!!! Can't update apps in android market!!!

2009-04-24 Thread s...@zooropa.com
I'm still having the same problem as below when I insert the: right after the manifest. There must be a trick to where it's put?? On Apr 24, 3:10 pm, Hw3699 wrote: > What's your solution? I got the same issure. > > http://schemas.android.com/apk/res/android"; >       package="com.innersocial.p

[android-developers] Re: Android v. 1.5 = FAIL #2: Directly Manipulating Settings

2009-04-24 Thread Romain Guy
It's not like we didn't warn developers about private APIs :) On Fri, Apr 24, 2009 at 12:44 PM, Tom Gibara wrote: > I don't want to single out any particular app, but conversely should a > developer sell an application that can't be supported in the future because > it uses an undocumented API?

[android-developers] Re: Can't upload my app in the market ! Market requires the minSdkVersion to be set in AndroidManifest.xml.

2009-04-24 Thread Mark Murphy
clark wrote: > My comment about being kept in the dark was regarding not being told > of the market dependency. I was well aware of that setting and that > it was suppose to be optional, but looks like the optional part went > out the door along with not being able to directly turn GPS on and off

[android-developers] Re: Can't upload my app in the market ! Market requires the minSdkVersion to be set in AndroidManifest.xml.

2009-04-24 Thread clark
Mark, My comment about being kept in the dark was regarding not being told of the market dependency. I was well aware of that setting and that it was suppose to be optional, but looks like the optional part went out the door along with not being able to directly turn GPS on and off anymore. You

[android-developers] Re: Can't upload my app in the market ! Market requires the minSdkVersion to be set in AndroidManifest.xml.

2009-04-24 Thread Mark Murphy
clark wrote: > Looks like us application developers have been left in the dark > again. android:minSdkVersion was documented a while back, with the release of 1.1r1. http://developer.android.com/sdk/android-1.1.html#overview What wasn't mentioned there was any Android Market dependency on andr

[android-developers] Re: Can't upload my app in the market ! Market requires the minSdkVersion to be set in AndroidManifest.xml.

2009-04-24 Thread clark
Hi Dan, I added to my manifest and attempting to upload my application to the market I received the following error message: "Market requires the minSdkVersion to be set in AndroidManifest.xml. The server could not process your apk. Try again." Before using I only received the error "Market

[android-developers] Re: Can't upload my app in the market ! Market requires the minSdkVersion to be set in AndroidManifest.xml.

2009-04-24 Thread clark
Looks like us application developers have been left in the dark again. It would be great if someone from google could fill us in as to this change and any others that may affect our applications and the distribution of those apps on the market. Regards, ~Clark On Apr 24, 1:16 pm, 6real wrote:

[android-developers] Re: AudioRecord can't get any notification when record/marker position updated

2009-04-24 Thread Steven_T
hi Dave Sparks: thank you for reply! I didn't disable audio input in avd what you means is use option "-audio " to set an audio input I had used the next code test audio input // Intent intent = new Intent (MediaStore.Audio.Med

[android-developers] Re: AudioRecord can't get any notification when record/marker position updated

2009-04-24 Thread Steven_T
hi Dave Sparks: thank you for reply! I didn't disable audio input in avd what you means is use option "-audio " to set an audio input I had used the next code test audio input // Intent intent = new Intent (MediaStore.Audio.Med

[android-developers] Re: Updated Android Market Developer Distribution Agreement?

2009-04-24 Thread Dan Morrill
Hello! Actually, the DDA didn't change. What happened is that due to a bug a while back, a few developers were able to create accounts without agreeing to the correct DDA. So when those developers log in, they are now being prompted to agree. The DDA you are seeing should not introduce any new mat

[android-developers] Re: How to deal with an app widget that can have variable sizes

2009-04-24 Thread Jeff Sharkey
Yep, that's correct. There isn't a good way of requesting a dynamic size, since some home screens may need to pre-reserve the area needed. In the forecast widget I wrote that offers multiple sizes, I solved it using exactly the approach you described--a separate widget definition for each size.

[android-developers] Re: Can't upload my app in the market ! Market requires the minSdkVersion to be set in AndroidManifest.xml.

2009-04-24 Thread Dan Morrill
Hello! You probably need to use "android:minSdkVersion" rather than "minSdkVersion". - Dan On Fri, Apr 24, 2009 at 1:16 PM, 6real wrote: > > Dear all, > since today I have the following clear message : > > Market requires the minSdkVersion to be set in AndroidManifest.xml. > > but my manifest h

[android-developers] Re: How to update a Cursor

2009-04-24 Thread Mark Murphy
Meryl Silverburgh wrote: > Thank you. > > I have another question about cursor. > > I have inserted a ContentValue like this: > final ContentResolver cr = context.getContentResolver(); > > ContentValue values = new ContentValues(); > values.put("title", "new title"); > values.put("x", 10

[android-developers] Re: How to update a Cursor

2009-04-24 Thread Meryl Silverburgh
Thank you. I have another question about cursor. I have inserted a ContentValue like this: final ContentResolver cr = context.getContentResolver(); ContentValue values = new ContentValues(); values.put("title", "new title"); values.put("x", 10); Uri result = cr.insert(CONTENT_URI ,

[android-developers] Updated Android Market Developer Distribution Agreement?

2009-04-24 Thread BoD
I'm sorry I know this is slightly off-topic, but since there is no group about the market... When I'm logging in to the Market console, I'm asked to agree with the "updated Android Market Developer Distribution Agreement". Is there any info/announcement anywhere highlighting and explaining the di

[android-developers] How to deal with an app widget that can have variable sizes

2009-04-24 Thread Joel
I want to create an app widget that could take up a different number of "cells" on the home screen, but I don't think that the app widget framework easily supports this. I know that an app widget can have a configuration screen, and I'd like the user to be able select a sort of small, medium, or

[android-developers] Re: Next Focus and the Soft Keyboard

2009-04-24 Thread Brian Conrad
Thanks, that was exactly what I was looking for. Dianne Hackborn wrote: > You may not have seen the blog post: > > http://android-developers.blogspot.com/2009/04/updating-applications-for-on-screen.html > > On Fri, Apr 24, 2009 at 12:40 PM, Brian Conrad wrote: > > >> I have a form that is work

[android-developers] Re: SDK1.5 AudioRecord sample rate problem

2009-04-24 Thread Yoni
Make sure you're using 16 bit samples. 8 bit samples seem to just not work. Don't use the default anythings - actually set it to MIC, PCM_16BIT, 11025, MONO. Then once that works you can try tweaking other options. Also, make sure your buffer is big enough - you can use AudioRecord.getMinBufferSiz

[android-developers] Re: How to update a Cursor

2009-04-24 Thread Mark Murphy
Meryl Silverburgh wrote: > Hi, > > I call ContentResolver's query method to get a Cursor, and I would > like to update the title of that row to 'new title' > can you please tell me how to do it? > > final ContentResolver cr = context.getContentResolver(); > Cursor c = cr.query(MY_CONTENT_URI, >

[android-developers] How to update a Cursor

2009-04-24 Thread Meryl Silverburgh
Hi, I call ContentResolver's query method to get a Cursor, and I would like to update the title of that row to 'new title' can you please tell me how to do it? final ContentResolver cr = context.getContentResolver(); Cursor c = cr.query(MY_CONTENT_URI, new String[] { "title"}, "titl

[android-developers] Does android kernel supports ACPI?

2009-04-24 Thread tiwana
Does android kernel supports ACPI? --~--~-~--~~~---~--~~ 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, se

[android-developers] Re: AudioRecord can't get any notification when record/marker position updated

2009-04-24 Thread Dave Sparks
Did you enable audio input in the emulator? On Apr 23, 6:48 pm, Steven_T wrote: > hi Dave Sparks: >    I have changed 50 frames to 400 frmaes, it doesn't work. >    then I set bufferSizeInBytes to 100 to init AudioRecord object, > and set update period to 400, >    it dosn't work too. I had

[android-developers] Re: SDK1.5 AudioRecord sample rate problem

2009-04-24 Thread Dave Sparks
Is this on the emulator? If so, it may be a limitation of the emulator. On Apr 24, 3:25 am, szabolcs wrote: > Steven, > > Thank you for your reply. > > I know AudioRecord works with a sample frequency of 8000Hz. In my > initial post I was asking why this frequency is the ONLY frequency > that wo

[android-developers] Re: Android 1.5: How to get the BT state?

2009-04-24 Thread Nick Pelly
On Fri, Apr 24, 2009 at 7:09 AM, code_android_festival_way < festival.s...@googlemail.com> wrote: > > At the moment I am trying to update my application to Android 1.5. > > In Android 1.1 I was able to detect the BT state with catching the > following broadcasts: > > > > android:name="android.b

[android-developers] Re: new object position after canvas.rotate()

2009-04-24 Thread Dianne Hackborn
You'll have to compute that yourself, it is the canvas applying the transforamtion, the Drawable knows nothing about it. (Btw, doing setBounds() every time you draw is not desired... if you are writing a game like thing with a moving pull I would generally recommend dumping the Drawable abstracti

[android-developers] Re: Next Focus and the Soft Keyboard

2009-04-24 Thread Dianne Hackborn
You may not have seen the blog post: http://android-developers.blogspot.com/2009/04/updating-applications-for-on-screen.html On Fri, Apr 24, 2009 at 12:40 PM, Brian Conrad wrote: > > I have a form that is working fine with the "Next" flow order when using > the computer keyboard with emulator (a

[android-developers] Can't upload my app in the market ! Market requires the minSdkVersion to be set in AndroidManifest.xml.

2009-04-24 Thread 6real
Dear all, since today I have the following clear message : Market requires the minSdkVersion to be set in AndroidManifest.xml. but my manifest has the line : and I also tried even ... I try to put this line : as the first child of manifest, as the last child and also right after application.

[android-developers] Re: Possible bug in parcelling of Uri instances

2009-04-24 Thread Tom Gibara
In the absence of any further information, I've simply filed a bug: http://code.google.com/p/android/issues/detail?id=2509 I have found a workaround though which is to 'transform' any Uri of unknown providence before parcelling it, like so: Uri.parse(uri.toString()) (Still puzzled by why I seem

[android-developers] Re: Accessing System Brightness

2009-04-24 Thread guruk
hmm but i also dont like that so much. for example right now i was thinking to write a simple app just changing the brightness in a simple way. not just for a window, for the whole system. Often I am out and just like a simple "change brightness", without searching through the setup (imagine i a

[android-developers] Re: Android v. 1.5 = FAIL #2: Directly Manipulating Settings

2009-04-24 Thread Tom Gibara
I don't want to single out any particular app, but conversely should a developer sell an application that can't be supported in the future because it uses an undocumented API? Tom. 2009/4/24 Al Sutton > > I wouldn't worry, you can always do a chargeback on your credit card for > power manager an

[android-developers] Next Focus and the Soft Keyboard

2009-04-24 Thread Brian Conrad
I have a form that is working fine with the "Next" flow order when using the computer keyboard with emulator (and probably with the keyboard on the G1) but not with the SoftKeyboard with 1.5. Some fields indicate "Next" with this keyboard, some go to the correct field and others don't. Two

[android-developers] Re: JPEG PixelFormat

2009-04-24 Thread Streets Of Boston
If any assumption has to be made, the JPEG data is likely to be in sRGB colorspace, which is most widely used, especially for online viewing. Usually, if an RGB file (JPEG/PNG/TIFF) is read without ICC data, sRGB is assumed. I doubt the quality of G1's camera is good enough to warrant adobeRGB o

[android-developers] Re: 1.5 and bluetooth call button

2009-04-24 Thread Nick Pelly
Move to android-discuss please. This list is for people developing applications. On Fri, Apr 24, 2009 at 6:32 AM, bw wrote: > > Hi, > > Does the 1.5 update fix/enable using bluetooth headsets' call button - > (eg. hold the button down to start voice dialer, press to pick up a > call, press to en

[android-developers] Can't upload apps in android market!!!

2009-04-24 Thread Hw3699
When I uploaded an apk of new application, I was told that "Market requires the minSdkVersion to be set in AndroidManifest.xml.". I already set this attribute in AndroidManifest.xml. What's wrong?? http://schemas.android.com/apk/res/android"; package="com.innersocial.planner" androi

[android-developers] Re: Android v. 1.5 = FAIL #2: Directly Manipulating Settings

2009-04-24 Thread Al Sutton
I wouldn't worry, you can always do a chargeback on your credit card for power manager and Google will approve it through and fine the developer $3 all without asking them... Nice... Not. Al. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@google

[android-developers] Re: URGENT!!!!! Can't update apps in android market!!!

2009-04-24 Thread Hw3699
What's your solution? I got the same issure. http://schemas.android.com/apk/res/android"; package="com.innersocial.planner" android:versionCode="1" android:versionName="1.1.1"> It doesn't work. On Apr 24, 1:14 pm, havexz wrote: > This is the right solution.but why suc

[android-developers] Re: Android v. 1.5 = FAIL #2: Directly Manipulating Settings

2009-04-24 Thread nEx.Software
So, if I understand this all correctly... Those of us who have paid for an app to toggle settings for us, specifically - Power Manager (which, by the way, is currently the 2nd most popular Paid Application), have thrown away our money since we will be prompted to allow changes for some of the sett

[android-developers] new object position after canvas.rotate()

2009-04-24 Thread Andrea
Hi all, I need to know the coordinates of a drawable object after its rotation? Here the code (ball is Drawable): canvas.save(); canvas.rotate(degree, pivot_x,pivot_y); ball.setBounds(...); ball.draw(canvas); canvas.restore(); What are new coordinates of the ball? I tried with ball.getBou

[android-developers] Re: JPEG PixelFormat

2009-04-24 Thread Yusuf T. Mobile
Since the API does not mention color space consistency, the only assumption you can make about the JPEG data returned is that is is JPEG data. Or, according to the documentation, it could be null. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email a

[android-developers] Re: Difficulty Resuming SurfaceView

2009-04-24 Thread Jason Van Anden
Perhaps this would be a better way to inspire feedback. Is it possible to pause and resume a view based upon SurfaceView? What would be the correct way to restart the view so that the thread can begin drawing again? On Fri, Apr 24, 2009 at 1:29 PM, Jason Van Anden wrote: > I created a to

[android-developers] Re: Layout bugs

2009-04-24 Thread Jeff Sharkey
> FastScrollView > ListView You can now specify android:fastScrollEnabled="true" on the ListView instead of wrapping in a FastScrollView. ;) -- Jeff Sharkey jshar...@android.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: Layout bugs

2009-04-24 Thread Mark Murphy
jarkman wrote: > Scratching about looking for ways to use less stack, > and to avoid complicated view structures, doesn't feel very 2009. Well, bear in mind, you are far closer to doing embedded systems development than desktop or server development when you write for mobile devices. These sorts

[android-developers] Re: Layout bugs

2009-04-24 Thread jarkman
Thanks for the suggestion (and yes, your guess is spot-on - we'll try rearranging it next time we have the covers off). But I don't think that changes the point - this app is not insanely badly-written as it stands, and it is already tripping over the stack- depth problem. Scratching about lookin

[android-developers] Re: Android v. 1.5 = FAIL #2: Directly Manipulating Settings

2009-04-24 Thread Tom Gibara
> ... The GPS hardware will only actually be powered up> if someone is asking to get data from it Another way > to look at this -- the GPS setting is primarily there for > privacy, to allow users to determine whether is okay -at > all- for anyone to be getting the fine-grained information > abo

[android-developers] Re: Android v. 1.5 = FAIL #2: Directly Manipulating Settings

2009-04-24 Thread Mark Murphy
patg wrote: > I am surprised that Android's security model asking for permissions > when every application is installed is tollerated while WIndows Vista > basically doing the same thing in a simpler way receives howls of > protest. Android's permission model involves an install-time prompt to gr

[android-developers] custom layou with special Path on HorizontalScrollView

2009-04-24 Thread allstars
hello world i want to implement something like GirdView on HorizontalScrollView but each column has different height like |2| | 1 2 3 | | 1 2 3 | | 1 3 | and after scroll to left <--- |3 | | 2 3 4| | 2 3 4| | 24| so far i hope the move can be continuously(like originally

[android-developers] Re: Android v. 1.5 = FAIL #2: Directly Manipulating Settings

2009-04-24 Thread patg
I too think this change is a bad idea and will decrease the user's experience with my application. I am surprised that Android's security model asking for permissions when every application is installed is tollerated while WIndows Vista basically doing the same thing in a simpler way receives how

[android-developers] Re: Android v. 1.5 = FAIL #2: Directly Manipulating Settings

2009-04-24 Thread chrispix
Dianne, thank you for the response. The issue is, that if an application uses GPS and it is NOT turned off, it can drain the battery quite quickly if the app continues to ping the location. Which is why you disabled this. By saying the user can just leave the GPS on, and it won't get powered up u

[android-developers] Re: Difficulty Resuming SurfaceView

2009-04-24 Thread Jason Van Anden
I created a toy app that demos my problem ... the complete code can be found here: http://www.smileproject.com/SurfCodeExample.zip Feedback super appreciated. Here is the code from the activity and view only ... public class Surf extends Activity { /** Called when the activity is first cre

[android-developers] setNetworkPreference problem...

2009-04-24 Thread Marc
Now here's something odd. If I use setNetworkPreference(ConnectivityManager.TYPE_WIFI), and I use the WRITE_SETTINGS uses-permission, all is well. HOWEVER, if I then try the other setting (TYPE_MOBILE), I get a security exception (can't write secure settings). Does that make sense to anyone?

[android-developers] Re: Timer Help (Time Stamp my code)

2009-04-24 Thread Mark Anacker
Well, you could grab the System.nanoTime() value at the start of the block, again at the end, and subtract... On Apr 24, 9:43 am, mcmc wrote: > Hi, I'm trying to put a timer in my code to determine the amount of > time it takes to execute a block of code. > > I've tried googling up some ideas,

[android-developers] Re: How to send mail in HTML format?

2009-04-24 Thread havexz
Someone have any idea On Mar 30, 1:19 am, havexz wrote: > I want to send the Email in HTML format. Currently i am using the > default text format using the Intent. > > sendIntent.putExtra(Intent.EXTRA_TEXT, "helleo"); > > But I want to send the email in html format something llike > > "helleo" >

[android-developers] Re: Android v. 1.5 = FAIL #2: Directly Manipulating Settings

2009-04-24 Thread Dianne Hackborn
On Fri, Apr 24, 2009 at 9:55 AM, Al Sutton wrote: > - Isn't the biggest privacy problem at the moment with permission > granularity on Internet access?, There are many apps that want internet > access just to access a donations page, but as a user of, say, an accounts > program, how can I tell th

[android-developers] Re: URGENT!!!!! Can't update apps in android market!!!

2009-04-24 Thread havexz
This is the right solution.but why such a wierd but Google only knows..:) I also faced the same problem and tried different combination and then it worked fine finally. On Apr 24, 10:38 am, yhfudev wrote: > You may move the > > to the first line, after the . > > On Apr 24, 6:04 am, "s...@zo

[android-developers] Re: Android v. 1.5 = FAIL #2: Directly Manipulating Settings

2009-04-24 Thread Al Sutton
Couple of things I can see; - Isn't this new scenario going to have a negative impact on battery life because apps won't be able to turn GPS off when they don't need to use it. - Isn't the biggest privacy problem at the moment with permission granularity on Internet access?, There are many apps

[android-developers] Difficulty Resuming SurfaceView

2009-04-24 Thread robotissues
I am stuck. My main activity creates and starts a SurfaceView. My app needs to access a listview via the options menu to change properties of the items shown in the view. Two strange things occur: 1.) When I scroll the listview quickly, the list sometimes gets farklempt. Words overlap each ot

[android-developers] Re: Layout bugs

2009-04-24 Thread Al Sutton
Responses inline. Al. --- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in England & Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed

[android-developers] Timer Help (Time Stamp my code)

2009-04-24 Thread mcmc
Hi, I'm trying to put a timer in my code to determine the amount of time it takes to execute a block of code. I've tried googling up some ideas, but they are all related to scheduling tasks, which is not what I want. I want to, perhaps, place a time stamp in different parts of my code. How can I

[android-developers] Re: SharedPreferences got deleted! - What could be the problem?

2009-04-24 Thread bo
That's pretty much what I do also (why take any chances?). Now - all that business with & gets me thinking. I'm actually storing some snippets of unescaped HTML (which I actually don't care about much). I think these I'll move to Bundle and see if my "real" preferences will persist On Apr 24, 3:0

[android-developers] Re: Android v. 1.5 = FAIL #2: Directly Manipulating Settings

2009-04-24 Thread André Charles Legendre
Hi Jean Batiste It seems that a better way would be to have a list of applications allowed to make GPS status changes. So user would be prompted one time to say if he allow or not this application to change GPS status. And to be able to consult and change the list of applications allowed to do so

[android-developers] Re: Android v. 1.5 = FAIL #2: Directly Manipulating Settings

2009-04-24 Thread Disconnect
Where was this discussion held? It sounds like quite a few developers and platform hackers are interested in providing feedback/alternatives. (And as a later poster said, a popup that says "turn on gps?" is not nearly as bad as this new method, AND doesn't involve a major regression for apps writt

[android-developers] Re: Android v. 1.5 = FAIL #2: Directly Manipulating Settings

2009-04-24 Thread GasBot
If you're worried about an app turning those things on without the user's permission, why not just detect the application changing the setting and pop up a quick dialog asking the user if its ok. That way they wouldn't have to go clicking through menus, it would only add an extra click to say ok

[android-developers] Re: Android v. 1.5 = FAIL #2: Directly Manipulating Settings

2009-04-24 Thread Jean-Baptiste Queru
It's already possible for a user to see an app's permissions - though it'd be nice indeed if the list could be organized the other way (contributions welcome). At least anecdotally, though, we've noticed that users (even sophisticated ones) don't associate poor battery life or control over some o

[android-developers] Re: Android v. 1.5 = FAIL #2: Directly Manipulating Settings

2009-04-24 Thread chrispix
What about Skyhook? I am guessing that would have to ask permission to enable wifi & gps now? Chris. On Apr 24, 11:03 am, Jean-Baptiste Queru wrote: > It's already possible for a user to see an app's permissions - though > it'd be nice indeed if the list could be organized the other way > (cont

[android-developers] Re: How to config G1 to make both browser and MMS work?

2009-04-24 Thread biAji
if you use cmnet as apn. keep the proxy blank. It's only useful in cmwap. G1's browser will use this proxy. On Apr 22, 12:47 pm, shimsim wrote: > yep, have tired a few different sites, with no luck. basically the > browser just does not get anywhere, it looks like its found the page > and is

[android-developers] Re: Android v. 1.5 = FAIL #2: Directly Manipulating Settings

2009-04-24 Thread chrispix
The issue I have with this is, rather than adding permissions that need to be accepted as part of the manifest, it was disabled. Our users wanted to have GPS turned on and OFF automatically to conserve battery life, now when they open the application they will be prompted to turn GPS on, and when

[android-developers] Re: URGENT!!!!! Can't update apps in android market!!!

2009-04-24 Thread Bonifaz
This does the trick! >> You may move the >> >> to the first line, after the . --~--~-~--~~~---~--~~ 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@google

[android-developers] Re: URGENT!!!!! Can't update apps in android market!!!

2009-04-24 Thread yhfudev
You may move the to the first line, after the . On Apr 24, 6:04 am, "s...@zooropa.com" wrote: > Okay I just sent a message to Google we'll see what they say. > > On Apr 24, 6:17 am, "Al Sutton" wrote:> There's > little the people on this list can do to help you with the inner > > workings of

[android-developers] When GPS goes off?

2009-04-24 Thread Mohamed Amir
I am working on an application that requires getting location using GPS. I registered a listener to get GPS location updates. The location manager keeps reporting GPS locations for sometime and then stops reporting according to the updates frequency I requested. I couldn't understand when the G

[android-developers] Re: Android v. 1.5 = FAIL #2: Directly Manipulating Settings

2009-04-24 Thread Jean-Baptiste Queru
All right, here's the deal: One of the reasons that motivated the change is battery life, which is a major point of frustration for many Android users. More precisely, we've noticed in our testing that there was a strong correlation between user complaints about battery life and specific applicat

[android-developers] SurfaceFlinger and permitions

2009-04-24 Thread Guian
I'm porting my app on the t-mobile G1. this app uses OpenGL (using the glSurfaceView from API demo ) my app works fine on the emulator with these minor errors : 04-24 16:57:04.957: ERROR/GLLogger(213): couldn't load library (Cannot find library) 04-24 16:57:05.147: DEBUG/SurfaceFlinger(45): pid

[android-developers] Re: Layout bugs

2009-04-24 Thread Mark Murphy
jarkman wrote: > Well, it didn't seem insane on 1.1, and it ran happily enough. Let me > break it down for you, and see if it makes any more sense. > > From the top, in HierarchyViewer, reading down the deepest path, we > go: > > PhoneWindow$DecorView > LinearLayout > FrameLayout > TabHost > Lin

[android-developers] SurfaceFlinger and permitions

2009-04-24 Thread Guian
I'm porting my app on the t-mobile G1. this app uses OpenGL (using the glSurfaceView from API demo ) my app works fine on the emulator with these minor errors : 04-24 16:57:04.957: ERROR/GLLogger(213): couldn't load library (Cannot find library) 04-24 16:57:05.147: DEBUG/SurfaceFlinger(45): pid

[android-developers] Re: Android v. 1.5 = FAIL #2: Directly Manipulating Settings

2009-04-24 Thread Ward Willats
At 7:19 AM -0700 4/24/09, chrispix wrote: > >Having to prompt the user each time to turn on / off gps is a giant >pain from the standpoint of program flow. I'm not sure why you have to prompt each time. You only need to check the GPS state once at startup and then fire the user off to settings

[android-developers] Re: Android v. 1.5 = FAIL #2: Directly Manipulating Settings

2009-04-24 Thread JP
You don't need that okToFinishApp = false there in the end. That slipped in when I pulled this together from various places On Apr 24, 7:49 am, JP wrote: > On Apr 24, 7:26 am, Disconnect wrote: > > > @Override > protected void onStop() { > > super.onStop(); > > if (okTo

[android-developers] Theme issues with 1.5

2009-04-24 Thread jarkman
We've got a couple of issues with apps drawing differently in the 1.5 preview SDK. Theme_Translucent_NoTitleBar_Fullscreen doesn't result in a full screen, but in one which wraps our content. Also, we get a fat grey border drawn round our views. I've not been able to find any way to change these

[android-developers] Re: Layout bugs

2009-04-24 Thread jarkman
Well, it didn't seem insane on 1.1, and it ran happily enough. Let me break it down for you, and see if it makes any more sense. >From the top, in HierarchyViewer, reading down the deepest path, we go: PhoneWindow$DecorView LinearLayout FrameLayout TabHost LinearLayout (comes with the TabHost)

[android-developers] Re: Android v. 1.5 = FAIL #2: Directly Manipulating Settings

2009-04-24 Thread JP
On Apr 24, 7:26 am, Disconnect wrote: > Now lets look at the new way. Instead of going to one app that has a list > (or no apps, in the case of locale) you have to open settings (click 1), > scroll down to the bottom (drag), open display (click 2), scroll down to the > bottom (2 drags basically

[android-developers] Re: Android v. 1.5 = FAIL #2: Directly Manipulating Settings

2009-04-24 Thread Mark Murphy
chrispix wrote: > Having to prompt the user each time to turn on / off gps is a giant > pain from the standpoint of program flow. It is rather mystifying that the solution was to disable the APIs rather than add more permissions, or even a system-launched confirmation dialog. If the goal was to

  1   2   >