[android-developers] Re: Regarding ADB offline message

2009-03-04 Thread Al Sutton
Yup, kill-servered, re-installed drivers, muttered secret incantation of the frustrated smartphone user. Nothing worked. So I've written it off until a new driver appears. Al. mark.ka...@gmail.com wrote: Ah the joy of Vista... Did you try running 'adb kill-server' several times while the

[android-developers] Re: Non-USD prices causing credit card rejections

2009-03-04 Thread Al Sutton
Google is losing a small amount, they get their cut on Checkout fees when a user buys. Al. Stoyan Damov wrote: On Tue, Mar 3, 2009 at 6:03 PM, admin.androidsl...@googlemail.com admin.androidsl...@googlemail.com wrote: Just to add my comment from the other thread as I think its relevant

[android-developers] Android Market Survey running by Google

2009-03-04 Thread Al Sutton
http://market.android.com/support/bin/request.py?contact_type=surveyforum=1hl=en Guess it's one place to express your opinions. Al. -- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in England Wales with the company number

[android-developers] Will it work if I setListViewAdapter dynamically?

2009-03-04 Thread olko
I am trying to change ListView adapter on the fly like this (the AdapterMain* extends BaseAdapter): if(main_view) { setListAdapter(new AdapterMain(app_context)); }

[android-developers] Re: Will it work if I setListViewAdapter dynamically?

