[android-developers] Geocoder.getFromLocationName() ignores bounding box

2009-10-08 Thread Walles
How can I convert a street address into a latitude + longitude? I've tried to use Geocoder.getFromLocationName() with a bounding box, but all results I get are outside of the box. Is there a way to limit the hits to a certain area on earth? Regards //Johan

[android-developers] Re: saveInstanceState problem

2009-10-08 Thread Stefan
Hi Mike, thanks for your answer. No, I don't implement the Serializible Interface. The class gets the lon/lat pairs and if i call saveFile()-method, I save my way- and trackpoints on the sdcard (my source code blow up so i decide to implement this in an own class). Now my question is: if I

[android-developers] Re: Should we still force our apps to API level 2?

2009-10-08 Thread EboMike
There's also a great article on the developer blog about using newer API with an old target: http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html I'm extensively using 1.5 features in my app while still maintaing compatibility with 1.1. The key is to set the

[android-developers] Re: Should we still force our apps to API level 2?

2009-10-08 Thread Dianne Hackborn
Also 1.6 introduces android:targetSdkVersion, which allows you to say the higher version of the platform you are designed for, while still leaving android:minSdkVersion to the minimum version you support. This allows you to turn off compatibility code that would otherwise be run for an

[android-developers] Re: SQLite matching prefix on indexed column

2009-10-08 Thread skink
On Oct 8, 5:36 am, westmeadboy westmead...@yahoo.co.uk wrote: I have a TEXT column and I want to match all rows where the value has a certain prefix. For example, WHERE mycol LIKE 'myprefix%' However, I noticed in some optimization guidelines that this will not use the index and instead

[android-developers] Re: Mediastore Thumbnails not generated until Gallery app is launched ?

2009-10-08 Thread Abdul Mateen
Yes, there is methods to do so, Browse the code of Gallery and look into the file ImageGallery2.java. you will find how to push a thumbnail into that. I have my app *FREE* hosted on Android Market that does the same thing , if the image thumbnail is not present it will create one and use that.

[android-developers] Re: SQLite matching prefix on indexed column

2009-10-08 Thread mjc147
Thanks - using GLOB works well for me. I've done some tests and using GLOB seems faster than using the = AND approach. When not matching on a prefix (i.e. '*something*') GLOB and LIKE seems to have similar speeds which I suppose would be expected. On Oct 8, 3:10 pm, skink psk...@gmail.com

[android-developers] Re: Trying to get Javascript on Android

2009-10-08 Thread ebisudave
Um... hello? Is there anyone who has any idea how to implement a touchmove event? Anyone, anywhere? I have looked around the internet and asked on a few different forums, and got zero response. Zero. Nothing. Not even people telling me to RTFM or what's wrong with my question. I've tried

[android-developers] Re: Mediastore Thumbnails not generated until Gallery app is launched ?

2009-10-08 Thread Kevin Gaudin
Hello, thanks for this, I have been also browsing the Camera app code which hosts the Gallery and considering to hack something in order to achieve an additional goal. In my view of thumbnails management, the thumbnail generation itself should be handled by the system. I don't think Android

[android-developers] Re: Geocoder.getFromLocationName() ignores bounding box

2009-10-08 Thread Nithin
hi Walles, geocoder.getFromLocationName(locationName, 5); will return a list of values and here, 5 is the no. of results(values) we want. So according to that we can get the corresponding latitude and longitude.. Thanks Nithin here, 5 is the total number of results, that we want, On Oct 8,

[android-developers] LayoutParams.ScreenBrightness on 1.6

2009-10-08 Thread kaloer
Hi, I am updating my application to Android 1.6 Donut, but I have a problem. I can no longer set the screen brightness using the LayoutParams.ScreenBrightness anymore. Has this been replaced with something else? I can access the method, but nothing happens when i run my application. What can I

[android-developers] Re: Rotating Camera Preview

2009-10-08 Thread Anirudh
Hi, I have figured out a way to do this. You have to set the parameter key called orientation to the value portrait using the set() method of CameraParameters class. Snippet: Parameters params = mCamera.getParameters(); params.set(orientation, portrait); mCamera.setParameters(params); This can

[android-developers] is there a way to put entire folder from assets to sdcard? not just individual files.

