[android-developers] How to send the Email

2010-05-05 Thread rajesh chandrasekaran
Hi all, I am new in android.I need one help from all. I need to send the email, I have tryed in emulator, i have checked my mail but i didnt got any mail,. how to do that?? Plz give me a solution for that. I have mention below the my code for your reference. package com.test.android;

[android-developers] Creating tabs for calling activities

2010-05-05 Thread Rahul
Hi , I have some activities in my project like, Alerts,HomePage , Calculator etc. What i want to accomplish is to create tabs for all these activities and insert images for these. When we touch the tab the corresponding activity must load. I have done it using the menu options. But i must

[android-developers] How to get value from one intent in another intent?

2010-05-05 Thread pramod.deore
Hello everybody, I had write two classes IntentA and IntentB in my application (Both are in same package and both extends Activity class). In IntentA class I had created one button on pressing that button controll is trsnfer to IntentB class . IntentB class also contain Button on

[android-developers] Re: In process communication

2010-05-05 Thread FrankG
Hello T-Droid, maybe this it's so simple that noone wants to say it ? :-) I simply use a static call back reference in the service class to inform the calling activity about any changes from the service. Works fine. But maybe you should better use a android.os.Handler. In my case I use Handler

[android-developers] Getting information from webview

2010-05-05 Thread absn
Hi all, I want to get the edittext value from webview(i.e My webview contains the edittext for username), Can anybody help me how to retrive them after clicking on some button of webview. Thanks in advance.. -- You received this message because you are subscribed to the Google Groups

[android-developers] Porting MAME on Android?

2010-05-05 Thread javame_android
Hi, I will like to know how can one port MAME on Android? MAME is a Multi Arcade Machine Emulator and it does support ROM based games. There is already one application called Android Arcade similar to this one. Can someone tell me how to go about porting it to Android? Thanks Regards Sunil

[android-developers] Re: How to send the Email

2010-05-05 Thread appforce.org
Hi, You can't send e-mails from emulator that way because it doesn't have GMail app installed to handle your Intent. -- 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: How to send the Email

2010-05-05 Thread rajesh chandrasekaran
Hi, Thanks for your replay sir, But i need to know whether above code will send the email when we test in mobile.If the above code dont work then will you please send me any sample code for my reference. Thanks C.Rajesh On May 5, 11:46 am, appforce.org ogi.andr...@gmail.com wrote: Hi,

[android-developers] Re: mounting and unmountind USB storage from Java App

2010-05-05 Thread FrankG
No, you cannot do this from a normal app. And take care : Soon you will have Android Handy's with more USB functions on the market. And to mount a sdcard as a usb storage you must know I which mode the usb stack is. Good luck ! Frank On 4 Mai, 18:33, rchndrsn rchnd...@gmail.com wrote: I

Re: [android-developers] Creating tabs for calling activities

2010-05-05 Thread Kaustubh Padegaonkar
You will have to use a TabHost. refer: http://developer.android.com/resources/tutorials/views/hello-tabwidget.html Kaustubh Padegaonkar, thetuxra...@gmail.com On Wed, May 5, 2010 at 11:57 AM, Rahul rahulvarma.kalidindi0...@gmail.com wrote: Hi , I have some activities in my project like,

[android-developers] Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-05 Thread Alok Kulkarni
Hi , I am having the following code for drawing buttons in my project. I am having a button which has three images for 1 button .Namely one image for the rectangle and 2 images for the left and right side curves respectively. When the button has focus , there is another three images for focus and

[android-developers] When com.remoba.eas.activity:remote will run?

2010-05-05 Thread Sirisha
Hi, When i check the PID using ps in adb shell i got the following trace $ ps $ ps ps USER PID PPID VSIZE RSS WCHANPC NAME root 1 0 292204 c00be1ac c86c S /init root 2 0 0 0 c006687c S kthreadd root 3 2 0

[android-developers] Re: Parcelable datatype in AIDL file

2010-05-05 Thread brucko
I had something like that once when I was dumb and used setDataPosition() in a readFromParcel() method. Threw the pointer out of position. Otherwise, sorry i cant help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: How to get value from one intent in another intent?

