Re: [android-developers] Re: Switching views with RadioButton and saving views in Bundle

2010-03-10 Thread Declan Shanaghy
I'd just like to point out that you are probably going down the wrong road based on bad upfront advice from the person who provided that first link to you. His second piece of advice - i.e. you can save the state of your RadioButton in onSaveInstanceState() and re-apply it in either

[android-developers] Re: Adding new XML file under layout

2010-03-10 Thread SREEHARI
U save the xml file first. Then try refreshing the whole project. It will get added in the R.java file. Regards, Sreehari. -- 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: AsyncTask and passing message back to UI Thread

2010-03-10 Thread John Wesonga
If this is so, why do I get a null pointer exception whenever I call any method from the UI thread even after creating an instance of that object? I tried passing the activity as an argument in the constructor for the AsyncTask: Activity mParentActivity; public LoginTask(Context context,Activity

[android-developers] Re: Android Device Seeding Program - Differences in phone for developers?

2010-03-10 Thread Pieter
Or have made the top 200 in ADC2... On Mar 10, 5:39 am, Streets Of Boston flyingdutc...@gmail.com wrote: @Kevin Or being a top contributor to these community forums. I'll get an Android device as well. On Mar 9, 11:18 pm, Moto medicalsou...@gmail.com wrote: I can't wait for mine!  But

[android-developers] Re: How to display all contacts?

2010-03-10 Thread SREEHARI
Use the below code to display all contacts with their number package com.wipro.address; import android.app.ListActivity; import android.database.Cursor; import android.os.Bundle; import android.provider.Contacts.Phones; import android.provider.Contacts.People; import

[android-developers] how to convert Bitmap image to Drawable in Android

2010-03-10 Thread Farha Ansari
how can i convert a Bitmap to Drawable. Thanks, Farha -- 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] Re: how to convert Bitmap image to Drawable in Android

2010-03-10 Thread skink
On Mar 10, 8:14 am, Farha Ansari farha45ans...@gmail.com wrote: how can i convert a Bitmap to Drawable. Thanks, Farha have you tried to see all the subclasses of Drawable? Bitmap + Drawable = BitmapDrawable pskink -- You received this message because you are subscribed to the Google

[android-developers] Does eclair run on ADP2

2010-03-10 Thread Natanael Arndt
Hello, I want to buy the ADP2 (HTC Magic) but I wonder if also Android 2.1 is available for it. Because I've heard that eclair doesn't run on HTC Magic as you can get it in the stores. Natanael -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Problem to open SMS after deleting another with my widget...

2010-03-10 Thread Olivier
Hi! It is the last problem I have before finishing my widget so I beg you to help me! I've created a widget wich can navigate in SMS/Inbox, and deleting them... When I delete one at the position 5 for example, this one is deleted, the other next are at the position before and the messages before

[android-developers] Get user info - email

2010-03-10 Thread biokys
Hi, Can I find out an information from appliaction code about user, who is using android phone. I mean for example email, the user is connected with to google account. Thx in advance Honza -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: Windows Phone and XNA. Nightmare is real. What we do with that ?

2010-03-10 Thread Mario Zechner
Very cool! didn't know about that. I try to get in contact with the author. On 10 Mrz., 02:31, Lance Nanek lna...@gmail.com wrote: It allows you to develop your games mostly on the desktop and deploying it to your Android device Neat project. Have you seen this one for the same

[android-developers] Re: New Android SDK Tools, Eclipse plug-in and NDK

2010-03-10 Thread MobDev
hhmm, any idea if there will be some low level support through NDK for MediaPlayer or any more direct about audio-buffers and codecs ? Anyways, good work ! It's good to see there is still a good amount of progression ! On 9 mrt, 03:17, Mario Zechner badlogicga...@gmail.com wrote: Awesome! OpenGL

[android-developers] Re: Is there any changes in crop image activity

2010-03-10 Thread Adarsh Pandey
So now, how to call CropImage Activity from other third party application. On Feb 15, 6:52 pm, Scytmo i...@scytmo.org.uk wrote: I think the answer is here:  http://developer.android.com/intl/de/guide/topics/manifest/activity-e... In eclair, the CropImage activity has no intent-filter

[android-developers] Re: Windows Phone and XNA. Nightmare is real. What we do with that ?