2009-10-08 Thread androidinsider
hey guys, i hope this is the right forum. what i am trying to do is simply copy over entire folder full of mp3 files onto sdcard within an app. I am doing this out of assets folder because raw folder does not allow mp3 files to be named the way i need them to. here is what I dug up so far but

[android-developers] onSearchRequested() doesn't call search activity in 1.5

2009-10-08 Thread Miguel Paraz
Hi, The 1.5 AVD doesn't seem to follow the documentation in: http://developer.android.com/reference/android/app/SearchManager.html which says it's enough to call onSearchRequested() to call the search activity. I need to call startSearch() to make it work. However, when I check the source code

[android-developers] android.graphics.OpenGLContext is missing!

2009-10-08 Thread John Doe
Hi. I am trying to compile a project and i need android.graphics.OpenGLContext class. However it seems that this class is either removed from the source code or changed. Can you help me how can i find and add this library? --~--~-~--~~~---~--~~ You received this

[android-developers] including the whole drawable image in the ImageView

2009-10-08 Thread Asif k
Hi All, I am adding the drawble image xyz.png in the ImageView. But the problem is that the whole image cannot included in the view. by reducing layout height and weight also results in just cropping the image. I had also tried with Adjust View Bounds but no improvement. Is there any

[android-developers] Re: saveInstanceState problem

2009-10-08 Thread Stefan
hi @all, one more question: If I want to handle the configChanges in my own way, which things must I consider?? In the AndroidManifest.xml, I can set: - mcc, mnc, locale, touchscreen, keyboard, keyboardHidden, navigation, orientation, screenLayout, fontScale Are there more possible

[android-developers] Re: environment set-up confusing, instructions unclear

2009-10-08 Thread ian
I;ve had no end of build path problems and I am still having them. One problem I had was that I selected 1.5 instead of Google apis in my build target and it would not recognize maps.jar on the path. Last night I scrambled up my build path and am unsure how to restore it properly. I had one app

[android-developers] GPS-Tracking application and telephone call

2009-10-08 Thread Stefan
Hi, i have a question for my app. I track gps points and i want to know what happened, if someone call me. I test it a little bit with the emulator. I change the location via telnet and after I hang up, i get a toast message, that the location has changed. But i only get the latest gps point, is

[android-developers] Re: Sharing code between activities

2009-10-08 Thread Mark Murphy
amiz wrote: Mark, Before you suggested the utility class, I packaged the code in a jar which I added to the project. Are there any pro/cons for the utility class vs the jar? This will be used within one app and not across apps. No, if it is just one app, you do not need a separate JAR.

[android-developers] verifyError with maps add-on

2009-10-08 Thread Eden
I need Help for this issue : http://code.google.com/p/android/issues/detail?id=4006 tnx --~--~-~--~~~---~--~~ 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] Supressing Key presses in Activity, especially in Options Menu

2009-10-08 Thread Raman
Hi All, I am writing an activity where the user is supposed to some editing and is critical. In this activity, I dont want pressing of Call key to make it go to Call Log so I handle onKeyDown call back and there if the key pressed is Call, I just return true. That solves my problem. But, if

[android-developers] onConfigurationChanged-function

2009-10-08 Thread Stefan
hi, i have a question: If I want to handle the configuration changes in my own way, which things must I consider?? In the AndroidManifest.xml, I can set: - mcc, mnc, locale, touchscreen, keyboard, keyboardHidden, navigation, orientation, screenLayout, fontScale Are there more possible

[android-developers] Re: Geocoder.getFromLocationName() ignores bounding box

2009-10-08 Thread Walles
Hi Nithin! Why doesn't the below code work? It gets me 11 hits, all outside of the box. The one I'm really looking for is this:

[android-developers] Re: Speech Bubble on MapView

2009-10-08 Thread Mark Murphy
mrloz wrote: I know google maps isn't open, but the same/similar api on the iphone allows for users to develop consistent apps, so the popup on pins in google maps look exactly the same in custom apps. The whole platform's closed there, but consistency is possible without having to reinvent

[android-developers] Re: Where have all the Google employees gone?