2010-05-05 Thread pramod.deore
Using this System.out.println (i1.getStringExtra(Intent Name)); I get the Intent Name value in IntentA class. But How it will gwt in IntentB class? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-05 Thread skink
Alok Kulkarni wrote: Hi , I am having the following code for drawing buttons in my project. I am having a button which has three images for 1 button .Namely one image for the rectangle and 2 images for the left and right side curves respectively. use nine-patch-drawables instead search

[android-developers] How to implement a queue using SQLite?

2010-05-05 Thread mattaku.betsu...@gmail.com
Hello, I am a SQLite newbie -- I need to store a queue into a DB. I need to be able to insert at the head, and append at the tail. I also need to remove items from the head. Each item is just a string. I need to maintain a todo list -- high priority items are added to the beginning of the queue.

[android-developers] send the email with speech Recognition

2010-05-05 Thread rajesh chandrasekaran
Hi all, I am new in android.i need few help from you, In my android Application,I need to send the email, for the body content i need to use Speech Recognition. how to do this.Please give me the solution for this. Thanks C.Rajesh -- You received this message because you are

[android-developers] Re: How to narrow down the method that is involved in exception from the pid

2010-05-05 Thread brucko
Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.sqlitecur...@437c0e60 on null that has not been deactivated or closed This is a strange one. I find that this error is given in two situations 1/ When I forgot to close a cursor. 2/ When I dumbly tried to reuse a

[android-developers] Re: Android monkey tool script

2010-05-05 Thread julien guichard
Hello, I have finally find by myself the solution. Actually, the command line is correct when i add the extension of my script file (.txt) : adb shell monkey -p com.android.calculator2 -v -v -f /sdcard/ scriptfile/ScriptMonkey.txt 1 I'm highly waiting for some documentation about the creation

Re: [android-developers] Re: In process communication

2010-05-05 Thread Anurag Singh
I really not able to understand how service can communicate using handler. How service would know about our Handler? Should I pass Handler object to Service? - Anurag Singh On Wed, May 5, 2010 at 12:13 PM, FrankG frankgru...@googlemail.com wrote: Hello T-Droid, maybe this it's so simple

[android-developers] Re: How to narrow down the method that is involved in exception from the pid

2010-05-05 Thread appforce.org
Hi, The PID won't help you because it's most probably the same for your entire app. Since the exception is caused during garbage collection, I can't think of a way to trace this down with the debugger. I'm interested in seeing a solution other that building a debug enabled SDK to access

Re: [android-developers] Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-05 Thread Alok Kulkarni
For 9 patch images i suppose they need to be stored under drawable folder. I need to change the images according to theme at runtime. On Wed, May 5, 2010 at 12:52 PM, skink psk...@gmail.com wrote: Alok Kulkarni wrote: Hi , I am having the following code for drawing buttons in my project.

Re: [android-developers] Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-05 Thread Kostya Vasilyev
Nine-patch described here: http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch -- Kostya Alok Kulkarni kulsu...@gmail.com писал(а) в своём письме Wed, 05 May 2010 12:25:11 +0400: For 9 patch images i suppose they need to be stored under drawable folder. I need

[android-developers] custom fast scroll thumb

2010-05-05 Thread manigault
How can i set custom thumb for fast scroll. -- 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: Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-05 Thread skink
On May 5, 6:25 am, Alok Kulkarni kulsu...@gmail.com wrote: For 9 patch images i suppose they need to be stored under drawable folder. I need to change the images according to theme at runtime. at runtime you can create NinePatchDrawable instance based on Bitmap as well pskink -- You

Re: [android-developers] Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-05 Thread Alok Kulkarni
Thanks for the link Kostya, But my problem is that i cannot have my images under drawable folder and also cannot specify the image path in my XML for layout as and when the user wishes to change the theme , a new theme will be downloaded from the server and the new set of images will be loaded at

[android-developers] APK files

