Re: [android-developers] Problem changing permission with chmod and runtime.getRuntime

2011-02-17 Thread Dianne Hackborn
Shell commands are not part of the SDK. What you are doing can't be relied upon to work. And it looks like you are trying to use the su command, which is guaranteed to not work on a regular user build. On Wed, Feb 16, 2011 at 10:22 PM, maikelalonso maikelalonsob...@gmail.comwrote: Hi: I'm

[android-developers] How to get the best double buffering?

2011-02-17 Thread MobileVisuals
I am painting polygons with the Paint class in an animation. New polygon shapes are created for every new frame. These are painting over parts of the screen. The parts of the screen which are not painted in the new frame flicker in a disturbing way. I am using lockCanvas(null); and

Re: [android-developers] Re: Unable to create new AVD

2011-02-17 Thread abdul waheed
On Thu, Feb 17, 2011 at 1:27 PM, bilalhaider bilalhaide...@gmail.comwrote: Thank you for the tips. I already tried this; C:\Documents and Settings\bilal.haiderandroid create avd -n my_android1.5 -t 2 Error: Target id is not valid. Use 'android.bat list targets' to get the target ids.

[android-developers] Re: android.graphics.Point with no getter methods

2011-02-17 Thread Raja Nagendra Kumar
Nope.. I almost got used to not having any public fields in our code.. Thanx for letting me know android still uses such approach. -- 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] DNS-lookup

2011-02-17 Thread Marcus Wolschon
Is there any way to do DNS-lookups of other records then just A and ? I need to look up MX-records and parse the results. -- 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: Cancel IMEs word prediction from application code?

2011-02-17 Thread Zarah
Hi! Try adding this attribute to your EditText: android:inputType=textVisiblePassword - Zarah. On Feb 17, 3:30 pm, LinusOnline linusonl...@gmail.com wrote: I have an EditText in my application where it never makes sense to use word prediction. Most IMEs have a setting to enable or disable

[android-developers] Re: Drag and Drop

2011-02-17 Thread Oded O.
Maybe this will help: http://code.google.com/p/mobile-anarchy-widgets/wiki/Drag_and_Drop Regards, Oded -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe

[android-developers] Re: How to get the best double buffering?

2011-02-17 Thread Peter Webb
From my own investigations, when you are given a Surface to write on, its contents are undefined but in practice the contents are the previous buffer used by Android's double buffering (for wallpapers at least it just flip-flops between buffers). Hence your flickering, as I think you correctly

[android-developers] Re: Account name with spaces throws Exception on Android 2.2

2011-02-17 Thread marten
Ok, thanks. I guess, I stick to URL-safe Base64 since it currently works well for me. Regards Marten On 17 Feb., 01:59, Dmitri Plotnikov dplotni...@google.com wrote: Hi Marten, I have verified that in the current code base a source ID with special characters works fine.  Not really sure

[android-developers] Re: Renderscript documentation

2011-02-17 Thread Christer Nordvik
Any news of docs for Renderscript? Since the Xoom is soon launching it would be nice to build some apps using Renderscript for this device. And it would be great if the Renderscript code used in the YouTube app could be shared with the developers :-) -Christer On 28 Jan, 20:18, Xavier Ducrohet

[android-developers] Re: Funny android map

2011-02-17 Thread alex
Please check the attached screenshot, it is exactly not i want. Anyway, i found after i deploy the app to a new emulator, it works fine again. -- 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] Problem with Web SQL Database on Droid 2 Global

2011-02-17 Thread Eugene Taranov
I have a web app using html5 that runs fine on every device so far except the droid 2 global at version 2.2 of android os. All other devices, including a (non Global) Droid 2, work fine. The open/ creation of a database works, but a CREATE TABLE fails with: Uncaught TypeError: Object 0 has no

[android-developers] appwidget icon set

2011-02-17 Thread b_t
Hi, There are a lot of icons in my appwidget. I would like a feature that a user can choose widget icon set in different styles. I don't want to store every icon set in the apk, only the default, because the apk would grow very large, and it is an appwidget so can't install on sd. Downloading

[android-developers] Re: Mms-Sms database Thread Id Issue

2011-02-17 Thread Madhavi
Thanks for the early reply. The idea is good to check first in canonical_addresses table but I have not found Uri exposed to get canonical table _id for the given address. We have the only Uri exposed to fetch address for the given _id. Do you have any idea how to get _id from