2009-10-08 Thread pro
I'm going to shamelessly admit that I'm new to it. Have been using for just over two months. My env. is ubuntu ( the latest version). I use Eclipse the latest version too. I could not get hold of a G1 device, since the sellers on ebay are screwing me up big time ( just unimaginable, and it is not

[android-developers] Re: hangs on launching unit tests

2009-10-08 Thread Cyryl Płotnicki-Chudyk
On Thu, Oct 8, 2009 at 05:42, Brett Chabot brettcha...@android.com wrote: 2009/10/6 Cyryl Płotnicki-Chudyk sharph...@gmail.com: On Tue, Oct 6, 2009 at 05:33, Brett Chabot brettcha...@android.com wrote: Unfortunately, this sounds like a known problem that occurs intermittently. Does it work

[android-developers] Re: WiMAX for Android

2009-10-08 Thread Marco Nelissen
You also need a phone that can act as a USB host. On Wed, Oct 7, 2009 at 6:11 PM, Roman ( T-Mobile USA) roman.baumgaert...@t-mobile.com wrote: Yep, you would have to implement the usb driver support for your WiMax card on Android which also includes platform/framework changes to recognize

[android-developers] Re: Mediastore Thumbnails not generated until Gallery app is launched ?

2009-10-08 Thread Marco Nelissen
On Thu, Oct 8, 2009 at 1:21 AM, Kevin Gaudin kevin.gau...@gmail.com wrote: Hello, thanks for this, I have been also browsing the Camera app code which hosts the Gallery and considering to hack something in order to achieve an additional goal. In my view of thumbnails management, the

[android-developers] PostMethod

2009-10-08 Thread FEZ (Felix Kratzer)
In some examples here in the list I see the PostMethod class by apache. But my eclipse tells me it is not existing... (so is the api spec ;-)) Am I missing something? Or does Android only server HttpPost and HttpGet and nothing mor high level such as Multipart Posts? FEZ

[android-developers] Re: android.graphics.OpenGLContext is missing!

2009-10-08 Thread halilakin
anybody knows the answer? On Oct 8, 3:01 pm, John Doe halila...@gmail.com wrote: Hi. I am trying to compile a project and i need android.graphics.OpenGLContext class. However it seems that this class is either removed from the source code or changed. Can you help me how can i find and add

[android-developers] Re: PostMethod

2009-10-08 Thread Mark Murphy
FEZ (Felix Kratzer) wrote: In some examples here in the list I see the PostMethod class by apache. That is probably from an older version of the Apache HttpClient API. They did a major overhaul of the API in the current edition, the one Android is using. http://hc.apache.org -- Mark Murphy

[android-developers] Re: Mediastore Thumbnails not generated until Gallery app is launched ?

2009-10-08 Thread Kevin Gaudin
Great ! - can we ask for a roadmap ? - Thanks On Thu, Oct 8, 2009 at 5:13 PM, Marco Nelissen marc...@android.com wrote: On Thu, Oct 8, 2009 at 1:21 AM, Kevin Gaudin kevin.gau...@gmail.com wrote: Hello, thanks for this, I have been also browsing the Camera app code which hosts the

[android-developers] Re: android.graphics.OpenGLContext is missing!

2009-10-08 Thread Mark Murphy
halilakin wrote: anybody knows the answer? On Oct 8, 3:01 pm, John Doe halila...@gmail.com wrote: Hi. I am trying to compile a project and i need android.graphics.OpenGLContext class. However it seems that this class is either removed from the source code or changed. Can you help me how

[android-developers] search edit box.

2009-10-08 Thread sdphil
is there a widget that is a simple search / edit box? like the google one on the main screen that I can repurpose for my own application? I suppose I could use an edit text, but it would be nice to automatically get the hourglass and dim background text. tia.

[android-developers] Re: WiMAX for Android

2009-10-08 Thread JoaJP
One could try to put a Nokia N810 WiMax edition on it. It won't run Android, but would be infinitely more interesting than a notebook PC, for sure. On Oct 8, 8:14 am, Marco Nelissen marc...@android.com wrote: You also need a phone that can act as a USB host. On Wed, Oct 7, 2009 at 6:11 PM,

[android-developers] Re: Differences in building for target 2 and target 3 in 1.5 sdk

