[android-developers] Min SDK version vs target SDK vs actual android version app runs on

2011-05-13 Thread Leo
Can somebody clarify where the java libraries get pulled from with regard to Min SDK version vs target SDK version vs actual device android version. When compiling in SDK I see min SDK version android*.jar getting pulled into referenced libraries by the eclipse plugin. But how does that

[android-developers] Min SDK version vs target SDK vs actual android version app runs on

2011-05-13 Thread Leo
Can somebody clarify where the java libraries get pulled from with regard to Min SDK version vs target SDK version vs actual device android version. When compiling in SDK I see min SDK version android*.jar getting pulled into referenced libraries by the eclipse plugin. But how does that

Re: [android-developers] Min SDK version vs target SDK vs actual android version app runs on

2011-05-13 Thread Dianne Hackborn
The mappings between code names, version numbers, and API levels is here: http://developer.android.com/reference/android/os/Build.VERSION_CODES.html On Fri, May 13, 2011 at 8:55 PM, Leo allway...@gmail.com wrote: Can somebody clarify where the java libraries get pulled from with regard to

[android-developers] Use your Machine as ADK with libusb

2011-05-13 Thread mdc
Hi everyone, I am really excited about the ADK but do not yet have a USB-Host Board. If you are like me and want to start testing and programming over the weekend then you can do this using your computer as accessory :) If you are running Linux then you can just use my little piece of C code to

[android-developers] Re: Progress circle (NOT indeterminate!)

2011-05-13 Thread Nicholas Johnson
Here's what you can do: Extend the AbsSeekBar classhttp://developer.android.com/reference/android/widget/AbsSeekBar.html, and implement the onDraw method to your liking. You can capture the height and width of your custom view by capturing those values in the onSizeChanged method. By drawing

Re: [android-developers] Re: Progress circle (NOT indeterminate!)

2011-05-13 Thread Romain Guy
You don't need to do all this. All you need is a drawable that supports levels. Android even provides a circle drawable that gets filled when you change the progress. Here's an example: layer-list xmlns:android=http://schemas.android.com/apk/res/android; item

[android-developers] Re: Min SDK version vs target SDK vs actual android version app runs on

2011-05-13 Thread Leo
Hi Dianne, That page lists what each version number's code name is but that is not I am seeking. I have more fundamental question. Say if I have opengl GL10 calls in my app and I have set minSDK level to 4 and targetSDK level 5 in my manifest and the app runs on a phone that has 2.3

[android-developers] Bind to Service in Fragment

2011-05-13 Thread goosedroid
Hello, I was wondering what the best place to bind / unbind to a service in a Fragment is. I am using the compatibility library, and revision 1 (v4?) has an issue with onStart/onStop. http://code.google.com/p/android/issues/detail?id=16490 Perhaps there is a workaround or a better lifecycle

[android-developers] Re: someone please explain this error and how to get rid of it

2011-05-13 Thread Spooky
On May 13, 3:10 pm, Mark Murphy mmur...@commonsware.com wrote: Either the JAR you added has java.nio.CharBuffer in it The JAR file is jtwitter-yamba.jar (renamed to jtwitter.jar), and there is no sign of java. anything anywhere in it. or you accidentally messed up your build path to include

Re: [android-developers] Re: Android renders RGB values wrong.

2011-05-13 Thread cg-dev
I know, but in Eclair it's not working. If you put Bitmap option to RGBA. You get a RGBA image but the image is altered. Maybe I'm wrong, but I remember I face this issue on my Eclair phone and take this workaround using libpng. In eclair release, if the bitmap has no alpha it was converted

[android-developers] Re: Scrollbar in AdapterView derived object

2011-05-13 Thread Ga
I spent more time on it and it the method ViewRoot.draw throw a nullpointer exception. I implemented every compute method and add this code to enable scrollbars : setHorizontalScrollBarEnabled(true); setScrollContainer(true); setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY);

[android-developers] Re: Progress circle (NOT indeterminate!)

2011-05-13 Thread Brill Pappin
Do you really need so much accuracy that you need to draw every point on your progress circle? Likely you don't unless you have something very specific for it to do. If thats the case, simply use a series 9patch png files and create a level drawable. You can use as many levels as you need. -

[android-developers] Re: someone please explain this error and how to get rid of it

2011-05-13 Thread Spooky
On May 13, 3:27 pm, Mark Murphy mmur...@commonsware.com wrote: Also, you may wish to visit that book's official support point: https://marakana.com/forums/android/learning_android_book/ Already posted this there. No response yet. I'm guessing that I'm more likely to get a response here.

