[android-developers] How to send the Email
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; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class auboutus extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.aboutus); Button aboutUs_button = (Button) findViewById(R.id.aboutUs_button); aboutUs_button.setOnClickListener(new OnClickListener() { public void onClick(View arg0) { Intent i = new Intent(Intent.ACTION_SEND); i.setType(text/plain); i.putExtra(Intent.EXTRA_EMAIL, new String[] {t...@gmail.com}); i.putExtra(Intent.EXTRA_SUBJECT,subject goes here); i.putExtra(Intent.EXTRA_TEXT,body goes here); startActivity(Intent.createChooser(i, Select email application.)); } }); } } Thanks C.RAjesh -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Creating tabs for calling activities
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 accomplish this using tabs. The tabs must also be at the bottom of the page... Can anyone guide through the process...??? Should i create another class Tabs.java and tabs.xml or should i write tab host for each activity...??? -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to get value from one intent in another intent?
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 pressing that control is transfer to IntentA class. This work fines. Now I want to set value in IntentA class using putExtra method and access that value in IntentB class How should I do that? I had put value in class IntentA like Intent i1 = new Intent(this,IntentB.class); i1.putExtra(Intent Name, IntentA); startActivity(i1); Now I don't know How to access Intent Name value in IntentB class. Please help me. Thanks in advance -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: In process communication
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 more in the service themselve. Good luck ! Frank On 4 Mai, 08:37, T-Droid dev.r...@googlemail.com wrote: Sorry, I was meaning I'm using the solution of Kumar Bibek. The static one. On May 4, 8:34 am, T-Droid dev.r...@googlemail.com wrote: Hi, I solved the problem as spachner mentioned. From my point of view it was easy to understand. About the second solution I still get not the whole idea. If I have a connection between the service and the activity. How do they communicate? Is there an interface between them? @Dianne: Thanks to point out to the sample code. I think I got the idea of binding them together. How do the service send an event to the activity? From the service is there a possibility to invoke the activity like mMyActivity.changeState();. Another point which I was recognizing you are talking about how a activity knows the service. I'm talking how a service knows an activity. Because in my design the service should trigger view changes. The communication is unidirectional. Thanks in advance T-Droid On Apr 4, 8:24 am, Dianne Hackborn hack...@android.com wrote: Fyi this approach is illustrated in the LocalService sample code. On Sat, Apr 3, 2010 at 7:39 PM, JP joachim.pfeif...@gmail.com wrote: Kumar's method might work, but you should look up Context.bindService() and ServiceConnection.onServiceConnected() to find out how to do this within Android's framework. What I do: In MyApplication's �...@override public void onStart() I call: bindService(new Intent(MyApplication.this, MyService.class), new (MyServiceConnection(this)), BIND_AUTO_CREATE); MyServiceConnection implements ServiceConnection, and as soon as the service is created or bound, you get a call to MyServiceConnection.onServiceConnected(), which you implement like this: public void onServiceConnected(ComponentName name, IBinder service) { serv = ((MyService.LocalBinder)service).getService(); } With serv being an instance variable of MyApplication of type MyService which you can use to call methods of your Service. Hope this helps. On Mar 30, 1:26 am, T-Droid dev.r...@googlemail.com wrote: Hi @all, I have a design problem with my Android components. My activity is starting a service which is doing the work in the background. What I want is that the service informs the activity about state changes. How can I do this? Normally I would add an observer but the activity has no reference to the service. Then I was thinking to take AIDL but this is more for inter-process communication. How is it possible that the service informs the activity about state changes? Both are running in the same process. What can you recommend? Thank you in advance. T-Droid -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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 options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group athttp://groups.google.com/group/android-developers?hl=en- Zitierten Text ausblenden - - Zitierten Text anzeigen - -- 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] Getting information from webview
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 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Porting MAME on 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 -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to send the Email
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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to send the Email
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, 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 theGoogle 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 options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: mounting and unmountind USB storage from Java App
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 searched many days in vain. Can someone tell me if there is a way to mount and unmount the SDCars as USB storage from a Java App. I am looking for the API mechanism. thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Creating tabs for calling activities
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, 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 accomplish this using tabs. The tabs must also be at the bottom of the page... Can anyone guide through the process...??? Should i create another class Tabs.java and tabs.xml or should i write tab host for each activity...??? -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards
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 similarly 3 images when button is pressed. Following is the code. public void setButtonStyle(Button btn) { //The middle rectangle StateListDrawable drawables = new StateListDrawable(); drawables.addState(new int[] { stateFocused, -statePressed }, dButtonMidOverImage); drawables.addState(new int[] { stateFocused, statePressed }, dButtonMidDownImage); drawables.addState(new int[] { -stateFocused, statePressed }, dButtonMidDownImage); drawables.addState(new int[] { -stateChecked }, dButtonMidUpImage); btn.setBackgroundDrawable(drawables); //The left curve StateListDrawable drawablesLeft = new StateListDrawable(); drawablesLeft.addState(new int[] { stateFocused, -statePressed }, dButtonLeftOverImage); drawablesLeft.addState(new int[] { stateFocused, statePressed }, dButtonLeftDownImage); drawablesLeft.addState(new int[] { -stateFocused, statePressed }, dButtonLeftDownImage); drawablesLeft.addState(new int[] { -stateChecked }, dButtonLeftUpImage); StateListDrawable drawablesRight = new StateListDrawable(); drawablesRight.addState(new int[] { stateFocused, -statePressed }, dButtonRightOverImage); //The right curve drawablesRight.addState(new int[] { stateFocused, statePressed }, dButtonRightDownImage); drawablesRight.addState(new int[] { -stateFocused, statePressed }, dButtonRightDownImage); drawablesRight.addState(new int[] { -stateChecked }, dButtonRightUpImage); //Compound drawables set for left and right side. btn.setCompoundDrawablesWithIntrinsicBounds(drawablesLeft, null, drawablesRight, null); } This thing which i have done runtime can be done in the XML too , but i want to change themes runtime so my images for button will also change runtime. If i do the code in the XML it works fine on both Android 1.5 as well as Android 1.6 .But doing it in code distorts the images for 1.6 emulator. I have attached the screen shot of the buttons on both 1.5 and 1.6 emulators.As you can see, the left and right curve images come almost to the center and the centre image is expanded in 1.6 emulator. The same problem is seen on HTC Desire (Android2.1) Is there something wrong that i am doing . Is there any workaround for this problem. Thanks , Alok., -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=enattachment: Android1.5 Emulator_Button.JPGattachment: Android1.6 Emulator_Button.JPGattachment: Button Seperation.JPG
[android-developers] When com.remoba.eas.activity:remote will run?
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 0 c0056d74 S ksoftirqd/0 root 4 2 0 0 c0081d98 S watchdog/0 root 5 2 0 0 c0063504 S events/0 root 6 2 0 0 c0063504 S khelper root 7 2 0 0 c0063504 S suspend root 8 2 0 0 c0063504 S kblockd/0 root 9 2 0 0 c0063504 S kmmcd root 102 0 0 c0063504 S btaddconn root 112 0 0 c0063504 S btdelconn root 122 0 0 c0063504 S kondemand/0 root 132 0 0 c0063504 S qmi root 142 0 0 c0032d64 D rpcrouter root 152 0 0 c0063504 S detection/0 root 162 0 0 c0034fcc S krpcserversd root 172 0 0 c008e914 S pdflush root 182 0 0 c008e914 S pdflush root 192 0 0 c00938b0 S kswapd0 root 202 0 0 c0063504 S aio/0 root 292 0 0 c00336b4 S kadspd root 302 0 0 c0063504 S panel_on/0 root 352 0 0 c0063504 S rmnet/0 root 362 0 0 c01c20c0 S mtdblockd root 372 0 0 c01c8270 S USB mass_storag root 392 0 0 c0063504 S synaptics_wq root 402 0 0 c0063504 S kstriped root 412 0 0 c0063504 S hid_compat root 442 0 0 c02883e4 S krfcommd system461 808144 c0202ab8 afe0c51c S /system/bin/ servicemanage r root 471 852256 c00be1ac afe0c644 S /system/bin/ vold radio 491 7904 596 afe0cb8c S /system/bin/ rild root 501 67860 9688 c00be1ac afe0c644 S zygote media 511 31220 1924 afe0c51c S /system/bin/ mediaserver bluetooth 521 1284 208 c00be1ac afe0d31c S /system/bin/ dbus-daemon root 531 816224 c026d090 afe0c27c S /system/bin/ installd keystore 551 1708 188 c020fe54 afe0ceac S /system/bin/ keystore compass 561 832200 c01dc310 afe0c51c S /system/bin/ akmd system7450177788 24884 afe0c51c S system_server radio 113 50116440 14360 afe0d4a4 S com.android.phone app_0 175 50102216 12032 afe0d4a4 S com.android.inputmethod.l atin root 216 2 0 0 c00334c0 D audmgr_rpc root 9381 1 692192 c020fe54 afe0ceac S /system/bin/ debuggerd root 21799 2 0 0 c00334c0 D audmgr_rpc root 28177 2 0 0 c01f2f84 S mmcqd system30468 5086908 11416 afe0d4a4 S com.android.server.vpn:re mote app_3330486 5091460 12476 afe0d4a4 S com.voidapps.xmastree app_0 30578 50108212 17600 afe0d4a4 S android.process.acore shell 30612 1 7468 212 ecc4 S /sbin/adbd shell 30832 30612 740212 c0054578 afe0d14c S /system/bin/sh shell 30835 30612 740148 c0054578 afe0d14c S /system/bin/sh shell 30836 30835 680232 c0203d54 afe0c27c S logcat app_4 30879 5099696 16788 afe0d4a4 S com.google.process.gapps system30990 50105476 19368 afe0d4a4 S com.android.settings app_3231001 50104988 22460 afe0d4a4 S com.remoba.eas.activity app_3231063 5091860 12296 afe0d4a4 S com.remoba.eas.activity:r emote shell 31089 30832 884316 afe0c27c R ps I wanted to know why another PID with teh same app is running as com.remoba.eas.activity:remote. This app won't run always, but some times it runs and some times it won't. Can anybody tell me when exactly this com.remoba.eas.activity:remote app will run? -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Parcelable datatype in AIDL file
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, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to get value from one intent in another intent?
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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards
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 for *.9.png files under SDK/platforms/*/data/res to see how they look like pskink -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to implement a queue using SQLite?
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. and low priority items are append to the end. How to do this? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] send the email with speech Recognition
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 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to narrow down the method that is involved in exception from the pid
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 cursor without first closing the old instance. That is I forgot to close a cursor. The two hints you have to finding the cursor are 1/ the table name - which mysteriously in your case is null, and 2/ the object address I'd look for a query that has null where the table name should be. and If you have some idea as to roughly where this is,and not to many cursors, splash a few.. Log.i(TAG, myCursorHere.toString()) after your queries to get the address for each cursor you created. Could anybody help me to know, how could I understand which cursor / line of code , from the error that I see in the logcat -- 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 options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android monkey tool script
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 of a Monkey Script :D Thanks for your great job. Julien On 4 mai, 18:30, julien guichard jguichar...@gmail.com wrote: Hello everybody. I am really interested to usemonkeywith my ownscript, and i have try to launchmonkeywith the exemple_script. I have pushed thescriptin a folder 'scriptefile' on the sdcard, and then try to runmonkey: adb shellmonkey-p com.android.calculator2 -v -v -f /sdcard/ scriptfile/ScriptMonkey 1 Unable to chmod /data/nv/FRStatus.txt: Operation not permitted Unable to chmod /data/nv/factoryreset_ongoing.txt: Operation not permitted cannot create /data/reboot_enable_menu/reboot_enable_menu: permission denied scandir: Permission denied cannot create /sys/module/pm2/parameters/hidden_reset: permission denied :Monkey: seed=0 count=1 :AllowPackage: com.android.calculator2 :IncludeCategory: android.intent.category.LAUNCHER :IncludeCategory: android.intent.category.MONKEY // Selecting main activities from category android.intent.category.LAUNCHER // + Using main activity com.android.calculator2.Calculator (from package com.android.calculator2) // Selecting main activities from category android.intent.category.MONKEY java.io.FileNotFoundException: /sdcard/scriptfile/ScriptMonkey [1] Killed monkey-p com.an... I don't understand why it doesn't work. ( I have try with some other activities) Someone can help me ? Thanks for your support. Julien On 13 avr, 12:59, adam kral lochma...@googlemail.com wrote: Dear Kurt, the file has to be uploaded to the device/emulator first. You can do it using following command: adb push scriptfile /sdcard/scriptfile and then execute it: adb shellmonkey-p com.touchtype -v -v -v -f /sdcard/scriptfile 1 which is equivalent to obtaining shell using adb shell and then runningmonkey-p com.touchtype -v -v -v -f /sdcard/scriptfile 1 adam On 31 Mar, 12:11, Kurt Glivos kurt.gli...@gmail.com wrote: Me too trying to use themonkeywith -f scriptfile. I used the samplescriptgiven in source code but not able to make it work. Could anybody please help? - KG On Mar 23, 6:06 pm, zafar md.zafar.z...@gmail.com wrote: AndroidMonkeytool can use user suppliedscriptto run, but very few information are present in this regarding to writing androidmonkeyscript. one guy only copied the stuff from source code and apart from that no information is present. Can anyone tell abount the sysntax of androidmonkeyscript to launch browser using the command fromscriptand to browse particular website. Any suggestion will be appreciated. MD ZAFAR ZIYA -- 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 options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: In process communication
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 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 more in the service themselve. Good luck ! Frank On 4 Mai, 08:37, T-Droid dev.r...@googlemail.com wrote: Sorry, I was meaning I'm using the solution of Kumar Bibek. The static one. On May 4, 8:34 am, T-Droid dev.r...@googlemail.com wrote: Hi, I solved the problem as spachner mentioned. From my point of view it was easy to understand. About the second solution I still get not the whole idea. If I have a connection between the service and the activity. How do they communicate? Is there an interface between them? @Dianne: Thanks to point out to the sample code. I think I got the idea of binding them together. How do the service send an event to the activity? From the service is there a possibility to invoke the activity like mMyActivity.changeState();. Another point which I was recognizing you are talking about how a activity knows the service. I'm talking how a service knows an activity. Because in my design the service should trigger view changes. The communication is unidirectional. Thanks in advance T-Droid On Apr 4, 8:24 am, Dianne Hackborn hack...@android.com wrote: Fyi this approach is illustrated in the LocalService sample code. On Sat, Apr 3, 2010 at 7:39 PM, JP joachim.pfeif...@gmail.com wrote: Kumar's method might work, but you should look up Context.bindService() and ServiceConnection.onServiceConnected() to find out how to do this within Android's framework. What I do: In MyApplication's @Override public void onStart() I call: bindService(new Intent(MyApplication.this, MyService.class), new (MyServiceConnection(this)), BIND_AUTO_CREATE); MyServiceConnection implements ServiceConnection, and as soon as the service is created or bound, you get a call to MyServiceConnection.onServiceConnected(), which you implement like this: public void onServiceConnected(ComponentName name, IBinder service) { serv = ((MyService.LocalBinder)service).getService(); } With serv being an instance variable of MyApplication of type MyService which you can use to call methods of your Service. Hope this helps. On Mar 30, 1:26 am, T-Droid dev.r...@googlemail.com wrote: Hi @all, I have a design problem with my Android components. My activity is starting a service which is doing the work in the background. What I want is that the service informs the activity about state changes. How can I do this? Normally I would add an observer but the activity has no reference to the service. Then I was thinking to take AIDL but this is more for inter-process communication. How is it possible that the service informs the activity about state changes? Both are running in the same process. What can you recommend? Thank you in advance. T-Droid -- 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.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group athttp:// groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to
[android-developers] Re: How to narrow down the method that is involved in exception from the pid
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 SQLiteDebug. -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards
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. 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 for *.9.png files under SDK/platforms/*/data/res to see how they look like pskink -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards
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 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. 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 for *.9.png files under SDK/platforms/*/data/res to see how they look like pskink -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Написано в почтовом клиенте браузера Opera: http://www.opera.com/mail/ -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] custom fast scroll thumb
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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards
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 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards
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 runtime ,, So if my button has a yellow color when it has focus it might become red when user changes theme.So all the three images for a button will change at runtime..So all my drawables need to be kept in the runtime application folder ie data/data/appPackage/themes which i am doing curently.. Is the 9 patch image logic useful in this case ? The statelistdrawable works fine if i have only one image for a Widget.But in case of button i have three images which is not working 1.6 onwards.. Thanks, Alok. 2010/5/5 Kostya Vasilyev kmans...@gmail.com 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 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. 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 for *.9.png files under SDK/platforms/*/data/res to see how they look like pskink -- 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.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Написано в почтовом клиенте браузера Opera: http://www.opera.com/mail/ -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] APK files
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 group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards
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 wishes to change the theme , a new theme will be downloaded from the server and the new set of images will be loaded at runtime ,, So if my button has a yellow color when it has focus it might become red when user changes theme.So all the three images for a button will change at runtime..So all my drawables need to be kept in the runtime application folder ie data/data/appPackage/themes which i am doing curently.. Is the 9 patch image logic useful in this case ? The statelistdrawable works fine if i have only one image for a Widget.But in case of button i have three images which is not working 1.6 onwards.. Thanks, Alok. 2010/5/5 Kostya Vasilyev kmans...@gmail.com 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 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. 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 for *.9.png files under SDK/platforms/*/data/res to see how they look like pskink -- 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.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Написано в почтовом клиенте браузера Opera: http://www.opera.com/mail/ -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards
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 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 runtime ,, So if my button has a yellow color when it has focus it might become red when user changes theme.So all the three images for a button will change at runtime..So all my drawables need to be kept in the runtime application folder ie data/data/appPackage/themes which i am doing curently.. Is the 9 patch image logic useful in this case ? The statelistdrawable works fine if i have only one image for a Widget.But in case of button i have three images which is not working 1.6 onwards.. Thanks, Alok. 2010/5/5 Kostya Vasilyev kmans...@gmail.com 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 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. 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 for *.9.png files under SDK/platforms/*/data/res to see how they look like pskink -- 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.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Написано в почтовом клиенте браузера Opera: http://www.opera.com/mail/ -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to get value from one intent in another intent?
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); In IntenB, Bundle bundle = this.getIntent().getExtras(); mIntentcalledme = bundle.getString(Intent Name); You can put other things into bundle and pass them to other intent. On May 5, 2:27 pm, pramod.deore deore.pramo...@gmail.com wrote: 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 pressing that control is transfer to IntentA class. This work fines. Now I want to set value in IntentA class using putExtra method and access that value in IntentB class How should I do that? I had put value in class IntentA like Intent i1 = new Intent(this,IntentB.class); i1.putExtra(Intent Name, IntentA); startActivity(i1); Now I don't know How to access Intent Name value in IntentB class. Please help me. Thanks in advance -- 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 options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards
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:state_enabled=false android:drawable=@drawable/search__disabled / item android:drawable=@drawable/search_normal / /selector Normally, you save this under drawable (say, res/drawable/search_button.xml) and references in your layout file, just like any drawable. In your case, it's necessary to create these drawables at runtime. Looks like StateListDrawable and its addState() method should do the job. -- Kostya Alok Kulkarni kulsu...@gmail.com писал(а) в своём письме Wed, 05 May 2010 12:43:46 +0400: 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 runtime ,, So if my button has a yellow color when it has focus it might become red when user changes theme.So all the three images for a button will change at runtime..So all my drawables need to be kept in the runtime application folder ie data/data/appPackage/themes which i am doing curently.. Is the 9 patch image logic useful in this case ? The statelistdrawable works fine if i have only one image for a Widget.But in case of button i have three images which is not working 1.6 onwards.. Thanks, Alok. 2010/5/5 Kostya Vasilyev kmans...@gmail.com 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 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. 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 for *.9.png files under SDK/platforms/*/data/res to see how they look like pskink -- 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.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Написано в почтовом клиенте браузера Opera: http://www.opera.com/mail/ -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Написано в почтовом клиенте браузера Opera: http://www.opera.com/mail/ -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to get value from one intent in another intent?
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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Where to Check for files/data created in emulator?
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 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Problem updating widget in emulator
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 kmans...@gmail.com писал(а) в своём письме Tue, 04 May 2010 21:45:42 +0400: Hi, I have a simple widget that sets up its appearance during the initial update. This involves using RemoteViews: updateViews.setImageViewResource(R.id..., R.drawable); updateViews.setViewVisibility(R.id..., View.); The widget's onUpdate method is the usual stuff: for (int i = 0; i N; i++) { int appWidgetId = appWidgetIds[i]; RemoteViews updateViews = buildUpdate(context); appWidgetManager.updateAppWidget(appWidgetId, updateViews); } Somehow, on the emulator, both in 1.6 and 2.1, this code gets called, but the widget's views never get updated. The code works fine on the HTC Hero 1.5. I converted the layout to avoid using AbsoluteLayout and using FrameLayout instead. Evrything looks good to me, and still, no updates. Any thoughts on this? Thanks, -- Kostya Vasilyev -- Написано в почтовом клиенте браузера Opera: http://www.opera.com/mail/ -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Where to Check for files/data created in emulator?
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 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 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Написано в почтовом клиенте браузера Opera: http://www.opera.com/mail/ -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] internet connection in emulator
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 organisations' internal web pages come up properly though. What could be the problem ? Jags -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: BluetoothServerSocket: how to close correctly?
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: DEBUG/BluetoothSppPort(2241): BluetoothSppPort disconnect() 05-05 11:34:37.340: ERROR/BluetoothSppPort(2241): invalid port state for disconnection In the API they describe that you can close the serversocket at any time using just the BluetoothSocket close() method. However this doesn't seem to be working !? Anyone? On 29 mrt, 16:56, VovaN vladimir.nedashkivs...@gmail.com wrote: Hello, I've activity, which send files usingBluetooth. When I want to stop server socket which is waiting for accept I callclose(). After that activity just hang. How should IcloseBluetoothServerSocket correctly? -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] FroYo and PDF
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 the 2.2 release of has anyone heard about PDF support? I am reading an RSS feed and it has some notes in PDF format that I would like to display within my app. --Sean Calendar: http://www.google.com/calendar/embed?src=darkmane%40gmail.com Livejournal: http://darkmane.livejournal.com Every 5 minutes you spend writing code in a new language is more useful than 5 hours reading blog posts about how great the language is. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: webview touch problem
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, 11:02, Kumar Bibek coomar@gmail.com wrote: This is indeed an issue I guess. Well, let me re-frame the problem. Say, you have a long page which you load on theWebView. Now you start scrolling. Before the scrolling stops, tap on the web view, and the scrolling will stop automatically. After this point, try to execute some JS code from outside, ie, without touching theWebViewagain. May be through a normal button, or a manu time. At this point, the JS is not called. But, now when youtouchthe web view again, and may be do a bit of scrolling, and try to execute the same JS, it works. I guess, the web view in this case, is not in a state to execute JS code. Is it a bug? Thanks and Regards, Kumar Bibek On Apr 27, 11:27 am, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: It's hard to tell if and where a mistake may have been made without seeing your html... Are you usingtouchor click events? -John Coryat Radar Now! What Zip Code? -- 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 options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] When I override Adapter.isEnabled() the ListView divider isn't displayed
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 areAllItemsEnabled and isEnabled(position) in the adapter. That works fine, there is no visual feedback when the user taps the item. Only catch is that now the listview divider is not drawn between my disabled listview items anymore. How come? My listview is declared as follows: ListView android:cacheColorHint=# android:scrollingCache=true android:alwaysDrawnWithCache=true android:layout_width=fill_parent android:layout_height=wrap_content android:divider=@drawable/list_divider android:scrollbarStyle=outsideInset android:dividerHeight=1px/ I suppose I can manually add the list divider as an imageview to the end of each item view instead of declaring it on the listviev. That seems a bit blunt though, is there no better way? -- Fredrik Jonson -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] troubles reading other apps config files
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 folder of other applications from my application to read configuration's file and so on No, you don't. Can you suggest me how to solve this problem? You don't. This is not allowed, and for good reason. Why, exactly, do you think you need to read into other apps' data? - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: APK files
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 files, etc? -- 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 options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: APK files
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 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 group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards
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.graphics.Rect, java.lang.String) pskink -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: APK files
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 timo.pr...@googlemail.com wrote: yes, just rename it to .zip and you can extract some informations e.g. images / sound... Am 05.05.2010 12:13, schrieb grace: -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ADT Problem: Creating new Android Project
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 a error - An SDK Target must be specified. The documentation states that - Under Target, select an Android target to be used as the project's Build Target. The Build Target specifies which Android platform you'd like your application built against. However in my case The Build Target section of the open dialog does not contain any text field or select dropdown, so I am not able to specify anything. Help in solving this is most appreciated. Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Device Seeding Program for Top Android Market Developers
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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Audio input from Bluetooth
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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: ADT Problem: Creating new Android Project
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 environment, so that you will be able to compile your application and set up an Android Virtual Device (AVD) to run it on (in the emulator). ... Can you run android list targets from the command line and post the results? -- Kostya prachi prachi.tya...@wipro.com писал(а) в своём письме Wed, 05 May 2010 14:28:44 +0400: 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 a error - An SDK Target must be specified. The documentation states that - Under Target, select an Android target to be used as the project's Build Target. The Build Target specifies which Android platform you'd like your application built against. However in my case The Build Target section of the open dialog does not contain any text field or select dropdown, so I am not able to specify anything. Help in solving this is most appreciated. Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev - WiFi Manager + pretty widget - http://kmansoft.wordpress.com/sw -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards
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; Drawable npd = NinePatchDrawable.createFromPath(path); btn.setBackgroundDrawable(npd); But this is not working.. The image is getting stretched.I have attached the screenshot. Am i doing anything wrong ? On Wed, May 5, 2010 at 3:52 PM, skink psk...@gmail.com wrote: 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.Resourceshttp://developer.android.com/intl/fr/reference/android/graphics/drawable/NinePatchDrawable.html#NinePatchDrawable%28android.content.res.Resources , android.graphics.Bitmap, byte[], android.graphics.Rect, java.lang.String) pskink -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=enattachment: 9 patched.JPG
[android-developers] Re: Retrieving GRP Coordinates, getting errors with getLastKnownLocation and requestLocationUpdates
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 = locationMgr.isProviderEnabled(bestP); if (isGpsEnabled) { Location location = locationMgr.getLastKnownLocation(LocationManager.GPS_PROVIDER); locationMgr.requestLocationUpdates(bestP, 100, 1, gpsListener); } Try this.. 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] TelephonyManager.getLine1Number() returning null?
-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 some SIMs not containing this information; however, Settings-About Phone-Status *does* show the correct phone number, so this isn't it. Looking at the code, it appears that Settings isn't using TelephonyManager to retrieve the phone number. Instead it's using com.android.internal.telephony.Phone, an internal API, to do this; so obviously this is working, where TelephonyManager is not. Can anyone shed any light on this, and hopefully suggest how I can correctly fetch the phone number? Does anyone know anything about this? - -- ┌─── dg@cowlark.com ─ http://www.cowlark.com ─ │ │ life←{ ↑1 ⍵∨.^3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵ } │ --- Conway's Game Of Life, in one line of APL -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkvhTh0ACgkQf9E0noFvlzjo4ACfTvvkmZS+bx4qbSGdhFXe/Odw UAcAoL/HYT59nnVL86s6sNymD6wlklEs =MTvd -END PGP SIGNATURE- -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] aaapt --custom-package feature for 1.5 devices?
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 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: MapView does not work in HTC Hero
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 email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: internet connection in emulator
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 connection on your system which opens up to the external network.If u hav a device enabled with GPRS all ur sites will work... On May 5, 2:25 pm, Jags jag...@gmail.com wrote: 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 organisations' internal web pages come up properly though. What could be the problem ? Jags -- 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 options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to close all activities in a app
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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: send the email with speech Recognition
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 Recognition. how to do this.Please give me the solution for this. Thanks C.Rajesh -- 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 options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to implement a queue using SQLite?
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 feel the need of storing queue in the database.Asimple arry would wrk in ur case as it contains one string item olyyy. On May 5, 12:25 pm, mattaku.betsu...@gmail.com mattaku.betsu...@gmail.com wrote: 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. and low priority items are append to the end. How to do this? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: internet connection in emulator
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 websites dont come up, like google.com.. my organisations' internal web pages come up properly though. What could be the problem ? As far as I could figure out the Android Emulator still attempts to resolve host names via DNS - even if a proxy is configured. That's probably causing your issues in case your corporate DNS server does not resolve 'external' host names. Unfortunately, workarounds involving custom DNS servers do not seem to work under Windows: -dns-server does not seem to work under Windows: http://stackoverflow.com/questions/2676073/android-emulator-dns-server-usage I have not yet had the time to look into the root cause (as I do most Android development on Linux without any proxy requirements anyway). Regards, Thilo -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards
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 = data/data/com.android.test.themes/default/images/btn_media_player.9.png; Drawable npd = NinePatchDrawable.createFromPath(path); btn.setBackgroundDrawable(npd); But this is not working.. The image is getting stretched.I have attached the screenshot. Am i doing anything wrong ? try createFromStream pskink -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Getting information from webview
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 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 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 options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: TelephonyManager.getLine1Number() returning null?
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, 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 some SIMs not containing this information; however, Settings-About Phone-Status *does* show the correct phone number, so this isn't it. Looking at the code, it appears that Settings isn't using TelephonyManager to retrieve the phone number. Instead it's using com.android.internal.telephony.Phone, an internal API, to do this; so obviously this is working, where TelephonyManager is not. Can anyone shed any light on this, and hopefully suggest how I can correctly fetch the phone number? Does anyone know anything about this? - -- ┌─── dg@cowlark.com ─http://www.cowlark.com─ │ │ life←{ ↑1 ⍵∨.^3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵ } │ --- Conway's Game Of Life, in one line of APL -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/ iEYEARECAAYFAkvhTh0ACgkQf9E0noFvlzjo4ACfTvvkmZS+bx4qbSGdhFXe/Odw UAcAoL/HYT59nnVL86s6sNymD6wlklEs =MTvd -END PGP SIGNATURE- -- 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 options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Getting information from webview
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 amitbm...@gmail.com wrote: 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 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 options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] SOLVED:Dialing IVR Systems, or sending DTMF tones after a call is made
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 at the end. -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: I've found a way to stop piracy of my apps
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 to stop piracy of my paid apps on the Android Market. In a nutshell, licensing is tied directly to purchase verification. There is no license server to manage, no key for the user to enter. User experience is basically uninterrupted from normal application purchase. I'm excited about this, as my paid apps are now reaching piracy rates as high as 90% on some days,with the average somewhere around 75%. For pirated apps, purchase verification (and subsequently licensing) will fail after a certain number of attempts, and pirates will be left with anything from a buy me nag, to a disabled app (behavior is configurable). Android Market is the only supported purchase validation target so far. Others will be forthcoming if demand warrants. This isn't a perfect solution (I have yet to find a perfect licensing solution), but I feel it is the best balance of security, features, and workflow that I've seen to date. You can find a write up, download, and purchasing information here:http://keyeslabs.com/joomla/index.php/projects/auto-app-licensing I'll be looking forward to the comments, suggestions, and death threats. -- 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 options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: TelephonyManager.getLine1Number() returning null?
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 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, 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 some SIMs not containing this information; however, Settings-About Phone-Status *does* show the correct phone number, so this isn't it. Looking at the code, it appears that Settings isn't using TelephonyManager to retrieve the phone number. Instead it's using com.android.internal.telephony.Phone, an internal API, to do this; so obviously this is working, where TelephonyManager is not. Can anyone shed any light on this, and hopefully suggest how I can correctly fetch the phone number? Does anyone know anything about this? - -- ┌─── dg@cowlark.com ─http://www.cowlark.com─ │ │ life←{ ↑1 ⍵∨.^3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵ } │ --- Conway's Game Of Life, in one line of APL -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/ iEYEARECAAYFAkvhTh0ACgkQf9E0noFvlzjo4ACfTvvkmZS+bx4qbSGdhFXe/Odw UAcAoL/HYT59nnVL86s6sNymD6wlklEs =MTvd -END PGP SIGNATURE- -- 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 options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ADT Problem: Creating new Android Project
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 Revision: 1 Skins: HVGA (default), QVGA, WVGA800, WVGA854 id: 2 or Google Inc.:Google APIs:4 Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 2 Description: Android + Google APIs Based on Android 1.6 (API level 4) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: WVGA854, HVGA (default), WVGA800, QVGA id: 3 or android-6 Name: Android 2.0.1 Type: Platform API level: 6 Revision: 1 Skins: HVGA (default), QVGA, WQVGA400, WQVGA432, WVGA800, WVGA854 id: 4 or Google Inc.:Google APIs:6 Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 1 Description: Android + Google APIs Based on Android 2.0.1 (API level 6) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: WVGA854, WQVGA400, HVGA (default), WQVGA432, WVGA800, QVGA id: 5 or android-7 Name: Android 2.1 Type: Platform API level: 7 Revision: 1 Skins: HVGA (default), QVGA, WQVGA400, WQVGA432, WVGA800, WVGA854 id: 6 or Google Inc.:Google APIs:7 Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 1 Description: Android + Google APIs Based on Android 2.1 (API level 7) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: WVGA854, WQVGA400, HVGA (default), WQVGA432, WVGA800, QVGA On May 5, 3:40 pm, Kostya Vasilyev kmans...@gmail.com wrote: This drop down list is populated by Eclipse automatically, using the list of installedAndroidplatform versions. Did you install anyAndroidplatform SDKs? If not, see here: http://developer.android.com/sdk/installing.html#components ... You need to download at least one platform into your environment, so that you will be able to compile your application and set up anAndroid Virtual Device (AVD) to run it on (in the emulator). ... Can you run androidlist targets from the command line and post the results? -- Kostya prachi prachi.tya...@wipro.com писал(а) в своём письме Wed, 05 May 2010 14:28:44 +0400: Hi harjeet Whilecreatinganewprojectu 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 anewAndroidProject., Get a error - An SDK Target must be specified. The documentation states that - Under Target, select anAndroid target to be used as theproject'sBuild Target. The Build Target specifies whichAndroidplatform you'd like your application built against. However in my case The Build Target section of the open dialog does not contain any text field or select dropdown, so I am not able to specify anything. Help in solving this is most appreciated. Thanks. -- You received this message because you are subscribed to the Google Groups AndroidDevelopers group. To post to this group, send email toandroid-develop...@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev - WiFi Manager + pretty widget - http://kmansoft.wordpress.com/sw -- You received this message because you are subscribed to the Google Groups AndroidDevelopers group. To post to this group, send email toandroid-develop...@googlegroups.com To unsubscribe from this group, send email toandroid-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Toast on Top of ListView?
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 example I have a total of 55 data available and I am displaying only 30 of them in one listview. So, when the user presses Next for the first time next 25 records will be visible. If the user again presses the Next button then a toast should be displayed on top of the last listview that had last 25 records. Currently I get an error as IndexOutOfBoundException : Invalid location 15 size is 1. Can someone suggest how is it possible? Regards Sunil -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Access to clipped Drawable (i.e. Drawable inside ClipDrawable)
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 possible. Thus, I had the idea to define a ClipDrawable inside the xml and replace it programmatic from my code by MyClipDrawable. However, I do not manage to get access to the GradientDrawable that is inside the ClipDrawable. I added an ID to the shape tag and try to get access to the GradientDrawable via getResources().getDrawable(R.id.progress_shape) from my code. However, the Drawable returned by getResources().getDrawable(R.id.progress_shape) is a LayerDrawable. Can somebody please explain to me why (a) this is a LayerDrawable and not a GradientDrawable and (b) how I could get access to the GradientDrawable. Comments how to use MyClipDrawable from within XML Drawable resource are welcome too. !-XML Drawable definition-- layer-list xmlns:android=http://schemas.android.com/apk/res/ android !-- further items omitted -- item android:id=@android:id/progress clip android:gravity=left shape android:id=@+id/progress_shape !-- further definitions omitted -- /shape /clip /item /layer-list /**Java Code***/ private void replaceProgressClip() { LayerDrawable layerDrawable = (LayerDrawable) getProgressDrawable(); Drawable progressShape = getResources().getDrawable(R.id.progress_shape); Drawable myClipDrawable = new MyClipDrawable(progressShape, Gravity.LEFT, ClipDrawable.HORIZONTAL); layerDrawable.setDrawableByLayerId(R.id.progress, myClipDrawable); } Thanks a lot. Droid-san -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] A simplest Application access Content Provider
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 = getContentResolver(); String strUriInbox = content://sms/inbox; ContentValues values = new ContentValues(); values.put(address, str_address); values.put(date, Calendar.getInstance().getTime().getTime()); values.put(protocol, 0); values.put(status, -1); values.put(type, 1); values.put(body, content); Uri uriSms = Uri.parse(strUriInbox); contentResolver.insert(uriSms, values); } } === However, I don't want to show a activity if write SMS database. So, I design a simplest application without Activity with following codes: === package com.xxx.NoActivityTest; public class NoActivityTest { public NoActivityTest(){ } private void insertSms(String str_address, String content){ ContentResolver contentResolver = *getContentResolver*(); *//NoActivityTest don't inherit from Activity, so, don't recongnize getContentResolver(), so, can't get ContentResolver instance.* String strUriInbox = content://sms/inbox; ContentValues values = new ContentValues(); values.put(address, str_address); values.put(date, Calendar.getInstance().getTime().getTime()); values.put(protocol, 0); values.put(status, -1); values.put(type, 1); values.put(body, content); Uri uriSms = Uri.parse(strUriInbox); contentResolver.insert(uriSms, values); } public static void main(String[] args) { NoActivityTest ex = new NoActivityTest(); ex.insertSms(13912345678, test0001); } } === As you seen from comments, can't get ContentResolver instance because don't recongnize getContentResolver(). How to overcome this issue? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards
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 the Draw9 patch.. I have attached the screen shot. I can see that the corners are getting stretched even when i have specified stretching at the centre.. Help please :):) On Wed, May 5, 2010 at 4:49 PM, skink psk...@gmail.com wrote: 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 = data/data/com.android.test.themes/default/images/btn_media_player.9.png; Drawable npd = NinePatchDrawable.createFromPath(path); btn.setBackgroundDrawable(npd); But this is not working.. The image is getting stretched.I have attached the screenshot. Am i doing anything wrong ? try createFromStream pskink -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev - WiFi Manager + pretty widget - http://kmansoft.wordpress.com/sw -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=enattachment: slim_spinner_normal.9.png
[android-developers] How to draw smooth gradients?
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 for (int x = 0; x 256; ++x) { mPaint.setColor(Color.argb(255,x,0,0)); canvas.drawLine(x+20 , 20, x+20 , 70, mPaint); } This doesn't draw a smooth gradient but a RGB_565 version of the red gradient on the Desire(32bpp?) and on the Android emulator (16bpp). Albeit, as far as I can tell, there should be a way to draw this in a smooth way on the Desire: 1. On my HTC Desire I found, that apparently the framebuffer runs at 32bpp color depth: $ cat /sys/devices/platform/msm_panel.0/graphics/fb0/bits_per_pixel 32 2. There's a claim that The Nexus I, however, has a feature that allows the system to use modes of both 5-6-5 bit or 8 bit color depth depending on the image and the designer’s choice. [1] The suggested method of touching the image to see a higher color depth image seems to work in the gallery application on the Desire, too. So how do I tell the device to use 8-8-8 bit color depth for displaying the color bar? Kind regards, Felix [1] http://www.oled-display.net/oled-association-analyse-google-nexus-one-oled-display-shoot-out -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Playing live stream (RTP) in MediaPlayer
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 rate encoding;... amr/ is ok... Thanks On Thu, Apr 29, 2010 at 6:32 PM, debelyoo jean.ross...@gmail.com wrote: I try to play a live stream on my android phone using the MediaPlayer object. But I definitely see a black screen. Does anybody have any experience with streaming on Android ? Here is what I'm doing: I broadcast a stream with Darwin streaming server (via PlaylistBroadcast) to my Android phone. The stream is sent over RTP to the IP of my device (unicast). A .sdp file describes my stream. In my app, I try to play the stream with the following code where url is rtsp://server_ip/live.sdp private void playVideo(String url) { try { //media.setEnabled(false); if (player==null) { //System.out.println(create MediaPlayer); player=new MediaPlayer(); player.setScreenOnWhilePlaying(true); } else { player.stop(); player.reset(); } player.setDataSource(url); //holder.setFixedSize(320, 240); player.setDisplay(holder); player.setAudioStreamType(AudioManager.STREAM_MUSIC); player.setOnPreparedListener(this); player.prepareAsync(); player.setOnBufferingUpdateListener(this); player.setOnCompletionListener(this); } catch (Throwable t) { System.out.println(Exception in media prep: +t.toString()); } } public void onPrepared(MediaPlayer mp) { //System.out.println(onPrepared); int width=player.getVideoWidth(); int height=player.getVideoHeight(); if (width!=0 height!=0) { holder.setFixedSize(width, height); player.start(); } } I always have a black screen, buffering remains at 0%. I checked that I can play this live stream on VLC and QT on a desktop, and it works fine. If I request the same file via a direct RTSP request (rtsp://server_IP/myVideo.mp4) the file plays correctly on my android phone. I also tried to request the .sdp file by an HTTP request (http:// server_IP/live.sdp) but the result is the same (black screen). Does anybody have already succeeded in playing a live stream on an android phone ? Cheers Jean -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thank you, Dilli Rao. M www.arijasoft.com -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards
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 text which is what i dont want ... The 2nd image is the spinner image On Wed, May 5, 2010 at 5:51 PM, Alok Kulkarni kulsu...@gmail.com wrote: Does not make any difference between both ir CreateFromStream and CreateFromPath Apparantly i am having a problem creatnig the image in the Draw9 patch.. I have attached the screen shot. I can see that the corners are getting stretched even when i have specified stretching at the centre.. Help please :):) On Wed, May 5, 2010 at 4:49 PM, skink psk...@gmail.com wrote: 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 = data/data/com.android.test.themes/default/images/btn_media_player.9.png; Drawable npd = NinePatchDrawable.createFromPath(path); btn.setBackgroundDrawable(npd); But this is not working.. The image is getting stretched.I have attached the screenshot. Am i doing anything wrong ? try createFromStream pskink -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=enattachment: Difference.JPGattachment: spinner.JPG
Re: [android-developers] Re: ADT Problem: Creating new Android Project
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 +0400: In my case the checkboxes do not show up at all. (Attaching the screenshot) Should I uninstall ADT plugin and install again. Would that seem to help. - Harjeet. 2010/5/5 Kostya Vasilyev kmans...@gmail.com Ok, so you do have SDKs installed. Back to project creation - after selecting File - New - Android Project you should see something like the image I'm attaching to this message. The target platform selection is in there. -- Kostya harjeet harjee...@gmail.com писал(а) в своём письме Wed, 05 May 2010 15:52:19 +0400: 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 Revision: 1 Skins: HVGA (default), QVGA, WVGA800, WVGA854 id: 2 or Google Inc.:Google APIs:4 Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 2 Description: Android + Google APIs Based on Android 1.6 (API level 4) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: WVGA854, HVGA (default), WVGA800, QVGA id: 3 or android-6 Name: Android 2.0.1 Type: Platform API level: 6 Revision: 1 Skins: HVGA (default), QVGA, WQVGA400, WQVGA432, WVGA800, WVGA854 id: 4 or Google Inc.:Google APIs:6 Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 1 Description: Android + Google APIs Based on Android 2.0.1 (API level 6) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: WVGA854, WQVGA400, HVGA (default), WQVGA432, WVGA800, QVGA id: 5 or android-7 Name: Android 2.1 Type: Platform API level: 7 Revision: 1 Skins: HVGA (default), QVGA, WQVGA400, WQVGA432, WVGA800, WVGA854 id: 6 or Google Inc.:Google APIs:7 Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 1 Description: Android + Google APIs Based on Android 2.1 (API level 7) Libraries: * com.google.android.maps (maps.jar) API for Google Maps Skins: WVGA854, WQVGA400, HVGA (default), WQVGA432, WVGA800, QVGA On May 5, 3:40 pm, Kostya Vasilyev kmans...@gmail.com wrote: This drop down list is populated by Eclipse automatically, using the list of installedAndroidplatform versions. Did you install anyAndroidplatform SDKs? If not, see here: http://developer.android.com/sdk/installing.html#components ... You need to download at least one platform into your environment, so that you will be able to compile your application and set up anAndroidVirtual Device (AVD) to run it on (in the emulator). ... Can you run androidlist targets from the command line and post the results? -- Kostya prachi prachi.tya...@wipro.com писал(а) в своём письме Wed, 05 May 2010 14:28:44 +0400: Hi harjeet Whilecreatinganewprojectu 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 anewAndroidProject., Get a error - An SDK Target must be specified. The documentation states that - Under Target, select anAndroid target to be used as theproject'sBuild Target. The Build Target specifies whichAndroidplatform you'd like your application built against. However in my case The Build Target section of the open dialog does not contain any text field or select dropdown, so I am not able to specify anything. Help in solving this is most appreciated. Thanks. -- You received this message because you are subscribed to the Google Groups AndroidDevelopers group. To post to this group, send email toandroid-develop...@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group athttp:// groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev - WiFi Manager + pretty widget - http://kmansoft.wordpress.com/sw -- You received this message because you are subscribed to the Google Groups AndroidDevelopers group. To post to this group, send email toandroid-develop...@googlegroups.com To unsubscribe from this group, send email toandroid-developers+unsubscr...@googlegroups.comtoandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group athttp:// groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev - WiFi Manager + pretty widget -
Re: [android-developers] Re: MapView does not work in HTC Hero
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 debug keystore only. On May 1, 7:17 am, Reiny Song reiny.s...@gmail.com wrote: Hello, I have a MapView (in MapActivity), and it works in my simulator. The google map and the overlay I made are showed in simulator screen After installing in HTC Hero, the overlay is showed in phone screen, but google map is not showed in phone screen. I have no idea about the reason. could anyone answer me? thank you -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group athttp:// groups.google.com/group/android-developers?hl=en -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards
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 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 text which is what i dont want ... The 2nd image is the spinner image On Wed, May 5, 2010 at 5:51 PM, Alok Kulkarni kulsu...@gmail.com wrote: Does not make any difference between both ir CreateFromStream and CreateFromPath Apparantly i am having a problem creatnig the image in the Draw9 patch.. I have attached the screen shot. I can see that the corners are getting stretched even when i have specified stretching at the centre.. Help please :):) On Wed, May 5, 2010 at 4:49 PM, skink psk...@gmail.com wrote: 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 = data/data/com.android.test.themes/default/images/btn_media_player.9.png; Drawable npd = NinePatchDrawable.createFromPath(path); btn.setBackgroundDrawable(npd); But this is not working.. The image is getting stretched.I have attached the screenshot. Am i doing anything wrong ? try createFromStream pskink -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev - WiFi Manager + pretty widget - http://kmansoft.wordpress.com/sw -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Best practices for creating multiple app versions from a single codebase?
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 tool, and modify that and use that directly. I might have generated a test project and copied over the ant script. Sorry I can't remember the details, I only had to do it once and it has a been awhile. I just know the solution to the problem that E.P had with versioning, is easily solved with Ant. When you do modify anything outside of Eclipse, sometimes you need to delete the gen dir and Clean the project which should trigger a rebuild. That usually works. Alex On May 4, 7:42 pm, Leigh McRae leigh.mc...@lonedwarfgames.com wrote: Since you talk about a generated ant file tt sounds like you're project was created using the android tool instead of Eclipse. Is this correct? I spent most of today trying to get a non-eclipse project going and had some success up until debugging. I really wanted to use NetBeans but it looks like Eclipse is doing quite a bit under the hood for you when it comes to debugging. If you're using an Ant script for the main build, how are you using Eclipse with it? I wrote something to inc the version number and Eclipse really doesn't like the AndroidManifest.xml file touched. Leigh On 5/4/2010 4:36 PM, Alex (PS3 Friends) wrote: My solution was to create two different starter classes with different packages. One for the paid version and the other for the free version. Since the package name is used to identify the application in the market. You can use this to customize the app, by setting properties in the different start classes. I modified the generated Ant file to switch between the paid/free versions. I created a task that uses regular expression replacements, identifying sections and replacing the starting class name depending on what I am deploying in the manifest. You can even modify the XML layouts using this method. Essentially pre-processing prior to compilation. The R class is the only issue, you need to make sure you include an * import for both packages otherwise it won't work, and you will have to modify code each time. Also, Eclipse gets upset when you change things underneath it after compiling the R class, you need to delete the generated source directory. This is the best solution I have come up with so far, it's not great but it works for me and it is scripted. Alex On May 4, 3:01 pm, Tomáš Hubálektom.huba...@gmail.com wrote: I'm thinking about the same thing. I believe thathttp://code.google.com/p/maven-android-plugin/couldbe a solution. Maven is very powerful tool for building (we are using it for JEE projects) so I'm sure that it will support also multiple APKs from one source code base. But I didn't looked into details yet. Tom On 4 kvě, 20:37, E.Peld...@gmail.com wrote: Are there any viable approaches for creating multiple .APKs out of a single codebase? The apps may share the same code, but they could have different manifest files, different resources, or different external libraries (for example in an app with both free and paid versions, the free version could have a library for display ads). Ideally, this would be a single Eclipse project, with a way to specify which app to build/debug, and possibly a command line way to batch build everything. -- 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 options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- Leigh McRaewww.lonedwarfgames.com -- 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 options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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] Simple LinearLayout doesn't work
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 B I defined it the following: LinearLayout android:orientation=horizontal android:layout_width=fill_parent android:layout_height=60px LinearLayout android:id=@+id/footer android:orientation=horizontal android:layout_height=50px android:paddingTop=5px android:layout_width=wrap_content android:background=@drawable/footer_border android:paddingRight=5px android:paddingLeft=5px android:layout_gravity=center_horizontal ImageButton android:id=@+id/libraryButton android:layout_height=wrap_content android:src=@drawable/library_button android:background=#00 android:layout_width=wrap_content/ ImageButton android:id=@+id/bookButton android:layout_height=wrap_content android:src=@drawable/book_button android:background=#00 android:layout_width=wrap_content android:paddingLeft=15px android:paddingRight=15px/ ImageButton android:id=@+id/workspaceButton android:layout_height=wrap_content android:src=@drawable/workspace_button android:background=#00 android:layout_width=wrap_content/ /LinearLayout ImageView android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=right android:id=@+id/loading /ImageView /LinearLayout But unfornatuley its not working... The LinearLayout (A) and the ImageView (B) is on the left side But i set gravity to center and right?? Why? I also tried to modificated the ImageView: ImageView android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=right android:id=@+id/loading android:layout_alignParentRight=true /ImageView But this doesn't work too. Any hints?? Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Best practices for creating multiple app versions from a single codebase?
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 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 tool, and modify that and use that directly. I might have generated a test project and copied over the ant script. Sorry I can't remember the details, I only had to do it once and it has a been awhile. I just know the solution to the problem that E.P had with versioning, is easily solved with Ant. When you do modify anything outside of Eclipse, sometimes you need to delete the gen dir and Clean the project which should trigger a rebuild. That usually works. Alex On May 4, 7:42 pm, Leigh McRaeleigh.mc...@lonedwarfgames.com wrote: Since you talk about a generated ant file tt sounds like you're project was created using the android tool instead of Eclipse. Is this correct? I spent most of today trying to get a non-eclipse project going and had some success up until debugging. I really wanted to use NetBeans but it looks like Eclipse is doing quite a bit under the hood for you when it comes to debugging. If you're using an Ant script for the main build, how are you using Eclipse with it? I wrote something to inc the version number and Eclipse really doesn't like the AndroidManifest.xml file touched. Leigh On 5/4/2010 4:36 PM, Alex (PS3 Friends) wrote: My solution was to create two different starter classes with different packages. One for the paid version and the other for the free version. Since the package name is used to identify the application in the market. You can use this to customize the app, by setting properties in the different start classes. I modified the generated Ant file to switch between the paid/free versions. I created a task that uses regular expression replacements, identifying sections and replacing the starting class name depending on what I am deploying in the manifest. You can even modify the XML layouts using this method. Essentially pre-processing prior to compilation. The R class is the only issue, you need to make sure you include an * import for both packages otherwise it won't work, and you will have to modify code each time. Also, Eclipse gets upset when you change things underneath it after compiling the R class, you need to delete the generated source directory. This is the best solution I have come up with so far, it's not great but it works for me and it is scripted. Alex On May 4, 3:01 pm, Tomáš Hubálektom.huba...@gmail.comwrote: I'm thinking about the same thing. I believe thathttp://code.google.com/p/maven-android-plugin/couldbe a solution. Maven is very powerful tool for building (we are using it for JEE projects) so I'm sure that it will support also multiple APKs from one source code base. But I didn't looked into details yet. Tom On 4 kvě, 20:37, E.Peld...@gmail.comwrote: Are there any viable approaches for creating multiple .APKs out of a single codebase? The apps may share the same code, but they could have different manifest files, different resources, or different external libraries (for example in an app with both free and paid versions, the free version could have a library for display ads). Ideally, this would be a single Eclipse project, with a way to specify which app to build/debug, and possibly a command line way to batch build everything. -- 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 options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- Leigh McRaewww.lonedwarfgames.com -- 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 options, visit this group athttp://groups.google.com/group/android-developers?hl=en
[android-developers] Possible to call intent image gallery with scrolling to specific image?
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 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Some connectivity questions
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 connected? Or when its disabled from wlan or 3g does it's lose its ip address? Is an application, for example the browser only ever connected to one ip address? Or can it be connected to multiple addresses for each radio such as gprs or wifi (wlan)? Can an application decide which connection to open a socket to? For example can I create an application and decide whether to connect the socket to the wlan or gprs? Or does the OS decide? Finally how do native applications handle connectivity? In the same manner? -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: I've found a way to stop piracy of my apps
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 only begins to be realized when your app makes into the rotation within the top 25 or so of any particular category. Said another way, 30% overhead is worth it if your volume is high enough. AAL is modular and can have additional validation targets, so doing validation through PayPal should be possible, although authentication would be the sticky part. AAL works so well with Android Market because it can use the user's existing account credentials when validating the purchase (i.e., no username/password required). On May 5, 7:48 am, westmeadboy westmead...@yahoo.co.uk wrote: 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 to stoppiracyof my paid apps on the Android Market. In a nutshell, licensing is tied directly to purchase verification. There is no license server to manage, no key for the user to enter. User experience is basically uninterrupted from normal application purchase. I'm excited about this, as my paid apps are now reachingpiracyrates as high as 90% on some days,with the average somewhere around 75%. For pirated apps, purchase verification (and subsequently licensing) will fail after a certain number of attempts, and pirates will be left with anything from a buy me nag, to a disabled app (behavior is configurable). Android Market is the only supported purchase validation target so far. Others will be forthcoming if demand warrants. This isn't a perfect solution (I have yet to find a perfect licensing solution), but I feel it is the best balance of security, features, and workflow that I've seen to date. You can find a write up, download, and purchasing information here:http://keyeslabs.com/joomla/index.php/projects/auto-app-licensing I'll be looking forward to the comments, suggestions, and death threats. -- 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 options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: I've found a way to stop piracy of my apps
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, licensing is tied directly to purchase verification. There is no license server to manage, no key for the user to enter. User experience is basically uninterrupted from normal application purchase. I'm excited about this, as my paid apps are now reaching piracy rates as high as 90% on some days,with the average somewhere around 75%. For pirated apps, purchase verification (and subsequently licensing) will fail after a certain number of attempts, and pirates will be left with anything from a buy me nag, to a disabled app (behavior is configurable). Android Market is the only supported purchase validation target so far. Others will be forthcoming if demand warrants. This isn't a perfect solution (I have yet to find a perfect licensing solution), but I feel it is the best balance of security, features, and workflow that I've seen to date. You can find a write up, download, and purchasing information here:http://keyeslabs.com/joomla/index.php/projects/auto-app-licensing I'll be looking forward to the comments, suggestions, and death threats. -- 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 options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards
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 http://www.netmite.com/android/mydroid/donut/frameworks/base/graphics/java/android/graphics/drawable/NinePatchDrawable.java pskink -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] adb push and unicode filenames
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 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Issue in launching google Map
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-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to draw smooth gradients?
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, Bitmap.Config.ARGB_); Canvas canvas = new Canvas(bitmap); -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: ADT Problem: Creating new Android Project
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 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 a error - An SDK Target must be specified. The documentation states that - Under Target, select an Android target to be used as the project's Build Target. The Build Target specifies which Android platform you'd like your application built against. However in my case The Build Target section of the open dialog does not contain any text field or select dropdown, so I am not able to specify anything. Help in solving this is most appreciated. Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Max size of string array
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 May 3, 12:27 pm, niko20 nikolatesl...@yahoo.com wrote: Check your logcat to see if you have out of memory errors. Java Dalvik programs are hard limited to 16Megs. -niko On May 3, 10:53 am, Jose Gomez j...@josecgomez.com wrote: Not quite sure how they handle regular old arrays in the implementation of android. But List has never given me any problems. Sincerely Jose C Gomez http://www.josecgomez.com On Mon, May 3, 2010 at 11:49 AM, Alain aarn...@gmail.com wrote: I am usingString[] String[] items = getResources().getStringArray(R.array.arrayname); I will try ListString Why wouldString[] be limited in the number of items? Thanks On May 3, 10:34 am, Jose Gomez j...@josecgomez.com wrote: Are you usingString[] or ListString ? If using ListString it should basically be unlimited. Sincerely Jose C Gomez http://www.josecgomez.com On Mon, May 3, 2010 at 9:47 AM, Alain aarn...@gmail.com wrote: I have astring-array with 2000 items, each item can be 60 characters long, the program crashes when it tries to load the completestring- array. Then I split thestring-array in 4 sections, and the program loads each section with no problem. My question, what's the max number of items in astringarray? Is that device or sdk level dependent? Can it be changed? -- 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.comandroid-developers%2Bunsubs cr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252Bu nsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group athttp:// groups.google.com/group/android-developers?hl=en -- 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.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Device Seeding Program for Top Android Market Developers
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: Bleh. :-P Well I never! =P - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: save (complex?) application state to bundle
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 part of my creature I can't seem to see a workaround. You don't have to serialize out every single part of an object - only those parts which contain it's current state. In this case you would care about which image was currently displayed, so you'd save an index or ID for that image. The images themselves don't need to be serialized out since they don't change. Just reload them as necessary. ----- TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking -- 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 options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Device Seeding Program for Top Android Market Developers
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 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Device Seeding Program for Top Android Market Developers
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! - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: save (complex?) application state to bundle
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. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Toast on Top of ListView?
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 showing the toast. Look at the rest of the stracktrace and double check your logic. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Simple LinearLayout doesn't work
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. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Adding child views
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 -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards
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 npd2 = new NinePatchDrawable(bmp, bmpChunks, npd.getBounds(), fin2.9.png); i didnt know what to give as the 3rd and 4th parameter to NinePatchDrawable construcor so the third parameter ie Rect was a rectangle returned by the same button drawable object which was created earlier. My bitmap object bmp is getting created but the getNinePatchChunk() method is returning null. The doc for this function itself says :- Returns an optional array of private data, used by the UI system for some bitmaps. Not intended to be called by applications. So apparantly i am not getting a solution to this problem.. Is there any other way out .. :( :( Thanks, Alok On Wed, May 5, 2010 at 7:58 PM, skink psk...@gmail.com wrote: 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 http://www.netmite.com/android/mydroid/donut/frameworks/base/graphics/java/android/graphics/drawable/NinePatchDrawable.java pskink -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Adding child views
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 Android); layout.add(tv);//this can be any layout if you have linearlayout in ur xml file then //find it by LinearLayout layout=(LinearLayout)findViewById(R.id.main); You can do this in onclick event or a menu event upto you. This should work in general , you can play around with it. On Wed, May 5, 2010 at 10:26 AM, John Gaby jg...@gabysoft.com wrote: 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 -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en