[android-developers] Re: Mms-Sms database Thread Id Issue

2011-02-17 Thread Madhavi
Thanks for the early reply. The idea is good to check first in canonical_addresses table but i have not found Uri exposed to get canonical table _id for the given address. We have the only Uri exposed to fetch address for the given _id. Do you have any idea how to get _id from canonical_addresses

[android-developers] Re: session management in android

2011-02-17 Thread pramod.deore
Ok Thanks for your information, But it will be great if someone provide link from where to start? On Feb 17, 10:09 am, Nandlal Viranni nandlal.phys...@gmail.com wrote: If U are using web service or any service then U can do it at server . But there is no facilities in android that automatically

[android-developers] Re: Unable to create new AVD

2011-02-17 Thread bilalhaider
At last i have made some progress. I have successfully created the AVD and launched it. It's amazing. But i am still unable to create a new project. Because Under Built Target the check box is disabled. In the console i have following output. [2011-02-17 15:33:25 - SDK Manager] Created AVD 'MyAVD'

[android-developers] Service Process Vs background process

2011-02-17 Thread Sivaprakash
Can some one tell how exactly *service process* and *background process*Service differs - Process Life Cycle Stand point? Because both of them are the to serve same purpose? -- - Prakash. -- You received this message because you are subscribed to the Google Groups Android Developers group. To

Re: [android-developers] Service Process Vs background process

2011-02-17 Thread Marcin Orlowski
On 17 February 2011 12:08, Sivaprakash sivaprakashshanmu...@gmail.com wrote: Can some one tell how exactly service process and background process Service differs - Process Life Cycle Stand point? Because both of them are the to serve same purpose? What exactly you mean by background process if

Re: [android-developers] Service Process Vs background process

2011-02-17 Thread A N K ! T
i think it is same as in android background processes is know as service... may be i couldn't get ur question... On Thu, Feb 17, 2011 at 4:40 PM, Marcin Orlowski webnet.andr...@gmail.comwrote: On 17 February 2011 12:08, Sivaprakash sivaprakashshanmu...@gmail.com wrote: Can some one tell how

Re: [android-developers] Re: Unable to start activity ComponentInfo during TabActivity initialization

2011-02-17 Thread MerlinBG
Well, I am just trying to run the example, so this is my main.xml: ?xml version=1.0 encoding=utf-8? TabHost xmlns:android=http://schemas.android.com/apk/res/android; android:id=@android:id/tabhost android:layout_width=fill_parent android:layout_height=fill_parent LinearLayout

Re: [android-developers] Re: Unable to start activity ComponentInfo during TabActivity initialization

2011-02-17 Thread MerlinBG
Well, I am just trying to run the example, so this is my main.xml: ?xml version=1.0 encoding=utf-8? TabHost xmlns:android=http://schemas.android.com/apk/res/android; android:id=@android:id/tabhost android:layout_width=fill_parent android:layout_height=fill_parent LinearLayout

Re: [android-developers] Android and Web-services

2011-02-17 Thread Federico Paolinelli
This goolge io session http://www.youtube.com/watch?v=xHXn3Kg2IQE could be a good source of info as well. Federico -- 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

Re: [android-developers] Re: Problem reading shared preferences in Gingerbread

2011-02-17 Thread A N K ! T
is there any key in that preferences named tag_name...may be this is causing a problem... On Thu, Feb 17, 2011 at 11:11 AM, Reddy devireddy@gmail.com wrote: I am reading the static file (default.xml) which will be present in system/etc/.../package_name folder. Not writing any values into

Re: [android-developers] appwidget icon set

2011-02-17 Thread Marcin Orlowski
I don't want to store every icon set in the apk, only the default, Depending on for what you are using your icons, it may be still fine to store additional sets in separate APKs. You can then reach them from your main app (however, as said, some API calls require local resources) -- Regards,

Re: [android-developers] Re: Regarding Database

2011-02-17 Thread A N K ! T
its a tough question...:P do one thing 1 first read about Edittext class and its methods... 2 den read about what is database and how it is work in android... but before that please try to know what is Classes, what is methods and what is objects...and how u can use these things .. then

Re: [android-developers] Regarding Server connection

