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

2009-04-24 Thread Yan Shi
When I upload an apk update for one of my apps(Hello Yahoo), I was told that Market requires the minSdkVersion to be set in AndroidManifest.xml.. So I can't do the update! I already set this attribute in AndroidManifest.xml. What's wrong?? I even set it to uses-sdk minSdkVersion=3 /, but still

[android-developers] Re: What's this problem?

2009-04-24 Thread Alex
I have tried this. // code snip start URL url = new URL(string); HttpURLConnection con = (HttpURLConnection)url.openConnection(); InputStream is = con.getInputStream(); Bitmap bmp = BitmapFactory.decodeStream(is); is.close(); con.disconnect(); // code snip stop It doesn't help. FYI, when I added

[android-developers] where is APN setting stored in emulator/device?

2009-04-24 Thread Lawrence
Dear all, I am wondering where is APN setting stored in emulator/devices. and what's its file format, in xml or anything else? Thanks, Lawrrence --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] JPEG PixelFormat

2009-04-24 Thread Sheado
Hi, Is the JPEG image returned by Camera.takePicture(...) always going to be in the same color space, regardless of the phone Android is on? Thank in Advance! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

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

2009-04-24 Thread scanning_it
These reports don't sound good at all. I'm just wondering why some developers don't have any problems at all. On Apr 23, 10:36 pm, nEx.Software justin.shapc...@gmail.com wrote: I was having this issue but couldn't figure it out. Now, I store all of my settings in the SQLiteDatabase I use for

[android-developers] Re: Disable XSL transforms in HTTPClient

2009-04-24 Thread Magnus
Am I really first with this problem? If anyone has a suggestion - please share. /M On 21 Apr, 20:11, Magnus maneman...@gmail.com wrote: Does anyone know how to avoid the XSL transforming that is taking place in the HTTPClient? I just want the raw xml. thanks /Magnus

[android-developers] Re: HttpUrlConnection problem

2009-04-24 Thread Mika
I can't use DefaultHttpClient because I need to get the OutputStream for writing to the remote server. But anyway... I accidently got this working, by calling the method that starts the thread (where all HttpUrlConnection stuff is handled) from an Activity class. Before I had it in a class that

[android-developers] How to check screen is in IDLE or not?

2009-04-24 Thread jpopop
according to whether user is in IDLE screen, show different view to user, how to do this? how to check whether it is in IDLE(Home) screen or not. any api for this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: Why the service is always to restart even if force to kill it?

2009-04-24 Thread Eckel
No I do not write a apk and write the code on framework notification view. I just have a try the force stop functionality and it's a new interface for activitymanger.restartPacakge, right? If I try to force stop a background service like inputmethod, acitivtymanger will also restart the crash

[android-developers] Layout bugs

2009-04-24 Thread Al Sutton
Having read http://android-developers.blogspot.com/2009/04/future-proofing-your-apps.htm l I noted this little section; Due to changes in the View rendering infrastructure, unreasonably deep (more than 10 or so) or broad (more than 30 total) View hierarchies in layouts are now likely to cause

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

2009-04-24 Thread Yan Shi
Anyone please? On Apr 24, 2:16 pm, Yan Shi shiyansu...@gmail.com wrote: When I upload an apk update for one of my apps(Hello Yahoo), I was told that Market requires the minSdkVersion to be set in AndroidManifest.xml.. So I can't do the update! I already set this attribute in

[android-developers] Re: Why the service is always to restart even if force to kill it?

2009-04-24 Thread Dianne Hackborn
Yes, if you force stop the input method, it is restarted, because it is actually being used and needed by the system to let the user perform input! It makes no sense to try stop it from running. Seriously, what are you trying to accomplish? On Fri, Apr 24, 2009 at 12:42 AM, Eckel

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

2009-04-24 Thread Dianne Hackborn
You really really should commit the data after you make each batch of changes, as the docs say. It is certainly very possible for the system to kill your process between onPause() and onStop() if it is under memory pressure. On Thu, Apr 23, 2009 at 9:56 AM, bo bost...@gmail.com wrote: I do

[android-developers] Re: Layout bugs

2009-04-24 Thread Dianne Hackborn
We didn't have time for Cupcake, but we definitely want to have some very well-defined limits in a future release. There is no nice error because what actually is happening is the app is running out of stack space -- some optimizations and new features in the view hierarchy caused certain

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

