[android-developers] Re: Change colors Tabs

2008-09-23 Thread Valentin Chifa
I created one resource file with colors, and i can change only the entire background. I can't change color for widget. I want to change background for the indicator where is a char sequence and an icon. Resource files are following Colors: resources drawable name=red#7f00/drawable

[android-developers] Re: Recorder Audio

2008-09-23 Thread jphdsn
do you have a solution? On Sep 22, 11:50 am, ZIN [EMAIL PROTECTED] wrote: I saw in the properties MediaRecorder.AudioEncoder.AMR_NB, so the only format audio recorder type is .AMR But the music media in Android can't play this format? What can i solve this problem?

[android-developers] Re: Recorder Audio

2008-09-23 Thread jphdsn
have you find a solution? On Sep 22, 11:50 am, ZIN [EMAIL PROTECTED] wrote: I saw in the properties MediaRecorder.AudioEncoder.AMR_NB, so the only format audio recorder type is .AMR But the music media in Android can't play this format? What can i solve this problem?

[android-developers] Re: Change colors Tabs

2008-09-23 Thread hackbod
As I said, you need to supply your own complete graphics. All you are doing here is making the tab a solid color. You need to draw your own tab with the focus image using the color you want for focus. But honestly, I would strongly discourage you from doing this. If you are just changing the

[android-developers] Re: Simulate KeyEvent

2008-09-23 Thread hackbod
You don't. Applications aren't allowed to inject events into other applications. If you are wanting to do automated testing, you can use the Instrumentation APIs to write a separate .apk that injects events into another .apk it is testing, but both of these need to be signed with the same

[android-developers] Re: Web Browser in .9

2008-09-23 Thread hackbod
On Sep 22, 4:29 pm, Mark Murphy [EMAIL PROTECTED] wrote: Try ACTION_VIEW. For whatever reason, they flipped the order around of all those Intent names. It was done to keep the constant naming conventions consistent. --~--~-~--~~~---~--~~ You received this

[android-developers] Re: switch between activities

2008-09-23 Thread hackbod
No activities are purely a stack, sorry. On Sep 22, 5:02 pm, chouman82 [EMAIL PROTECTED] wrote: this should be something simple but yet i can't seem to find the answer anywhere. I have a parent activity that starts a sub activity.  From the sub activity, i want to be able to go back to the

[android-developers] Re: How to use onListItemClick() while overriding dispatchTouchEvent() in ListActivity?

2008-09-23 Thread Urakagi
Days pass but I still can't find an answer. I try to trace stack, but I can't understand how the system get position parameter since the source code of SDK is not available: ListView.performItemClick(View, int, long) line: 2968 AbsListView$PerformClick.run() line: 1406 When I call

[android-developers] Re: Trouble with 0.9 beta and MapActivity

2008-09-23 Thread sudheer
Here is my problem. when I setContentView(map), only a grid is displayed. the ddms logs have the following messages 09-23 14:05:41.131: WARN/Maps_Persistence(447): Couldn't find file: / data/data/MapAppProj.MapAppPack/files/DATA_Preferences 09-23 14:05:41.221: WARN/Maps_Persistence(447):

[android-developers] Certificate untrusted when I try to login gmail

2008-09-23 Thread lm
Hi all, Now I meet a trouble with android. I run the android on my developing board of freescale. I can visit the gmail page, but I can't login.After sign in name and password and hit the login button, It show a warning message of Certificate untrusted and the detail MSG is SSL warning. Then it

[android-developers] Re: Unable to create an URI for a local sound

2008-09-23 Thread Matteo Crippa
I'm an Android novice, but what do you think about this solution? MediaPlayer mNotify; mNotify = MediaPlayer.create(this, R.raw.beep); mNotify.start(); It should play your audio file without problems On 23 Set, 04:13, CG [EMAIL PROTECTED] wrote: Hey, I try to play a local sound in a

[android-developers] App versioning appstore