2010-05-05 Thread Neilz
Hi all. I just wondered, if someone has an application's APK file, can it be extracted? I mean, can you open it to extract any images, sound files, class files, xml files, etc? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-05 Thread Alok Kulkarni
thanks skink , i will look into it .. and will update it over here.. 2010/5/5 Alok Kulkarni kulsu...@gmail.com Thanks for the link Kostya, But my problem is that i cannot have my images under drawable folder and also cannot specify the image path in my XML for layout as and when the user

Re: [android-developers] Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-05 Thread Alok Kulkarni
Can you show me an example if possible ? 2010/5/5 Alok Kulkarni kulsu...@gmail.com thanks skink , i will look into it .. and will update it over here.. 2010/5/5 Alok Kulkarni kulsu...@gmail.com Thanks for the link Kostya, But my problem is that i cannot have my images under drawable

[android-developers] Re: How to get value from one intent in another intent?

2010-05-05 Thread Ian Wong
Instead of directly put the strings into putextra, I use bundle to wrap things up. In IntentA, Intent i1 = new Intent(this,IntentB.class); Bundle bundle = new Bundle(); bundle.putString(Intent Name, IntentA); i1.putExtras(bundle); startActivity(i1);

Re: [android-developers] Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-05 Thread Kostya Vasilyev
Ah, this is different. Nine patches are great for smart scaling of images. What you need is an additional abstraction layer: drawables with state selectors, like so: ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; item

[android-developers] Re: How to get value from one intent in another intent?

2010-05-05 Thread pramod.deore
Thanks Lan Wong. Now it works fine. -- 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] Where to Check for files/data created in emulator?

2010-05-05 Thread saify.zeenwala
use ddms tool to check create files and dir. On Tue, May 4, 2010 at 9:23 PM, dillipk codersnet2...@gmail.com wrote: Hello, Where can I check for the Dir/ files/ data created in Internal Memory/SDCard ? Thanks in advance.. Regards, DK -- You received this message because you are

Re: [android-developers] Problem updating widget in emulator

2010-05-05 Thread Kostya Vasilyev
Answering my own question. I had two emulators running side by side (1.6 QVGA and 2.1 WVGA800). Closing one of them gets rid of the problem, and my widget updates just fine. I submitted an issue about this: http://code.google.com/p/android/issues/detail?id=8160 -- Kostya Kostya Vasilyev

Re: [android-developers] Where to Check for files/data created in emulator?

2010-05-05 Thread Kostya Vasilyev
Aren't they in the .img files - inside the respective avd directory? Now, the file format of those .img files is another matter. saify.zeenwala saifyzeenw...@gmail.com писал(а) в своём письме Wed, 05 May 2010 13:17:28 +0400: use ddms tool to check create files and dir. On Tue, May

[android-developers] internet connection in emulator

2010-05-05 Thread Jags
Hi all, I am trying to access internet through android emulator. I followed instructions from http://developer.android.com/guide/developing/tools/emulator.html#proxy and supplied same ip and port that i am using in my IE browser. Still public websites dont come up, like google.com.. my

[android-developers] Re: BluetoothServerSocket: how to close correctly?

2010-05-05 Thread nickon
I have the exact same problem, more precisely this is what happens: 05-05 11:34:37.330: DEBUG/ConnectionManager(2241): stop() 05-05 11:34:37.330: DEBUG/ConnectionManager(2241): CANCEL mAcceptThread 05-05 11:34:37.340: DEBUG/BluetoothSocket(2241): BluetoothSocket close() 05-05 11:34:37.340:

Re: [android-developers] FroYo and PDF

2010-05-05 Thread Second Dancer
Apple has been long complained about flash on mobile device, they had listed many problems about running flash. I think it will be a unwelcome feature if flash should be supported by platform 2.2 2010/4/30 Sean Chitwood darkm...@gmail.com So we heard recently that Flash will be supported by

[android-developers] Re: webview touch problem

2010-05-05 Thread Anders Widen
I found the same behavior when using an onTouchListener and then sending the events to a gestureDetector detecting single/double tap. Sometimes the javaScript would hang and not execute, I would love a more detailed answer on why this problems occur if we could get some dev. love :) On 27 Apr,

[android-developers] When I override Adapter.isEnabled() the ListView divider isn't displayed