Re: [android-developers] Re: Progress circle (NOT indeterminate!)

2011-05-13 Thread Brill Pappin
Ahh, thats a nice clean solution :) I'd go for Romain's solution as it'll be easier to maintain than a series of 9patch files. - Brill -- 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] Broadcast before shutting down

2011-05-13 Thread Albert
Hi there, Does anyone knows what broadcast event gets launched before a device is turned off (if any) - I want to be able to receive it on an app that is installed on the sd card, which complicates things... Cheers, Alberto -- You received this message because you are subscribed to the Google

Re: [android-developers] Re: someone please explain this error and how to get rid of it

2011-05-13 Thread Mark Murphy
On Fri, May 13, 2011 at 5:31 PM, Spooky spooky1...@gmail.com wrote: android.jar and jtwitter.jar are the only two JAR files listed anywhere in the project, they are the only two JAR files in the .classpath file, and they are the only two JAR files in the Yamba directory on the disk There

Re: [android-developers] Broadcast before shutting down

2011-05-13 Thread Filip Havlicek
http://developer.android.com/reference/android/content/Intent.html#ACTION_SHUTDOWN 2011/5/13 Albert albert8...@googlemail.com Hi there, Does anyone knows what broadcast event gets launched before a device is turned off (if any) - I want to be able to receive it on an app that is installed

[android-developers] Re: someone please explain this error and how to get rid of it

2011-05-13 Thread Spooky
On May 13, 5:01 pm, Mark Murphy mmur...@commonsware.com wrote: On Fri, May 13, 2011 at 5:31 PM, Spooky spooky1...@gmail.com wrote: and they are the only two JAR files in the Yamba directory on the disk I don't know why I wrote that...android.jar is referenced by the .classpath file, but

[android-developers] Re: WebView

2011-05-13 Thread bob
Thanks. I changed the code to this and it works import android.app.Activity; import android.os.Bundle; import android.webkit.WebView; import android.webkit.WebViewClient; public class hmm extends Activity { WebView mWebView; /** Called when the activity is first created. */

Re: [android-developers] Progress circle (NOT indeterminate!)

2011-05-13 Thread B Lyon
Yeah that looks slick On Friday, May 13, 2011, Brill Pappin br...@pappin.ca wrote: Ahh, thats a nice clean solution :) I'd go for Romain's solution as it'll be easier to maintain than a series of 9patch files. - Brill -- You received this message because you are subscribed to the Google

[android-developers] Re: Check permissions

2011-05-13 Thread Brill Pappin
Just came across this thread because i need to do it. Actually there is a case. Library with a component you want to use, but the app that uses it must include a permission to enable a certain part of the library. (in my case auto fill in the users email is GET_ACCOUNT is set) -- You

[android-developers] Re: Broadcast before shutting down

2011-05-13 Thread Albert
Thanks for the link! Although I have a feeling that an app installed on the sdcard won't be able to receive that. Will test it... On May 13, 11:03 pm, Filip Havlicek havlicek.fi...@gmail.com wrote: http://developer.android.com/reference/android/content/Intent.html#AC... 2011/5/13 Albert

[android-developers] Re: someone please explain this error and how to get rid of it

2011-05-13 Thread Spooky
On May 13, 5:01 pm, Mark Murphy mmur...@commonsware.com wrote: On Fri, May 13, 2011 at 5:31 PM, Spooky spooky1...@gmail.com wrote: All you do is copy your third-party JAR into libs/ and add it to your project with Add JAR on the Libraries tab of the Build Path dialog. I started off by

[android-developers] Re: how do i send mouse/touch event system wide

2011-05-13 Thread Indicator Veritatis
Yes, Android does not support the requested operation (global mouse event 'signalling'). And this is a GOOD thing! The Listener pattern is a far superior design, we should be thankful that we cannot broadcast the mouse click event to all apps and services. If the OP is not convinced, he should see

Re: [android-developers] Eclipse and Android source code

2011-05-13 Thread TreKing
On Thu, May 12, 2011 at 4:38 AM, Jeje jeromemalva...@gmail.com wrote: These 3 errors disappear but 7500 new errors appear Damn, lol. You need to try on a more appropriate group related to building the platform. Check the docs for more appropriate groups.

Re: [android-developers] Show default view in activitygroup