2008-09-23 Thread Matteo Crippa
Hi, I'm looking for information about Android app versioning, in particular with reference with the appstore system. In this very moment I'm planning to develop an app with some static contents (eg. music, background, video and pics), but within a couple of months it will be possible to upgrade

[android-developers] v0.9 icons in sub menu

2008-09-23 Thread Guillaume Perrot
In m5 icon in menu items was displayed both in main menu and in sub menu. But in v0.9 my icons in sub-menu simply disappeared. It is the same thing when the more icon appear when there is too many items: the items in more have no icons in this case. I don't like this way of doing, is there any

[android-developers] Coordinate difference between pointToPosition() and MotionEvent.getY()

2008-09-23 Thread Urakagi
Hi, I have a ListActivity, so I also have a ListView in it. I want to use ListView.pointToPosition() in dispatchTouchEvent() of ListActivity. But when I call MotionEvent.getY(), it returns the Y coordinate of whole screen, but pointToPosition() needs an local coordinate. I tried many getTop() or

[android-developers] Re: switch between activities

2008-09-23 Thread Guillaume Perrot
Do you need the child activity to return a result in your case ? On 23 sep, 09:35, hackbod [EMAIL PROTECTED] wrote: No activities are purely a stack, sorry. On Sep 22, 5:02 pm, chouman82 [EMAIL PROTECTED] wrote: this should be something simple but yet i can't seem to find the answer

[android-developers] seeing a grid instead of map on Emulator

2008-09-23 Thread sudheer
Hello All i am getting only a grid and not map. my ddms log has the following 3 lines and doesn't any one know how to get past this? 09-23 15:10:30.061: WARN/Maps_Persistence(605): Couldn't find file: / data/data/MapAppProj.MapAppPack/files/DATA_Preferences 09-23 15:10:30.141:

[android-developers] how to finalizing sqllite cursor???

2008-09-23 Thread Wesley Sagittarius
hi, how to finalizing sqllite cursor??? 09-23 10:06:08.646: INFO/dalvikvm(1662): Uncaught exception thrown by finalizer (will be discarded): 09-23 10:06:08.646: INFO/dalvikvm(1662): Ljava/lang/ IllegalStateException;: Finalizing cursor [EMAIL PROTECTED] on notes that has not been deactivated or

[android-developers] Re: Recorder Audio

2008-09-23 Thread jphdsn
read arm format works, in bad quality On Sep 23, 8:17 am, jphdsn [EMAIL PROTECTED] wrote: have you find a solution? On Sep 22, 11:50 am, ZIN [EMAIL PROTECTED] wrote: I saw in the properties MediaRecorder.AudioEncoder.AMR_NB, so the only format audio recorder type is .AMR But the music

[android-developers] Re: Problem when running SoundRecordingAPISample of Megha

2008-09-23 Thread De San Nicolas Jean Philippe
sorry,it works 2008/9/23 De San Nicolas Jean Philippe [EMAIL PROTECTED] another question about sound an recording. I've read that the only way to record sound is to record it in AMR format. Is it true that the media player does not read this format? And if it's true, is there another way to

[android-developers] Re: why I can't launch web browser from Android?

2008-09-23 Thread Mark Murphy
yangrunfeiandroid wrote: add uses-permission android:name=android.permission.INTERNET/ in your androidmanifest.xml good luck for you Also, in the Android 0.9 SDK, it should be ACTION_VIEW instead of VIEW_ACTION. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's

[android-developers] Re: Trouble with 0.9 beta and MapActivity

2008-09-23 Thread Mark Murphy
sudheer wrote: Thanks a lot for that pointer. It worked and the errors went away. but now I have the second problem. I see only grids and no map. How can I see a map now? I think that happens if you aren't getting an Internet connection, but am not completely certain. Can your emulator

[android-developers] Re: Does Android support Chinese Traditional Language?