2011-02-17 Thread A N K ! T
y dont u tell us task what u want to do...and we ll do it for u...:P.. it will easy for members... On Thu, Feb 17, 2011 at 2:44 AM, TreKing treking...@gmail.com wrote: On Tue, Feb 15, 2011 at 2:09 AM, yogendra G yogi2...@gmail.com wrote: I need sum code or explanation for writing server code

Re: [android-developers] Re: Regarding Database

2011-02-17 Thread arun scaria
try to get basic concepts from http://developer.android.com http://www.anotherandroidblog.com/2010/08/04/android-database-tutorial/ do u want it more easy?? try http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ -- Arun Scaria, Project Head, MEC

[android-developers] we are hiring Android Developer in Chennai, India

2011-02-17 Thread newra...@gmail.com
Looking for Android SDK and C++ profile with 3+ work experience Proficient in Android Platform, Kernel programming -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

[android-developers] Re: Problem reading shared preferences in Gingerbread

2011-02-17 Thread Reddy
I am able to read the same in Froyo. Only on android version 2.3 and above not able to read. On Feb 17, 4:23 pm, A N K ! T ankit.awasth...@gmail.com wrote: is there any key in that preferences named tag_name...may be this is causing a problem... On Thu, Feb 17, 2011 at 11:11 AM, Reddy

[android-developers] Re: Corrupted images when uploading to server via POST

2011-02-17 Thread alex c
i cannot believe i am the only luck person who experiences this... =) hoped to find a solution here :( -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe

[android-developers] Fetch contact details in a multiple-selection Listview

2011-02-17 Thread madmax
Hi Guys, I've looked around much on the forums but haven't been able to find the solution to this problem. I have to fetch the contacts from the phone in to a multiple-selection listview. It should look something like this Contact Name [Checkbox] --Contact

Re: [android-developers] Service Process Vs background process

2011-02-17 Thread Sivaprakash
OK if you go through the following link http://developer.android.com/guide/topics/fundamentals.html Processes and lifecycles sectionthere are two things Service Process and Background Process, how they differ each other? - Siva On Thu, Feb 17, 2011 at 4:46 PM, A N K ! T

Re: [android-developers] Service Process Vs background process

2011-02-17 Thread Marcin Orlowski
On 17 February 2011 14:11, Sivaprakash sivaprakashshanmu...@gmail.com wrote: there are two things Service Process and Background Process, how they differ each other? Background process is not a system element/feature you can use (as Service is). It's a *state* of process (same as foreground

Re: [android-developers] Open Notification Bar Programmatically

2011-02-17 Thread TreKing
On Wed, Feb 16, 2011 at 4:28 PM, chrismanster chrismans...@gmail.comwrote: Is there a way/how do you open the notification area from code. I believe it is ADW.Launcher that has an option to open the notifications from the menu. Stock Android has a menu option for this, so the functionality

[android-developers] Theming an Activity as a Dialog

2011-02-17 Thread Jake Colman
Theming an activity to appear as a dialog has been discussed many times already. My issue is specifically with the title that appears at the top of the dialog. How do I get it to appear as it would in the example of an alert dialog that contains a list? Currently, I have the following: ?xml

Re: [android-developers] Fetch contact details in a multiple-selection Listview

2011-02-17 Thread Mark Murphy
This isn't so much a contacts thing as it is a how do I do choiceMode=multipleChoice with a custom layout thing. I have not stumbled across an example for that, but I have not been looking all that hard, either. On Thu, Feb 17, 2011 at 8:11 AM, madmax madmax.1...@gmail.com wrote: Hi Guys,      

Re: [android-developers] Re: session management in android

2011-02-17 Thread TreKing
On Thu, Feb 17, 2011 at 4:41 AM, pramod.deore deore.pramo...@gmail.comwrote: But it will be great if someone provide link from where to start? http://www.google.com/ http://www.google.com/That's where I always start.

[android-developers] Determining the Display of Related Apps in Marketplace

2011-02-17 Thread Jake Colman
I am getting ready to publish my first app to the Marketplace. What determines how Marketplace displays the list of apps related to your's? I want to make sure that when people search for apps that are similar to mine that my app appears in that app's list of related applications. But when I

[android-developers] Controlling LEDs on Notification

2011-02-17 Thread Jake Colman
On my HTC EVO I see that my running apps have two forms of typical notification: 1) Tweets, for example, vibrate and make a sound once upon arrival only. 2) SMS, for example, vibrate and make a sound once upon arrival, but flash the LED until the SMS is acknowledged. In my app I create a new