2009-10-08 Thread Raja Nagendra Kumar
Hi Fred, Thank you for the pointers, could you pl. explain more on where exactly is the difference in compiling and building the application for Target 2 and Target 3. I understand Target 3 has maps.jar add on as booth path and for target 2 one needs to add the maps.jar as class path (i.e as

[android-developers] Re: Where have all the Google employees gone?

2009-10-08 Thread dadical
Dianne is there any chance that such threading changes would affect the playback of media in a VideoView? I've noticed that since 1.6, when I'm on a low-bandwidth connection (e.g., EDGE) videos being loaded over HTTP start playing, but then pause until the file is pretty much completely

[android-developers] Re: Speech Bubble on MapView

2009-10-08 Thread mrloz
I totally want to avoid nicking the graphics, to be honest knocking something up in the gimp isn't going to tax me, it's just something which would be better if it wasn't needed. I think that the whole solution is probably going to need building in a reusable way so that everyone can get to do

[android-developers] Re: including the whole drawable image in the ImageView

2009-10-08 Thread Jarcikon
Use the android:scaleType attribute with a value of FIT_XY or FIT_CENTER. On Oct 8, 7:43 am, Asif k asifk1...@gmail.com wrote: Hi All,   I am adding the drawble image xyz.png in the ImageView. But the problem is that the whole image  cannot included in the view.   by reducing layout height

[android-developers] Re: Sharing code between activities

2009-10-08 Thread Marco Nelissen
How would using asynctask help with this? On Wed, Oct 7, 2009 at 7:42 AM, Agus agus.sant...@gmail.com wrote: use asynctask. On Wed, Oct 7, 2009 at 7:36 AM, amiz aarn...@gmail.com wrote: I have an app with two activities. Both activities among other functions have to perform the same

[android-developers] Re: Replace styles and themes

2009-10-08 Thread ParanoidAndroid
Thanks Dianne. Are there any plans to implement this feature? I basically just want to set colors at runtime. The easiest thing would be to replace the color values from the colors.xml file. Of course I could also set color values for views programmatically, but I have no idea about drawables

[android-developers] Double uses-permission list when uploading to Market?

2009-10-08 Thread blindfold
When I upload my upgraded-from-1.5 Android 1.6 app to the Market I get a double list of permissions, like This apk requests 14 permissions that users will be warned about 'android.permission.CAMERA' 'android.permission.WAKE_LOCK' 'android.permission.ACCESS_FINE_LOCATION'

[android-developers] Re: Replace styles and themes

2009-10-08 Thread Dianne Hackborn
Eventually it will be possible, but I have no idea what that will be. ColorDrawable is a solid color drawable. On Thu, Oct 8, 2009 at 9:26 AM, ParanoidAndroid bestpriv...@googlemail.comwrote: Thanks Dianne. Are there any plans to implement this feature? I basically just want to set colors

[android-developers] Re: Where have all the Google employees gone?

2009-10-08 Thread Dianne Hackborn
Not that I know of. All of those threads should be in the foreground. On Thu, Oct 8, 2009 at 9:09 AM, dadical keyes...@gmail.com wrote: Dianne is there any chance that such threading changes would affect the playback of media in a VideoView? I've noticed that since 1.6, when I'm on a

[android-developers] Re: Double uses-permission list when uploading to Market?

2009-10-08 Thread Maps.Huge.Info (Maps API Guru)
Just a bug in the market upload program, the permissions show correctly in the market app itself, so no worries. -John Coryat Radar Now! What Zip Code? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Double uses-permission list when uploading to Market?

2009-10-08 Thread blindfold
OK, thanks for the quick reply! I'll give it a go then. On Oct 8, 6:35 pm, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: Just a bug in the market upload program, the permissions show correctly in the market app itself, so no worries. -John Coryat Radar Now! What Zip Code?

[android-developers] What does Battery Usage Mean?

2009-10-08 Thread dadical
I have an application that runs a background service. This background service wakes and runs once every 2 seconds. The background service registers as a listener with the orientation sensor with the lowest possible rate of event delivery (application). When my service thread wakes it uses the

[android-developers] Re: is there a way to put entire folder from assets to sdcard? not just individual files.

2009-10-08 Thread niko20
Here's a snippet from my sample pack installers in my installers I have assets in a folder called samples private void CopyFiles(String dir) { try { String [] filelist = am.list(samples/ + dir); for (int count = 0; count filelist.length;

[android-developers] Re: is there a way to put entire folder from assets to sdcard? not just individual files.

2009-10-08 Thread niko20
Here's a snippet where I copy a whole folder to sdcard from an assets folder. In my app I have a folder named samples in my assets folder. private void CopyFiles(String dir) { try { String [] filelist = am.list(samples/ + dir); for (int count

[android-developers] Re: Replace styles and themes

2009-10-08 Thread ParanoidAndroid
It would be really cool to make those chnages at runtime, maybe one day :-) I actually meant shapes when I was talking about drawables, like stroke android:width=1sp android:color=@color/color_1/. Is there a way to change those color attributes programmatically at runtime? On 8 Okt., 18:33,