2010-05-05 Thread Fredrik Jonson
Hello, I have a listview that i populate using a adapter that implements getView(...). In the list some items should not be selectable, i.e. no orange background when pressed but otherwise they should be treated just like all other clickable items. I saw a recommendation to override

Re: [android-developers] troubles reading other apps config files

2010-05-05 Thread Second Dancer
On Android, all application data (including files) are private to that application. If you expose your private application data via contentprovider 2010/5/4 TreKing treking...@gmail.com On Fri, Apr 30, 2010 at 4:42 AM, Aivlis silviadicesa...@gmail.com wrote: I have to access to the data

[android-developers] Re: APK files

2010-05-05 Thread grace
hi, i don't think so we can extract information from a apk file. On May 5, 1:45 pm, Neilz neilhorn...@googlemail.com wrote: Hi all. I just wondered, if someone has an application's APK file, can it be extracted? I mean, can you open it to extract any images, sound files, class files, xml

Re: [android-developers] Re: APK files

2010-05-05 Thread Timo Prill
yes, just rename it to .zip and you can extract some informations e.g. images / sound... Am 05.05.2010 12:13, schrieb grace: hi, i don't think so we can extract information from a apk file. On May 5, 1:45 pm, Neilzneilhorn...@googlemail.com wrote: Hi all. I just wondered, if

[android-developers] Re: Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-05 Thread skink
On May 5, 6:46 am, Alok Kulkarni kulsu...@gmail.com wrote: Can you show me an example if possible ? use this ctor: http://developer.android.com/intl/fr/reference/android/graphics/drawable/NinePatchDrawable.html#NinePatchDrawable(android.content.res.Resources, android.graphics.Bitmap, byte[],

[android-developers] Re: APK files

2010-05-05 Thread Neilz
Ok, I thought that would probably be the case. But, it's not possible for someone to take your APK, change some details, and then re-package it into their own version, is it? I mean, you'd have to have the original source code wouldn't you? On May 5, 11:22 am, Timo Prill

[android-developers] Re: ADT Problem: Creating new Android Project

2010-05-05 Thread prachi
Hi harjeet While creating a new project u must specify the target SDK under build target list.It has a list of checkboxes specifying the the various paltforms.choose any one of them On May 3, 2:05 pm, harjeet harjee...@gmail.com wrote: Hello, While trying to create a new Android Project., Get

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

2010-05-05 Thread DKIT Android
Finally got mine in Oslo, Norway. Thx G. TreKing: Bleh. :-P -- 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] Audio input from Bluetooth

2010-05-05 Thread Olivier Guilyardi
Hi, if I understand correctly, getting audio input from a Bluetooth mic/headset, using say AudioRecord, is not supported. Is this right? -- Olivier -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Re: ADT Problem: Creating new Android Project

2010-05-05 Thread Kostya Vasilyev
This drop down list is populated by Eclipse automatically, using the list of installed Android platform versions. Did you install any Android platform SDKs? If not, see here: http://developer.android.com/sdk/installing.html#components ... You need to download at least one platform into your

Re: [android-developers] Re: Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-05 Thread Alok Kulkarni
Okay i have a question here .. I am trying to use the draw9patch tool in the sdk folder. I took an image btn_media_player.9 from the SDK folder path which skink had given In the code i did the following String path = data/data/com.android.test.themes/default/images/btn_media_player.9.png;

[android-developers] Re: Retrieving GRP Coordinates, getting errors with getLastKnownLocation and requestLocationUpdates

2010-05-05 Thread SREEHARI
I tried the below code and it s working fine Criteria c = new Criteria(); c.setAccuracy(Criteria.ACCURACY_FINE); locationMgr = (LocationManager) getSystemService(Context.LOCATION_SERVICE); bestP = locationMgr.getBestProvider(c, true); isGpsEnabled =

Re: [android-developers] TelephonyManager.getLine1Number() returning null?

2010-05-05 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 28/04/10 14:27, David Given wrote: [...] I'm trying to fetch the telephone number of the device. I'm calling TelephonyManager.getLine1Number(), and it's returning null. A trawl of the intertubes shows that there's a potential problem with