2010-03-10 Thread Piotr
Both these frameworks are interesting, but as I mentioned before; it could be better, to create low-level, native NDK game framework library. Java is just too slow to handle thousands opengl calls per second for any game more complex than falling bricks or sth. Such framework could load game

[android-developers] Disable keyboard in DatePicker ?

2010-03-10 Thread djdamage06
Hello everybody, Is it possible to disable the edition of fields in DatePicker ? Indeed when I touch on the editable box in the DatePicker, the keyboard appears... And I don't want this ! Someone have an idea ? Thanks a lot for your response :)

[android-developers] Re: Android app only taking up part of screen

2010-03-10 Thread Kumar Bibek
Aah, An example of apps running on different screen sizes and resolutions. Please have a look at this. http://developer.android.com/intl/de/guide/practices/screens_support.html Kumar Bibek On Mar 9, 1:07 am, Drew zit...@gmail.com wrote: I have an Android application that's seemingly only

[android-developers] How to make a custom view/activity with many screens like home screen in 2.x

2010-03-10 Thread Vaibhav Goel
Hi I want to make an activity in 2.x which have many UI screens and user can move from one screen to other by scrolling the screen like we have more than one Home screens and we can move from one to another just by sliding current screen. Please guide me for implementing this. Can this be

[android-developers] Re: Activity without ANY screen output possible?

2010-03-10 Thread westmeadboy
If you have an application with no visible activity then how does the supports-screen tag (in the Manifest) affect app visibility (in the Market) etc? In other words... I believe that if minSdk is set to 1.5 and supports-screen is not specified, then the app will not be visible to ldpi devices.

[android-developers] How Add Rating Bar on App Widget???

2010-03-10 Thread Gulfam
Hi all, I am trying to make an app widget, and i want to add three things in this widget 1: Text View 2: Button 3: Rating bar I have added first two things successfully but when i have start to add Rating Bar in the widget its not adding and showing Problem loading widget message where should be

[android-developers] Re: How Add Rating Bar on App Widget???

2010-03-10 Thread Gulfam Hassan
One Thing more I am using 1.5 SDK On Wed, Mar 10, 2010 at 4:06 PM, Gulfam gulfa...@gmail.com wrote: Hi all, I am trying to make an app widget, and i want to add three things in this widget 1: Text View 2: Button 3: Rating bar I have added first two things successfully but when i have

[android-developers] Re: Looking to becoming a developer part time

2010-03-10 Thread saru
i think a little time is not worthy. so plan to give more time On Mar 10, 2:36 am, TreKing treking...@gmail.com wrote: On Mon, Mar 8, 2010 at 1:12 PM, omnilaw omni...@gmail.com wrote: I plan on spending a little time a night trying to learn the programming needed and get familiar with the

[android-developers] Re: a BET. if u can then do.I think Impossible

2010-03-10 Thread Kumar Bibek
Hahahaha, It's basically impossible. Of course nothing is impossible. If you can make some source code changes and change the permissions, and then apply that upgrade to all the available phones in the world, then only it's possible. It won't work any other way. This is a kind of weird at first,

[android-developers] Re: How Add Rating Bar on App Widget???

2010-03-10 Thread Kumar Bibek
The current AppWidget framework doesn't support all the widgets. Here are the supported widgets that you can use: A RemoteViews object (and, consequently, an App Widget) can support the following layout classes: * FrameLayout * LinearLayout * RelativeLayout And the following widget

[android-developers] Re: Problem to open SMS after deleting another with my widget...

2010-03-10 Thread Kumar Bibek
Hi, I guess the SMS api is not open for public use yet. There are no comprehensive docs on this topic as well. The way you are accessing the Content Provider might change in the future and hence, your app will break. The SMS table is tightly coupled with the notifications as well. You need to

[android-developers] Re: Adding links to an email message

2010-03-10 Thread Kumar Bibek
You cannot hook into another application. You can only share data through ContentProviders. But I don't think Gmail and other email apps would expose their data to other apps. It doesn't make sense as well. Thanks and Regards, Kumar Bibek. On Mar 10, 6:37 am, tom tom.co...@gmail.com wrote:

[android-developers] How to add my own Audio codec to AudioRecord?