[android-developers] Screen Orientation Change

2009-10-08 Thread Neilz
Hi all. I notice when using the emulator that when the screen is flipped, I get a following logcat message: INFO/WindowManager(589): onOrientationChanged, rotation changed to 1 How can I catch this in the code? I want to know whenever the orientation changes. I assume I have to set a listener,

[android-developers] Re: Where have all the Google employees gone?

2009-10-08 Thread dadical
So what exactly is the definition of a background thread vs. a foreground thread? I failed to mention that my video view is being invoked from an AsyncTask's onPostExecute method, which SHOULD afaik be running on the UI thread.That being said, I'm assuming that the VideoView actually loads

[android-developers] Android 1.6 New OpenCore?

2009-10-08 Thread Moto
The following what written on the Android 1.6 Platform Highlights: Android 1.6 includes the updated OpenCore 2 media engine, which has: * Support for OpenMAX encoders * Support for additional audio codecs in AuthorEngine * Improved buffering model supports shared buffers allocated in

[android-developers] Re: is there a way to put entire folder from assets to sdcard? not just individual files.

2009-10-08 Thread Marco Nelissen
Why do you need your mp3s to be named a certain way? If you can copy them out of your resources using whatever name they have there, and copy them to sd card under another name, then clearly you are already able to match up the resource name with the desired name, so why bother making a copy?

[android-developers] Re: Where have all the Google employees gone?

2009-10-08 Thread Dianne Hackborn
It's a thread you've set to the background scheduling level with Process.setThreadPriority(). AsyncTask may do this for you. Do you have problems with the YouTube app? On Thu, Oct 8, 2009 at 10:04 AM, dadical keyes...@gmail.com wrote: So what exactly is the definition of a background thread

[android-developers] Re: Where have all the Google employees gone?

2009-10-08 Thread Marco Nelissen
Donut (1.6) shipped with OpenCore 2.x, whereas previously we were using OpenCore 1.x. From your description is sounds like opencore 2 is more aggressive about buffering on slow connections, to avoid running out of data at the end. On Thu, Oct 8, 2009 at 9:09 AM, dadical keyes...@gmail.com

[android-developers] Re: Screen Orientation Change

2009-10-08 Thread RichardC
Have a look at Activity.onConfigurationChanged and Activity.getChangingConfigurations You will need to make changes to your manifest to use onConfigurationChanged -- RichardC On Oct 8, 6:03 pm, Neilz neilhorn...@googlemail.com wrote: Hi all. I notice when using the emulator that when the

[android-developers] Re: Geocoder.getFromLocationName() ignores bounding box

2009-10-08 Thread Walles
Actually, it doesn't work even with the simple form: Locale swedish = new Locale(sv); Geocoder geocoder = new Geocoder(this, swedish); locations = geocoder.getFromLocationName(findMe, 700); I get 20 hits from that, none of them in Stockholm (which is the one I'm looking for). Help!

[android-developers] Re: Geocoder.getFromLocationName() ignores bounding box