[android-developers] aaapt --custom-package feature for 1.5 devices?

2010-05-05 Thread Pipen
I really need the --custom-package feature of the aapt tool only available in version 7 (2.1). But i want the app to run on 1.5 devices. Will the new version of the tool make it work, or does it do anything different in the two different versions of the tool? -- You received this message because

[android-developers] Re: MapView does not work in HTC Hero

2010-05-05 Thread SREEHARI
Hi I also tried the same google map application with overlays. For me it s working fine in emulator and in nexus one with the same KEY. Regards, SREEHARI -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: internet connection in emulator

2010-05-05 Thread prachi
Hi Jags the reason could be that may be your organisation has blocked the internet sites and moreover definitely ur emulator will show the internal sites bcozz all ur systems might be connected through LAN to get the internal sites web pages but to open internet sites u need to have internet

[android-developers] Re: How to close all activities in a app

2010-05-05 Thread SREEHARI
Hi, U can solve that problem by giving finish() inside onStop() of Activity A. I tried this and it works. 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: send the email with speech Recognition

2010-05-05 Thread prachi
Can u please throw some more light on want u want??? On May 5, 12:38 pm, rajesh chandrasekaran crajeshdanger...@gmail.com wrote: Hi all,      I am new in android.i need few help from you,      In my android Application,I need to send the email, for the body content i need to use Speech

[android-developers] Re: How to implement a queue using SQLite?

2010-05-05 Thread prachi
Hii If u want to store a queue in a databast then consider a table as a queue with one column of string type in which insert query is applicable only at the rear end that is at the last and delete query should have a where condition such that it deletes the first record onlyyy. Ohterwise i dont

[android-developers] Re: internet connection in emulator

2010-05-05 Thread Thilo-Alexander Ginkel
On May 5, 11:25 am, Jags jag...@gmail.com wrote: I am trying to access internet through android emulator. I followed instructions from http://developer.android.com/guide/developing/tools/emulator.html#proxy and supplied same ip and port that i am using in my IE browser. Still public

[android-developers] Re: Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-05 Thread skink
On May 5, 8:48 am, Alok Kulkarni kulsu...@gmail.com wrote: Okay i have a question here .. I am trying to use the draw9patch tool in the sdk folder. I took an image btn_media_player.9 from the SDK folder path which skink had given In the code i did the following         String path =

[android-developers] Re: Getting information from webview

2010-05-05 Thread Yahel
Take a look at webview.addJavascriptInterface : http://developer.android.com/intl/de/reference/android/webkit/WebView.html#addJavascriptInterface(java.lang.Object, java.lang.String) Yahel On 5 mai, 08:44, absn amitbm...@gmail.com wrote: Hi all, I want to get the edittext value from

[android-developers] Re: TelephonyManager.getLine1Number() returning null?

2010-05-05 Thread Vinay S
Hi David, I think you are trying to use TelephonyManager.getLine1Number(); Instead create an object of the TelephonyManager and then call the getLine1Number(); -Vinay On May 5, 3:53 pm, David Given d...@cowlark.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 28/04/10 14:27,

[android-developers] Re: Getting information from webview

2010-05-05 Thread prachi
hiii Yeah it can be done..If that edit text is inside your webview--- Inside the layout file give ur edittext and button inside the webview tag and in your program refer to that editText by its id given in xml file. Let me know if this is wat u want??? On May 5, 11:44 am, absn

[android-developers] SOLVED:Dialing IVR Systems, or sending DTMF tones after a call is made

2010-05-05 Thread Mark Ellul
I figured out at least on the HTC Hero how to dial an IVR System http://groups.google.com/group/android-developers/browse_thread/thread/c8a6c598faf15b16/5b265576a51a1388?lnk=gstq=DTMF+Mark#5b265576a51a1388 The trick was to use a p and w for pause and wait, and # works as well, as long as its not

[android-developers] Re: I've found a way to stop piracy of my apps

2010-05-05 Thread westmeadboy
Non-Android Market solutions would be more interesting to me. I'd like some way to stick an apk on my website and allow users to pay using paypal. Everything else would work seamlessly... On May 4, 11:20 pm, dadical keyes...@gmail.com wrote: I've spent the last few weeks developing a new tool