2010-03-10 Thread draf...@gmail.com
I currently have a Loop back program for testing Audio on Android devices. It uses AudioRecord and AudioTrack to record PCM audio from the Mic and play PCM audio out the earpiece. Here is the code: public class Record extends Thread { static final int bufferSize = 20;

[android-developers] Re: how to make customized UI component

2010-03-10 Thread Kumar Bibek
Well, it sounds complicated, but you can achieve it. 1. Create a custom view by extending the View class. 2. In it's layout, you can have a text view, with I like 3. And then a Spinner with values banana, apple, orange, etc And then you can write utility methods in this class to get control of

[android-developers] Re: Samsung Moment does not return anything in parameters.getSupportedFlashModes()

2010-03-10 Thread Streets Of Boston
Thank you Dianne, But wouldn't there be a value/name pair that one can set in the Camera.Parameters instance, e.g. 'cameraParms.set(flash- mode,auto)' or something similar, much like you can set scene-modes on the G1 despite the fact that Android1.6 does not officially support scene-modes? On

[android-developers] Re: Windows Phone and XNA. Nightmare is real. What we do with that ?

2010-03-10 Thread Mario Zechner
I concur with this statement. I did a lot of benchmarking and the JNI bridge crossing of OpenGL methods is not a problem, I can happily render hundreds of objects. Also, for performance hungry things like MP3 decoding (to get PCM data which is not possible at the moment with the mediaframework),

[android-developers] Market apps Ranking rules

2010-03-10 Thread croco
Hi all, I'm wondering what are the rule for apps ranking in market I'm asking this because my app 1-5 (218 rattings )in action games category is stuck in the bottom of the category above me alot of 1000-5000 aps with 10 ratings . Why i'm so in deep :( Thanks for your help. My

Re: [android-developers] Re: How Add Rating Bar on App Widget???

2010-03-10 Thread Mark Murphy
Gulfam Hassan wrote: One Thing more I am using 1.5 SDK On Wed, Mar 10, 2010 at 4:06 PM, Gulfam gulfa...@gmail.com mailto:gulfa...@gmail.com wrote: Hi all, I am trying to make an app widget, and i want to add three things in this widget 1: Text View 2: Button

[android-developers] How do i check app close gracefully during shutdown scenario

2010-03-10 Thread Kabita
Hi, Is there any procedure how to check all the apps getting closed gracefully during the shutdown scenario? Anybody has any idea please share. -- 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] Dialer Question

2010-03-10 Thread Isaac Wagner
I've got an application where I need to dial a phone number. This is how I'm starting the dialer: int DIAL = 1; Intent dial = new Intent(Intent.ACTION_CALL, Uri.parse(tel:5551212)); startActivityForResult(dial, DIAL); After the phone call is ended the dialer automatically goes to the call log

[android-developers] Re: How do i check app close gracefully during shutdown scenario

2010-03-10 Thread James Wang
For what? -- 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+unsubscr...@googlegroups.com For more

[android-developers] Re: multiple user feature in android

2010-03-10 Thread James Wang
You mean supporting more than one user account like windows? -- 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] Re: Customizing in Coming /Out going call screen

2010-03-10 Thread James Wang
AFAIK, you can not do it without making your own firmware. Because Phone App has deep connection with framework. You should ask this question on android-porting. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: HTML parsing with JAVA

2010-03-10 Thread Beena
Thanks Frank, I have tried it but it is not working it gives me error. I have searched for that and i found interesting. See the below link which says it contains error. http://osdir.com/ml/Android-Developers/2010-01/msg00132.html I gone through the procedure to add external jar into

[android-developers] Re: General question: Can't we have 2 projects(same) in 2 different locations and import them in eclipse?

2010-03-10 Thread James Wang
I believe you have to change the value of /projectDescription/name of .project file to make your two projects have different names. -- 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: Query Loop!?

2010-03-10 Thread James Wang
You should take a look at SQLiteDatabase.execSQL. -- 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

Re: [android-developers] Re: Cannot get PhoneNumber on Real device but code works in Emulator