2009-03-04 Thread Romain Guy
It will work :) On Wed, Mar 4, 2009 at 12:39 AM, olko y.olkho...@gmail.com wrote: I am trying to change ListView adapter on the  fly like this (the AdapterMain* extends BaseAdapter):                                if(main_view) {                                        setListAdapter(new

[android-developers] Re: Will it work if I setListViewAdapter dynamically?

2009-03-04 Thread Eric Chan
just need refresh list Best Regards Eric Chan On Wed, Mar 4, 2009 at 4:45 PM, Romain Guy romain...@google.com wrote: It will work :) On Wed, Mar 4, 2009 at 12:39 AM, olko y.olkho...@gmail.com wrote: I am trying to change ListView adapter on the fly like this (the AdapterMain*

[android-developers] Sell applications on market

2009-03-04 Thread Manfred
Hi! Is it already possible for people outside US and GB to sell applications on the market? Because i want to set up a merchant account and on the form it is only possible to choose between US/GB for my location!? May this is only possible when we will receive the android update (market is then

[android-developers] Re: Regarding ADB offline message

2009-03-04 Thread vrukesh
One more observation: when we type the command setprop persist.service.adb.enable 1, target goes in hang state. -Vrukesh On Mar 4, 1:17 pm, Al Sutton a...@funkyandroid.com wrote: Yup, kill-servered, re-installed drivers, muttered secret incantation of the frustrated smartphone user. Nothing

[android-developers] Any way to get the global application object before activity is created?

2009-03-04 Thread Wang, Xin
Hi, I am trying to write some test instrumentation codes. I need to use the global application object. I know activity class provides an interface getApplication() to get the object, but I want to use it before the activity is created. Any way to get that object? Thanks, Wang Xin

[android-developers] Re: Android application without UI

2009-03-04 Thread Javier Segura
Oh, it's a nice clue. I've used a transparent theme and it's ok :) Many thanks On Tue, Mar 3, 2009 at 6:39 PM, Peli peli0...@googlemail.com wrote: Either use a broadcast intent, or set your Activity theme to transparent. Peli www.openintents.org On 1 Mrz., 17:58, Javier Segura

[android-developers] Re: Whether Emulator supporting sensor Listener

2009-03-04 Thread nithin
Thanks David, i got it, what i need is motionevent only... thanks for your reply Nithin On Mar 4, 12:58 pm, David Turner di...@android.com wrote: Fwiw, sensors are for accelerometer, compass, etc...the touch screen is not related to sensor listeners. On Wed, Mar 4, 2009 at 5:20 AM,

[android-developers] Text writing pad

2009-03-04 Thread Muthu Kumar K.
Hi All, Do we have text writing pad in android like iPhone? If any possible idea please give me your thoughts. Thanks in Advance, Muthu Kumar K. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Sell applications on market

2009-03-04 Thread deepdr...@googlemail.com
Currently only people in US or UK can sell (and buy) apps on the market. I think that is why only these countries can be selected for setting up a merchant account. I expect more countries to become available there soon. I'm waiting for paid apps availability as well ... http://www.deepdroid.com

[android-developers] When to setResult for onActivityResult

2009-03-04 Thread Chronos
Hello there ;) I have some - maybe simple - problem; unfortunately I cannot find a solution: I have two activities which communicate via: startActivityForResult(), setResult(), onActivityResult. I will call the first activity parent and the second one client, although this may not be

[android-developers] Re: HTML login form works in Android browser and fails with WebView ?

2009-03-04 Thread Derek
Thanks but the problem is still here. However, If i remove: webview.setWebViewClient(new AuthWebViewClient()); then I notice that with setSupportMultipleWindows(true); it opens a new Android browser windows when I click to Submit button but the page displayed is not the correct one. I'm wondering

[android-developers] Set the DNS from an activity

2009-03-04 Thread Giorgio M.
Anyone knows how i can set the DNS address from an activity? thanks -- Be Yourself @ mail.com! Choose From 200+ Email Addresses Get a Free Account at www.mail.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: When to setResult for onActivityResult

2009-03-04 Thread Stoyan Damov
Re: - setResult() in client.onPause() is called TOO LATE; the result has already been transmitted to the parent (although the method client.onPause() seems to be called in time). If the result has been already set, this means that the result value is CANCELLED immediately after your child

[android-developers] Re: Sell applications on market

2009-03-04 Thread bouvetloz...@gmail.com
Unfortunately 'soon' realistically means this year. --~--~-~--~~~---~--~~ 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: HTML login form works in Android browser and fails with WebView ?

2009-03-04 Thread for android
webView = (WebView) findViewById(R.id.webView); String url = http://www.flickr.com/;; webView.setWebViewClient(new AuthWebViewClient()); webView.getSettings().setJavaScriptEnabled(true); webView.getSettings().setLoadsImagesAutomatically(true);

[android-developers] Re: When to setResult for onActivityResult

2009-03-04 Thread Stoyan Damov
Actually read carefully http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent,%20int) On Wed, Mar 4, 2009 at 1:31 PM, Stoyan Damov stoyan.da...@gmail.com wrote: Re: - setResult() in client.onPause() is called TOO LATE; the result has

[android-developers] Re: Set the DNS from an activity

2009-03-04 Thread Al Sutton
It's not possible because it would create a security hole where applications could make users think they were going to www.mybankingsite.com whereas the DNS servers could be configured to send them anywhere. Al. Giorgio M. wrote: Anyone knows how i can set the DNS address from an activity?

[android-developers] Re: Sell applications on market

2009-03-04 Thread deepdr...@googlemail.com
depends on where you live .. -- http://www.deepdroid.com On 4 Mrz., 12:33, bouvetloz...@gmail.com bouvetloz...@gmail.com wrote: Unfortunately 'soon' realistically means this year. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: When to setResult for onActivityResult

2009-03-04 Thread Chronos
Thanks for the idea - but this is not my problem: the result sent is the result I set in the onCreate method (a default result); if I fail to do this, I will get a java.lang.NullPointerException, which underlines my point - setResult() in onPause() is too late; my activity is not cancelled either

[android-developers] Re: Rotate PNG (Bitmap) around a set pivot

2009-03-04 Thread Mark Murphy
xspotlivin wrote: I'm creating an application that includes a clock. I will only have an hour hand, which will be a PNG file rotating around a pivot. I want to update its angle every 4 mins (1 degree on a 24-hour clock). Does anyone have an idea of how to rotate an image around a specific

[android-developers] Re: Set the DNS from an activity

2009-03-04 Thread Giorgio M.
Are there other ways to do it from an application? (e.g. executing a shell command) thanks - Original Message - From: Al Sutton To: android-developers@googlegroups.com Subject: [android-developers] Re: Set the DNS from an activity Date: Wed, 04 Mar 2009 11:52:58 +

[android-developers] Re: When to setResult for onActivityResult

2009-03-04 Thread Stoyan Damov
On Wed, Mar 4, 2009 at 2:41 PM, Chronos g358279012044...@gmail.com wrote: Thanks for the idea - but this is not my problem: the result sent is the result I set in the onCreate method (a default result); if I fail to do this, I will get a java.lang.NullPointerException, which underlines my

[android-developers] Re: When to setResult for onActivityResult

2009-03-04 Thread Chronos
You should set the result when your child activity is about to exit - for example I set the result from my child activity when a button is clicked and just before exiting it, e.g.: // in a button click handler setResult(...); finish(); This is the way they do it in the samples, but it

[android-developers] Re: Sell applications on market

2009-03-04 Thread bouvetloz...@gmail.com
we will enable priced app support in Q1 for developers operating in these countries in the following order: (1) United States and UK; (2) Germany, Austria and Netherlands; (3) France, Italy and Spain. By the end of Q1 2009, we will announce support for developers operating in additional

[android-developers] Re: Set the DNS from an activity

2009-03-04 Thread Al Sutton
Why would there be?, as I said before to allow it creates a security problem. Al. Giorgio M. wrote: Are there other ways to do it from an application? (e.g. executing a shell command) thanks - Original Message - From: Al Sutton To:

[android-developers] Re: Sell applications on market

2009-03-04 Thread Al Sutton
And ADC II was due by the end of last year. bouvetloz...@gmail.com wrote: we will enable priced app support in Q1 for developers operating in these countries in the following order: (1) United States and UK; (2) Germany, Austria and Netherlands; (3) France, Italy and Spain. By the end of

[android-developers] Re: (OT) Is the combination of Android Market and Google Checkout a joke?

2009-03-04 Thread Al Sutton
I'm getting more and more tempted to open up paid-for apps on AndAppStore where all payments go directly to the developers account so they can set the TCs. Would this be something people would be interested in? Al. Semprebon wrote: It would be nice if some other pricing models were

[android-developers] Re: Antialias transformed bitmap ??

2009-03-04 Thread quakeboy
Thank you very much. I used the following code to get it filtered and looking nice even after rotating it with non 90 multiple degrees and scaling it. In constructor == PaintFlagsDrawFilter setfil = new PaintFlagsDrawFilter(0, Paint.FILTER_BITMAP_FLAG);

[android-developers] Re: Set the DNS from an activity

2009-03-04 Thread Giorgio M.
I use the android port on the freerunner and we have this problem. I have to set the DNS manually (setprop net.dns1 xxx.xxx.xxx.xxx) each time from the shell, and it's very annoying... I'm looking for a more easy way to do it. Hope you can help me. thanks - Original Message -

[android-developers] Re: Set the DNS from an activity

2009-03-04 Thread Cédric Berger
On Wed, Mar 4, 2009 at 14:50, Giorgio M. ledz...@writeme.com wrote: I use the android port on the freerunner and we have this problem. I have to set the DNS manually (setprop net.dns1 xxx.xxx.xxx.xxx) each time from the shell, and it's very annoying... I'm looking for a more easy way to do

[android-developers] Re: Sell applications on market

2009-03-04 Thread Stoyan Damov
I love deadlines. I like the whooshing sound they make as they fly by. Douglas Adams Cheers ;) On Wed, Mar 4, 2009 at 3:37 PM, Al Sutton a...@funkyandroid.com wrote: And ADC II was due by the end of last year. bouvetloz...@gmail.com wrote: we will enable priced app support in Q1 for