[android-developers] Re: Open Notification Bar Programmatically

2011-02-17 Thread chrismanster
I know that there is a way. I was wondering if anyone knew how so I don't have to dig through the source and rip it. (hence the /how in the question). On Feb 17, 7:31 am, TreKing treking...@gmail.com wrote: On Wed, Feb 16, 2011 at 4:28 PM, chrismanster chrismans...@gmail.comwrote: Is there a

[android-developers] Changing tab background image

2011-02-17 Thread cool.manish
Hi, I want to change the tab image on enable and disable. I am trying to use following xml. but it is not working tabhost.newTabSpec(mailboxTabId).setIndicator(mailboxTabId, getResources().getDrawable(R.layout.mailbox_tab_state)).setContent(mailboxIntent); ?xml version=1.0

Re: [android-developers] Changing tab background image

2011-02-17 Thread Mark Murphy
Try: selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_selected=true android:state_pressed=false android:drawable=@drawable/icon_selected / item

[android-developers] Re: Controlling LEDs on Notification

2011-02-17 Thread Marcus Wolschon
RTFM http://developer.android.com/guide/topics/ui/notifiers/notifications.html#Lights On 17 Feb., 14:44, Jake Colman col...@ppllc.com wrote: On my HTC EVO I see that my running apps have two forms of typical notification: 1) Tweets, for example, vibrate and make a sound once upon arrival

Re: [android-developers] Re: How to flash Froyo on HTC HERO G2

2011-02-17 Thread TreKing
On Thu, Feb 17, 2011 at 12:20 AM, Indicator Veritatis mej1...@yahoo.comwrote: I was thinking of saying the same thing, but I didn't, because I didn't want to say that without pointing him to the RIGHT forum. Good point. Instead you said that you were going to say the same thing, but didn't,

[android-developers] Re: Unable to create new AVD

2011-02-17 Thread bilalhaider
Done. Thanks for the support. I have successfuly launched a project created from existing sample project. I'll create a new project and will update... On Feb 17, 3:54 pm, bilalhaider bilalhaide...@gmail.com wrote: At last i have made some progress. I have successfully created the AVD and

Re: [android-developers] Re: Open Notification Bar Programmatically

2011-02-17 Thread TreKing
On Thu, Feb 17, 2011 at 7:48 AM, chrismanster chrismans...@gmail.comwrote: I know that there is a way. I was wondering if anyone knew how so I don't have to dig through the source and rip it. (hence the /how in the question). Oh, sorry - dig through the source and rip it *was* the how in my

[android-developers] Re: How to implement a list view same as contacts list in Android 2.2

2011-02-17 Thread KrisK
Look at the API Demos sample under Views -Array (Overlay) - List9.java On Feb 15, 3:52 am, R karthikeyan karthibl...@gmail.com wrote: Hi, We need to implement a screen with list in such a way that it has a Section header / group header / Alphabetical header followed by the list of items

Re: [android-developers] Theming an Activity as a Dialog

2011-02-17 Thread Kostya Vasilyev
17.02.2011 16:35, Jake Colman пишет: style name=DialogTheme parent=android:style/Theme.Dialog For one, you are missing the @ sign: parent=@android:style/Theme.Dialog -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google

[android-developers] Re: dx tool for Gingerbread?

2011-02-17 Thread Eric
You mean I should not have to care on which platform my jar file is going to be used as long as it was optimized with the dx tool under / platform-tools? Then I guess my confusion arise from the fact that the SDK ships with numerous versions of the dx tools for the different Android releases. Why

[android-developers] Re: Theming an Activity as a Dialog

2011-02-17 Thread Jake Colman
KV == Kostya Vasilyev kmans...@gmail.com writes: KV 17.02.2011 16:35, Jake Colman пишет: style name=DialogTheme parent=android:style/Theme.Dialog KV For one, you are missing the @ sign: KV parent=@android:style/Theme.Dialog Thanks for the catch but that wasn't the problem! Use

[android-developers] Re: Controlling LEDs on Notification