2010-03-10 Thread Zeeshan Muhammad
I am also having the same problem. String MSISDN = ((TelephonyManager) this.getSystemService(this.TELEPHONY_SERVICE)).getLine1Number(); returns null. is there any way i can get MSISDN? can i get it by sms? On Wed, Sep 23, 2009 at 6:15 AM, an0 an0...@gmail.com wrote: I've the same

[android-developers] Re: How to pass a property value argument to an instrumentation test runner

2010-03-10 Thread torre
Hi Brett, Thank you for your answer. I added a .properties file in my jars, each one containing the required specific parameters for each specific project. Overriding the onCreate method seems a good workaround too... On 5 mar, 18:44, Brett Chabot brettcha...@android.com wrote: The only thing

[android-developers] Re: How to pass a property value argument to an instrumentation test runner

2010-03-10 Thread torre
Hi Brett, Thank you for your answer. I added a .properties file in my jars, each one containing the required specific parameters for each specific project. Overriding the onCreate method seems a good workaround too... On 5 mar, 18:44, Brett Chabot brettcha...@android.com wrote: The only thing

[android-developers] Re: singleTask + activity stack not preserved?

2010-03-10 Thread Stefan Klumpp
+ If there is no intent_filter listed then even with launchMode=singleTask re-launch from Home returns to the last activity in the task. Okay if removing all intent-filter entries in the manifest is the solution (or temp. workaround) how do then start your application? Don't you need at least

[android-developers] Re: Problem to open SMS after deleting another with my widget...

2010-03-10 Thread Olivier
I understand what you mean, but it must possiblie because there always is app wich do what I want like tat home or sense. So now per-haps need I just a db adapter for my widget and if it the case, how create it? -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Scrollview and Listview

2010-03-10 Thread TreKing
On Tue, Mar 9, 2010 at 8:04 AM, Mark Murphy mmur...@commonsware.com wrote: Sasikumar.S wrote: How to add listview inside scrollview ? You can't. There is probably some other way to solve whatever problem you have without using a ScrollView.

[android-developers] Re: How to get result from Activity

2010-03-10 Thread ailinykh
It's not about notification. If session is expired I have to start LoginActivity. As far as I understand NotificationManager can't help here. Thank you, Andrey On Mar 10, 12:29 am, Dianne Hackborn hack...@android.com wrote: You should never start any activity outside of an existing activity.  

Re: [android-developers] Re: How to get result from Activity

2010-03-10 Thread social hub
does handler work for you the handler can post events to the main UI thread. You can process then in main UI thread and send messages to ui handler from ur asyntask I am just guessing. if its just notifying user then handler should do the trick On Wed, Mar 10, 2010 at 8:23 AM, ailinykh

[android-developers] Disable Trackball and Move to an On-Screen Buttons for Trackball

2010-03-10 Thread David
I am not really happy with using the trackball with the 2D game we are developing. So, I would like to move the trackball function to the bottom of the screen and utilize on-screen buttons that emulate the trackball. We're just getting started in this... So three questions: 1. Are there any

Re: [android-developers] Disable Trackball and Move to an On-Screen Buttons for Trackball

2010-03-10 Thread Mark Murphy
Note: I am not a game developer. David wrote: 2. What is the best way for us to accomplish trackball events using on screen buttons? 3. How might we disable the hardware trackball? I would think that the answer to #2 and #3 is: don't consider your on-screen buttons to be a direct

[android-developers] Re: How to add my own Audio codec to AudioRecord?

2010-03-10 Thread HeHe
i believe you should use a short[] buffer in your AudioRecord.read(). on return, you pass the short[] buffer to you encoder and that is it. On Mar 10, 3:39 am, draf...@gmail.com draf...@gmail.com wrote: I currently have a Loop back program for testing Audio on Android devices. It uses

[android-developers] Overlay in Bounded Lat Long Possible?

2010-03-10 Thread JFrog
Currently, I have been dealing with placement of items in the ItemizedOverlay class with the google maps android library, which seems to work just fine. It handles the icon placments and associated properties of the icons that I place on the viewer. As of lately though, I noticed that I loose

[android-developers] Keep account information after application uninstall

2010-03-10 Thread sazilla
Hi guys, I've an issue related to the application uninstall. Actually when my application is removed, all the related accounts are removed, and consequently all the account contacts disappear from the device. I was wondering if there is a way to keep the accounts information or eventually to be