2011-05-13 Thread TreKing
On Thu, May 12, 2011 at 9:00 AM, dario dariospad...@gmail.com wrote: Any hint? Don't use ActivityGroup. I think Fragments are the new hotness to accomplish this type of mini-activity type functionality.

[android-developers] Re: Android and camera

2011-05-13 Thread Emanuel Moecklin
The manifest stuff looks ok so it's either your code or some other app using the camera without releasing it. If you post some code we might be able to help you. Cheers Emanuel Moecklin On May 13, 1:50 pm, kypriakos demet...@ece.neu.edu wrote: Hi all, I am working on an app to use the phone's

[android-developers] keyboard, where are you

2011-05-13 Thread bob
Sometimes in my Webviews, the keyboard doesn't pop up when the user clicks a text field. Anyone know how to fix this? Specifically, this is happening when I switch to a Webview from an OpenGL GLSurfaceView so that the user can tweet about the game they are playing. -- You received this message

Re: [android-developers] Broadcast receiver not working in Activity

2011-05-13 Thread TreKing
On Thu, May 12, 2011 at 11:17 AM, Walid abulwalid.ka...@gmail.com wrote: Can anyone give me working example to receive a broadcast message from a custom service and update a list in the view.. http://developer.android.com/reference/android/app/Service.html#LocalServiceSample

Re: [android-developers] Bind to Service in Fragment

2011-05-13 Thread Dianne Hackborn
It is the same as with an activity. On Fri, May 13, 2011 at 9:29 PM, goosedroid alexrhel...@gmail.com wrote: Hello, I was wondering what the best place to bind / unbind to a service in a Fragment is. I am using the compatibility library, and revision 1 (v4?) has an issue with

Re: [android-developers] Re: Min SDK version vs target SDK vs actual android version app runs on

2011-05-13 Thread Dianne Hackborn
GL10 has nothing to do with SDK version. I really don't understand what you are asking in relation to that. You set the minSdkVersion to the minimum number you will run on. Market will filter your app from older versions of the platform. You set targetSdkVersion to the newest version you have

[android-developers] simultaneous download of files - best way to handle it

2011-05-13 Thread droid-stricken
Hi All, I am writing an application targeting API level 9 or higher. So, i have decided to go with DownloadManager Class that SDK offers. My question is 2 part - 1. When i am downloading a single file, how do i display the progress of the download. I see i can get COLUMN_TOTAL_SIZE_BYTES and

Re: [android-developers] About removing all android apps

2011-05-13 Thread TreKing
On Thu, May 12, 2011 at 12:04 AM, bhavani sankari bhavani...@gmail.comwrote: I've developed a android app for a device.I have built my app along with other apps of gingerbread in linux. If you're modifying the source, you need to go to the appropriate group for that discussion. Check the

Re: [android-developers] android input method framework

2011-05-13 Thread TreKing
On Thu, May 12, 2011 at 5:12 AM, situ sitaram...@gmail.com wrote: Can anyone explain me the flow of android InputMethodFrameork.I tried understanding it but its lille complicated for me to understand.I wanna know the flow from LatinIme app to InputMethodManagerService. Buddy, it's unlikely

[android-developers] Re: adding style in xml breaks onClick events.

2011-05-13 Thread denov
solved it!! if you use style=?sytleItem in a listview the context menu breaks, onclick still works. using style=?attr/styleItem fixes it. don't ask why, i figured it out by reading the android source and (LOT of) trial and error. On May 6, 7:34 pm, denov d...@syncopated.net wrote: the ?

[android-developers] EditText stops displaying characters as I'm typing?

2011-05-13 Thread Ben S
Basically what happens is I will start typing on the keyboard (stock and third party), and all of a sudden it stops showing characters I type in the EditText, (sometimes) resets the caret to the beginning, yet I know I'm still typing because the suggestions box shows the characters as I type.

[android-developers] How do I know what encoding the string when I decoded from the media store?

2011-05-13 Thread wang
Hi, I have some Japanese music on device, I try to write program to get every music's detail information from media store using public static final String[] DataProjection = new String[]{ MediaStore.Audio.Media.ALBUM_ID, MediaStore.Audio.Albums.ALBUM,

[android-developers] New Tab Control In New Music App

2011-05-13 Thread flotzam
Anybody notice how the new official Google music app 3.0.338 that they released this week uses a new kind of tab metaphor, where you can scroll across to more tabs than the screen real estate can hold. Like you can see the edge of the Songs tab when you see Artists and Albums, etc? Pretty slick.