[android-developers] Re: TelephonyManager.getLine1Number() returning null?

2010-05-05 Thread Mark Ellul
I was informed that its a SIM issue, and that some SIM cards do not store the telephone number in the appropriate way to retrieve the number On May 5, 1:32 pm, Vinay S s.vinay@gmail.com wrote: Hi David, I think you are trying to use TelephonyManager.getLine1Number(); Instead create an

[android-developers] Re: ADT Problem: Creating new Android Project

2010-05-05 Thread harjeet
I have installed quite a few Android SDK platforms. In fact I had done so from within Eclipse ADT plugin. I very much appreciate help here. Here is the output of android list targets Available Android targets: id: 1 or android-4 Name: Android 1.6 Type: Platform API level: 4

[android-developers] Toast on Top of ListView?

2010-05-05 Thread javame_android
Hi, I have a listview in my Android Application. Now, when the user presses Next Button other contents will be loaded into the listview. What I want is that if there are no more contents available then there should be a toast displayed indicating that there are no more data available. Say, for

[android-developers] Access to clipped Drawable (i.e. Drawable inside ClipDrawable)

2010-05-05 Thread droidsan
Hello, I have inherited MyClipDrawable class from ClipDrawable class to get some non standard clipping behavior and I want to use MyClipDrawable within a LayerDrawable. The LayerDrawable should be inflated from xml resource. Using MyClipDrawable class in xml drawable definition seems not to be

[android-developers] A simplest Application access Content Provider