[android-developers] Re: OpenGL ES 2.0 on Eclair

2010-03-10 Thread scott19_68
So, with GL ES 2.0 now present in the NDK r3, how much longer until the Java bindings are present? Any idea what form the bindings will take? JSR-297 (M3D 2.0)? Custom extensions to JSR-239? If I could offer my $0.02... please DO NOT adopt the full M3D 2.0 spec - the history of OpenGL has

Re: [android-developers] Keep account information after application uninstall

2010-03-10 Thread Mark Murphy
sazilla wrote: I've an issue related to the application uninstall. Actually when my application is removed, all the related accounts are removed, and consequently all the account contacts disappear from the device. I was wondering if there is a way to keep the accounts information You could

[android-developers] Re: Keep account information after application uninstall

2010-03-10 Thread sazilla
Hi Mark, thank you for your fast reply, do you (or anyone) know if there's any work in progress on this topic? Carlo On Mar 10, 4:23 pm, Mark Murphy mmur...@commonsware.com wrote: sazilla wrote: I've an issue related to the application uninstall. Actually when my application is removed, all

[android-developers] ADB Freezes when doing automation / Not detecting device with ADB 1.0.25

2010-03-10 Thread GK Gupta
Hi, I am using Android tools rev4, which shows adb version as 1.0.25 and my device is a 2.1 android device. When I do adb start-server * daemon not running. starting it now * * daemon started successfully * adb devices List of devices attached It does not shows device attached, but for the

Re: [android-developers] Re: Keep account information after application uninstall

2010-03-10 Thread Mark Murphy
sazilla wrote: Hi Mark, thank you for your fast reply, do you (or anyone) know if there's any work in progress on this topic? Applications leaving stuff behind is one of the reasons Windows is awful. Applications getting control at uninstall time is viewed as a security risk, based on past

[android-developers] Re: Problems with local network broadcast.

2010-03-10 Thread Jay Gischer
Hmm, at a guess, when you call new DatagramSocket you are asking for a port on the local machine that you are going to send from. But port 5 is already in use listening to broadcasts. Maybe you need to send your broadcasts from a different port? -- You received this message because you

Re: [android-developers] Re: How to display all contacts?

2010-03-10 Thread Dmitri Plotnikov
Sorry, but the above answer is misleading. First of all, it uses obsolete API. Second, it returns phone numbers, not birthdays. You should use the Data.CONTENT_URI and constrain the mime type to Event. And then you should do some magic about parsing dates, because we don't impose any format. So

[android-developers] D-GPS Enabled Android Phones

2010-03-10 Thread paul zazzarino
Looking for a development phone which has D-GPS. The Bad - this will only work outdoors The Good - Will not need a phone plan to use A-GPS Looks like the only phone with D-GPS is the Geeksphone ? http://spreadsheets.google.com:80/pub?key=rdm8c2ZfSDKd5l-dVy4SrnAoutput=html -- You received this

[android-developers] Re: Keep account information after application uninstall

2010-03-10 Thread blau
Another alternative is that you could offer an option to save the contact information somewhere in the cloud. This would prevent other apps from accessing the information on the SD card. Of course, depending on sensitivity of information, many users will scoff at that approach. -Mike dg On Mar

[android-developers] Re: Disable Trackball and Move to an On-Screen Buttons for Trackball

2010-03-10 Thread blau
As an avid gamer, I consider more control options to be better. Some control options feel better to certain players and unless there's a legitimate competitive reason to disabling a certain control scheme then I would also allow trackball and directional pad usage in addition to on screen

[android-developers] Unable to download SQLite database file from Dev Phone

2010-03-10 Thread creativepragmatic
Hello, I have seen other posts similar to this one but none of the solutions listed work for me. When I use the following command: adb pull /data/data/com.mydomain.myappname/databases/MyDatabase.db / home/me the following error results. failed to copy

[android-developers] Re: Overlay in Bounded Lat Long Possible?

2010-03-10 Thread Mike dg
You can extend Overlay and implement your own drawing algorithms for the blueprints. MapView.getProjection will be a huge help for converting coordinates to pixels for drawing. http://code.google.com/android/add-ons/google-apis/reference/index.html Mike dg On Mar 10, 10:04 am, JFrog