2008-09-23 Thread Ludwig
I have at least no trouble displaying Simplified Chinese characters on the screen (I do not have traditional chars installed, so I cannot check those). Using Eclipse I simply change my IME and type in Chinese text into the resource strings and they appear correctly on the screen (at least in

[android-developers] Re: Does Android support Chinese Traditional Language?

2008-09-23 Thread Mike Reed
Android is unicode based, so any text will need to be transcoded into that. The fallback font in 1.0 supports much of the Simplified Chinese character set, but not complete. Are you having specific problems? mike On Sep 23, 2008, at 9:17 AM, Ludwig wrote: I have at least no trouble

[android-developers] Re: how to finalizing sqllite cursor???

2008-09-23 Thread Jeff Hamilton
When you're done using a Cursor before you loose all references to it you should call close() on it to release the resources it's using. -Jeff On Tue, Sep 23, 2008 at 3:09 AM, Wesley Sagittarius [EMAIL PROTECTED] wrote: hi, how to finalizing sqllite cursor??? 09-23 10:06:08.646:

[android-developers] Re: java.lang.VerifyError

2008-09-23 Thread Biosopher
Tracked down this bug in my own code. Turns out that my .jar file was incomplete (missing a .class file). Now that the .class is added back, all works fine. - Anthony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: anyone has problem with verifyError?

2008-09-23 Thread Biosopher
Tracked down the same VerifyError in my own code. Turns out that my .jar file was incomplete (missing a .class file). Now that the .class is added back, all works fine. You might get this error if your .jar is not properly added to the project as well. - Anthony

[android-developers] Re: problem with verifier

2008-09-23 Thread Biosopher
Tracked down the same VerifyError in my own code. Turns out that my .jar file was incomplete (missing a .class file). Now that the .class is added back, all works fine. You might get this error if your .jar is not properly added to the project as well. - Anthony

[android-developers] Re: java.lang.VerifyError with 0.9

2008-09-23 Thread Biosopher
Tracked down the same VerifyError in my own code. Turns out that my .jar file was incomplete (missing a .class file). Now that the .class is added back, all works fine. - Anthony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: Is there a way to manage data without using SQLite?

2008-09-23 Thread Ramin
Hmm... Okay, im beggining the studies of Android, and my goal is to create a mini-sgbd, finishing it in july/09, so i need to learn about those details, and im finding it hard to find... Thanks, Ramon, On 22 set, 17:46, Mark Murphy [EMAIL PROTECTED] wrote: Is there a way to manage data

[android-developers] Does Android v0.9 really support WiFi?

2008-09-23 Thread Weston
When using wifi service to enable wifi, I got an error init: no such service wlan_loader. All Android's services are in the file /init.rc. Unfortunately, no wlan service, only API available. --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] problem when moving image to the sdcard

2008-09-23 Thread Sudha
I tried to copy one jpg image to teh sdcard using push h.jpg /sdcard/dcim/camera when I open the pictures in the emulator a redcolor rectangle comes and a blank screen is shown why so ? how can I see the copied image in the pictures ? --~--~-~--~~~---~--~~ You

[android-developers] Re: Bitmap issue ...

2008-09-23 Thread Mike Reed
The confusion (and I will try to update the dox to make this clearer) is that the color int is in unpremultipled form, but the internal format for Bitmap pixels is premultiplied. premultiplied means that the r,g,b components have already been multiplied by their respective alpha value.

[android-developers] Re: Problem with MapView

2008-09-23 Thread Jordan Innovations
Check this out: http://nader.shalabi.googlepages.com/androidapplications On Mon, Sep 22, 2008 at 12:59 PM, sudheer [EMAIL PROTECTED] wrote: Hello All I still face the problem of a grid being shown instead of a map. my manifest file is copied below ?xml version=1.0 encoding=utf-8? manifest

[android-developers] Re: Where to get ADT 0.8.0?

2008-09-23 Thread Dipen Dalal
Try https://dl-ssl.google.com/android/eclipse/site.xml If you chose 'Auto-update in eclipse Software Update option, Eclipse will find itself. Dipen On Tue, Sep 23, 2008 at 3:05 PM, blindfold [EMAIL PROTECTED]wrote: Anyone else having problems getting the update ADT 0.8.0 plugin from

[android-developers] Re: Where to get ADT 0.8.0?

2008-09-23 Thread blindfold
Never mind, I found the direct link http://dl-ssl.google.com/android/ADT-0.8.0.zip On Sep 23, 9:05 pm, blindfold [EMAIL PROTECTED] wrote: Anyone else having problems getting the update ADT 0.8.0 plugin fromhttps://dl-ssl.google.com/android/eclipse/in order to get started with

[android-developers] Re: JavaScript Prompt or something Similar in Android?

2008-09-23 Thread Mark Murphy
Is there any easy way of doing a similar thing with Android without creating a layout and intent and launching it for a simple text entry? I'm not sure about easy, but you can do it using AlertDialog, providing your own View instead of using a stock implementation. Or, if this is more like a

[android-developers] Links to API demos broken

2008-09-23 Thread xtrawurst
for example this one when I click on 'Graphics': http://code.google.com/android/samples/ApiDemos/src/com/android/samples/graphics/ Going manually to http://code.google.com/android/samples/ApiDemos/src/com/ I can navigate to the above site, which apparently changed to

[android-developers] Re: Links to API demos broken

2008-09-23 Thread Megha Joshi
Thanks for reporting this issue...it will be fixed soon. 2008/9/23 xtrawurst [EMAIL PROTECTED] for example this one when I click on 'Graphics': http://code.google.com/android/samples/ApiDemos/src/com/android/samples/graphics/ Going manually to

[android-developers] Camera questions for SDK 1.0 R1

2008-09-23 Thread blindfold
The release notes read under Significant API Changes, Improvements to the Camera API. However, I upgraded my app from SDK 0.9 beta to 1.0 R1, and it runs OK again, but it seems that concerning implementation of APIs little has improved for using the camera: 1. The camera still cannot be queried

[android-developers] Re: JavaScript Prompt or something Similar in Android?

2008-09-23 Thread Mark Hansen
I actually ended up using the AlertDialogSamples.java SDK examples and found a pretty easy implementation. Encase anyone run's across this in the future. On Sep 23, 3:27 pm, Mark Murphy [EMAIL PROTECTED] wrote: Is there any easy way of doing a similar thing with Android without creating a

[android-developers] Android 1.0 SDK Released

2008-09-23 Thread Megha Joshi
Hi everyone, We're pleased to announce the release of the Android 1.0 SDK, release 1. For full information, please see Dan Morrill's blog post: http://android-developers.blogspot.com/2008/09/announcing-android-10-sdk-release-1.html SDK Download:

[android-developers] Internet proxy setting in R1.0

2008-09-23 Thread Glen Wang
Does anyone know how to set the proxy in R1.0. Thanks! Glen --~--~-~--~~~---~--~~ 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: Using the Emulator with a Proxy - 0.9 Beta SDK Windows Eclipse 3.4

2008-09-23 Thread [EMAIL PROTECTED]
Where did you find the NumberFormatException message? I'm looking for a log of somewhere I could find an indication (error messages) of why the proxy is failing. I'm using Eclipse/GANYMEDE on Windows XP. I've tried every combination I can think of with and without http://, with and without

[android-developers] How to order T-Mobile G1?

2008-09-23 Thread PowerGUI
T-Mobile G1---The First Android Phone has announced,I am very excited. I don't know how to order the android phone,can somebody talk about such related things in details? 1) the price is $179, but plus taxes and fees; two-year agreement requiredd,how about ethe actual price? how about the

[android-developers] Re: How to order T-Mobile G1?

2008-09-23 Thread Casey Borders
That's a good question. Can developers who are not with T-Mobile get devices? On Tue, Sep 23, 2008 at 6:55 PM, PowerGUI [EMAIL PROTECTED] wrote: T-Mobile G1---The First Android Phone has announced,I am very excited. I don't know how to order the android phone,can somebody talk about such

[android-developers] Market Place

2008-09-23 Thread [EMAIL PROTECTED]
how do you get your app uploaded to the MarketPalce --~--~-~--~~~---~--~~ 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: Market Place

2008-09-23 Thread Mark Murphy
how do you get your app uploaded to the MarketPalce The App Market is not yet available. The beta of the Market is supposed to be available at the time the T-Mobile G1 ships in October. Whether developers will have an opportunity to put their apps in the Market before then is unclear at

[android-developers] Re: Internet proxy setting in R1.0

2008-09-23 Thread Megha Joshi
To use proxy connection, you must launch the emulator with -http-proxy flag. Usage: http://code.google.com/android/reference/emulator.html#startup-options 2008/9/23 Glen Wang [EMAIL PROTECTED] Does anyone know how to set the proxy in R1.0. Thanks! Glen

[android-developers] Re: How to import a new CA certificate

2008-09-23 Thread Megha Joshi
It is recommended to build an application-specific keystore with only the needed certificate(s) in it. If you have a specific server certificate you want to trust, even if it isn't part of a complete chain, put in into this store. Same for client certificates that might be need for authenticating

[android-developers] How to add button to MediaController?

2008-09-23 Thread stef
Hi, been trying to modify the MediaController widget to add a few custom buttons. I have tried to subclass it and add buttons to the linearlayout before te rewind and after tge fast forward with no success... is this even possible? I can always create my own MediaController class but that seems

[android-developers] scrolling listview loses background color/drawable

2008-09-23 Thread Nickname
It happens to android emulator, on xp as i know. I depress mouse pointer to scroll a listview. While it scrolls, the background drawable disappers. When i release the mouse, the background still disappear till i move mouse to touch the screen. This is a harmless issue but makes me uneasy.

[android-developers] how to send a text sms message with a port?

2008-09-23 Thread anywhere
hi all I want to know whether Android support sending a text message with a port? If not, whether will be supported in future release? I find SmsManager#sendDataMessage can be used to send a binary message with a port. But not found method for text message with port. Thanks BR

[android-developers] Re: Ksoap2 terminology

2008-09-23 Thread amishera
Hi, I finally figured out how to set the values of the variables by looking at the codes and wsdls in the group for ksoap2. Probably I should write a wiki on this :) About the net connection problem I entered a hypothetical IP such as 10.0.2.2 and then I had to set the user permission on the