2010-05-05 Thread linlone9
hi, Usually, we can inherit class Activity to access Content Provider, such as SMS/Contacts with following codes: === public class ActivityTest extends Activity { ... private void insertSms(String str_address, String content){ ContentResolver contentResolver =

Re: [android-developers] Re: Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-05 Thread Kostya Vasilyev
Can you try the attached .9.png? See if it scales? -- Kostya Alok Kulkarni kulsu...@gmail.com писал(а) в своём письме Wed, 05 May 2010 16:21:43 +0400: Does not make any difference between both ir CreateFromStream and CreateFromPath Apparantly i am having a problem creatnig the image in

[android-developers] How to draw smooth gradients?

2010-05-05 Thread fexpop
Hi, I'm a little bit puzzled about the way Android treats ARG colors on devices which seemingly support 24bpp color depth (Desire, Hero). I've tried to draw smooth gradients like this: Paint mPaint = new Paint(); // Draw reds

Re: [android-developers] Playing live stream (RTP) in MediaPlayer

2010-05-05 Thread dillirao malipeddi
did u received OnPrepared callback. Plz write a onErrorcallback and see, if you get error callback. whats video profile and audio profile you are using. use : h263/h264 15fps; 176x144 or 320x240 and use low bit rate , on internet ; if lan, bw is not issu for audio: use aac/ again try low bit

Re: [android-developers] Re: Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-05 Thread Alok Kulkarni
Kostya, even the spinner didnt work as expected.. Its image too got expanded.Though i gave it to a button. I have attached screen shots 1st one has 2 images left one is larger text and right one is smaller text The white border on the left and right hand side of the button is expanding for larger

Re: [android-developers] Re: ADT Problem: Creating new Android Project

2010-05-05 Thread Kostya Vasilyev
Harjeet, I guess trying to uninstall / reinstall everything (Java, Eclipse, Android...) is the usual black magic that might help :) BTW, what platform are you on? Windows, Ubuntu? 32 or 64 bit? -- Kostya Harjeet Singh harjee...@gmail.com писал(а) в своём письме Wed, 05 May 2010 17:07:34

Re: [android-developers] Re: MapView does not work in HTC Hero

2010-05-05 Thread Reiny Song
Dear Albion and Turchenko, Thank you for your recommand, and the mapview works well after changing the api-key. Reiny 2010/5/4 Paul Turchenko paul.turche...@gmail.com Make sure you use different mapApi keys for emulator and real device because it seems that you've obtained certificatie for

Re: [android-developers] Re: Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-05 Thread Kostya Vasilyev
Alok, Found this discussion about creating nine-patches programmatically. Hope this is useful. http://www.mail-archive.com/android-developers@googlegroups.com/msg26977.html -- Kostya Alok Kulkarni kulsu...@gmail.com писал(а) в своём письме Wed, 05 May 2010 17:06:32 +0400: Kostya, even

[android-developers] Re: Best practices for creating multiple app versions from a single codebase?

2010-05-05 Thread Alex (PS3 Friends)
I am using the Eclipse tool also, I feel your pain with not being able to use Netbeans as natively as Eclipse, Eclipse is a great tool, just really used to Netbeans. It has been a while but I believe I created the project using the Eclipse tool. You can then create the ant script using the

[android-developers] Simple LinearLayout doesn't work

2010-05-05 Thread sebastian23
Im trying to define a LinearLayout which contains another LinearLayout which should always be desplayed in the horizontal and vertical center. An ImageView should be placed always vertically centered on the right side of the parent Layout: A

Re: [android-developers] Re: Best practices for creating multiple app versions from a single codebase?

2010-05-05 Thread Leigh McRae
Thanks. I am surprised there isn't built in support for auto build numbers as it's very useful. Leigh On 5/5/2010 9:41 AM, Alex (PS3 Friends) wrote: I am using the Eclipse tool also, I feel your pain with not being able to use Netbeans as natively as Eclipse, Eclipse is a great tool, just

[android-developers] Possible to call intent image gallery with scrolling to specific image?

2010-05-05 Thread Timo Prill
hi, is it possible to call the native image gallery intent and pass an image uri (or s.th. else identifying an image) as an intent's extra so that the gallery automatically scrolls to the specific image? or maybe something similar? cheers -- You received this message because you are

[android-developers] Some connectivity questions

2010-05-05 Thread draf...@gmail.com
I have a couple of questions about connectivity on Android, if anyone has any insight it would be great. What is the default when an application wants to wirelessly connect? Is it wlan? And if wlan is switched off or there is no access points around is it 3g or gprs? Is a device always ip

[android-developers] Re: I've found a way to stop piracy of my apps

2010-05-05 Thread dadical
That's a cool use case, but I'm curious about how commonly people sell apps that way. Are you doing this because of the limitations of where Android offers paid apps? Is it because of the costs involved in doing transactions on Android Market? I think that the value offered by Android Market

[android-developers] Re: I've found a way to stop piracy of my apps

2010-05-05 Thread Streets Of Boston
My apps haven't reached piracy rates that high (yet). But i'll keep an eye on your solution :-) Keep us updated. On May 4, 5:20 pm, dadical keyes...@gmail.com wrote: I've spent the last few weeks developing a new tool to stop piracy of my paid apps on the Android Market.  In a nutshell,

[android-developers] Re: Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-05 Thread skink
On May 5, 11:30 am, Kostya Vasilyev kmans...@gmail.com wrote: Alok, Found this discussion about creating nine-patches programmatically. Hope   this is useful. also NinePatchDrawable sources will be useful, see inflate() method

[android-developers] adb push and unicode filenames

2010-05-05 Thread alan
Does adb push support unicode filenames? When using it from the windows command line it prints cannot open '.?': No such file or directory Within eclilpse I receive the error: Failed to push 台風上陸.台 on emulator-5554: Invalid argument -- You received this message because you are subscribed to

Re: [android-developers] Re: Issue in launching google Map

2010-05-05 Thread TreKing
On Tue, May 4, 2010 at 11:59 PM, Nithin nithin.war...@gmail.com wrote: Thanks for your great reply... You're very welcome. I do what I can =) - TreKing - Chicago transit tracking app for

[android-developers] Re: How to draw smooth gradients?