[android-developers] Help with audio streaming?

2011-05-13 Thread Damien
Hello, I am trying to test a simple streaming app, but whenever I run it, I get this error: Prepare failed.: status 0x1 My code is very basic: mp.setDataSource(http://asculta.kno.ro:9090/;); mp.setAudioStreamType(AudioManager.STREAM_MUSIC); mp.prepare(); mp.start(); However, all

[android-developers] keeping track of time a user is actively using an android app

2011-05-13 Thread laurent bouis
Hi, I am trying to find the best way to keep track of how much time a user spent on an android application (to report it to a server). I am only interested in tracking time where the user seems to use the app, so if it's in the background i shouldn't count that time for example. I did some

[android-developers] Re: How did you get into Android development

2011-05-13 Thread harism
On May 13, 1:24 pm, Knutsford Software i...@knutsford- software.co.uk wrote: How did people on this list get from learning about Android to getting paid work developing apps. In other words how did you get past the no experience no work stage? Well, as for me, I joined this list just minutes

[android-developers] horizontal view increasing the size of a text box

2011-05-13 Thread green hoodlum
Hi, i'm currently attempting to work out how to have 4 text boxes, 2 per row. i don't have a problem implementing this with a tablelayout/ tablerow where the text boxes of equal sizes. i.e: box1 box2 box3 box4 what i'd like to try is to have the 4th box to be a larger size. so for instance

[android-developers] Fragments API 11+ vs Compatibility package

2011-05-13 Thread Phil Bayfield
Hi, I've just started playing around with fragments to make some apps work better with tablets. I've got this working nicely with my SGS and Xoom using just the compatibility package (trying to mix both resulted in crashes as I'm using the same fragment classes for both), which means I had to

[android-developers] Device admin policy receiver failing on boot in Froyo but not Gingerbread

2011-05-13 Thread Brill Pappin
Ok, this problem has me stumped and I'm hoping someone watching the list has an idea of what the problem might be. I've got a device admin policy that installs with an app, however in Froyo it won't start at boot (it *does* seem to work fine in Gingerbread). The exceptions I get are: On

[android-developers] Official Stock Rom Downloads

2011-05-13 Thread pea
Hello. I did a stupid a while back when trying out roms for the first time and forgot to backup. Now I want to go back to the stock rom but don't want to download a compiled version off 'some forum' in case they're dodgy. I'm sure they're fine, but I just get that itching feeling. 1. Is there any

[android-developers] Official Stock Rom Downloads

2011-05-13 Thread pea
Hello. I did a stupid a while back when trying out roms for the first time and forgot to backup. Now I want to go back to the stock rom but don't want to download a compiled version off 'some forum' in case they're dodgy. I'm sure they're fine, but I just get that itching feeling. 1. Is there any

[android-developers] Re: Min SDK version vs target SDK vs actual android version app runs on

2011-05-13 Thread Brill Pappin
If your running in gingerbread, you get gingerbread libraries. There is no magic library selector that looks at your manifest first. -- 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: android input method framework

2011-05-13 Thread Brill Pappin
InputMethodService is just that... a service that runs waiting for you to need your keyboard and provides the hooks for the system to ask for it when needed. If its too complex for you to get while you are sitting in front of all the documentation, what makes you think its not too complex to

Re: [android-developers] How did you get into Android development

2011-05-13 Thread Brill Pappin
haha, particularly since 25 years ago, hardly anyone knew java (if it was even released). I have something between 15 or 16 years of experience with java now now (exact numbers are fuzzy in my old age)... and I started with java 1.1 :) In fact i think its only about 17 years old! Anyway. If

[android-developers] Re: Official Stock Rom Downloads

2011-05-13 Thread Brill Pappin
The stock ROM would come from the phone manufacturer, not directly from Google as I understand it. -- 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

[android-developers] Re: Device admin policy receiver failing on boot in Froyo but not Gingerbread

2011-05-13 Thread Brill Pappin
More info. I ended up rooting this device so I could check the policy storage. It was recorded, which is why I at least get the boot message that loading failed. # cat device_policies.xml ?xml version='1.0' encoding='utf-8' standalone='yes' ? policies admin

[android-developers] String Array help

2011-05-13 Thread Big Al
I need help with my programme. I am creating an epandable list from an xml file that contains data that can change at anytime. My question is the data in the xml file is stored in a string-array and I need to transfer it to a multi dimensional string array so I can use it to create the children

<    1   2   3