[android-developers] constructor AssetManager() is not visible???

2008-09-23 Thread Wesley Sagittarius
hi, AssetManager assetManager = new AssetManager(); the constructor of this AssetManager(); is not visible in SDK 1.0... can anyone show me how to create AssetManager with the path I defined??? wesley. --~--~-~--~~~---~--~~ You received this message because you

[android-developers] [1.0r1] Are there any base64 encoding functions in 1.0r1?

2008-09-23 Thread samlu
I can find the encodeBase64() function from the org.apache.commons.codec.binary.Base64 package in 0.9r1. It seems that this package is removed from 1.0r1. Are there any base64 encoding functions available in 1.0r1? --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: scrolling listview loses background color/drawable

2008-09-23 Thread Nickname
Thank you, butit does NOT fix the problem. Here is what i added to layout xml of the listview: ... android:background=@drawable/background ... android:cacheColorHint=#000 ... android:layout_width=fill_parent ... On Sep 23, 4:53 pm,

[android-developers] Re: Does Android v0.9 really support WiFi?

2008-09-23 Thread Jason Parekh
As you may have guessed, the emulator doesn't support Wi-Fi. jason On Tue, Sep 23, 2008 at 2:55 AM, Weston [EMAIL PROTECTED] wrote: When using wifi service to enable wifi, I got an error init: no such service wlan_loader. All Android's services are in the file /init.rc. Unfortunately, no