2010-05-05 Thread blew
So how do I tell the device to use 8-8-8 bit color depth for displaying the color bar? I think you can do this by drawing the gradients in a 8-8-8 bit color defined canvas this should apply the configuration to all elements in the canvas: Bitmap bitmap = Bitmap.createBitmap(width, height,

Re: [android-developers] Re: ADT Problem: Creating new Android Project

2010-05-05 Thread subrat kumar panda
go to help-install new software,add the required plugins. for more details see the documentation details in www.android.com On Wed, May 5, 2010 at 3:58 PM, prachi prachi.tya...@wipro.com wrote: Hi harjeet While creating a new project u must specify the target SDK under build target list.It

[android-developers] Re: Max size of string array

2010-05-05 Thread Alain
The issue is not string[] or Liststring but with Dalvik VM issuing a ReferenceTable overflow (max=512) The call to String[] items = getResources().getStringArray(R.array.arrayname); The array has 770 entries. I can split the array into two arrays or can the ReferenceTable size be increased? On

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

2010-05-05 Thread TreKing
On Wed, May 5, 2010 at 5:36 AM, DKIT Android dag.kod...@gmail.com wrote: Finally got mine in Oslo, Norway. Thx G. Thank goodness. I was losing sleep wondering if random person on the internet #234535235 had yet received their phone. Now I can finally get some sleep. Thank you! TreKing:

[android-developers] Re: save (complex?) application state to bundle

2010-05-05 Thread blew
OK, that leaves me with figuring out how to serialize parts of objects. Thanks alot. On May 3, 9:47 pm, TreKing treking...@gmail.com wrote: On Fri, Apr 30, 2010 at 11:33 AM, blew pascal.jac...@gmail.com wrote: Unfortunately it appears that we can't serialize bitmaps and considering they're a

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

2010-05-05 Thread Greg Donald
On Wed, May 5, 2010 at 9:58 AM, TreKing treking...@gmail.com wrote: Now I can finally get some sleep I recommend Ambien. Works great for me. Ask your doctor :) -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups

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

2010-05-05 Thread TreKing
On Wed, May 5, 2010 at 10:07 AM, Greg Donald gdon...@gmail.com wrote: I recommend Ambien. Works great for me. Ask your doctor :) This is the most useful post I've seen in this thread yet. I will try it, thanks!

Re: [android-developers] Re: save (complex?) application state to bundle

2010-05-05 Thread TreKing
On Wed, May 5, 2010 at 10:06 AM, blew pascal.jac...@gmail.com wrote: OK, that leaves me with figuring out how to serialize parts of objects. If you use the Parcelable methodology, you can just put and retrieve the bits you care about to and from a Parcel.

Re: [android-developers] Toast on Top of ListView?

2010-05-05 Thread TreKing
On Wed, May 5, 2010 at 7:00 AM, javame_android su...@softwebsolutions.comwrote: Currently I get an error as IndexOutOfBoundException : Invalid location 15 size is 1. This sounds more like you have a bug in how you're accessing your list of data and probably has absolutely nothing to do with

Re: [android-developers] Simple LinearLayout doesn't work

2010-05-05 Thread TreKing
On Wed, May 5, 2010 at 8:42 AM, sebastian23 sebastia...@gmail.com wrote: But this doesn't work too. Any hints?? Thanks! Can you post screen shots of what you're seeing? That will help visualize the problem.

[android-developers] Adding child views

2010-05-05 Thread John Gaby
I am new to Android development. I would like to be able to add child views (e.g. buttons, text, etc.) to my main view at runtime, and to be able to position and size those views dynamically. I cannot figure out exactly how to do that. Can anyone point me in the right direction? Thanks --

Re: [android-developers] Re: Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-05 Thread Alok Kulkarni
Thanks a lot Kostya for those links..You and Skink have attended to my problems patiently throughout the day :) I tried the following Bitmap bmp = BitmapFactory.decodeFile(data/data/com.android.test.themes/fin2.9.png); byte[] bmpChunks = bmp.getNinePatchChunk(); NinePatchDrawable

Re: [android-developers] Adding child views

2010-05-05 Thread social hub
You basically need a context to create and possibly a layout to add TextView tv = new TextView(mContext);//context can be an activity or u can use getBaseContext(); tv.setLayoutParams(new LayoutParams(50,60));//set some height and width and it can be wrap_content or fill_parent tv.setText(hello

  1   2   >