[android-developers] Re: When to setResult for onActivityResult

2009-03-04 Thread Stoyan Damov
So you really don't want to *return*, hence the setResult() isn't appropriate in your case. You just want to communicate something back to the parent activity, is that right? In this case you want to use a broadcast receiver. Cheers On Wed, Mar 4, 2009 at 3:28 PM, Chronos

[android-developers] Re: Set the DNS from an activity

2009-03-04 Thread David Turner
On Wed, Mar 4, 2009 at 2:50 PM, Giorgio M. ledz...@writeme.com wrote: I use the android port on the freerunner and we have this problem. I have to set the DNS manually (setprop net.dns1 xxx.xxx.xxx.xxx) each time from the shell, and it's very annoying... I'm looking for a more easy way to

[android-developers] Re: developer.android.com breaks on G1 ?

2009-03-04 Thread Jean-Baptiste Queru
Yes, it's a known issue. From what I know the browser in android has issues with CSS overflow on divs. JBQ On Tue, Mar 3, 2009 at 7:19 PM, Sen senecajust...@gmail.com wrote: Has anyone noticed that if you try to browse the Reference section of developer.android.com, it doesn't let you scroll

[android-developers] Re: Set the DNS from an activity

2009-03-04 Thread Al Sutton
If it's a fixed DNS server; http://forum.koolu.org/viewtopic.php?f=10t=61p=432hilit=DNS#p432 Al. Giorgio M. wrote: I use the android port on the freerunner and we have this problem. I have to set the DNS manually (setprop net.dns1 xxx.xxx.xxx.xxx) each time from the shell, and it's very