[android-developers] Re: Trouble with 0.9 beta and MapActivity

2008-09-23 Thread sudheer
Hello Mark Y On Sep 23, 5:17 pm, Mark Murphy [EMAIL PROTECTED] wrote: sudheer wrote: Thanks a lot for that pointer. It worked and the errors went away. but now I have the second problem. I see only grids and no map. How can I see a map now? I think that happens if you aren't getting an

[android-developers] Re: Trouble with 0.9 beta and MapActivity

2008-09-23 Thread sudheer
Hello Mark You are right. It has some thing to do with internet access. I am using a proxy server and I guess that's the reason. Thanks a lot for the help/suggestions. Best Regards, Sudheer On Sep 23, 5:17 pm, Mark Murphy [EMAIL PROTECTED] wrote: sudheer wrote: Thanks a lot for that

[android-developers] Re: v0.9 icons in sub menu

2008-09-23 Thread Jason Parekh
Sorry, icon support in the expanded and sub menus has been removed. For consistency with the rest of the system, we think you should avoid icons in sub menus. If you're dying to have them though, you can turn your sub menu into a regular menu item that brings up an AlertDialog. jason On Tue,

[android-developers] Does Android have the capability of invoking MMS function? such as WMA2.0?

2008-09-23 Thread RY
I go through the API of android.telephony.gsm, but only SMS service is supported. No packages provide the capability of MMS function? Does Android provide the APIs to MMS function, similar to WMA2.0? (but according to the introduction of HTC Dream phone, it does support MMS feature. How the

[android-developers] Does Android provide AT CMD API to access some device?

2008-09-23 Thread RY
I've gone through the package index in http://code.google.com/android/reference/packages.html, but there is no any APIs related to AT cmd access. Do I have other way to enable/use this feature to communicate with other device? thanks, Ring --~--~-~--~~~---~--~~

[android-developers] Android development exchange

2008-09-23 Thread Neil . He
Hi I have some question about android development. We have a H263 codec want to porting to android. Do you know how to integrate codec or device to Android. (notes: Our source code is C++) Hope you feedback. Thanks! Neil.He 2008/9/24 PowerGUI [EMAIL PROTECTED] T-Mobile G1---The First Android

[android-developers] .android could not be written 2 home

2008-09-23 Thread '2+
installed android-sdk-linux_x86-1.0_r1 but resulted into ~$ emulator Cannot create data directory: /home/sarigama/.android/SDK-1.0 Please specify a writable directory with -datadir. hmmm ... but it's my home dir why would android do this to me? on another machine with the previous version of

[android-developers] can't access XML resources from classes outside my main (launched) activity

2008-09-23 Thread gymshoe
I am having trouble accessing my XML resources from outside my main activity. I suspect this is easy to do, but I am a novice to android/ java and this is driving me crazy. I want to declare a class so it is not nested, but rather public to all other classes in my program. However, when I

[android-developers] Re: How to order T-Mobile G1?

2008-09-23 Thread Johntron
Yeah, is there an unsubsidized price? On Sep 23, 5:56 pm, Casey Borders [EMAIL PROTECTED] wrote: That's a good question.  Can developers who are not with T-Mobile get devices? On Tue, Sep 23, 2008 at 6:55 PM, PowerGUI [EMAIL PROTECTED] wrote: T-Mobile G1---The First Android Phone has

[android-developers] Hardware for Andriod phone

2008-09-23 Thread Rinku
Greetings, and Congratulations on the launch of Google phone! Can anyone point me to the hardware specifications which are required to create a phone running Android? Thanks in advance. Rahul --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] problem port from 0.9 to 1.0... constructor AssetManager() is not visible???

2008-09-23 Thread Wesley Sagittarius
hi, In SDK 0.9 AssetManager assetManager = new AssetManager(); assetManager.addAssetPath(path); the constructor of this AssetManager(); is not visible in SDK 1.0... can anyone show me how to create AssetManager with the path I defined??? wesley.

[android-developers] BufferedReader.readLine() undocumentedly discards #! prefix

2008-09-23 Thread Nickname
I just found that BufferedReader.readLine() undocumentedly and silently discards those input lines that starts with #! substring. I checked with java.sun.com documentation and found nothing about #! prefix at all. Is it a bug in Android implementation of BufferedReader class??