Re: [android-developers] Re: AsyncTask and passing message back to UI Thread

2010-03-10 Thread Romain Guy
Apparently the Activity you pass is null. And you seem to misunderstand what the UI thread is. A Context or an Activity is NOT the UI thread. On Wed, Mar 10, 2010 at 12:24 AM, John Wesonga johnweso...@gmail.com wrote: If this is so, why do I get a null pointer exception whenever I call any

Re: [android-developers] Unable to download SQLite database file from Dev Phone

2010-03-10 Thread Mark Murphy
creativepragmatic wrote: Hello, I have seen other posts similar to this one but none of the solutions listed work for me. When I use the following command: adb pull /data/data/com.mydomain.myappname/databases/MyDatabase.db / home/me the following error results. failed to copy

[android-developers] Re: How do i check app close gracefully during shutdown scenario

2010-03-10 Thread Mike dg
I don't think that waiting until shutdown to do anything is a great idea. You have no control over the speed of the shutdown or anyway to disable it. -Mike dg On Mar 10, 7:25 am, Kabita san.k...@gmail.com wrote: Hi, Is there any procedure how to check all the apps getting closed gracefully

[android-developers] Re: Unable to download SQLite database file from Dev Phone

2010-03-10 Thread creativepragmatic
Thank you! So now I can stop trying! :) Does anyone know how I can get root access on Dev 2 or is there some other way to transfer the file? On Mar 10, 11:16 am, Mark Murphy mmur...@commonsware.com wrote: creativepragmatic wrote: Hello, I have seen other posts similar to this one but none

[android-developers] Re: Disable Trackball and Move to an On-Screen Buttons for Trackball

2010-03-10 Thread David
On Mar 10, 10:08 am, blau vinb...@gmail.com wrote: As an avid gamer, I consider more control options to be better. Agreed, we were thinking of having an option to switch between the two... on screen vs. trackball/dpad. We just don't want a bump of the real trackball to create mis-hits of the

[android-developers] Re: DatePicket widget help