[android-developers] Re: Set the DNS from an activity

2009-03-04 Thread Al Sutton
dhcpd has issues in the current Koolu beta ; http://forum.koolu.org/viewtopic.php?f=10t=61p=371hilit=DNS#p371 Al. David Turner wrote: On Wed, Mar 4, 2009 at 2:50 PM, Giorgio M. ledz...@writeme.com mailto:ledz...@writeme.com wrote: I use the android port on the freerunner and we

[android-developers] Re: When to setResult for onActivityResult

2009-03-04 Thread Chronos
Thanks for your input ;) I'm also discussing this with my colleagues - and I consider this either a bug or a design flaw... onPause() should be guaranteed to run before onActivityResult() - in more detail: setResult() in onPause() should have an effect in onActivityResult(). On Mar 4, 3:03 pm,

[android-developers] Re: Set the DNS from an activity

2009-03-04 Thread David Turner
On Wed, Mar 4, 2009 at 3:15 PM, Al Sutton a...@funkyandroid.com wrote: If it's a fixed DNS server; then a trivial fix is to modify the init.rc file to setup the property on boot. http://forum.koolu.org/viewtopic.php?f=10t=61p=432hilit=DNS#p432 Al. Giorgio M. wrote: I use the

[android-developers] Re: Set the DNS from an activity

2009-03-04 Thread Al Sutton
Instructions for which are at the end of that link. Al. David Turner wrote: On Wed, Mar 4, 2009 at 3:15 PM, Al Sutton a...@funkyandroid.com mailto:a...@funkyandroid.com wrote: If it's a fixed DNS server; then a trivial fix is to modify the init.rc file to setup the property on

[android-developers] Re: Set the DNS from an activity

2009-03-04 Thread Giorgio M.
Ok i will try to put the DNS within the init.rc. Is there an exact position within the init.rc for the setprop command? - Original Message - From: David Turner To: android-developers@googlegroups.com Subject: [android-developers] Re: Set the DNS from an activity Date: Wed, 4

[android-developers] Cupcake Release end March

2009-03-04 Thread Tee
Hi. I have a so called reliable resource who works in the T-mobile store, and so far he has been right about anything to do with G1. He predicted the OTA release, and that was right, but he has also said T- mobile will be releasing the cupcake to t-mobile customers in uk end of March. Of

[android-developers] Re: onTouchEvent in MapActivity