2009-10-08 Thread Walles
findMe should be Storgatan 5, sorry about that: Locale swedish = new Locale(sv); Geocoder geocoder = new Geocoder(this, swedish); locations = geocoder.getFromLocationName(Storgatan 5, 700); No hit in Stockholm though :-(, this one expected:

[android-developers] Re: What does Battery Usage Mean?

2009-10-08 Thread RichardC
By running your background task every 2secs your are basically keeping the phone permanently on. Even though your app is not using much CPU it has to wake the phone from any sleep state every 2secs. So it either will not allow the phone to sleep or mostly keep it awake. Waking the phone will

[android-developers] Re: What does Battery Usage Mean?

2009-10-08 Thread Disconnect
I was going to post basically the same thing but his 3%-after-2-hours measurement doesn't really agree with that. On Thu, Oct 8, 2009 at 1:40 PM, RichardC richard.crit...@googlemail.com wrote: By running your background task every 2secs your are basically keeping the phone permanently on.  

[android-developers] Re: Where have all the Google employees gone?

2009-10-08 Thread dadical
If that's the case, the algorithm for computing required buffer must be WAY off. On a three minute video that takes about 1.5 - 2 minutes to download on a particular EDGE connection (i.e., download speed is faster than realtime playback), playback doesn't begin until about 2 minutes after

[android-developers] Re: onConfigurationChanged-function

2009-10-08 Thread Megha
On Oct 8, 6:53 am, Stefan ebay-dah...@web.de wrote: hi, i have a question: If I want to handle the configuration changes in my own way, which things must I consider?? In the AndroidManifest.xml, I can set: - mcc, mnc, locale, touchscreen, keyboard, keyboardHidden, navigation,

[android-developers] Re: Sharing code between activities

2009-10-08 Thread jotobjects
Does adding the platform android.jar to the build classpath for the jar also make all the Android APIs accessbile? On Oct 7, 7:58 am, Mark Murphy mmur...@commonsware.com wrote: By using an Android project to hold your JAR development, you automatically get access to the Android APIs to use

[android-developers] select pitcure may lead to excced memory and crash?

2009-10-08 Thread huanwu
i got a problem i intend to use intent.setAction(Intent.ACTION_GET_CONTENT); startActivityForResult(intent, 1); to select picture from gallery in google phone, and load the selected photo back into my application it works ok in the emulator but when i punt it on real google phone (HTC hero/ HTC

[android-developers] Re: WiMAX for Android

2009-10-08 Thread Michael Cheselka
Hello, Is anyone running Android on the Nokia N810. Regards, Michael Cheselka 650-488-4820 On Wed, Oct 7, 2009 at 18:11, Roman ( T-Mobile USA) roman.baumgaert...@t-mobile.com wrote: Yep, you would have to implement the usb driver support for your WiMax card on Android which also includes

[android-developers] Re: Focus android widget.

2009-10-08 Thread Fiid
Making the LinearLayout Clickable, Focusable and also Focusable in Touch Mode has no effect. The behavior I'm after is that like the icons on the Launcher screen, the whole layout highlights orange when selected, and briefly when clicked (prior to an intent launch). I know this is possible with

[android-developers] Suitable Minimum SDK Version for APK files

2009-10-08 Thread Len
We’re seeking advice for our application in the Android Market, in relation to nominating a suitable minimum SDK version for the APK files published through the market. We understand that at this juncture there’s no facility to provide associate multiple APK files (supporting different minimum

[android-developers] Connectivity Manager - CONNECTIVITY_CHANGE

2009-10-08 Thread Ryan Berti
Hello, I'm very new to the boards, and I have a question about the connectivity manager but didn't see it discussed in my searches. I am doing research on the possibility of producing a background application that is woken up when an ad-hoc wifi network is in range. I understand how to create a

[android-developers] problem creating custom dialog...

2009-10-08 Thread bobetko
I am using example for creating custom dialogs on dev.android.com. See code below. The problem is that second line is crashing application (fore close) ## Context mContext = getApplicationContext(); I can make dialog to work if I replace line with ## Context mContext = this; My

[android-developers] How to set the width/height of a Spinner ArrayAdapter?

2009-10-08 Thread Glen Benton
It seems like a simple thing to do but this is the cause of much frustration. How do I set the size of the ArrayAdapter popup window when you select a spinner? By default it's the full width, and most of the height of the screen. I have tried making the spinner's parent a ViewGroup of the

[android-developers] Video Streaming using RSTP

2009-10-08 Thread Shan
hi , I am trying to play a video file using rtsp streaming. While running its giving error as 10-08 17:11:13.719: ERROR/PlayerDriver(542): Command PLAYER_INIT completed with an error or info PVMFFailure 10-08 17:11:13.729: ERROR/MediaPlayer(746): error (1, -1) 10-08 17:11:13.729:

[android-developers] Error using InstrumentationTestRunner with multiple projects

2009-10-08 Thread takashi
My application is seperated into three projects in eclipse. The first one is a client Android Project called Project A. The second is a server Android Project called ProjectB. Lastly, I have ProjectATest for testing that has references dependencies to ProjectA and ProjectB. When excuting

[android-developers] Unknown permission com.android.browser.permission.READ_HISTORY_BOOKMARKS

2009-10-08 Thread Bill
I'm getting reports from users about force closes in my app after the donut OTA. One of them was kind enough to send me a logcat which included these two gems (right after he installed it from market): 10-02 15:56:35.708 D/PackageManager( 71): New package installed in /

[android-developers] How does one change an app from a personal account to business account in the market?

2009-10-08 Thread aschobel
Our app is published with my personal gmail account, is there a way to transfer the app to our business gmail account and keep all your existing customers? A similar question was asked on the Android Market help forum, haven't seen an answer.

[android-developers] Choose the connection type before sending request

2009-10-08 Thread DWischer
Hi, i got a problem in my app which is a bit special. I have the android phone connected to a wifi with no internet access and a data connection via telephone. So all normal requests should be made ofver the data connection of the carrier, but a local request to the wifi printer should be made

[android-developers] Re: Sending a zip file as email attachment

2009-10-08 Thread Trushal
hello isuru.. removesendIntent.setType(application/zip); then try it.. it will work i think.. On Sep 10, 1:17 pm, Isuru danagalle iisuru@gmail.com wrote: Hi All,           Does any body know how to send a zip file as an attachment of an email? Intent sendIntent = new

[android-developers] Publishing both free and paid versions of app on Android Market

2009-10-08 Thread abarinoff
Hi all, Could someone give me a hint how should I publish both free and paid versions of application on Android Market so the user would be able to install Free version first and then upgrade to Paid version if he likes to. I saw few articles which are saying that there should be difference in

[android-developers] Using drawable resources

2009-10-08 Thread Jerome White
I'm trying to add picture to a map overlay, but the application dies (The appliation HelloMap has stopped unexpectedly.). Judging by logcat, I believe the problem has to do with how I access the drawable E/AndroidRuntime( 843): java.lang.RuntimeException: Unable to start activity

[android-developers] Geting SMS Center number

2009-10-08 Thread Delirium
Is it possible to get current SMS Center number inside application on android? --~--~-~--~~~---~--~~ 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: Error after installing 1.6 on DEV PHONE

2009-10-08 Thread jayan
there is an Option at Settings = Sdcard Phone Storage next search Factory Data Reset. and it will restart the phone. but you will be invited to setting up your gmail account. and will loose your WPA key for wifi. after your must reinstall your apps. but it wont delete your images. On Oct 8,

[android-developers] Email alerts customization

2009-10-08 Thread ACS
Hello everyone, I was very happy with my BlackBarry until I moved to Mytouch phone. I can't get email alerts as I used to with BB. I purchased an application called touchdown, but it is very limited. Their support people are not very responsive. I would like to request a feature that allow users

[android-developers] Re: can't get selector to work inside an app widget...

2009-10-08 Thread Weeds
It seems like the selector always takes the first matching item. As your first item does not have any conditions, it will always be taken. You can fix the problem by simply moving your default item to the last spot. I guess you copied the code from the ImageButton documentation. So ff some of

[android-developers] Re: Supressing Key presses in Activity, especially in Options Menu

2009-10-08 Thread Megha
In my opinion its not a good idea to supress call key behavior. I am surprised you are able to do that in the first place. From the user's perspective, if he is pressing the call key, he really wants to make a call, so I guess your app should not control that. You could however, show a warning

[android-developers] Re: Publishing both free and paid versions of app on Android Market

2009-10-08 Thread RichardC
Have a read of: http://groups.google.com/group/android-beginners/browse_thread/thread/7d5698ab66aadd62# specifically pos4 by Justin Anderson) It looks like a very nice solution and stops you haveing to maintain your code base in 2 projects. -- RichardC On Oct 8, 12:51 am, abarinoff

[android-developers] Re: What does Battery Usage Mean?

2009-10-08 Thread Dianne Hackborn
The G1 and Sapphire don't have a current meter on the battery, so the battery levels they show are approximate based on complicated software in the radio and kernel monitoring what is happening in the system. The battery usage UI is also an approximation of power consumption, based on another

[android-developers] Re: onConfigurationChanged-function

2009-10-08 Thread Dianne Hackborn
Please note, consuming configuration change events is NOT a way to get around having to deal with an activity being destroyed and recreated -- you still must deal with this to behave properly when your application goes to the background and must be killed to have memory elsewhere, so that when the

[android-developers] Re: select pitcure may lead to excced memory and crash?

2009-10-08 Thread Jarcikon
Yes, the images from the camera are 2048px by 1536px. If you convert to a bitmap, thats 2048 x 1536 x 2 = 6291456, or 6MB. This is right at the allotted space an Activity gets. If you can live with smaller images, I would suggest using a sampleSize of 1 when decoding the image. This will

[android-developers] Re: why is my app asking to access phone calls and storage?

2009-10-08 Thread Jarcikon
Sorry about the double post. I realized that because I was installing the app directly from the .apk file instead of the market, the Phone Calls and Storage permissions always come up. When it is put on the Market, they are gone. Don't think this was intended, but setting targetSdkVersion does

[android-developers] Re: What does Battery Usage Mean?

2009-10-08 Thread Disconnect
FWIW I am having battery issues recently that are entirely blamed on 'cell standby' and 'phone idle' (on the order of 43%/42%, with a couple of apps thrown in for luck at the bottom.) I initially tried to blame nagdroid (15 min polling or some such) but disabled polling and its still bad. :/ On

[android-developers] WebView and Custom Protocol Handlers

2009-10-08 Thread donthorp
Looking through the source, it seems that the URLInterceptRegistry is only used for URLUtil.isNetworkUrl, it then falls through to handleLocalFile which doesn't have an intercept point for local protocols. Is there another method that I've missed? At this point it looks like the only way to

[android-developers] Re: is any one sucefully deployed gmaps application on target 2

2009-10-08 Thread jotobjects
It seems you can't do this. According to an answer in another thread on this forum the add-on maps.jar is only the interface for compiling. The runtime shared library or external library (this is NOT a Linux shared *.so library) is installed on the device and that is NOT under control of the

[android-developers] Re: Should we still force our apps to API level 2?

2009-10-08 Thread gnugu
Thank you both for your answers! They are both very good and I'll keep them in my back pocket. I have decided to abandon API 2 and set minimum to API 3. I don't believe there is that many 1.1 phones left out there. Strangely after I did that my downloads went up rapidly. It's probably unrelated

[android-developers] Re: What does Battery Usage Mean?

2009-10-08 Thread dadical
I am indeed sleeping (I'll check out the other threads, thanks for the tip). From a battery usage perspective, I can't imagine that sleeping vs. alarm has any bearing though. Also, I forgot to mention that when the phone's screen turns off, my background service suspends itself (via

[android-developers] Align tabs horizontally to the left of screen

2009-10-08 Thread purvi
Hello, I have a TabActivity that display tabs either on the top or bottom as specified of the screen in portrait as well as landscape view. Currectly the tabs are dislayed one row and two columns(for 2 tabs each column as one tab). Now what I require is that when the view changes from portrait

[android-developers] Re: saveInstanceState problem

2009-10-08 Thread James Yum
Hi Stefan, You probably shouldn't handle the config changes, just for the purpose of keeping your activity alive. Just save the instance state like you were originally planning. Cheers, James On Wed, Oct 7, 2009 at 11:17 PM, Stefan ebay-dah...@web.de wrote: Hi Mike, thanks for your answer.

[android-developers] Re: Differences in building for target 2 and target 3 in 1.5 sdk

2009-10-08 Thread Xavier Ducrohet
There is no packaging difference between developing for a platform or an add-on. The only difference is that the custom task setup will resolve the target property from default.properties, see that it's an add-on, look up the list of additional library provided by the add-on and set up a the

[android-developers] view visibility callbacks

2009-10-08 Thread Jason Proctor
is there something that gets called off a View when its visibility changes? i'm not seeing an onVisibilityChanged() or equivalent in the docs or code. thanks -- jason.vp.engineering.particle --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: What does Battery Usage Mean?

2009-10-08 Thread Romain Guy
I would have to check but 40% does not mean that your app used 40% of the battery but that your app was responsible for 40% of the battery consumption. Even if that consumption was only 3% of the total battery capacity. On Thu, Oct 8, 2009 at 11:41 AM, dadical keyes...@gmail.com wrote: I am

  1   2   >