2011-02-17 Thread Jake Colman
Marcus, Not a helpful answer - but maybe my question was not specific enough. Several questions: 1) Using DEFAULT_ALL, why is DEFAULT_LIGHTS not included? 2) To specify color, the implication is that I have replace DEFAULT_LIGHTS with FLAG_SHOW_LIGHTS. If so, what is the equivalent

Re: [android-developers] Re: Theming an Activity as a Dialog

2011-02-17 Thread Kostya Vasilyev
Jake, Ah, you mean like an *alert* dialog. I don't think you can. AlertDialog uses certain resources which are not accessible to applications. You can find them under android-X\data\res\drawable: - popup_top_dark.9.png for the title bar background; - popup_center_bright.9.png for the middle

Re: [android-developers] Re: Multiple Sliding Drawers in a ListView

2011-02-17 Thread TreKing
On Wed, Feb 16, 2011 at 11:12 PM, Jitesh dedhiya jitesh.dedh...@gmail.comwrote: any suggestions so far..? In the hour and a half since your original post? No, apparently not. Please wait at least a few days before bumping your post.

Re: [android-developers] Determining the Display of Related Apps in Marketplace

2011-02-17 Thread TreKing
On Thu, Feb 17, 2011 at 7:38 AM, Jake Colman col...@ppllc.com wrote: What determines how Marketplace displays the list of apps related to your's? Only people at Google know that and they're not telling. Category and keywords and perhaps user comments probably play a factor. There is nothing

[android-developers] Re: Changing tab background image

2011-02-17 Thread cool.manish
Hi Mark, Thanks for your reply. Its working. I have some more queries: 1. My tab is displaying some text which consuming more than the available space because of it on focused tab text is scrolling. I want to display this text as multiline. Is it possible? 2. I have used a grid view in which

[android-developers] Re: Open Notification Bar Programmatically

