[android-developers] Re: Have GET_INTENT_FILTERS been supported?

2009-09-06 Thread EboMike
Dianne, you're absolutely right. it'd be time much better spent if you guys worked on stuff that common townfolk can't do. I think I'll look into it (assuming I hear back on android-source about the patch I'm currently trying to commit). My question though: Who can tell me which function is

[android-developers] Re: logcat api?

2009-09-06 Thread Dianne Hackborn
You don't need to run as root, you don't need to run as system, you just need to be in the group that can access the log driver, which I am pretty sure there is a non-privileged permission for. On Sat, Sep 5, 2009 at 9:35 PM, Chris Stratton cs07...@gmail.com wrote: On Sep 5, 3:44 pm, Dianne

[android-developers] Re: Converting Canvas to Drawable ?

2009-09-06 Thread Dianne Hackborn
If you want to do your own drawing, create a subclass of Drawable and draw whatever you want when called. On Sat, Sep 5, 2009 at 6:37 PM, hc honch...@gmail.com wrote: Is it possible to convert a Canvas to Drawable? I may be really off in my solution, so if you have a better suggestion,

[android-developers] Re: Converting Canvas to Drawable ?

2009-09-06 Thread skink
On Sep 6, 3:37 am, hc honch...@gmail.com wrote: Is it possible to convert a Canvas to Drawable? I may be really off in my solution, so if you have a better suggestion, please do tell me. This is what I'm trying to do. I'm trying to create a custom RadioButton. to set different states of

[android-developers] how to change ProgressBar background color

2009-09-06 Thread sdphil
this does not work -- !-- (progress bar) -- ProgressBar android:id=@+id/ProgressBar style=?android:attr/progressBarStyleHorizontal android:progressDrawable=@drawable/ progress_bar

[android-developers] Re: DISABLE_DEXPREOPT ?

2009-09-06 Thread ymhuang
Check build/core/Makefile, it should give you a start to trace source code. build/core/Makefile: ifdef WITH_DEXPREOPT ifndef DISABLE_DEXPREOPT with_dexpreopt := true endif endif ifdef with_dexpreopt # This file will set BUILT_SYSTEMIMAGE and SYSTEMIMAGE_SOURCE_DIR include

[android-developers] Re: How update TextView?

2009-09-06 Thread Francesco Pace
Hello Lance, Thanks for you answer. I try with you code but my program doesn't work correctly. It show me strings but all together at the end of my activity. For example, I have: View.OnClickListener mStartListener2 = new OnClickListener() { public void onClick(View v) {

[android-developers] Re: Null pointer exception while receiving at Broadcast receiver

2009-09-06 Thread Randy McEoin
It would be best to check for null before attempting to use. Perhaps whatever is issuing the broadcast is not adding the string extra. String msg_receive = intent.getStringExtra(message1); if (msg_receive != null) { AssetTest.hh_text.append(\n\n+msg_receive); } Randy On Sep 3, 10:49 pm,

[android-developers] JSR - Does Android have a list of JSR's ?

2009-09-06 Thread Singelton
Hi, JSR - Does Android have a list of JSR's ? Thanks --~--~-~--~~~---~--~~ 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 change ProgressBar background color

2009-09-06 Thread Mark Murphy
sdphil wrote: this does not work -- !-- (progress bar) -- ProgressBar android:id=@+id/ProgressBar style=?android:attr/progressBarStyleHorizontal android:progressDrawable=@drawable/

[android-developers] Re: SingleTask...

2009-09-06 Thread indra
Hi, Here I come across a strange problem. I am using a static list (say myList) in a Singleton class, which I use in a activity (say myActivity) which is run by a singleTask root activity (rootActivty). But when i try to access myList in the myActivity, I do not get a refreshed version of that

[android-developers] AudioRecord APIs

2009-09-06 Thread Tez
Hi, I have two questions 1. Has anyone been able to use an AudioRecord properly WITHOUT the buffer overflow messages? 2. What is the audio latency parameter? Cheers, Earlence --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Android in the future

2009-09-06 Thread HB
Hey, Lately, I have been reading a lot of thoughts and reviews on the web about Android OS and Android devices and many of them saying that Android failed to catch the game with other players (iPhone, Palm Pre). Do you think the game is over for Android? does it still has a future?

[android-developers] Re: Android in the future

2009-09-06 Thread Mark Murphy
HB wrote: Hey, Lately, I have been reading a lot of thoughts and reviews on the web about Android OS and Android devices and many of them saying that Android failed to catch the game with other players (iPhone, Palm Pre). Do you think the game is over for Android? does it still has a

[android-developers] Re: Converting Canvas to Drawable ?

2009-09-06 Thread honcheng
Hi, I thought about subclassing Drawable. But I can't seem to find a way to initiate a Drawable by itself e.g. Drawable newDrawable = new Drawable(); even thought Drawable() is mentioned as a constructor. I have only seem getDrawable() as a method in ImageView. How do I just create a Drawable

[android-developers] Re: JSR - Does Android have a list of JSR's ?

2009-09-06 Thread Casper Bang
Apache Harmony does implement the umbrella JSR's that makes up Java. Two problems though, 1) Android includes a subset of Harmony and 2) Technically Harmony is not Java as Sun has been unwilling to grant them that status. /Casper On 6 Sep., 12:23, Mark Murphy mmur...@commonsware.com wrote:

[android-developers] Re: Converting Canvas to Drawable ?

2009-09-06 Thread skink
On Sep 6, 3:00 pm, honcheng honch...@gmail.com wrote: I have only seem getDrawable() as a method in ImageView. How do I just create a Drawable after I subclass it? public class MyStateDrawable extends Drawable { ... } --- Drawable d = new MyStateDrawable();

[android-developers] Inter-Activity memory restriction and API documents

2009-09-06 Thread Jack Jia
Hi there, I think the strict inter-activity (or inter-process) memory restriction makes the whole activity model much less useful, so I strongly suggest Android team to either make an unlimited way of inter-activity memory sharing (memory is still limited but sharing should not be) or make a new

[android-developers] Re: Inter-Activity memory restriction and API documents

2009-09-06 Thread Mark Murphy
Jack Jia wrote: I think the strict inter-activity (or inter-process) memory restriction makes the whole activity model much less useful I suspect that you will need to provide substantially more justification than those 19 words. so I strongly suggest Android team to either make an

[android-developers] Re: how to change ProgressBar background color

2009-09-06 Thread sdphil
sorry, I should have included this in the original post, but this is my @drawable/progress_bar -- ?xml version=1.0 encoding=UTF-8? layer-list xmlns:android=http://schemas.android.com/apk/res/ android item android:id=@+android:id/background android:drawable=@drawable/progress_background/

[android-developers] Re: Inter-Activity memory restriction and API documents

2009-09-06 Thread Mark Murphy
Jack Jia wrote: I can give my app as an example. The app uses the camera API to catch a bitmap and tries to pass the bitmap to the cropping activity. Put it in a static data member. Or, create a custom Application object and cache it there. Or, create a service and cache it there. Then both

[android-developers] Re: logcat api?

2009-09-06 Thread Flying Coder
There's a great little app on the Market called log collector programmatically reads the logcat output and emails it to someone (I've had my customers do this several times when they encountered problems that I couldn't reproduce). Happily, it looks like this app is open source:

[android-developers] Re: What is the best way to backup app database to a file?

2009-09-06 Thread Mark Murphy
Moto wrote: I need to somehow backup my applitcations database to a file so that it can later be retored using that file. Any suggestions to doing this? One approach is to copy the database file. Tactically, new File(getFilesDir(), ../databases) is the directory where your database file

[android-developers] Re: logcat api?

2009-09-06 Thread Lance Nanek
On Sep 4, 10:58 pm, schwiz sch...@gmail.com wrote: It would be immensely helpful to me if I could make a logcat app to run directly on my G1 This worked fine on my G1 just now for reading right on the phone. I did have to import the source into Eclipse and set the target to 1.5, though:

[android-developers] Re: What is the best way to backup app database to a file?

2009-09-06 Thread Moto
So, I can actually access the database as a file copy and than restore it by moving it to the same location where it was copied from? Thanks! On Sep 6, 3:30 pm, Mark Murphy mmur...@commonsware.com wrote: Moto wrote: I need to somehow backup my applitcations database to a file so that it

[android-developers] Re: What is the best way to backup app database to a file?

2009-09-06 Thread Mark Murphy
Moto wrote: So, I can actually access the database as a file copy and than restore it by moving it to the same location where it was copied from? AFAIK, it should work fine, so long as it is your app doing the copying, and you are not trying to use the database while copying (in either

[android-developers] Re: What is the best way to backup app database to a file?

2009-09-06 Thread Moto
Great this will be perfect! Thanks Mark! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this

[android-developers] How does BaseAdapter communicate with its ListView?

2009-09-06 Thread WoodManEXP
How does BaseAdapter communicate with its ListView? I was wondering how the BaseAdapter. notifyDataSetChanged() method notifies the attached View that the underlying data has been changed and it should refresh itself? When creating a BaseAdapter you attach it to the View with

[android-developers] Re: How does BaseAdapter communicate with its ListView?

2009-09-06 Thread Romain Guy
ListView just sets a ContentObserver on the adapter. On Sep 6, 2009 3:51 PM, WoodManEXP woodman...@gmail.com wrote: How does BaseAdapter communicate with its ListView? I was wondering how the BaseAdapter. notifyDat... ListView.setAdapter(adapter). So the ListView then knows it's adapter to get

[android-developers] Re: What is the best way to backup app database to a file?

2009-09-06 Thread Roman ( T-Mobile USA)
Are you right now thinking only to backup your data base on the device or also somewhere on a remote location (PC, server)? You could easily do a byte copy of your DB //open your existing DB InputStream dbStream = mContext.getAssets().open(yourDBName); OutputStream

[android-developers] Re: Donut Development Environment

2009-09-06 Thread Al Sutton
I've updated the linux SDK with one built with U6.0.6. Al. On Sep 5, 8:02 pm, skink psk...@gmail.com wrote: On Sep 5, 8:57 pm, skink btw looking into requirements page, google supports U Dapper Drake - at least this is their testing box thanks pskink they are even more conservative

[android-developers] Re: Reloading our Activities State after firing Intent to camera

2009-09-06 Thread bkbonner
Hmm, ok. Maybe my onCreate() method is wiping it out then when I'm setting the initial value from an intent. Thanks for the idea. On Sep 2, 10:14 pm, Mark Murphy mmur...@commonsware.com wrote: Mark, so I'm confused.  No, the activity was not destroyed, but it went in the background when

[android-developers] Re: buttons hidden

2009-09-06 Thread Carl
What I'm trying to achieve is this: A label with Band in it, and next to it a textbox in which to type the band's name, then underneath the Band label a label Members, and next to it a textbox to type the members. Then underneath all of this, a save button and a cancel button. Undortunately,

[android-developers] Re: buttons hidden

2009-09-06 Thread Mark Murphy
Carl wrote: What I'm trying to achieve is this: A label with Band in it, and next to it a textbox in which to type the band's name, then underneath the Band label a label Members, and next to it a textbox to type the members. Then underneath all of this, a save button and a cancel button.

[android-developers] Re: Problem in ProgressDialog

2009-09-06 Thread Francesco Pace
Uhm...I don't know this class...How I can use it? Thanks... Francesco 2009/9/6 WoodManEXP woodman...@gmail.com Hi Francesco, So far my best results with threading have come from using AsyncTask. It has progress callbacks that can update progress dialogs and it all seems to work well. Is

[android-developers] Re: Using a hyperlink to do something

2009-09-06 Thread Ken H
Jason, It took a little work and reading but you were right. The trick was replacing the markup tags like ahref=LINKNAME with lt;a href=quot;LINKNAMEquot;gt;. That and using the setWebViewClient WebView method. I tried using TextView's like some guys suggested, but that was getting way too

[android-developers] Re: buttons hidden

2009-09-06 Thread Carl
Thanks, I'm such an idiot! The docs say LinearLayout aligns all children in a single direction, I expected the items to wrap around and continue underneath. I followed this layout you specified and was able to get the results within minutes. I really do need to RTFM. Sorry about that On 6 Sep,

[android-developers] Re: Using a hyperlink to do something

2009-09-06 Thread Dianne Hackborn
The text view is simpler, and 100x more efficient than using a web view. Unless you need the complicated markup of a web view, it is really best to use a text view. You can look at the Linkify code as an example of how to create your own links:

[android-developers] Re: buttons hidden

2009-09-06 Thread Mark Murphy
Carl wrote: Thanks, I'm such an idiot! The docs say LinearLayout aligns all children in a single direction, I expected the items to wrap around and continue underneath. Ah! Android lacks that sort of FlowLayout like you see in Swing. That'd be a nice project for somebody... -- Mark Murphy

[android-developers] Re: Too many PNGs in res/drawable?

2009-09-06 Thread Nicholas Albion
Doesn't the API have a method something like getDrawable( int state ) You could return a custom subclass of Drawable or Bitmap On Sep 5, 8:17 am, markh23 mr.markhop...@gmail.com wrote: Hey Necholas, How would I be able to use the super-imposed transparent images in code?  I've thought about

[android-developers] Re: logcat api?

2009-09-06 Thread schwiz
oh awesome thanks guys, those open source apps will be a huge help ^.^ On Sep 6, 2:38 pm, Lance Nanek lna...@gmail.com wrote: On Sep 4, 10:58 pm, schwiz sch...@gmail.com wrote: It would be immensely helpful to me if I could make a logcat app to run directly on my G1 This worked fine on

[android-developers] Re: Countries for selling priced applications in Android Market

2009-09-06 Thread Abdul Mateen
Yes, exactly , I am curious to see Pakistan in the list G1 is avaliable here, I came alone with a good alternative SlideME ( www.slideme.org ) with much less restrictions. On Sun, Sep 6, 2009 at 9:53 PM, karthikr karthik.scintill...@gmail.comwrote: Well after nearly 3 months there has been

[android-developers] Re: Countries for selling priced applications in Android Market

2009-09-06 Thread Chi Kit Leung
I am thinking whether there is any frameworks for PayPal in Android. For the developers in the areas where is outside from paid apps supported, they can submit a free trail version in Android Market, with PayPal backed Activation system to get the full version. I am woundering any frameworks for

[android-developers] Re: JUNIT Tests results

2009-09-06 Thread Brett Chabot
There's an Test Run history icon on the Junit results pane. Select it and choose Export from the resulting menu. This will save an XML file of the results. Brett. On Fri, Sep 4, 2009 at 10:44 AM, androiduser mobileandroiduser.mob...@gmail.com wrote: Hi, How to get the junit test results

[android-developers] Re: Countries for selling priced applications in Android Market

2009-09-06 Thread Chi Kit Leung
I felt that is not very hard to allow selling apps in Australia. I know Adsense can directly transfer the money to a australia bank account. I am guessing that is the problems of billing and tax issue. On Mon, Sep 7, 2009 at 12:36 PM, Abdul Mateen abmat...@gmail.com wrote: Yes, exactly , I am

[android-developers] Re: How to license Google Closed Source Apps for device

2009-09-06 Thread Chi Kit Leung
I found in HTC Magic, Settings- About Phone - Legal Information- Google Legal. I found somethings looks like license. On Sun, Sep 6, 2009 at 8:29 PM, Eric Wong (hdmp4.com) ericwon...@gmail.comwrote: Don't think anyone here where can tell you the answer ;) because I have been looking for it

[android-developers] Re: How could I get the size of android.graphics.picture

2009-09-06 Thread A.TNG
On Sep 2, 5:50 pm, A.TNG tang.j...@gmail.com wrote: Hi, In my application, I will get a instance ofandroid.graphics.picture which is populated by user. Then I use writeToStream to save. After save, I have to check the file size. If the size is too large, then I should delete this file.

[android-developers] Re: Inter-Activity memory restriction and API documents

2009-09-06 Thread Jack Jia
Thank you for the idea of using static data member or service. But in my app, I want to use an activity built in Android which I cannot change, the only way seems to be using an intent with either data or uri. Also, sometimes, it seems too much work to create service when I just want to share a

[android-developers] Re: How to retain EditText data when BACK key is pressed

2009-09-06 Thread pink 444
First of all thanks for ur explanation.I have one more doubt. I have to run a thread in background till my forcing to stop it.the thread running in background needs to update my main activity's UI elements. How can i implement this . Do i need to use Services component .If it all that is the

[android-developers] Re: Donut Development Environment

2009-09-06 Thread skink
On Sep 6, 11:09 pm, Al Sutton a...@funkyandroid.com wrote: I've updated the linux SDK with one built with U6.0.6. Al. Al, thank you so much! pskink --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] How to block incoming call?

2009-09-06 Thread feeling3_4
Hi, all I know there are some posts from the group have talked about this ( like https://groups.google.com/group/android-developers/browse_thread/thread/feba943f293976d4 and https://groups.google.com/group/android-beginners/browse_thread/thread/8c1a674c83908efa), but I can not find exactly

[android-developers] Re: Dynamically enable menu items

2009-09-06 Thread sam
Hi guys, Any help on this? I believe android application like browser implement this, does the android engineer from google have any comments? Thanks On Sep 3, 9:38 am, sam hrlixi...@gmail.com wrote: Hi Mark, Thank for reply. let me describe my question in more details, I do not want to

[android-developers] Re: Android project

2009-09-06 Thread sriram
Well guys this forum is still open for suggestions!!! Post your ideas if you have any. --~--~-~--~~~---~--~~ 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] Will there be an Android 1.6 SDK release?

2009-09-06 Thread pawpaw17
Does anyone know? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Can't get query string from google search widget in some cases.

2009-09-06 Thread Joy
Hi guys, I'm trying to integrate google search widget, but met a problem when retrieving keywords from google search widget. It only has problem in the following scenario: 1. Launch my application, and click back. 2. Enter keyword in google search widget, i..e 'a', and launch it. Everything works

[android-developers] Picture in Picture Implementation

2009-09-06 Thread Landy
Hi all, I am trying to implement Picture in Picture. I used a Frame layout for two Video View and tried playing the video files. But it doesnt work. Does anyone have an idea of this PiP (Picture in Picture) concept...? Thnks, Landy --~--~-~--~~~---~--~~ You

[android-developers] Re: Can't get query string from google search widget in some cases.

2009-09-06 Thread Joy
Hi guys, In summary, my application can't get launching intent from onRestart/onStart() method when my application is in background and launched by google search widget from screen. Anything I missed? Does it work by design? Thanks a lot! On Mon, Sep 7, 2009 at 12:54 PM, Joy 3crownt...@gmail.com

[android-developers] detect usb device

2009-09-06 Thread tstanly
hi all, does sdk provides methods to detect whether a usb device plug in ? if it's a android porting problem, I am so sorry... thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Ruby / furigana in WebView

2009-09-06 Thread Nicolas Raoul
Hello all, Does WebView support HTML5's ruby annotations? It has nothing to do with the Ruby programming language, it allows one to display Japanese furigana and other small chains of characters near a complex character, to indicate its pronunciation: http://dev.w3.org/html5/markup/ruby.html

[android-developers] Re: How to block incoming call?

2009-09-06 Thread Roman ( T-Mobile USA)
I am not aware that you can intercept an incoming call only from SDK level. Firewall programs which are claiming to block incoming calls are not working on my phone. If there is a mechanism out there, please let me know. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together

[android-developers] Re: Will there be an Android 1.6 SDK release?

2009-09-06 Thread Chi Kit Leung
http://source.android.com/release-features the current release of Android is still 1.5. I believe there will be a 1.6 release for SDK, after the OS upgarded. On Mon, Sep 7, 2009 at 2:47 PM, pawpaw17 georgefraz...@yahoo.com wrote: Does anyone know? -- Regards, Michael Leung

[android-developers] Question about using radius in android.....

2009-09-06 Thread ragavendran s
I just saw in a project...In that project it shows lots of marker shows that if there is any plots available..Its a real estate projectIn that project they are sending latitude ,Longitude and also Radius to the database.I dont know why these radius are used... can u tell me the use of

[android-developers] Re: detect usb device

2009-09-06 Thread Roman ( T-Mobile USA)
You can detect when you attach a USB storage device. See android.intent.action.MEDIA_MOUNTED -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not

[android-developers] Re: SingleTask...

2009-09-06 Thread indra
ok Dianne, then, Class MySingleton { static List myList; } //This activity is singleTop Class MyActivity { onCreate(Bundle) { initStaticList(); //say the init size is 2 } //Now suppose in between some other activity add 2 more objects in myList map() { int size = MySingleton.myList.size(); }

[android-developers] Re: detect usb device

2009-09-06 Thread tstanly
thanks! and the other question, is Android detect dynamically possible(on listening mode)? that is, when I'm in the Activity1, and insert a usb device, then app can detect right now and use dialog send a message to user the device is mounted!? thanks On 9月7日, 下午1時30分, Roman ( T-Mobile USA)