2010-03-10 Thread sunny
*Adding to what I wrote on DatePicker, let me share with you the code I wrote. Somehow, when I try to render it using setContentView , all I am getting is a blank screen( no exceptions at all). * *I am just clueless.. :-* *public** class** myDatePicker extends** DatePicker {* ** *public**

[android-developers] Re: Activity lifecycle problem on Nexus One - onStop not called

2010-03-10 Thread Alex
I'm having a similar lifecycle issue on the Nexus One. Start the app -OnCreate Hit back - no OnDestroy is called Run app again -OnCreate, followed by OnDestroy The wierd thing is that it doesn't actually kill our application, so it is left in a broken state since we are tearing things down in

[android-developers] Re: Android Nexus One Update is causing problems!

2010-03-10 Thread Alex
I posted in another thread, but I'll try here as well: I'm having a similar lifecycle issue on the Nexus One. Start the app -OnCreate Hit back - no OnDestroy is called Run app again -OnCreate, followed by OnDestroy The wierd thing is that it doesn't actually kill our application, so it is left

[android-developers] 蔡明洋先生 想跟您聊天

2010-03-10 Thread 蔡明洋先生
--- 蔡明洋先生希望通过 Google 的一些最炫的新产品与您保持更密切的联系。 如果您已经拥有 Gmail 或 Google Talk,请访问: http://mail.google.com/mail/b-b5e0e0e8fd-646d3b0b56-6b572296b6797aa0 您需要点击此链接才能与蔡明洋先生聊天。 要获取 Gmail(Google 提供的免费电子邮件帐户,存储空间超过 2,800 MB)并与蔡明洋先生聊天,请访问:

[android-developers] Using MediaPlayer - multiple sound files

2010-03-10 Thread Neilz
Hi all. I need to use MediaPlayer to play some sounds, as they were too large in size for the SoundPool class. The constructor takes a single sound file. I have, potentially, around 20 files that I want to play, randomly and instantly, like sounds in a game. Do I have to create a new MediaPlayer

[android-developers] Re: Does eclair run on ADP2

2010-03-10 Thread Mike dg
There is not an official developer rom available. And I don't think you can build it yourself without massive modifications yet. (Could be wrong on that account) You should be able to find a handful of unofficial roms based on 2.0/2.1 that will run on an ADP2.

[android-developers] Drawing KML using the MapView API

2010-03-10 Thread jesse
Hi, I'd like to draw KML on top of a MapView in my app. From searching around, I've that it is possible to have the Google Maps app draw KML by doing something like this: Intent mapIntent = new Intent(Intent.ACTION_VIEW); Uri uri1 = Uri.parse(geo:0,0?q=http://code.google.com/apis/kml/

[android-developers] Re: Interleaved buffer in OpenGL incompatible with GLLogWrapper?

2010-03-10 Thread dario
Lance, This looks like issue 6109 http://code.google.com/p/android/issues/detail?id=6109 Which hasn't been updated but the good news is that I tried your code with the master branch and it's been fixed. Hopefully it'll make the next update to 2.1 -Dario On Jan 11, 4:31 am, Lance Nanek

[android-developers] Re: Activity without ANY screen output possible?

2010-03-10 Thread Luis
I agree with Joaquim Azevedo, there are really good reasons why some functionality like this should (and perhaps it does) exist. For example, I could have an application to monitor the activities being performed in my system (at first, just the basic ones, like UI interaction), so I could just log

[android-developers] Questions to comic contents developer

2010-03-10 Thread amoriguchi
Hi, I have questions to paid comic contents developer. I'm planing to distribute paid comic application. What I concerned is 24 hours cancellation policy on Android Market. As you know, comic is easy to read. It can be read almost in several minutes. So if customer buys my comic application,

[android-developers] Control Webkit LOG in runtime

2010-03-10 Thread sangheonkim
Hello I am trying to control Webkit LOG in rumtime. For example, Webkit FrameLoader class have the log feature like this. if (DebugFlags.FRAME_LOADER) { Log.v(LOGTAG, FrameLoader: http + mMethod + load for: + mListener.url()); } and this

[android-developers] on configuration change landscape to portrait it always start activity from beginning.

2010-03-10 Thread nomi
hi , i have written code to display images in sequence. when click on next button it shows next image.and so on. i m using android 1.5 and save landscape images with same name(as portrait images have) in drawable-land folder. when i rotate the device it takes all landscape image from drawable-

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-10 Thread Arnon
Hi I have an app which on Feb. 28 had 9000+ downloads and a 4.2 stars rating. i didn't recieve any mail, so I contacted them and they asked me to fill the form. I filled the form last friday (March 5th) Does anyone know how long does it take for them to send the confirmation mail? -- You

[android-developers] Android Debugger Problem

2010-03-10 Thread Veered
For some reason I can't step through the code in the debugger. I am not trying to step through Android source code, just code that resides in my project. My build paths are setup to include it, but whenever I try stepping over anything it gives me a Source not found message. I really have no idea

[android-developers] invoke functions of android source library (libmedia)

2010-03-10 Thread André Barbosa
Dear All, I'm working on a project for my BSc in Computer Science. I have to create a module in C to be invoked by the java through jni. The goal of this module is call functions from libmedia that aren't directly accessible in the current Java API. I already tried copying the code from libmedia

[android-developers] How to use pdfbox1.0.0 to read pdf file on android?

2010-03-10 Thread zuo shibo
HI, I want to get the pdf text content by use pdfbox.jar (the pdfbox version 1.0.0 : pdfbox.jar) in android app, but failed to get the message: E/AndroidRuntime( 1164): java.lang.VerifyError: com.android.pdfbox.pdfbox E/AndroidRuntime( 1164): at java.lang.Class. newInstanceImpl(Native

[android-developers] Visibility change in LinearLayout

2010-03-10 Thread Gyscos
Hi ! I'm trying to change the visibility of a SurfaceView in a LinearLayout from View.VISIBLE to View.GONE, but the LinearLayout doesn't seem to refresh when I do this. I made a minimal application to show the problem : http://pastebin.com/DAQSWC0z Thanks :) -- You received this message

[android-developers] XML validation error when updating Android SDK

2010-03-10 Thread aisakov
Hello! I am trying to update Android SDK on Windows XP. For that I open Android SDK and ADV manager and try to get available updates. The HTTPS SSL error appears. Then I go to settings, uncheck the force https..., then add new site http://dl-ssl.google.com/android/repository/ repository.xml (the

[android-developers] Alignment problem of EditText and Button in LinearLayout

2010-03-10 Thread Sven Jacobs
Hi all, this is the first time I'm developing an Android app so please bear with me ;) I've put an EditText and Button into a horizontal LinearLayout but unfortunately the button is not aligned with the text field. In the Hierarchy Viewer the text field has a absolute_y of 30 while the button

[android-developers] HTML content on AppWidget

2010-03-10 Thread Deepak
Hello Guys, I need to know if it is possible to display HTML content on an AppWidget. As for my research in this regards, I came across WebView which can easily display HTML content on the window but it needs an activity class to make a view of it, while AppWidgets can reside on the homescreen

[android-developers] How to get text under touch?

2010-03-10 Thread Glen Lewis
When a touch event has occurred in any control showing a block of text (TextView, EditText, WebView, others), how does one get the text where the touch occurred? For example, if a TextView control contained now is the time for all good men to come to the aid of their country and the word time is

[android-developers] How to block incoming call in Android?

2010-03-10 Thread jitendra kumar
Hi All, I want to develop one call control application on android. As we know android sdk does not provide any API which block incoming call due to security reasion. Is there any possiablity to block incoming call using android open source api;s? Please help me. Thanks, Jitendra Kumar -- You

[android-developers] Re: ADB Freezes when doing automation / Not detecting device with ADB 1.0.25

2010-03-10 Thread Kumar Bibek
Try re-setting the adb. Run these commands adb kill-server adb start-server And then try . This should work. Thanks and Regards, Kumar Bibek On Mar 10, 8:30 pm, GK Gupta gkumar.g...@gmail.com wrote: Hi, I am using Android tools rev4, which shows adb version as 1.0.25 and my device is a

[android-developers] reply soon

2010-03-10 Thread student
how to create if user click the link it should be updated to my webpage -- 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] Using Styles for Menu

2010-03-10 Thread Prasanna Perera
I want to use styles to control the text color of the context menu (ie the menu that pops up when I tap and hold on a list item). My styles.xml would look like this. ?xml version=1.0 encoding=utf-8? resources style name=MyTheme parent=android:style/Theme item name=android:WHAT

[android-developers] How do I simulate the Home key programmatically?

2010-03-10 Thread Wides
Hi, I have a requirement to implement an Exit button in my Android application. I don't really care about killing the activity stack, I just want to have the same effect as pressing the Home button. So that application state is saved and can be returned to. I've tried making a call to

[android-developers] How to Upgrade Application without losing data.

2010-03-10 Thread Caeser
hi, How to upgrade Android app without losing data ? e.g. I have a game which is using some preferences or sqlite data. which is associated with the android app. If app is already installed on device, it is not allowing the same app to install again. and one need to uninstall then reinstall app

[android-developers] Vertical Seekbar

2010-03-10 Thread balafon
Hi. I made vertical seekbar class. This is extended View class. Please test, and teach if there is a bug. The file of the project of Eclipse is put on the following URL. http://560b.sakura.ne.jp/android/VerticalSlidebarExample.zip My best regards. -- You received this message because you

[android-developers] Re: Cannot get textAppearance to inherit/cascade from theme

2010-03-10 Thread Prasanna Perera
I am having this exact problem. I am testing on the emulator. On Feb 19, 1:24 am, Walt Armour waltarm...@gmail.com wrote: I have a simple style like this:         style parent=android:Theme.Light.NoTitleBar name=MyTheme             item name=android:colorBackground#FF/item            

[android-developers] Re: Disable keyboard in DatePicker ?

2010-03-10 Thread Mike dg
So you don't want the textfields to be editable by typing, only by pressing the arrows? Should be possible. The below code almost works. For some reason whenever you click an arrow, it makes the corresponding text box editable again. But if you hit an arrow on another textbox, then it reverts

Re: [android-developers] How do I simulate the Home key programmatically?

2010-03-10 Thread Romain Guy
You cannot simulate a press on the Home key. On Wed, Mar 10, 2010 at 8:23 AM, Wides erich.weid...@gmail.com wrote: Hi, I have a requirement to implement an Exit button in my Android application. I don't really care about killing the activity stack, I just want to have the same effect as

  1   2   3   >