2011-02-17 Thread chrismanster
Found this code. Looks like you have to use reflection. try { Object service = getSystemService (statusbar); Class ? statusBarManager = Class.forName (android.app.StatusBarManager); Method expand = statusBarManager.getMethod (expand); expand.invoke (service); } catch (Exception e) {

Re: [android-developers] Re: Changing tab background image

2011-02-17 Thread Mark Murphy
On Thu, Feb 17, 2011 at 10:26 AM, cool.manish mannishga...@gmail.com wrote: I have some more queries: 1. My tab is displaying some text which consuming more than the available space because of it on focused tab text is scrolling. I want to display this text as multiline. Is it possible? Use

[android-developers] Re: Theming an Activity as a Dialog

2011-02-17 Thread Jake Colman
Kostya, Yes, that's exactly what I'm looking for. Odd that you cannot theme yourself to mimic that look. I don't think I can use an actual AlertDialog since I am displaying this from inside a broadcast receiver. I believe that that is the classic situation that requires one to use an actual

Re: [android-developers] Re: Open Notification Bar Programmatically

2011-02-17 Thread Mark Murphy
As I indicated in your StackOverflow question, doing this is not a good idea. It may or may not work on every device. It may or may not work in future versions of Android. I strongly encourage you to redesign your application to leave the original status bar in place. On Thu, Feb 17, 2011 at

Re: [android-developers] Re: Theming an Activity as a Dialog

2011-02-17 Thread Mark Murphy
On Thu, Feb 17, 2011 at 10:35 AM, Jake Colman col...@ppllc.com wrote: I don't think I can use an actual AlertDialog since I am displaying this from inside a broadcast receiver.  I believe that that is the classic situation that requires one to use an actual activity that is made to look like a

[android-developers] How to handle the volume keys??

2011-02-17 Thread Felipe Monteiro de Carvalho
Hello, I would like to execute an event when the volume keys are pressed. Any ideas how I can do that? thanks! Felipe -- 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

Re: [android-developers] Comparing Two images

2011-02-17 Thread TreKing
On Thu, Feb 17, 2011 at 1:00 AM, Jayanthi jaia...@gmail.com wrote: Is it possible to compare two Images and find difference between the two Image do anyone knows sample on the same http://tinyurl.com/4jnhks9

Re: [android-developers] How to handle the volume keys??

2011-02-17 Thread Marcin Orlowski
On 17 February 2011 16:39, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: Hello, I would like to execute an event when the volume keys are pressed. Any ideas how I can do that? listen to keycodes in onKeyDown and react on codes shown there:

Re: [android-developers] Comparing Two images

2011-02-17 Thread Bambr
TreKing - you made my day :D On Thu, Feb 17, 2011 at 5:41 PM, TreKing treking...@gmail.com wrote: On Thu, Feb 17, 2011 at 1:00 AM, Jayanthi jaia...@gmail.com wrote: Is it possible to compare two Images and find difference between the two Image do anyone knows sample on the same

Re: [android-developers] Re: Theming an Activity as a Dialog

2011-02-17 Thread Kostya Vasilyev
17.02.2011 18:35, Jake Colman пишет: Yes, that's exactly what I'm looking for. Odd that you cannot theme yourself to mimic that look. Yes, it is odd. But those panel backgrounds are not the only resources that could be useful in an application, but aren't accessible. I don't think I can

Re: [android-developers] Re: Changing tab background image

2011-02-17 Thread Kostya Vasilyev
Buttons are not the only widgets that can respond to clicks and can use a state drawable. A TextView would work too, and it's probably easer to make it look right (look up TextView.setCompoundDrawablesWithIntrinsicBounds). -- Kostya 17.02.2011 18:42, cool.manish пишет: 2. I have used a

[android-developers] Re: Changing tab background image

2011-02-17 Thread cool.manish
2. I have used a grid view in which every cell is a button. I want to change the image on click of a button. I try to use same state as mentioned in your reply. but it has not worked. I was creating a calendar and to display dates and displaying events on a particular day on click of a day. i

[android-developers] Re: Theming an Activity as a Dialog

2011-02-17 Thread Jake Colman
MM == Mark Murphy mmur...@commonsware.com writes: MM On Thu, Feb 17, 2011 at 10:35 AM, Jake Colman col...@ppllc.com wrote: I don't think I can use an actual AlertDialog since I am displaying this from inside a broadcast receiver.  I believe that that is the classic situation that

[android-developers] Re: OpenGL ES 2.0 for Live Wallpapers

2011-02-17 Thread laurent mallet
My Galaxy Tab ROM is XWJJ4. The problem with OpenGL ES 2.0 Livewallpaper seems related to FBO. If i use them, it crashes on many phones. Only my N1 (CM7 alpha version 47) works. On 16 fév, 18:52, Michael meicpal...@gmail.com wrote: I am testing my live wallpaper on a Galaxy Tab, and it works.

[android-developers] what is the diff between dismissing a dialogfragment or explicitly removing it from the fragment manager?

2011-02-17 Thread Satya Komatineni
ASampleDialogFragment extends DialogFragment { onButtonDismiss() { this.dismiss(); } onButtonRemove() { FragmentManager fm = this.getFragmentManager(); FragmentTransaction ft = fm.beginTransaction(); ft.remove(this); ft.commit(); } } if

Re: [android-developers] Re: Theming an Activity as a Dialog

2011-02-17 Thread Mark Murphy
On Thu, Feb 17, 2011 at 11:04 AM, Jake Colman col...@ppllc.com wrote: I am working with an appwidget.  When the user taps the appwidget I want to give him a choice of which of two activities to display: the configuration (preferences) activity, or one that displays some relevant information.

[android-developers] Deleting cached SD card files on uninstall

2011-02-17 Thread John Gaby
I am downloading and caching some files to the SD card. I am placing the files at: /Android/data/com.gabysoft.myapp When the app is uninstalled, on some phones (e.g. the emulator and Motorola Droid), these files are automatically delete (which is what I want). On other phones (e.g. HTC Hero

[android-developers] Re: Deleting cached SD card files on uninstall

2011-02-17 Thread John Gaby
As a clarification, I am placing the files in the SD card folder as obtained via a call to getExternalStorageDirectory(), e.g: /sdcard/Android/data/com.gabysoft.myapp On Feb 17, 8:40 am, John Gaby jg...@gabysoft.com wrote: I am downloading and caching some files to the SD card.  I am placing

[android-developers] Select mp3 to play?

2011-02-17 Thread vnv
Hi, I would like to enable my user to select mp3 or whatever sound file he want's to to play it as designated alarm sound. Is there any intent-alike thingy that I could call and user would browse selection and select, after which I could have path to the existing file. Tnx for help in advance.

Re: [android-developers] Deleting cached SD card files on uninstall

2011-02-17 Thread Mark Murphy
You can't. Deleting files on uninstall via getExternalFilesDir() was added in API Level 8 (a.k.a., Android 2.2). On Thu, Feb 17, 2011 at 11:40 AM, John Gaby jg...@gabysoft.com wrote: I am downloading and caching some files to the SD card.  I am placing the files at:

[android-developers] Re: Changing tab background image

2011-02-17 Thread cool.manish
Kostya, I know that textbox could be clicked, I wasn't aware that we could give boundary to the textView. Will it be useful in my case to change the image if it has been clicked. On Feb 17, 8:54 pm, Kostya Vasilyev kmans...@gmail.com wrote: Buttons are not the only widgets that can respond to

Re: [android-developers] Select mp3 to play?

2011-02-17 Thread Danielle Murkerson
I had to do something similar for my app...what I did was use the Alarm Manager based on these examples: http://www.androidcompetencycenter.com/2009/02/android-basics-alarm-service/ http://www.epochconverter.com/ I only had two files (in my case they were live streams) for my user to choose from

[android-developers] Re: Changing tab background image

2011-02-17 Thread cool.manish
Kostya, I know textview is also clickable. we can draw boundary its a new thing for me. but is there any reason to not to use button. will I be able achive changing image of selection. On Feb 17, 8:54 pm, Kostya Vasilyev kmans...@gmail.com wrote: Buttons are not the only widgets that can respond

[android-developers] Re: Select mp3 to play?

2011-02-17 Thread vnv
Hey tnx for quick reply. I have already managed thing with the alarm, and I am really hoping that there is easy solution for this. I will reformulate my question better than before. How to call file browser with sound file type as filter so user could only choose sound file and on return get

[android-developers] Re: Deleting cached SD card files on uninstall

2011-02-17 Thread John Gaby
So there is no way to clean up my files on pre 2.2 systems? On Feb 17, 8:52 am, Mark Murphy mmur...@commonsware.com wrote: You can't. Deleting files on uninstall via getExternalFilesDir() was added in API Level 8 (a.k.a., Android 2.2). On Thu, Feb 17, 2011 at 11:40 AM, John Gaby

[android-developers] Emulator boot-loader

2011-02-17 Thread Dudero
Hello, Can someone explain to me how the Android emulator is started - contains the kernel-image already a boot-loader such as u-boot? If it contains a boot-loader, what are the possibilities to access it? Greetz dudero -- You received this message because you are subscribed to the Google

Re: [android-developers] Re: Deleting cached SD card files on uninstall

2011-02-17 Thread Mark Murphy
On Thu, Feb 17, 2011 at 12:05 PM, John Gaby jg...@gabysoft.com wrote: So there is no way to clean up my files on pre 2.2 systems? No, sorry. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy

[android-developers] Pins for developers?

2011-02-17 Thread Leon Moreyn-Android Development
So I hear that Google gave away Android Pins at MWC. Any chance us lowly developers will be getting those pins? -- 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

Re: [android-developers] Re: Select mp3 to play?

2011-02-17 Thread Danielle Murkerson
Well I can't help you there as I've never worked with a file browser in my app...sorry about that. DanielleM On Thu, Feb 17, 2011 at 12:05 PM, vnv nikola1...@gmail.com wrote: Hey tnx for quick reply. I have already managed thing with the alarm, and I am really hoping that there is easy

[android-developers] scrollbar is coming in gridview

2011-02-17 Thread cool.manish
Hi, I am using grid view. It is not displaying all contents and adding one scroll bar. after scrolling i get to know that their are other items available. There is lots of space available on the screen but even then it is displaying scrollbar -- You received this message because you are

[android-developers] unwanted scrollbar is coming in gridview

2011-02-17 Thread cool.manish
Hi, I am using grid view. It is not displaying all contents and adding one scroll bar. after scrolling i get to know that their are other items available. There is lots of space available on the screen but even then it is displaying scrollbar -- You received this message because you are

Re: [android-developers] Re: Changing tab background image

2011-02-17 Thread Kostya Vasilyev
17.02.2011 20:03, cool.manish пишет: Kostya, I know textview is also clickable. we can draw boundary its a new thing for me. I was just suggesting you could use compound drawable(s) to indicate days with appointments, etc. It's an easy way to add small images to a TextView. but is there

Re: [android-developers] Re: Select mp3 to play?

2011-02-17 Thread Kostya Vasilyev
17.02.2011 20:05, vnv пишет: How to call file browser with sound file type as filter so user could only choose sound file and on return get that path. http://developer.android.com/reference/android/content/Intent.html#ACTION_GET_CONTENT -- Kostya Vasilyev -- http://kmansoft.wordpress.com --

Re: [android-developers] Re: dx tool for Gingerbread?

2011-02-17 Thread Xavier Ducrohet
Prior to Tools r8 we did indeed use dx (and aapt, and aidl) from each platform based on the project compilation target. We originally did this so that we wouldn't have to care about possible compatibility change (for instance the tool generates a new format while the platform itself can read both

[android-developers] Android install_referrer gives incorrect utm_source and information

2011-02-17 Thread arbitrary-software
Hi, I'm trying to use INSTALL_REFERRER on Android 2.2, and my broadcast receiver is getting called so I know my AndroidManifest.xml is correct. However, the information being passed to my receiver is not what I'm putting in the URL. To me, it looks like default Android Market info and its

Re: [android-developers] Android and Web-services

2011-02-17 Thread Jatin D Patel
http://jatin4rise.wordpress.com/2010/10/03/webservicecallfromandroid/ if u still have issue with calling webservice, lemme know On Thu, Feb 17, 2011 at 6:22 AM, Federico Paolinelli fedep...@gmail.comwrote: This goolge io session http://www.youtube.com/watch?v=xHXn3Kg2IQE could be a good

[android-developers] Diagnosing build path errors

2011-02-17 Thread Bret Foreman
I'm getting the message The project cannot be built until build path errors are resolved, and then it shows one of my libraries as the offending resource. The problem is that I don't know the exact build path problem. Is there a log file somewhere with a more detailed message? -- You received

[android-developers] App widget animations possible with Gingerbread?

2011-02-17 Thread Cheryl Sedota
I got an email from my Google partner advocate contact stating that basic animations are already supported in app widgets in gingerbread. Can someone please give me a pointer to the attribute or method/API that I need to use to get this working? -- You received this message because you are

Re: [android-developers] Re: Hi

2011-02-17 Thread Jatin D Patel
Hope this helps tooo http://sites.google.com/site/androidcoursearchive/labs/lab-1 On Tue, Feb 15, 2011 at 5:56 PM, Russell DuRoss r2s...@gmail.com wrote: http://developer.android.com/index.html On Feb 14, 2:56 am, Mohamed Zubair mohamedzubairbat...@gmail.com wrote: Hi, Am

[android-developers] Re: Diagnosing build path errors

2011-02-17 Thread Bret Foreman
I tried removing all the libraries and adding them again. This resulted in a slightly different error message: Project 'myProject' is missing the required source folder: 'offendingLibrary'. Where offending library is the same one as before. I think this may be a problem in the setup of the

[android-developers] Clearning Activity's intent data randomly comes back, why?

2011-02-17 Thread Moto
I have a media application which starts playback when the intent is sent to the player activity with the following intent extras; data path to the music and type mime/audio format. I pick up the intent data at the player activity execute to start playback and I remove the passed extras from

Re: [android-developers] Clearning Activity's intent data randomly comes back, why?

2011-02-17 Thread Kostya Vasilyev
Have you thought about using setIntent() with a new Intent object (without the unneeded data items) - rather than trying to modify the orignial Intent object in-place? -- Kostya 17.02.2011 20:50, Moto пишет: // remove intents because they are needed only once per call!

[android-developers] Re: appwidget icon set

2011-02-17 Thread b_t
I would like to use them in RemoteViews.setImageViewResource or setImageViewUri calls. On febr. 17, 12:42, Marcin Orlowski webnet.andr...@gmail.com wrote: I don't want to store every icon set in the apk, only the default, Depending on for what you are using your icons, it may be still fine

Re: [android-developers] Re: appwidget icon set

2011-02-17 Thread Kostya Vasilyev
17.02.2011 20:59, b_t пишет: I would like to use them in RemoteViews.setImageViewResource or setImageViewUri calls. A resource id - won't work, the widget's image view is in another application (stock or replacement launcher). A Uri - would work, with a file:// or content:// scheme. A file

  1   2   >