2009-04-24 Thread Steven_T
you can try this code: private static final int AUDIO_SAMPLE_FREQ = 8000; private static final int AUDIO_BUFFER_SIZE = 20; private AudioRecord recorder; try { // init recorder recorder = new AudioRecord(MediaRecorder.AudioSource.MIC,

[android-developers] What is the correct way to refresh UI when I use android:configChanges=keyboardHidden|orientation

2009-04-24 Thread Wang He
Hi all when I use android:configChanges=keyboardHidden|orientation in my code, the activity will not destroy and recreate when I change from portrait to landscape, only onConfigurationChanged(newConfig) will be called by framework. The issue is: My UI cannot refresh by default, what is the

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

2009-04-24 Thread s...@zooropa.com
I'm having the same problem when I try to upload a new app to the market. Any help would be great. On Apr 24, 4:15 am, Yan Shi shiyansu...@gmail.com wrote: Anyone please? On Apr 24, 2:16 pm, Yan Shi shiyansu...@gmail.com wrote: When I upload an apk update for one of my apps(Hello Yahoo),

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

2009-04-24 Thread scanning_it
Thank you Dianne for joining the discussion. I will look into my code again but I'm sure that this is the only way I am writting to the SharedPreferences: settings.edit().putString(SOME_STRING, Hello world.).commit(); So there shouldn't be a problem with that one. Is it possible that

[android-developers] Re: Layout bugs

2009-04-24 Thread Al Sutton
Dianne, Thanks for the explanation, it does leave me concerned that we're yet again seeing an android version rushed out the door and as a result of this we're now being told of problems even before consumers have it on their devices. Not upgrading to cupcake isn't an realistic option. The

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

2009-04-24 Thread Al Sutton
There's little the people on this list can do to help you with the inner workings of Market. Your best option would be to try and contact Google. Al. --- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in England Wales with the

[android-developers] IPv6 problemes inside the emulator?!

2009-04-24 Thread sumdroid
hi, did someone know that problemes exist with the emulator and ipv6? my networkcard got a ipv4 and a ipv6 adress (DNS, DHCP, Gateway etc.). when i start the emulator and try to browse g-maps nothing happens. only an error occured google.com can not be resoved. any idea how to fix this

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

2009-04-24 Thread szabolcs
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 works?! BTW, there is no exception thrown when the initialization of AudioRecord fails. I figured you are supposed to

[android-developers] Re: Toggle Listadapter Item

2009-04-24 Thread WindWaker
Any help?? On Apr 23, 3:05 pm, WindWaker cyank...@gmail.com wrote: Hi guys i am having a problem disabling a particular listadapter's item depending on a certain condition.  I have overriden public boolean isEnabled(int position) {                     return true;                 }

[android-developers] Re: Toggle Listadapter Item

2009-04-24 Thread WindWaker
Any help?? On Apr 23, 3:05 pm, WindWaker cyank...@gmail.com wrote: Hi guys i am having a problem disabling a particular listadapter's item depending on a certain condition.  I have overriden public boolean isEnabled(int position) {                     return true;                 }

[android-developers] Re: Toggle Listadapter Item

2009-04-24 Thread Mark Murphy
WindWaker wrote: Any help?? isEnabled() is designed for use with category headers (as seen in the preferences UI) and, as such, may not work well for your case. Some options: 1. Try requestLayout() or something to see if that will trigger isEnabled() to be requeried. 2. Call setEnabled()

[android-developers] What is field type in db table for audio and image?

2009-04-24 Thread jj
What is field type in db table for audio and image? here is code from Media provider, in that it is 'data' type is text, same is for image table its data type too text. so what is data type for images, audio or video for database table. will you clear me for the this stuff. In one tut I

[android-developers] Re: Trying to understand TabHost source code

2009-04-24 Thread e-satis
Hello, I manage to find this post right after trying to solve something like this : http://groups.google.com/group/android-developers/browse_thread/thread/f3fdd1eb1726/0d28c51a6b9ffdfe?lnk=gstq=tab+focus#0d28c51a6b9ffdfe Apparently, tabs seems to still the focus of TextView that are not

[android-developers] Re: Disable XSL transforms in HTTPClient

2009-04-24 Thread Mark Murphy
Magnus wrote: Am I really first with this problem? If anyone has a suggestion - please share. /M On 21 Apr, 20:11, Magnus maneman...@gmail.com wrote: Does anyone know how to avoid the XSL transforming that is taking place in the HTTPClient? I just want the raw xml. That would be a fine

[android-developers] Re: Where are packages?

2009-04-24 Thread Mark Murphy
AlexNguyen wrote: I have see some apps in Android that use some packages: import android.net.http.EventHandler; import android.net.http.Headers; import android.net.http.RequestQueue; .. So some packages do not support the current version of SDK. Where can I find it?

[android-developers] Re: Layout bugs

2009-04-24 Thread Romain Guy
Cupcake is not rushed in any way and every change we made was made after careful consideration. The problem that Dan warns about should not affect the vast majority of apps. In my experience, to trigger it, you need to have a hierarchy of views that's about 14 levels deep. And even in 1.0 and

[android-developers] Re: Layout bugs

2009-04-24 Thread jarkman
I'm not sure it's realistic to describe this as a simple optimisation issue. We've just gone through an exercise to fix these crashes in one of our apps. We've managed it, but only at the expense of uglification of the code. We're working with a custom list on a tab. Looking at the hierarchy

[android-developers] Re: Layout bugs

2009-04-24 Thread Romain Guy
A custom control has nothing to do with this kind of issue. Actually, custom controls are a good way to avoid that issue, and optimize layouts in general. Around 15 levels deep of layouts is just insanely complex for a cell phone screen. On Fri, Apr 24, 2009 at 5:08 AM, jarkman jark...@gmail.com

[android-developers] Re: AppWidgetProvider question on 1.5 SDK

2009-04-24 Thread Romain Guy
And it takes forever to layout and draw a WebView. That's why widgets are not implemented in HTML for instance: Home would become unusable. On Wed, Apr 22, 2009 at 4:26 PM, Dianne Hackborn hack...@android.com wrote: Yes, there is a security issue.  And a performance issue.  We are flat-out not

[android-developers] optimization problem

2009-04-24 Thread Zhubham
Hi Experts, I am trying to optimize the following code: textview[0]=(TextView)findViewById (R.id.TextView1); textview[1]=(TextView)findViewById(R.id.TextView2); textview[2]=(TextView)findViewById(R.id.TextView3);

[android-developers] Re: EditText Tabhost problem

2009-04-24 Thread e-satis
Actually this is even stranger because when you use the arrow key from the keyboard and get the focus to the textview from the tab view, it does not take the focus back. Here is the XML file : ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/

[android-developers] Forecast widget for Android 1.5 (with source!)

2009-04-24 Thread Jeff Sharkey
I've been working with the AppWidget framework over the past few months, and I wrote an in-depth example showing off all the various features of the framework. It's a forecast widget that shows the weather in locations of your choice. It offers multiple configurations, and can handle several

[android-developers] Re: optimization problem

2009-04-24 Thread Mark Murphy
Zhubham wrote: Hi Experts, I am trying to optimize the following code: textview[0]=(TextView)findViewById (R.id.TextView1); textview[1]=(TextView)findViewById(R.id.TextView2); textview[2]=(TextView)findViewById(R.id.TextView3);

[android-developers] Re: SDK 1.5 Build Error

2009-04-24 Thread Karima
I met this today. I solved it : In your project's folder the file .classpath is wrong. The good file is : ?xml version=1.0 encoding=UTF-8? classpath classpathentry kind=src path=src/ classpathentry kind=src path=gen/ classpathentry kind=con

[android-developers] ANT Build files sdk 1.5 and beyond

2009-04-24 Thread Fred Grott(shareme)
Good morning, I am in the process of writing some new build files for Android Sdk 1.5 and beyond. My question is every tool-IDE plugin the same in that they do not contribute the ANT task libs to the IDE ant editor and thus have to manually set the paths in each IDE? At them moment i know ADT

[android-developers] Re: Layout bugs

2009-04-24 Thread Al Sutton
To me whenever someone on a project says We didn't have time for . when discussing something that increases chances of an app crashing in *any* way that indicates the project has been rushed along. Personally I don't believe an OS should crash when a developer writes code that doesn't fit in

[android-developers] Re: Layout bugs

2009-04-24 Thread Romain Guy
By crash here we mean that you get a StackOverflowException, just like with any regular Java application. There is nothing special about this. To me whenever someone on a project says We didn't have time for . when discussing something that increases chances of an app crashing in *any*

[android-developers] Re: optimization problem

2009-04-24 Thread MrSnowflake
If you really want to use a for loop (for maintenance point of view, somewhat, as TextView1...10 aren't very clear) you need to use reflection which is a lot of work for this and it's slow. For your purpose you should consider creating your layout fully in code. On 24 apr, 14:30, Mark Murphy

[android-developers] Re: optimization problem

2009-04-24 Thread Romain Guy
You don't have to use reflection, you can use the package manager's APIs to create ids from strings (and the other way around.) On Fri, Apr 24, 2009 at 5:54 AM, MrSnowflake mrsnowfl...@gmail.com wrote: If you really want to use a for loop (for maintenance point of view, somewhat, as

[android-developers] Re: What is the correct way to refresh UI when I use android:configChanges=keyboardHidden|orientation

2009-04-24 Thread MrSnowflake
Why do so much people avoid the destoying and recreation of Activities on orientation change. It's there to make the switch to a different orientation easier, because it automatically loads the correct resources. To be honest, I don't fully understand the whole recreation of Activities neither,

[android-developers] Re: MediaPlayer sound problem

2009-04-24 Thread BlackLight
Thanks! I will try MediaPlayer.setLooping(true). With longer sounds it works just fine. I have feeling that error happens because of no sync. MediaPlayer playes and is going to stop, at this moment seekTo makes freeze sound problem. (Just my guess) On Apr 23, 7:18 pm, Marco Nelissen

[android-developers] Here is some sample code for a live folder example

2009-04-24 Thread Satya Komatineni
http://www.satyakomatineni.com/akc/display?url=DisplayNoteIMPURLreportId=3014ownerUserId=satya If you see any errors or discrepancies, I will appreciate it if you let me know Thanks Satya --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: Forecast widget for Android 1.5 (with source!)

2009-04-24 Thread Fred Grott(shareme)
Jeff great work.. Would you consider reposting the details at andmob wiki..andmob.wikidot.com? Some of us got together to get an Android community wiki effort going.. Mark Murphy handles the administrative stuff.. My ANT build scripts tutorial will be going up at there over the weekend. Once

[android-developers] 1.5 and bluetooth call button

2009-04-24 Thread bw
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 end call)? This doesn't seem to work in the current version of android. Thanks -Ben

[android-developers] Do you have an example of layout like contact's form (add) ? (version 1.5)

2009-04-24 Thread Karima
Hi, I seen the apiDemos but i didn't find the same form like the contact's form (add). I don't know, if it's a ExpandableListView or a activityList or ... Do you have an example in xml or/and java ? Thanks! Karima --~--~-~--~~~---~--~~ You received this message

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

2009-04-24 Thread chrispix
While I read the blog here : http://android-developers.blogspot.com/2009/04/future-proofing-your-apps.html I almost had a heart attack. Having a location based application, the number one issue we had was being able to automatically turn on / off GPS based on an application setting. Which quite

[android-developers] after launching audio recording intent MediaStoreAudio.Media.RECORD_SOUND_ACTION

2009-04-24 Thread jj
after launching audio recording intent MediaStoreAudio.Media.RECORD_SOUND_ACTION where should I get this audio data? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

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

2009-04-24 Thread Disconnect
Don't forget the fact that it assumes the google devs (or, more likely, the mysterious and secretive Designers) have the One True Best Way to change settings. Want to set profiles in toggle settings or other apps (or, say, the much-vaunted Locale) to do things like turn gps off when you are on a

[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

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

2009-04-24 Thread JP
On Apr 24, 7:26 am, Disconnect dc.disconn...@gmail.com 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

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

[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 joachim.pfeif...@gmail.com wrote: On Apr 24, 7:26 am, Disconnect dc.disconn...@gmail.com wrote: @Override protected void onStop() {

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

[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 libhgl.so library (Cannot find library) 04-24 16:57:05.147:

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

[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 libhgl.so library (Cannot find library) 04-24 16:57:05.147:

[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

[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

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

2009-04-24 Thread yhfudev
You may move the uses-sdk android:minSdkVersion=1/uses-sdk to the first line, after the manifest On Apr 24, 6:04 am, s...@zooropa.com 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 a...@funkyandroid.com wrote: There's

[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 shim@gmail.com wrote: yep, have tired a few different sites, with no luck. basically the browser just does not get anywhere, it looks like its found

[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

[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

[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

[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:09 

[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

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

[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] 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 yhfu...@gmail.com wrote: You may move the uses-sdk android:minSdkVersion=1/uses-sdk to the

[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 a...@funkyandroid.com 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,

[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 bali.param...@gmail.com 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

[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 manni...@gmail.com 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

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

[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

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

[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

[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

[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

[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. manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.innersocial.planner android:versionCode=1 android:versionName=1.1.1 uses-sdk android:minSdkVersion=1/uses-sdk It doesn't work. On Apr 24, 1:14 pm,

[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

[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?? manifest xmlns:android=http://schemas.android.com/apk/res/android;

[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 ben.weisb...@gmail.com 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

[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

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

[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 a...@funkyandroid.com I wouldn't worry, you can always do a chargeback on your credit card

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

[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] 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 : uses-sdk minSdkVersion=2 / and I also tried even uses-sdk minsdkversion=2 /... I try to put this line : as the first child of

[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 brianjto...@gmail.comwrote: I have a form that is working fine with the Next flow order when using the computer keyboard

[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

[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: action

[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 szabolcs.vr...@gmail.com 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

  1   2   >