2009-03-04 Thread Šikus
I recomend use for tatching a display: @Override public boolean dispatchTouchEvent(MotionEvent ev) {//dotek prstem if(ev.getAction() == KeyEvent.ACTION_DOWN) { Log.w(Uri.onCreate, a1); } } }

[android-developers] Re: Rotate PNG (Bitmap) around a set pivot

2009-03-04 Thread Kather Jailani
Draw a line from the pivot, do a XOR of the previously drawn line so that it will be undrawn/removed frm the screen then draw the new line, this how I did a small clock app in Windows On Mar 3, 2009 10:35 PM, xspotlivin dmbrown2...@gmail.com wrote: I'm creating an application that includes a

[android-developers] Re: (OT) Is the combination of Android Market and Google Checkout a joke?

2009-03-04 Thread Paper Coder
...but I don't think most people see these products as consumables in the same way you do Perhaps not. But I think this is what will keep the Android Market from being as big as the iPhone App Store. For the most part, people don't go into Game Stop, buy the newest Xbox 360 game on Friday, play

[android-developers] Accessibility features

2009-03-04 Thread Tiago de Freitas Pereira
Hi, Is there a way to get OS messages in Android? I'm looking for an API like MSAA. Is there an API that do this, or something similar, in Android? Thanks Tiago de Freitas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] ImageButton with different image for rollover/focus

2009-03-04 Thread idev
Hi Is it possible to change an image of an ImageButton or background image of a Button when the focus comes to that control (in XML or in code)? Or alternatively, is there a way to find out when the user has just pressed a button (but onClick not called. I am assuming onClickListener is called

[android-developers] OpenGL ES problem: Trouble loading a bitmap texture (comes out blue)

2009-03-04 Thread min...@gmail.com
Hello all, If I set the texture before hand, the texture loads correctly. For that I used the following code I found in one of the open gl es samples (TriangleRenderer). ... InputStream is = mContext.getResources().openRawResource(mTexture); Bitmap bitmap =

[android-developers] Re: crash in com.android.camera after calling Images.Media.insertImage

2009-03-04 Thread tassie
I've been blocked on this problem as well. To recap, if you do this on a T-Mobile G1: String test = Images.Media.insertImage(getContentResolver(), bm, title, desciption); And then launch the photo viewer, the photo viewer crashes reliably. You have to reset the phone to look at your images

[android-developers] One adapter for different adapter views - how to specify proper layout for the view?

2009-03-04 Thread (Mishail)
Greetings, I want to re-use 1 adapter (similar to well known ImageAdapter from samples) with 2 different views - Gallery and GridView. I need to specify LayoutParams for the each View returned by getView() method of my adapter. In case of Gallery it should be instance of Gallery.LayoutParams,

[android-developers] Marquee Api demo

2009-03-04 Thread soniya
I downloaded the Android SDK 1.1 and tried to run the Marquee demo (API Demos - Text -Marquee). But the program is not working .The text is static and does not move :( Did any one try this demo? And is it working?? Please help! --~--~-~--~~~---~--~~ You

[android-developers] Re: Button On Map

2009-03-04 Thread geminlite
hi.. i have difficulty in adding buttton on map ? can help? thx in adv Geminlite On Feb 9, 10:29 pm, Cadge carruthersgor...@googlemail.com wrote: Hi, Don't know if this will still be useful, but here goes. To bring up a map on the emulator I have 3 different parts: 1) A Class that

[android-developers] Porting to Different Hardware

2009-03-04 Thread sukku
Hi Androids, I am new to this group. I would like to testing out this open source OS, but I don't have google specific hardware(T1 or ADP). Is there any option to port this OS to some Nokia mobiles or china mobiles. If possible, please some one provide me the details. Thanks in advance.

[android-developers] Help using autocomplete in my database.....

2009-03-04 Thread aljo
i'm kinda new to this android application and still a newbei to programming so hope someone could help me i've created an SQLite database program.. but i don't know how to use the autocomplete function to access my database... here's my code:

[android-developers] Re: database not open error

2009-03-04 Thread shital k
Hello All, I just want a small help. How can we do Zoom In/Zoom out using gchart and gwt? Thanks, Shital --~--~-~--~~~---~--~~ 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] Android with RFID reader

2009-03-04 Thread david05software
I want to develop an application on android which needs RFID technology, But I have little information about the RFID on android. Could some one konw some information about the RFID on android? Or dose the RFID reader on android have been developed now? Thanks very much.

[android-developers] Re: Issue in openintents simulator, after running directly going to Connection settings page instead of my desired page

2009-03-04 Thread (Mishail)
It's OK since your activity starts OpenIntents by startActivity (intent); Your activity should resume after exiting from openintents. But please make sure that you granted android.permission.INTERNET for your application, see http://code.google.com/p/openintents/wiki/SensorSimulator, comments

[android-developers] Re: Problem in setting empty views in a list

2009-03-04 Thread Tomce
If you didn't find already api demos list_8 example is your solution. --~--~-~--~~~---~--~~ 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

[android-developers] Where can I find a app for my gps test?

2009-03-04 Thread www_...@yahoo.com.cn
Hi all, I need a GPS application on android so I can test my gps function. Can any one who knows and being so kind to tell me about? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Can only hear sound when playing video

2009-03-04 Thread zypsg
Hi, A surprising problem occurs when I try to play Video, I can only hear the sound part of the video. My code snippet is below: public class VideoDemo extends Activity { public static final int MENU_PLAYER=Menu.FIRST; public static final int MENU_VIDEO=MENU_PLAYER+1;

[android-developers] Setting clickable on individual ListView's ChildViews

2009-03-04 Thread chiizuf...@googlemail.com
Hi, I'm in a situation where I have a ListView in which I want some of the entries to be clickable and some not to be. Setting listView.setClickable(false) disables clicks on everything even if textView.setClickable(true) is set when the child view is being added in my customised ArrayAdapter.

[android-developers] Getting options menu in a child preference screen

2009-03-04 Thread Ridhish
Hi, I've been trying to get it done for a while but havent been able to. The exact description of my problem is mentioned below. I have a preference screen embedded within another. So the inner one is part of the same activity. I am able to bring up the options menu in the parent preference

[android-developers] Re: KML Support in Maps Application

2009-03-04 Thread Frederic
Hi Chander, I tried your example and it works fine (thank you). Did you manage to use a kml file stored on the sdcard or on the local file system ? I tried to do this, without success. Regards, Frédéric On Feb 10, 3:00 pm, Chander Pechetty cspeche...@gmail.com wrote: Ok posting my own answer:

[android-developers] Re: developer.android.com breaks on G1 ?

2009-03-04 Thread CKinniburgh
I believe I have noticed this, or a similar issue on an iPhone today. The Dev guides were cut off at the bottom of the page. On Mar 3, 9:19 pm, Sen senecajust...@gmail.com wrote: Has anyone noticed that if you try to browse the Reference section of developer.android.com, it doesn't let you

[android-developers] Re: Text writing pad

2009-03-04 Thread Avraham Serour
you mean virtual keyboard? AFAIK they did code that for the new version of the htc, which comes without a keyboard On Wed, Mar 4, 2009 at 12:51 PM, Muthu Kumar K. muthum...@gmail.com wrote: Hi All, Do we have text writing pad in android like iPhone? If any possible idea please give me your

[android-developers] What is wrong with this layout

2009-03-04 Thread idev
?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent android:background=@drawable/bkg TextView

[android-developers] How to get a vertical spinner like used in TimePicker?

2009-03-04 Thread Eugene M
Hi everyone, The TimePicker widget includes two vertical spinners that let the user pick the hour and minute. How can I make my own vertical spinner to let the user pick an arbitrary number from a range of values? The available Spinner class is more like a drop-down list, while I want something

[android-developers] Re: how to implement scrolling text?

2009-03-04 Thread soniya
I have downloaded the latest SDK i.e. Android 1.1 but I am not able to run the API demo for Marquee. It does not work The text remain static. Do I need to do any setting or something to view that? On Jan 31, 1:51 am, Romain Guy romain...@google.com wrote: Note that cupcake will have

[android-developers] Re: how to know the status of the MediaPlayer?

2009-03-04 Thread Marco Nelissen
On Tue, Mar 3, 2009 at 8:27 PM, manoj manojkumar.m...@gmail.com wrote: Hi, I am developing a media player application which downloads from internet and plays. Do you mean that it streams, e.g. you call MediaPlayer.setDataSource(http://yourhost.com/yourfile.mp3;), or are you really

[android-developers] Re: how to know the status of the MediaPlayer?

2009-03-04 Thread dillirao malipeddi
If you download and play files from net you will get 1) OnPreparedListener() 2) OnBufferU[dateListener() you must start player after you get onPreparedListener otherwise you will get Mediaplayer exception On Wed, Mar 4, 2009 at 9:26 PM, Marco Nelissen marc...@android.com wrote: On Tue,

[android-developers] Re: how to know the status of the MediaPlayer?

2009-03-04 Thread CKinniburgh
I would imagine onPrepared() would be one way to do this. Simply call onPrepared(), then take away the buffering message, then play. On Mar 3, 10:27 pm, manoj manojkumar.m...@gmail.com wrote: Hi, I am developing a media player application which downloads from internet and plays. so while

[android-developers] Re: how to know the status of the MediaPlayer?

2009-03-04 Thread Marco Nelissen
To be clear: you don't call onPrepared() yourself. If you set an OnPreparedListener, its onPrepared() method will be called for you. On Wed, Mar 4, 2009 at 8:03 AM, CKinniburgh chriskinnibu...@gmail.com wrote: I would imagine onPrepared() would be one way to do this.  Simply call

[android-developers] Re: how to know the status of the MediaPlayer?

2009-03-04 Thread CKinniburgh
Correct. Sorry about that, It's been one of those mornings. On Mar 4, 10:08 am, Marco Nelissen marc...@android.com wrote: To be clear: you don't call onPrepared() yourself. If you set an OnPreparedListener, its onPrepared() method will be called for you. On Wed, Mar 4, 2009 at 8:03 AM,

[android-developers] Re: Where can I find a app for my gps test?

2009-03-04 Thread Avraham Serour
isn't the google maps enough for what you want? On Wed, Mar 4, 2009 at 3:50 AM, www_...@yahoo.com.cn www_...@yahoo.com.cnwrote: Hi all, I need a GPS application on android so I can test my gps function. Can any one who knows and being so kind to tell me about? Thanks.

[android-developers] Adding frame to an image

2009-03-04 Thread balakrishna...@gmail.com
Hi, How to add an image to a frame with round corners. As Im new to android platform. So, could someone post the solutions. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: Question about Preference Screen

2009-03-04 Thread Ridhish
how do i create the options menu for the child preference screen ? On Feb 10, 8:33 am, robert ma.ning@gmail.com wrote: Dear Christoph     I got the non-null return from inner screen, just like you said, thanks a lot for your help! On Feb 10, 10:27 am, Christoph Studer chstu...@gmail.com

[android-developers] What are the Intents broadcast by the ConnectivityManager

2009-03-04 Thread Graeme
Hi The ConnectivityManager is described at http://developer.android.com/reference/android/net/ConnectivityManager.html The Class Overview states that The primary responsibilities of this class are to: SNIP... SNIP 2. Send broadcast intents when network connectivity changes SNIP...SNIP

[android-developers] Re: (OT) Is the combination of Android Market and Google Checkout a joke?

2009-03-04 Thread John Lauricella
Is it possible to start a new discussion group for folks who promote their own products that compete with the Android Market, so we don't get this constant conflict-of-interest commentary on how bad the Google system is... Date: Wed, 4 Mar 2009 13:38:49 + From: a...@funkyandroid.com

[android-developers] Re: how to implement scrolling text?

2009-03-04 Thread Romain Guy
The marquee starts when a TextView gets focused/selected. It is used throughout the UI in 1.1, for instance in the list of all apps in Home. On Tue, Mar 3, 2009 at 11:00 PM, soniya soniy...@gmail.com wrote: I have downloaded the latest SDK i.e. Android 1.1 but I am not able to run the API

[android-developers] Proximity Alert and Battery life

2009-03-04 Thread loty
I wrote a simple app that uses proximity alerts and after installing it on my G1 found that battery life have been halved at least. It's so bad that phone needs to be recharged mid-day or it completely dies by 9pm. There is no polling of any kind - just proximity alerts (3 of them). I tried with

[android-developers] Dialog Survival Over Configuration Change

2009-03-04 Thread Nmix
Flipping between landscape and portrait is causing me a problem with dialogs that are active at the time of config change. The dialogs survive (which I think is good), but I have the problem that some of my dialogs contain dynamic content which would need to be refreshed in the dialog views.

[android-developers] Re: What is wrong with this layout

2009-03-04 Thread Stoyan Damov
Not quite sure (haven't looked at the schema) but perhaps Button is an empty element, so in your layout it should look like this: Button android:id=@+id/installRing android:layout_width=wrap_content android:layout_height=52px android:background=@drawable/installBtn

[android-developers] Re: Android with RFID reader

2009-03-04 Thread Mark L. Chang
I don't think the G1 has any RFID hardware capabilities. --~--~-~--~~~---~--~~ 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: Dialog Survival Over Configuration Change

2009-03-04 Thread Romain Guy
If you want to call dismissDialog(int) you need to use managed dialogs. You will need to look at the javadoc for showDialog(int), onCreateDialog() and onPrepareDialog(). The API Demos also show how to use managed dialogs. If you are already using these APIs, onCreate() is not the right placae to

[android-developers] Re: Proximity Alert and Battery life

2009-03-04 Thread Javier Segura
There is a utility called Power Management that fits your needs On Wed, Mar 4, 2009 at 5:33 PM, loty lev.pert...@gmail.com wrote: I wrote a simple app that uses proximity alerts and after installing it on my G1 found that battery life have been halved at least. It's so bad that phone needs

[android-developers] Re: Can only hear sound when playing video

2009-03-04 Thread Marco Nelissen
On Wed, Mar 4, 2009 at 12:09 AM, zypsg zhaoyongp...@gmail.com wrote: Hi, A surprising problem occurs when I try to play Video, I can only hear the sound part of the video. My code snippet is below: public class VideoDemo extends Activity {        public static final int

[android-developers] Is ProgressBar correctly handling padding-values?

2009-03-04 Thread Cyril M
Here is a skeleton of the class I'm currently working on. Unfortunatly, i'm stuck on two problems and it's driving me mad ! The first problem is about the onKeyDown(KeyEvent) : I don't understand why this method isn't called while I pressed a key on the emulator. The second problem deals with

[android-developers] Re: Confused about 9-patch files

2009-03-04 Thread Marco Nelissen
Are you sure that b.9.png works correctly? It doesn't seem to stretch correctly either in the draw9patch tool. On Tue, Mar 3, 2009 at 6:36 PM, craiget crai...@gmail.com wrote: Thank you for the replies. Maybe what's causing my confusion is a bug in aapt (or my environment?) rather than

[android-developers] Re: Cupcake Release end March

2009-03-04 Thread Disconnect
Cupcake isn't a release. So I doubt he's right - does he mean the OTA that just happened, with market paid apps and such? On Wed, Mar 4, 2009 at 9:48 AM, Tee gurt...@gmail.com wrote: Hi. I have a so called reliable resource who works in the T-mobile store, and so far he has been right about

[android-developers] Re: Is ProgressBar correctly handling padding-values?

2009-03-04 Thread Romain Guy
onkeydown: make sure your view is focusable and focused. Padding: known bug, fixed in cupcake. Sorry for being terse, sent from my phone :) On Mar 4, 2009 9:05 AM, Cyril M cyrilmott...@gmail.com wrote: Here is a skeleton of the class I'm currently working on. Unfortunatly, i'm stuck on two

[android-developers] Re: Proximity Alert and Battery life

2009-03-04 Thread loty
Just to clarify - I'm not interested in monitoring status of my batteries. I'm interested in finding a solution so that simple proximity alerts don't destroy battery life and make my apps unusable to users. Can you elaborate please how I can use Power Management utility to reduce power

[android-developers] Re: Dialog Survival Over Configuration Change

2009-03-04 Thread Nmix
Ugh. I already use onCreateDialog() and onPrepareDialog() since that is how I deal with making the content dynamic. I figured dismissing it (ok, I agree that's not quite a best practice), would be simplest, especially since in the context of the app it is very unlikely that the user would change

[android-developers] Webview's addjavascriptinterface question

2009-03-04 Thread j
Regarding Webview's addjavascriptinterface, is the java-javascript binding global or apply only to my webview? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: Dialog Survival Over Configuration Change

2009-03-04 Thread Marco Nelissen
On Wed, Mar 4, 2009 at 9:13 AM, Nmix nepean...@gmail.com wrote: Ugh. I already use onCreateDialog() and onPrepareDialog() since that is how I deal with making the content dynamic.  I figured dismissing it (ok, I agree that's not quite a best practice), would be simplest, especially since in

[android-developers] Re: Proximity Alert and Battery life

2009-03-04 Thread Mark Murphy
loty wrote: Just to clarify - I'm not interested in monitoring status of my batteries. I'm interested in finding a solution so that simple proximity alerts don't destroy battery life and make my apps unusable to users. There are other apps that use proximity alerts -- for example, I would

[android-developers] Re: Dialog Survival Over Configuration Change

2009-03-04 Thread Nmix
On Mar 4, 12:21 pm, Marco Nelissen marc...@android.com wrote: On Wed, Mar 4, 2009 at 9:13 AM, Nmix nepean...@gmail.com wrote: Ugh. I already use onCreateDialog() and onPrepareDialog() since that is how I deal with making the content dynamic.  I figured dismissing it (ok, I agree that's

[android-developers] Activity dispatchKeyEvent(KeyEvent event) method always return false?

2009-03-04 Thread Meryl Silverburgh
Hi, Can you please tell me why Activity dispatchKeyEvent(KeyEvent event) method always return false? I press UP/DOWN key (on keyboard), and I see the focus of each button moves from one to another. So I think the Activity has handled the UP/DOWN key. My question is why dispatchKeyEvent() always

  1   2   >