[android-developers] Work with Cursors
Hi, I'm currently developing a small application for Android using a database. I have a table with 3 fields : day, month, year. When I retrieve them from the database, I use the following method : public Cursor getAllItems(){ return db.query(this.tableName, new String[]{ (...) day, month, year}, null, null, null, null, null); } And to populate a ListActivity, I use this method : public void bindData(){ Cursor c = db.getAllItems(); startManagingCursor(c); SimpleCursorAdapter adapter = new SimpleCursorAdapter(this, R.layout.list_item, c, new String[]{ (...) day, month, year}, new int[]{ (...) , R.id.TextDay, R.id.TextMonth, R.id.TextYear} ); setListAdapter(adapter); } And it works. Now, I would like to get those 3 fields and convert it into a specific Object I have written (let's call it MyDate ^^) How can I convert those 3 fields into one single string with my MyDate object ? (using toString()); I don't know if I'm very clear... :s Thanks for your 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: Please help me to choose Android Phones (For Android development)
This is a good analysis of which phones to consider for development. I also am ready to purchase a phone for testing of real-world apps (i.e. not for educational purposes). I have been advised by a couple of people to consider purchasing the ADP1 from Google. What are your views on using the ADP1 which is, moreover, an unlocked phone. Thanks On Nov 10, 10:17 am, SoftwareForMe.com SoftwareForMe.com softwareforme@gmail.com wrote: Personally, I find all Android phones to be excellent for development. However, here are some things I would consider before deciding. Let's consider these devices: HTC G1 HTC Magic HTC MyTouch HTC Hero HTC Eris Samsung Galaxy Samsung Moment Motorola Cliq Motorola Droid Given the choice of a device with or without a keyboard, I'd choose one with a keyboard. You can use the soft keyboard on a device with a hard keyboard, but not vice versa. This leave us with: HTC G1 Samsung Moment Motorola Cliq Motorola Droid Next, I would make Android 2.0 a priority. The Multi-touch API, Bluetooth API and others are key to the near-term feature of mobile development. Nobody seems to know for sure, but it's unlikely the G1 will get 2.0, so I would probably not consider it unless you hear differently. Next, 3D UIs are getting more important, so I'd want a phone that has decent accelerated 3D hardware. This eliminates the Samsung Galaxy, but leaves all others. Last there is screen size. Most smartphones are HVGA now (320x480), but WVGA (800 or 854 x 480) will be the standard soon. So, the best choice depends on what you want to do. If you only want to cover the basics and don't mind skipping a few capabilities or API's, then the cheapest or most rugged might be the best choice. If you want the best device to prepare students for all aspects of Android and mobile development, there's really no choice but the Motorola Droid, because of it's: * WVGA screen * Terrific hardware accelerated OpenGL * Android 2.0 * Hardware keyboard * Full set of sensors (has a proximity sensor) I hope this helps. Scott, SoftwareForMe.com On Mon, Nov 9, 2009 at 5:31 PM, Ash ashwin.disco...@gmail.com wrote: I'm new to android development. We need to buy around 20 phones for android development for our university. Please share your views and comments on the phone you think is good for Android development. 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 at http://groups.google.com/group/android-developers?hl=en -- Warm regards, The PhoneMyPC Team -- 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: Droid phone unable to recognize device
That's my setup: ubu...@wlka-64l3d4j:~$ cat /etc/udev/rules.d/11-android.rules SUBSYSTEM==usb, ATTRS{idVendor}==0bb4, ATTRS{idProduct}==0c02, MODE=0666, OWNER=ubuntu Trick is to put it before other rules so it gets precencdence ( hence: 11-android.rules ) Vendor ID and product id can be obtained from lsusb / dmesg , and owner has to be you. ( This is for HTC Hero ) -- 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: Launching appwidget from another application
Hi String, Thank you for the reply... Can you help me in implementing the createview function. Regards, Anand On Nov 10, 12:33 pm, String sterling.ud...@googlemail.com wrote: On Nov 10, 5:25 am, anand anand.ramasw...@wipro.com wrote: The scenario is that i am modifying the home screen in android and adding some buttons to it. When i click on any one button on the home screen,anappwidgethas to be started in the available screen space. If you're building your own home screen and want to run AppWidgets on it, my understanding is that you need to use the android.app.AppWidgetHost class, Take a look at it in the docs - it has methods like allocateAppWidgetId and createView which perform the widget-creation tasks. String -- 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] Android versions
Ok, I'm a bit behind the times here... I am still developing with version 1.5, level 3. 1) Should I install 2.0 and develop with that? My phone is a Hero with v1.5. 2) If I do install 2.0, do I need to upgrade the software on my phone? Will my apps still work? 3) Also, if I do install 2.0, should I install 1.6 first, and then upgrade to 2.0? Many thanks for any advice. -- 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: help me Installation error: INSTALL_FAILED_UPDATE_INCOMPATIBLE
You can't unless you are making your own device and therefore you own the platform private key. If you are building your own device then I suggest you might get more of a response in: http://groups.google.com/group/android-platform/topics or http://groups.google.com/group/android-porting/topics -- RichardC On Nov 10, 6:35 am, hehui he...@yulong.com wrote: how to sign the apk with the the platform certificate ? On Nov 10, 2:24 pm, hehui he...@yulong.com wrote: can you explain in detial ? On Nov 9, 8:48 pm, Ola stens...@gmail.com wrote: If you want to use android:sharedUserId=android.uid.system you have to sign your apk file with the platform certificate, i.e. the certificate your phone's software was built with. //O On Nov 6, 10:51 am, hehui he...@yulong.com wrote: when I add android:sharedUserId=android.uid.system to the AndroidManifest.xml file the project can not be installed on G2 . the error is Installation error: INSTALL_FAILED_UPDATE_INCOMPATIBLE who can help me ? Thanks in advance !- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - -- 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: Launching appwidget from another application
Thank you for the reply... Can you help me in implementing the createview function. Regards, Anand On Nov 10, 12:33 pm, String sterling.ud...@googlemail.com wrote: On Nov 10, 5:25 am, anand anand.ramasw...@wipro.com wrote: The scenario is that i am modifying the home screen in android and adding some buttons to it. When i click on any one button on the home screen,anappwidgethas to be started in the available screen space. If you're building your own home screen and want to run AppWidgets on it, my understanding is that you need to use the android.app.AppWidgetHost class, Take a look at it in the docs - it has methods like allocateAppWidgetId and createView which perform the widget-creation tasks. String -- 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: Launching appwidget from another application
Hi String, Thank you for the reply... Can you help me in implementing the createview function. Can you provide a sample code for the appwidgethost implementation Regards, Anand On Nov 10, 12:33 pm, String sterling.ud...@googlemail.com wrote: On Nov 10, 5:25 am, anand anand.ramasw...@wipro.com wrote: The scenario is that i am modifying the home screen in android and adding some buttons to it. When i click on any one button on the home screen,anappwidgethas to be started in the available screen space. If you're building your own home screen and want to run AppWidgets on it, my understanding is that you need to use the android.app.AppWidgetHost class, Take a look at it in the docs - it has methods like allocateAppWidgetId and createView which perform the widget-creation tasks. String -- 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: The application android has stopped unexpectedly
I created a new AVD. On emulator when the touch event is fired i get the same error: The application android has stopped unexpectedly. In my logcat window i have the following error messages: 11-10 01:43:24.144: DEBUG/dalvikvm(743): GC freed 987 objects / 79024 bytes in 99ms 11-10 01:43:24.324: DEBUG/AndroidRuntime(743): Shutting down VM 11-10 01:43:24.334: WARN/dalvikvm(743): threadid=3: thread exiting with uncaught exception (group=0x4001aa28) 11-10 01:43:24.334: ERROR/AndroidRuntime(743): Uncaught handler: thread main exiting due to uncaught exception 11-10 01:43:24.343: ERROR/AndroidRuntime(743): android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0 11-10 01:43:24.343: ERROR/AndroidRuntime(743): at android.database.AbstractCursor.checkPosition(AbstractCursor.java:580) 11-10 01:43:24.343: ERROR/AndroidRuntime(743): at android.database.AbstractWindowedCursor.checkPosition (AbstractWindowedCursor.java:172) 11-10 01:43:24.343: ERROR/AndroidRuntime(743): at android.database.AbstractWindowedCursor.getString (AbstractWindowedCursor.java:41) 11-10 01:43:24.343: ERROR/AndroidRuntime(743): at com.myapps.facts.Facts.onTouchEvent(Facts.java:237) 11-10 01:43:24.343: ERROR/AndroidRuntime(743): at android.app.Activity.dispatchTouchEvent(Activity.java:1990) 11-10 01:43:24.343: ERROR/AndroidRuntime(743): at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchTouchEvent(PhoneWindow.java:1696) 11-10 01:43:24.343: ERROR/AndroidRuntime(743): at android.view.ViewRoot.handleMessage(ViewRoot.java:1658) 11-10 01:43:24.343: ERROR/AndroidRuntime(743): at android.os.Handler.dispatchMessage(Handler.java:99) 11-10 01:43:24.343: ERROR/AndroidRuntime(743): at android.os.Looper.loop(Looper.java:123) 11-10 01:43:24.343: ERROR/AndroidRuntime(743): at android.app.ActivityThread.main(ActivityThread.java:4203) 11-10 01:43:24.343: ERROR/AndroidRuntime(743): at java.lang.reflect.Method.invokeNative(Native Method) 11-10 01:43:24.343: ERROR/AndroidRuntime(743): at java.lang.reflect.Method.invoke(Method.java:521) 11-10 01:43:24.343: ERROR/AndroidRuntime(743): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:791) 11-10 01:43:24.343: ERROR/AndroidRuntime(743): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549) 11-10 01:43:24.343: ERROR/AndroidRuntime(743): at dalvik.system.NativeStart.main(Native Method) Where am i wrong? Is there something wrong with the Cursor position? How to resolve the issue? Please guide.Thanks On Nov 8, 12:20 pm, Mark Murphy mmur...@commonsware.com wrote: Maxood wrote: Now for the SD Card, do i have to provide the file size or should i browse the file location and provide the path in the second option? That is up to you. Unless you have an existing SD card image to work with, the former option is probably simplest. And what about Skin and Hardware? Should i leave them as they are and carry on with default values? That is up to you. You probably should be creating several AVDs to test on different screen sizes. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android App Developer Training:http://commonsware.com/training -- 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 in service implementation
im implementing an exchange server client. Now i have to monitor the accounts , in the system, for new mails. For that i need to keep running the service, which in turn will trigger a ping command (exchange specific) to find out any new mails.Now my problem is i need to run a separate thread for each account. How should i use services effectively in this type of situations, where i need to do some work continously. Hope im able to describe the requirement clearly. 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] RTSP Issue in Android
Hi Friends, I need some help in one of the issue I am facing in android emulator. I am trying to stream a video from a streaming server I am using Darwin Streaming Server. The video plays well when I give a source referring to a video on some http server. But when I give a source referring to rtsp on my local system it does not plays but the strange thing is that the progress bar shows progress when I click play. Can you tell me what might be the problem exactly. I need it urgently. Please do look at my code also it is pretty straight forward. --- -- VideoView mVideoView = (VideoView) findViewById(-); mVideoView.setVideoPath(http/rtsp source...); mVideoView.setMediaController(new MediaController(this)); mVideoView.requestFocus(); mVideoView.start(); I have read it in some forums that RTSP does not work in emulators due to some firewall issues but works well on actual device but could not draw a conclusion from that. I am using Android 2.0 platform. Thanks -- Regards Dileep Kumar Mobile: 9963026645 -- 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] Using the new VcardComposer with specific feilds for the VCF
HI , I am using the new VcardComposer in 2.0 version. I am trying to create a Vcard that i will choose the feilds that will come out from it . for example : I want to create a Vcard from a specific Contact that will not include the Feild NOTE: . How can i do that ? , in the prevoise VcardComposer we could change the struct that it use to create the Vcard, With the new one it is simplified but without a feature to create a Vcard with the feilds that you choose. Does any one know how can i do that ? Thanks, Tom -- 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] Map not displaying in 1.6
Hi, In 1.6 sdk, map is not displaying, i put all the permissions and uses- library in manifest, added the external map.jar from add-on... created AVD manager with google-API 4 But when runnning, its showing 11-10 15:31:00.255: ERROR/AndroidRuntime(1587): Uncaught handler: thread main exiting due to uncaught exception 11-10 15:31:00.295: ERROR/AndroidRuntime(1587): java.lang.NoClassDefFoundError: com.nithin.ViewMap 11-10 15:31:00.295: ERROR/AndroidRuntime(1587): Caused by: java.lang.IllegalAccessError: cross-loader access from pre-verified class Thanks Nithin -- 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: Map not displaying in 1.6
This happened to me once, and it was because I had forgotton to specify the 'maps' avd when setting up the project - so the maps apis had not been included in the path. Hope that helps at all. -- 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: Map not displaying in 1.6
Thanks Neilz, for thw quick reply... i solved now.. the problem was, i added, external map.jar and google api 4 , so 2 references... now displaying properly... Thanks Nithin On Nov 10, 3:20 pm, Neilz neilhorn...@googlemail.com wrote: This happened to me once, and it was because I had forgotton to specify the 'maps' avd when setting up the project - so the maps apis had not been included in the path. Hope that helps at all. -- 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] Error while compiling native apps.
after make i get errror: /home/opt/platform/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/lib/gcc/ arm-eabi/4.2.1/interwork/libgcc.a -lc -lm -lm -lssl -lcrypto -lmedia /home/opt/platform/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin/../ lib/gcc/arm-eabi/4.2.1/../../../../arm-eabi/bin/ld: cannot find -lssl collect2: ld returned 1 exit status that means ssl lib is not found ?! How can i fix this ? I have centos and android-ndk-1.6r and android src. -- 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: The application android has stopped unexpectedly
I'm also getting the following messages in my logcat window: 11-10 02:08:35.722: INFO/Process(571): Sending signal. PID: 769 SIG: 3 11-10 02:08:35.722: INFO/dalvikvm(769): threadid=7: reacting to signal 3 11-10 02:08:35.722: ERROR/dalvikvm(769): Unable to open stack trace file '/data/anr/traces.txt': Permission denied 11-10 02:08:35.783: WARN/WindowManager(571): No window to dispatch pointer action 1 11-10 02:08:36.872: INFO/Process(769): Sending signal. PID: 769 SIG: 9 11-10 02:08:36.882: INFO/ActivityManager(571): Process com.myapps.facts (pid 769) has died. 11-10 02:08:36.902: INFO/WindowManager(571): WIN DEATH: Window {438db578 com.myapps.facts/com.myapps.facts.Facts paused=false} 11-10 02:08:36.943: WARN/UsageStats(571): Unexpected resume of com.android.launcher while already resumed in com.myapps.facts 11-10 02:08:37.142: WARN/InputManagerService(571): Got RemoteException sending setActive(false) notification to pid 769 uid 10023 Whats the issue? On Nov 8, 12:20 pm, Mark Murphy mmur...@commonsware.com wrote: Maxood wrote: Now for the SD Card, do i have to provide the file size or should i browse the file location and provide the path in the second option? That is up to you. Unless you have an existing SD card image to work with, the former option is probably simplest. And what about Skin and Hardware? Should i leave them as they are and carry on with default values? That is up to you. You probably should be creating several AVDs to test on different screen sizes. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android App Developer Training:http://commonsware.com/training -- 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] Getting red square using Google Map
Hi, I am getting a red square on the bottom left when opening goggle map on device using Google Api's. This thing is not happening on emulator but is occurring on device..Please help me to get rid of this square. thanks, Ankit Aggarwal -- 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] Very Urgent
Hello btn.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { String _lat=lat.getText().toString(); String _lon=lon.getText().toString(); Uri uri=Uri.parse(geo:+_lat+,+_lon); //Uri smsuri = Uri.parse(content://sms/inbox/12); startActivity(new Intent(Intent.ACTION_VIEW, uri)); } }); This code is not running in android-sdk1.5 but in 0.9 . Please give me appropriate code . I want to display the google map. Thanks in advance. Suman Ganguly. -- 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 the caller name which displays on the incoming call screen
Hi, Suppose my application xyz stores a few contacts(just like in the address book/ telephone book). Other contacts are by-default stored in my Android address book. Suppose I receive a call on the handset with my app xyz running in the background. All I need is to fetch the Caller's name from the application xyz and display this name as Akash Calling... instead of +91... calling... assuming that caller's details are present in the application say, his name and none of his details in the actual address book. Is this feasible. If yes, kindly suggest. 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] how to get the caller name which displays on the incoming call screen
Hi, Suppose my application xyz stores a few contacts(just like in the address book/ telephone book). Other contacts are by-default stored in my Android address book. Suppose I receive a call on the handset with my app xyz running in the background. All I need is to fetch the Caller's name from the application xyz and display this name as Akash Calling... instead of +91... calling... assuming that caller's details are present in the application say, his name and none of his details in the actual address book. Is this feasible. If yes, kindly suggest. 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: Closing more than one activity in the activity stack
Hi Simz, Here is the code to navigate back to the home screen and it will closes all running Activities. May this helps you. Intent myIntent = new Intent(YourCurrentActivity.this, YourHomeScreenActivity.class); myIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(myIntent); Bye -- 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: disable GPS
Hi Nemat, AFIK there is no way Enable/Disable GPS programatically. We can only do is show the user location settings screen directly. Here is the code.. startActivity(new Intent (android.settings.LOCATION_SOURCE_SETTINGS)); Bye... -- 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] Handling back button with Soft keypad
http://developer.android.com/reference/android/view/View.html#onKeyPreIme(int, android.view.KeyEvent) On Fri, Nov 6, 2009 at 10:07 AM, gshetty gshett...@gmail.com wrote: Hi I have a simple edit control in my application and as expected the soft keypad comes up on tapping it. Now what I want to do is that when the user presses the back button, the activity should quit immediately without the soft keypad going down first. On handling the key event in my activity i found that the first 'Back' event is consumed by the keyboard and it does not even reach the activity. However once the soft keypad goes down, the events can be handled in my activity. Is there any way to override this behavior so that the back button first reaches my activity and I can quit immediately. Regards gshetty -- 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 -- 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 at http://groups.google.com/group/android-developers?hl=en
[android-developers] Every time one new instance instance is not created for standard launch mode activity???
Hi all, I have two activities in my application and both have different affinities . One activity is launcher and another one is normal one.The normal activity has standard launch mode . In this scenario i am trying to activate normal activity from launcher activity for more than once , by using FLAG_ACTIVITY_NEW_TASK intent object without destroying any normal activity instance from it's activity stack. But at any time i have only one instance of normal activity in it's own task. As per documentation in android official web site ,When ever An activity of standard launch mode, is called from other components, New instance of that activity should be created each time . Why is it behaving like that?? Am i missing any thing. -- 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: Read Phone Contact in Vcard Format in Android or retrieve All the contacts values2.0
Hi, How can i retrieve all the contact values in Android 2.0 API level 5. I have retrieved all the contact values in Android 1.5 API level 3, need help for Android 2.0. Thanks and Regards, Sarfaraz Madhia. On Nov 6, 5:12 pm, Safy sarfarazmad...@gmail.com wrote: Hi, How can I read all the contacts from Phone book and covert it in VCard format in Android OS 2.0 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] High number of Charge backs?
Have any application developers gotten charge backs over the past few days from google checkout? I have 6 apps in the market that are rated at least 4/5, and have never had a charge back before, but over the past two days I have had 5! That means $15 came out of my pocket the past 2 days! I have been selling apps since February and never had a charge back, and all of a sudden I have had 5. Just wondering if I am alone in this situation. Thanks, Chuck -- 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] Drawable.createFromStream() and OutOfMemoryError exception
Hi, Would you please help me how to handle the memory leak on Drawable.createFromStream()? I am receiving a base64 image from a webservice. And I decode it using Apache lib. After that I convert it to drawable through Drawable.createFromStream(). But when the image size is bit larger (~350kb) it starts throwing OutOfMemoryError exception. Ok, I can handle this by catching this exception. But eventually after catching 2 or 3 such exceptions the heap is full and it start throwing exceptions for other methods and for small images as well. The relevant code snip is given below. byte[] arr = null; InputStream imageStream = null; try { arr = Base64.decodeBase64(result.getScreenShot().getBytes()); imageStream = new BufferedInputStream(new ByteArrayInputStream(arr)); TJCAppDetail.this.screenShotDrawable = Drawable.createFromStream(imageStream, src); screenShot.setImageDrawable(screenShotDrawable); } catch (OutOfMemoryError outOfMemoryError) { arr = null; imageStream = null; if (screenShotDrawable != null) { screenShotDrawable.setCallback(null); if (((BitmapDrawable) screenShotDrawable).getBitmap() != null) ((BitmapDrawable) screenShotDrawable).getBitmap().recycle(); } Log.e(TJC_EXCEPTION, outOfMemoryError.getMessage()); } -- Best Regards, Atif Gulzar I Unicode, ɹɐzlnƃ ɟıʇɐ -- 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: AudioTrack usage with streaming data in native code
HElp!! Is there anyone know how many size of data i need to fill into AudioTrack write()? Please Help Big Thanks!! 2009/11/9 DuncanLee aqaqaq...@gmail.com Dear All, I connect one streaming application voice output to android AudioTrack in native code layer (C code). But I can heard voice loop. if i put each frame(160bytes) to AudioTrack write() in each callback, i will get a bad quality voice from earphone. if i collect more frame(ex:3200, 6400bytes) to AudioTrack, i can hear clear voice with these 3200bytes but i can hear voice loop, it loops a piece of the voice. it looks like buffer empty. Question 1: Is there any correct size i should fill into write() in each EVENT_MORE_DATA callback Question 2: When i play stream data some times, framesAvail in obtainBuffer() will getting negative number Thanks for your BIG BIG help!!! it's pretty urgent to me~~~ BR, Duncan Lee -- 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] Retrieve All Contact Details using API level 5 Android 2.0
Hi, How can I retrieve all the details from the Phone Contacts using API level 5 Android 2.0. I have done retrieved all the contact details using API level 3 Android 1.5, but need help for Android 2.0. I also used syncml library to convert it into VCard format for API level 3, how can i achieve this functionality in Android 2.0. 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] Push Notification
If two or more applications are installed on the phone and those are using broadcast receiver to listen and some message comes .Now in case of push notification how can we distinguish the incoming message is for which application? -- 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: Delivery Status Notification (Failure)
Hey, sorry to ask what is probably an obvious question but how on an android phone can you get the ip of the phone using java. -- 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: onSearchRequested() doesn't call search activity in 1.5
Hi, I'm now trying this on a more complicated app. It doesn't work. On the 1.5 emulator, nothing happens when onSearch() is called. On the HTC Magic, the Google Search box appears. The manifest is the same as my test app that works. On Nov 10, 12:13 am, Miguel Paraz mpa...@gmail.com wrote: Hi, Found. I missed the intent receiver in the activity definition: intent-filter action android:name=android.intent.action.SEARCH / category android:name=android.intent.category.DEFAULT / /intent-filter On Oct 18, 11:22 am, junker37 junke...@gmail.com wrote: Any ideas? I am attempting the same thing right now with 1.5 and am seeing the same behavior. On Oct 8, 6:42 am, MiguelParazmpa...@gmail.com wrote: Hi, The 1.5 AVD doesn't seem to follow the documentation in:http://developer.android.com/reference/android/app/SearchManager.html which says it's enough to callonSearchRequested() to call thesearch activity. I need to call startSearch() to make it work. However, when I check the source code of Activity.java, onSearchRequested() does call startSearch(). This works in 1.6. Is this a bug in 1.5, or did I miss something? 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] Push Notification
If two or more applications are installed on the phone and those are using broadcast receiver to listen and some message comes .Now in case of push notification how can we distinguish the incoming message is for which application? What exactly are you considering a push notification with respect to Android? -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- 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: Transfer file between phone
Hey, sorry to ask what is probably an obvious question but how on an android phone can you get the ip of the phone using java. On Tue, Nov 10, 2009 at 12:36 AM, Jason Proctor jason.android.li...@gmail.com wrote: what is chucking of data? do you mean chunking? not sure what you mean. the included Apache HTTP client works all right, but i had some problems syncing cookies with WebKit, so i ended up rolling my own HTTP for Android. never looked back... Thanks guys you have been a big help. One last question if you use the HTTPClient for android do you have to deal with problems such as chucking of data. On Tue, Nov 10, 2009 at 12:15 AM, Roman ( T-Mobile USA) mailto:roman.baumgaert...@t-mobile.comroman.baumgaert...@t-mobile.com wrote: As Jason suggested you can write a simple protocol which finds out about the clients within your wireless LAN. Something like + clients which are interested to be part of the file transfer within your WLAN are listening to the LAN broadcast ip address + sender sends out a request to all clients which are interested in receiving the file + all clients interested are responding back with their IP address + start your file transfer (ftp or http post) using the client IP address (if you have multiple clients you can loop through the list of clients) Note: you could also use the broadcast IP (more efficient) address for the file transfer but then everyone on the wireless LAN could receive the file. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Nov 9, 3:47 pm, Jason Proctor mailto:jason.android.li...@gmail.comjason.android.li...@gmail.com wrote: you could broadcast on a known port number to find each other, then once you've done that, use HTTP GET/PUT on another known port. HTTP servers are pretty easy to write, and there is a client in the Android SDK. Roman, Thanks for the response. What I am trying to do is, write a program be able to send a file of any type (but probably an mp3) from one android phone to another android phone. The two phone will only be a few meters apart if that. Bluetooth was not working very well I was just getting a lot of problems. Both phone are using android 1.5 do you have any tips on setting ftp client/server and android. Thanks and Regards Mike On Mon, Nov 9, 2009 at 8:47 PM, Abhi mailto:mailto:abhishek.r.sha...@gmail.com abhishek.r.sha...@gmail.commailto:abhishek.r.sha...@gmail.com abhishek.r.sha...@gmail.com wrote: Hi Romain, To add to my above note, the preferred wireless connection would be Wi- Fi and not Bluetooth. Is there a way to find out what devices are connected to your WLAN? Like how we do a scan for Wireless Access Points. Is there a way by which these Wireless devices can share MAC addresses to identify each other? Thanks, Abhi On Nov 9, 1:59 pm, Abhi mailto:mailto:abhishek.r.sha...@gmail.com abhishek.r.sha...@gmail.commailto:abhishek.r.sha...@gmail.com abhishek.r.sha...@gmail.com wrote: Hi, I am trying to do a similar thing but not between two phones. I am trying to accomplish wireless printing to my home wireless printer. Could you please guide me through to the initial steps? Thanks, Abhi On Nov 9, 1:50 pm, Roman ( T-Mobile USA) roman.baumgaert...@t- http://mobile.comhttp://mobile.comhttp://mobile.commobile.com wrote: You can write a ftp like client/server application. Use TCP socket communication for the file transfer application. If you are in the same network you have not to worry about too much. If you try to do a file transfer on cellular things get more complicated. Let me know what you exactly are trying to accomplish. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Nov 8, 10:00 am, Mike88 mailto:mailto:michael...@gmail.commichael...@gmail.commailto: michael...@gmail.commichael...@gmail.com wrote: Hello, Can some give me advice on what I could use to write code to transfer a file from one phone to another.- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to mailto:mailto:android-developers@googlegroups.com android-developers@googlegroups.commailto:
[android-developers] Very Urgent
Hello The MapActivity class is not resolving. The code is :: import com.google.android.maps.MapActivity; import com.google.android.maps.MapView; import android.os.Bundle; public class testandroid extends MapActivity { /** Called when the activity is first created. */ public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } protected boolean isRouteDisplayed() { return false; } } I cant override MapActivity class. This class is not resolved here. in xml i have added RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent com.google.android.maps.MapView android:id=@+id/mapView android:layout_width=fill_parent android:layout_height=fill_parent android:enabled=true android:clickable=true android:apiKey=0AmbFGlyCruwUkWjivbCgh-Gn9sxpeSPOJv_Aaw / /RelativeLayout Please help me as soon as possible. Thanks Suman Ganguly -- 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: Very Urgent
As opposed to 0.9, in 1.5 (and later), the Maps API is separated from the Android SDK. You need to include that explicitly, or packaged with the SDK. Documentation here: http://code.google.com/android/add-ons/google-apis/maps-overview.html On Nov 10, 3:28 am, IPEG Student ipeg.stud...@gmail.com wrote: Hello btn.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { String _lat=lat.getText().toString(); String _lon=lon.getText().toString(); Uri uri=Uri.parse(geo:+_lat+,+_lon); //Uri smsuri = Uri.parse(content://sms/inbox/12); startActivity(new Intent(Intent.ACTION_VIEW, uri)); } }); This code is not running in android-sdk1.5 but in 0.9 . Please give me appropriate code . I want to display the google map. Thanks in advance. Suman Ganguly. -- 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] Ok to measure widgets before display?
The correct thing to do is write your own layout manager that does the measurement and layout at the appropriate places. On Tue, Nov 10, 2009 at 6:00 AM, Mark Wyszomierski mar...@gmail.com wrote: Hi, I need to find out how wide a button with particular text will be before displaying a layout. Is this a valid way of doing it behind the scenes?: LinearLayout lll = new LinearLayout(getContext()); Button btn = new Button()); btn.setText(wonderful!); lll.addView(tvs); lll.measure(1000, 1000); lll.layout(0, 0, 1000, 1000); int width = btn.getWidth(); I have other UI components that have to all be the same width in my layout, as whatever this one button is (the other widgets are placed all over the UI and I can't use any other layout methods to force them to be the same size). So I thought I could create this temporary layout, add my fake button, measure it to get its width, then use that value on all other controls. Right now I'm doing the same thing only in onWindowFocus(), but this happens after the layout has been displayed once, which I'd like to avoid, 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 -- 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 at http://groups.google.com/group/android-developers?hl=en
[android-developers]How to move homescreen focus to specific widget?
Hi, I'm writing a appwidget and hope to limit a widget can be added only once on homescreen, and for further trying, i hope to show the correct page of homescreen to show the widget, just like native media player widget. any suggest on how to do this?? TIA, Ollie -- 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: Drawable.createFromStream() and OutOfMemoryError exception
seems this is a reported bug? http://code.google.com/p/android/issues/detail?id=294 -- Best Regards, Atif Gulzar I Unicode, ɹɐzlnƃ ɟıʇɐ On Tue, Nov 10, 2009 at 5:51 PM, Atif Gulzar atif.gul...@gmail.com wrote: Hi, Would you please help me how to handle the memory leak on Drawable.createFromStream()? I am receiving a base64 image from a webservice. And I decode it using Apache lib. After that I convert it to drawable through Drawable.createFromStream(). But when the image size is bit larger (~350kb) it starts throwing OutOfMemoryError exception. Ok, I can handle this by catching this exception. But eventually after catching 2 or 3 such exceptions the heap is full and it start throwing exceptions for other methods and for small images as well. The relevant code snip is given below. byte[] arr = null; InputStream imageStream = null; try { arr = Base64.decodeBase64(result.getScreenShot().getBytes()); imageStream = new BufferedInputStream(new ByteArrayInputStream(arr)); TJCAppDetail.this.screenShotDrawable = Drawable.createFromStream(imageStream, src); screenShot.setImageDrawable(screenShotDrawable); } catch (OutOfMemoryError outOfMemoryError) { arr = null; imageStream = null; if (screenShotDrawable != null) { screenShotDrawable.setCallback(null); if (((BitmapDrawable) screenShotDrawable).getBitmap() != null) ((BitmapDrawable) screenShotDrawable).getBitmap().recycle(); } Log.e(TJC_EXCEPTION, outOfMemoryError.getMessage()); } -- Best Regards, Atif Gulzar I Unicode, ɹɐzlnƃ ɟıʇɐ -- 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] Ok to measure widgets before display?
Hi, I need to find out how wide a button with particular text will be before displaying a layout. Is this a valid way of doing it behind the scenes?: LinearLayout lll = new LinearLayout(getContext()); Button btn = new Button()); btn.setText(wonderful!); lll.addView(tvs); lll.measure(1000, 1000); lll.layout(0, 0, 1000, 1000); int width = btn.getWidth(); I have other UI components that have to all be the same width in my layout, as whatever this one button is (the other widgets are placed all over the UI and I can't use any other layout methods to force them to be the same size). So I thought I could create this temporary layout, add my fake button, measure it to get its width, then use that value on all other controls. Right now I'm doing the same thing only in onWindowFocus(), but this happens after the layout has been displayed once, which I'd like to avoid, 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] Re: Push Notification
port sms maybe ? On Nov 10, 2:14 pm, Mark Murphy mmur...@commonsware.com wrote: If two or more applications are installed on the phone and those are using broadcast receiver to listen and some message comes .Now in case of push notification how can we distinguish the incoming message is for which application? What exactly are you considering a push notification with respect to Android? -- Mark Murphy (a Commons Guy)http://commonsware.com Android App Developer Books:http://commonsware.com/books.html -- 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: ADC2 Judging App FC
For the records, it's also happening to me. G1 with recently updated Android 1.6. Could be that ADC2 Judging application doesn't like the new market application? On Mon, Nov 9, 2009 at 23:00, CraigsRace craig...@gmail.com wrote: I did also get stuck once where it just refused to install the app (opening market / rebooting / ... didn't work) and all I could do was press skip. Luckily, there are only 200 apps, so after a few days of judging, the app came around again. On Nov 10, 11:53 am, gjs garyjamessi...@gmail.com wrote: Hi, Actually I reboot the phone every day ( to conserve battery overnight ) and I only have about four market apps installed of which maybe one uses background services sometimes (rarely). When I check internal phone storage it says I have 41.9MB available ( and 395MB free on sdcard ) so I do not think it is a lack of memory issue... I still just get FC each time run the ADC2 app, as I described, even immediately after reboot. Regards On Nov 9, 9:54 pm, Nyll codingcave...@googlemail.com wrote: I think the problem is related to your phone running low on memory and a background service/activity needed by the ADC2 app gets killed to reclaim memory. If you restart your phone, you should be able to review again without the force closes (at least until you run out of memory again :) On Nov 8, 10:27 pm, gjs garyjamessi...@gmail.com wrote: Hi, I'm using t-mobile g1 with (production) Android 1.6, EVERY time I have tried to use the updated ADC2 judging app, for the final round, I get - Sorry! The application Market (process com.android.vending) has stopped unexpectedly. Please try again. [Force close] - after pressing install button or the install manually button for the presented app, I have also tried starting the Market app and rebooting but I still continue to get the same error. I have NOT been able to review/judge a single adc2 final round app. I have NOT tried pressing the skip menu button, nor will I as I want to review the 1st app presented... Following is the dubug output and this is after I have confirmed that the Browser app is able to connect to the internet correctly (using wifi). Regards 11-09 08:47:52.623: INFO/Process(400): Sending signal. PID: 400 SIG: 9 11-09 08:47:52.656: INFO/WindowManager(76): WIN DEATH: Window{432f16b0 com.android.vending/com.android.vending.AssetInfoActivity paused=false} 11-09 08:47:52.656: INFO/ActivityManager(76): Process com.android.vending (pid 400) has died. 11-09 08:47:52.666: INFO/WindowManager(76): WIN DEATH: Window{433d21f0 Attention paused=false} 11-09 08:47:52.716: INFO/ActivityManager(76): Start proc com.android.vending for activity com.android.vending/.AssetInfoActivity: pid=446 uid=10016 gids={3003} 11-09 08:47:52.836: INFO/dalvikvm(446): Debugger thread not active, ignoring DDM send (t=0x41504e4d l=38) 11-09 08:47:52.876: INFO/dalvikvm(446): Debugger thread not active, ignoring DDM send (t=0x41504e4d l=42) 11-09 08:47:52.956: INFO/ActivityThread(446): Publishing provider com.android.vending.SuggestionsProvider: com.android.vending.SuggestionsProvider 11-09 08:47:53.376: WARN/ActivityManager(76): Activity pause timeout for HistoryRecord{433760a0 com.android.vending/.AssetInfoActivity} 11-09 08:47:53.686: DEBUG/dalvikvm(446): GC freed 3766 objects / 297680 bytes in 110ms 11-09 08:47:54.276: INFO/ActivityManager(76): Displayed activity com.android.vending/.AssetInfoActivity: 1612 ms (total 1612 ms) 11-09 08:47:55.546: WARN/dalvikvm(446): threadid=19: thread exiting with uncaught exception (group=0x4001da28) 11-09 08:47:55.546: ERROR/AndroidRuntime(446): Uncaught handler: thread AsyncTask #1 exiting due to uncaught exception 11-09 08:47:55.556: ERROR/AndroidRuntime(446): java.lang.RuntimeException: An error occured while executing doInBackground() 11-09 08:47:55.556: ERROR/AndroidRuntime(446): at android.os.AsyncTask$3.done(AsyncTask.java:200) 11-09 08:47:55.556: ERROR/AndroidRuntime(446): at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java: 234) 11-09 08:47:55.556: ERROR/AndroidRuntime(446): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:258) 11-09 08:47:55.556: ERROR/AndroidRuntime(446): at java.util.concurrent.FutureTask.run(FutureTask.java:122) 11-09 08:47:55.556: ERROR/AndroidRuntime(446): at java.util.concurrent.ThreadPoolExecutor$Worker.runTask (ThreadPoolExecutor.java:648) 11-09 08:47:55.556: ERROR/AndroidRuntime(446): at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:673) 11-09 08:47:55.556: ERROR/AndroidRuntime(446): at java.lang.Thread.run(Thread.java:1060) 11-09 08:47:55.556:
[android-developers] twitter integration for android
i want to integrate twitter with android, please tell me what is the best way to implement this, i am new to androind. 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] twitter integration for android
i want to integrate twitter with android, please tell me what is the best way to implement this, i am new to androind. I use the JTwitter JAR in a few book samples. I removed the org.json classes from the JTwitter JAR, since Android ships with org.json and I get nervous about having duplicate classes. Otherwise, for me, it works like a champ. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- 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 versions
The version 2.0 SDK includes all the older SDK(s), although some of them will need to be downloaded after you install it. When you have installed the 2.0 SDK and fixed any paths etc. run the Android command; this will run a small application that will let you download the older SDK(s) into the correct folders in the 2.0 platform tree. You can remove the older 1.5 and 1.6 SDK's when you have the 2.0 SDK installed. There is no need to update your phone (unless you want to) and any testing you need to do against 1.6 and 2.0 can be done in the emulators. -- RichardC On Nov 10, 9:37 am, Neilz neilhorn...@googlemail.com wrote: Ok, I'm a bit behind the times here... I am still developing with version 1.5, level 3. 1) Should I install 2.0 and develop with that? My phone is a Hero with v1.5. 2) If I do install 2.0, do I need to upgrade the software on my phone? Will my apps still work? 3) Also, if I do install 2.0, should I install 1.6 first, and then upgrade to 2.0? Many thanks for any advice. -- 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 versions
If you do not need ot use 1.6 or 2.0 feature than you should upgrade to 1.6 so that your screen layouts and etc are correct on WVGA devices etc.. which means after you downlaod the sdk use the new 2.0 downloader via eclipse adt 0.9.4 There is a post on the developer blog about switching to 1.6 screen sizes that gives you the run down on what to change.. You can still maintain a copy at api 3 level to test on your hero until your hero gets the 1.6 update in your part of the World which I imagine should be shortly Fred Grott Android Developer http://mobilebytes.wordpress.com On Nov 10, 3:37 am, Neilz neilhorn...@googlemail.com wrote: Ok, I'm a bit behind the times here... I am still developing with version 1.5, level 3. 1) Should I install 2.0 and develop with that? My phone is a Hero with v1.5. 2) If I do install 2.0, do I need to upgrade the software on my phone? Will my apps still work? 3) Also, if I do install 2.0, should I install 1.6 first, and then upgrade to 2.0? Many thanks for any advice. -- 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] SIGSEGV 11 OpenGL - Only on Droid, not 2.0 Emulator
We are getting a SIGSEGV 11 when launching our OpenGL activity. Here is the logcat. It appears to happen on Droid Hardware, but not the 2.0 Emulator. We are trying to do some testing to see if we can slowly build up some code to cause a crash. Anyone else have any ideas? 11-09 21:52:35.981: INFO/ActivityManager(1015): Starting activity: Intent { cmp=com.froogloid.android.cowpotato/.CowPotatoPlay (has extras) } 11-09 21:52:35.981: WARN/UsageStats(1015): Failed to persist new stats 11-09 21:52:36.005: DEBUG/AudioHardwareMot(987): AudioMgrutput 0x11b68 exiting standby 11-09 21:52:36.130: DEBUG/dalvikvm(4852): GC freed 4868 objects / 337592 bytes in 60ms 11-09 21:52:36.177: VERBOSE/Localytics_Session(4852): Reconnected to existing session 11-09 21:52:36.192: DEBUG/SensorManager(4852): found sensor: LIS331DLH 3-axis Accelerometer, handle=0 11-09 21:52:36.192: DEBUG/SensorManager(4852): found sensor: AK8973 3- axis Magnetic field sensor, handle=1 11-09 21:52:36.192: DEBUG/SensorManager(4852): found sensor: AK8973 Temperature sensor, handle=3 11-09 21:52:36.192: DEBUG/SensorManager(4852): found sensor: SFH7743 Proximity sensor, handle=4 11-09 21:52:36.192: DEBUG/SensorManager(4852): found sensor: Orientation sensor, handle=2 11-09 21:52:36.192: DEBUG/SensorManager(4852): found sensor: LM3530 Light sensor, handle=5 11-09 21:52:36.200: VERBOSE/Localytics_uploader(4852): Attempting to upload 1 files. 11-09 21:52:36.622: VERBOSE/Localytics_uploader(4852): Upload complete. Status: 202 11-09 21:52:36.997: DEBUG/CHE(4852): GameLoop.start() 11-09 21:52:37.012: DEBUG/libEGL(4852): loaded /system/lib/egl/ libGLES_android.so 11-09 21:52:37.012: DEBUG/libEGL(4852): loaded /system/lib/egl/ libEGL_POWERVR_SGX530_121.so 11-09 21:52:37.020: DEBUG/CHE(4852): resetUpdateTimer() 11-09 21:52:37.184: DEBUG/libEGL(4852): loaded /system/lib/egl/ libGLESv1_CM_POWERVR_SGX530_121.so 11-09 21:52:37.192: DEBUG/libEGL(4852): loaded /system/lib/egl/ libGLESv2_POWERVR_SGX530_121.so 11-09 21:52:37.864: INFO/ActivityManager(1015): Displayed activity com.froogloid.android.cowpotato/.CowPotatoPlay: 1809 ms (total 1809 ms) 11-09 21:52:37.864: WARN/UsageStats(1015): Failed to persist new stats 11-09 21:52:38.286: VERBOSE/Localytics_Session(4852): Close event written. 11-09 21:52:38.309: VERBOSE/Localytics_uploader(4852): Attempting to upload 1 files. 11-09 21:52:38.466: DEBUG/CHE(4852): GameRenderer.onSurfaceCreated() 11-09 21:52:38.466: DEBUG/CHE(4852): GLMesh.useVBODefault = true 11-09 21:52:38.466: DEBUG/CHE(4852): GameLoop.onPause() 11-09 21:52:38.466: DEBUG/CHE(4852): onPause() at 20446 11-09 21:52:38.653: DEBUG/dalvikvm(4852): GC freed 4585 objects / 682608 bytes in 66ms 11-09 21:52:38.809: DEBUG/dalvikvm(4852): GC freed 1439 objects / 273336 bytes in 50ms 11-09 21:52:38.825: VERBOSE/Localytics_uploader(4852): Upload complete. Status: 202 11-09 21:52:39.075: DEBUG/dalvikvm(4852): GC freed 365 objects / 17168 bytes in 49ms 11-09 21:52:39.411: DEBUG/dalvikvm(4852): GC freed 5326 objects / 2246168 bytes in 65ms 11-09 21:52:39.559: DEBUG/AudioHardwareMot(987): AudioMgrutput 0x11b68 entering standby 11-09 21:52:39.559: DEBUG/AudioHardwareMot(987): AudioMgr:Closing stereo device 11-09 21:52:40.075: INFO/DEBUG(984): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 11-09 21:52:40.075: INFO/DEBUG(984): Build fingerprint: 'verizon/voles/ sholes/sholes:2.0/ESD20/17572:user/ota-rel-keys,release-keys' 11-09 21:52:40.075: INFO/DEBUG(984): pid: 4852, tid: 4915 com.froogloid.android.cowpotato 11-09 21:52:40.075: INFO/DEBUG(984): signal 11 (SIGSEGV), fault addr 00516000 11-09 21:52:40.075: INFO/DEBUG(984): r0 49f62680 r1 00515fe8 r2 6d40 r3 11-09 21:52:40.075: INFO/DEBUG(984): r4 0041efc0 r5 0040a2d0 r6 80d75604 r7 00025440 11-09 21:52:40.075: INFO/DEBUG(984): r8 0020 r9 10 88e4 fp 00025440 11-09 21:52:40.075: INFO/DEBUG(984): ip 80d7565c sp 4876ad38 lr 80d0502c pc afe0df44 cpsr 2810 11-09 21:52:40.161: INFO/DEBUG(984): #00 pc df44 / system/lib/libc.so 11-09 21:52:40.161: INFO/DEBUG(984): #01 lr 80d0502c / system/lib/egl/libGLESv1_CM_POWERVR_SGX530_121.so 11-09 21:52:40.161: INFO/DEBUG(984): code around pc: 11-09 21:52:40.161: INFO/DEBUG(984): afe0df34 f5d1f080 f5d1f0a0 f5d1f0c0 f5d1f0e0 11-09 21:52:40.161: INFO/DEBUG(984): afe0df44 f421020d f421420d f461020d f461420d 11-09 21:52:40.161: INFO/DEBUG(984): afe0df54 f5d1f080 f5d1f0a0 f5d1f0c0 f5d1f0e0 11-09 21:52:40.161: INFO/DEBUG(984): code around lr: 11-09 21:52:40.161: INFO/DEBUG(984): 80d0501c e1a02007 e59d100c e593 ebfffaee 11-09 21:52:40.161: INFO/DEBUG(984): 80d0502c e3a03000 e5847014 e5843020 e584a00c 11-09 21:52:40.161: INFO/DEBUG(984): 80d0503c e28dd014 e8bd8ff0 00070784 fffeed9d 11-09 21:52:40.161: INFO/DEBUG(984): stack: 11-09 21:52:40.161: INFO/DEBUG(984): 4876acf8 41fd64e1 /system/ framework/core.odex 11-09 21:52:40.161: INFO/DEBUG(984): 4876acfc 0001 11-09 21:52:40.161:
[android-developers] Re: Android versions
Thanks. I think we're getting a 2.0 update around Christmas... On Nov 10, 3:42 pm, Fred Grott(Android Expert, http://mobilebytes.wordpress.com) fred.gr...@gmail.com wrote: If you do not need ot use 1.6 or 2.0 feature than you should upgrade to 1.6 so that your screen layouts and etc are correct on WVGA devices etc.. which means after you downlaod the sdk use the new 2.0 downloader via eclipse adt 0.9.4 There is a post on the developer blog about switching to 1.6 screen sizes that gives you the run down on what to change.. You can still maintain a copy at api 3 level to test on your hero until your hero gets the 1.6 update in your part of the World which I imagine should be shortly Fred Grott Android Developerhttp://mobilebytes.wordpress.com On Nov 10, 3:37 am, Neilz neilhorn...@googlemail.com wrote: Ok, I'm a bit behind the times here... I am still developing with version 1.5, level 3. 1) Should I install 2.0 and develop with that? My phone is a Hero with v1.5. 2) If I do install 2.0, do I need to upgrade the software on my phone? Will my apps still work? 3) Also, if I do install 2.0, should I install 1.6 first, and then upgrade to 2.0? Many thanks for any advice. -- 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] SoundPool problem
Hello, I'm using a SoundPool for playing my game sound effects. It all worked fine until I checked it on the new SDK 2.0. the sounds are not played and I'm getting in my log: SoundPool Sample channel count (0) out of range right after the playerPool.load (see the code). does any one encountered with this problem? here is my code: package j2ab.android.rpcapp.utils; import android.content.Context; import android.media.AudioManager; import android.media.SoundPool; import j2ab.android.rpcapp.R; public class SoundManager { private static boolean isSoundEnabled = true; private static final int[] PLAYERS_RES_IDS = {R.raw.snd1, R.raw.snd2,R.raw.snd3}; /** * Player priority in case of ONE_PLAYER. the highest priority is 0. */ private static final int[] PLAYERS_PRIORITY = {1, 1, 1}; private int[] idToStream; private SoundPool playerPool; public SoundManager(Context context, int maxStreams) { playerPool = new SoundPool(maxStreams, AudioManager.STREAM_MUSIC, 0); idToStream = new int[PLAYERS_RES_IDS.length]; for (int i = 0; i idToStream.length; i++){ idToStream[i] = playerPool.load(context, PLAYERS_RES_IDS[i], PLAYERS_PRIORITY[i]); } } public int play(int playerId, boolean interrupt) { if(isSoundEnabled){ int status = playerPool.play(idToStream[playerId], 0.99f, 0.99f, 0, 0, 1); if(status == 0) MyLog.printLog(, cant play a sound + playerId); return status; } return 0; } public void stopPlayer(int playerId, boolean resetMediaTime) { if(resetMediaTime){ playerPool.stop(idToStream[playerId]); } else{ playerPool.pause(idToStream[playerId]); } } public void onDispose() { playerPool.release(); } } BTW the emulator managed to play sound using MediaPlayer, but I don't want to use a low level sound management. Tanks Yanir -- 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] Is TextView supposed to be able to scroll its contents?
It was my understanding that even though TextView is not a ScrollView, it has scrolling functionality built-in. However, I'm not able to scroll the contents of a TextView (that's on 1.6). I've reduced my code to the most trivial example: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_height=fill_parent android:layout_width=fill_parent android:orientation=vertical TextView android:layout_width=fill_parent android:layout_height=fill_parent android:inputType=text|textMultiLine android:singleLine=false / /LinearLayout I then defined a really long string for testing, which I set on this text view using setText(). The text is too long for the TextView, but there is no way to scroll it. So do I need to wrap it in a ScrollView after all? Cheers, Matthias -- 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] List view problem
Hi, I am using a list view and and the onListItemClick() method. The problem I am having is that when I press the back button and tap on another item on the list the position value stays the same. Has anyone else encountered this problem? thanks, Clive -- 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: UTF-8 encoding problem
urlString = urlBase + Uri.encode(ownerName); On Oct 4, 9:58 pm, Kangping fukangp...@gmail.com wrote: hi all, i am working on an application supportingChineseand have been puzzled by a encoding error.i really really hope someone here could help me out of this sucking problem...:( i take aChinesestring from an EditText and append it to a URL which goes like ?Owner=XXX. i am trying to send this URL usingUTF-8. the following is what i have done: a) i get the string ownerName(containingChinesecharacters) b) String tmp = new String(Owner.getBytes(UTF-8), UTF-8); c) urlString = urlBase + tmp d) URL url = new URL(urlString); e) InputStream is = url.openStream(); ... ... when i check the encoded byte[] array, everything seems alright. but the byte[] array which server gets is quite wrong (always stuff like 1a1a). i tried the exact request string with the exact byte array in a java applet, the server works. so i really don't know what on earth is going wrong. Could anyone help? Many 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] Re: Droid / Android 2.0 OpenGL Configuration Issue
Thanks for the replies. It is good to know I'm not the only one that pulled out some hair recently. I almost stumbled upon the answer, but happened to not pick a working EGLConfig several times when testing late Sunday. I got things working rather well now and have an interface similar to Google's GLSurfaceView for choosing configs with a default implementation that will match exact parameters provided. It also allows multiple attribute parameter sets to cascade in order. I found that for performance it's necessary to select an EGLConfig with EGL_DEPTH_SIZE of 24 as this is the only setting that renders at 60 FPS on the Droid from my current observations. For note the EGLConfig selected (R:5, G: 6, B:5, A:0, D:24, S:8) does not have EGL_NATIVE_RENDERABLE set to true. I also took the time to bolster the Typhon / GL configuration / setup procedure with a bunch of error checking. I also worked things out so that I can pop up a dialog before all (almost all?) crashes with very specific GL error information and prevent the generic forced closed dialog from showing. This allows users to put this data in an email and send it to the given developer. I also added extension checking and validating other requirements such as searching the vendor string, and min/max GL versions searching the version string. Any failures pops up an informative dialog box rather than a blank screen or generic forced closed dialog. See some screen shots here: http://typhon.egrsoftware.com/errata/android-developers-11.09.09-droid-gl-config-issues.zip In a future release beta 1 of Typhon I'll probably make it possible for the dev to register the app name, dev name, dev email contacts, dev phone number, and such and provide facilities to directly email the debug information or perhaps call the dev if there is a hotline directly from the GL error message dialog. I hate to say it, but with the plethora of devices soon available it'll be a little bit of a nightmare making sure things work adequately across the board, so having users submit GL error and device data for any given device is a good thing. Anyway.. I'll make a post on dev list when all the code and initial tutorials are released. I'm pushing for early next week w/ at this point as I want to get a bunch of Android 2.0 info in the mix like some of what is in this email. On Nov 9, 4:37 am, ernestw ernest...@gmail.com wrote: I bet if you looked at the EGL_CONFIG_CAVEAT attribute, the RGBA configs will be EGL_NON_CONFORMANT_CONFIG. Passing EGL_CONFIG_CAVEAT=EGL_NONE as your desired configuration should filter out the RGBA configs assuming my assertion is true. This is not true on the Droid. On the G1 there are severalEGLConfigs that return EGL_NON_CONFORMANT_CONFIG. Interestingly enough all of the EGL_NATIVE_RENDERABLE EGLConfigs on the G1 and Droid come back as EGL_SLOW_CONFIG! So the assumption that EGL_NATIVE_RENDERABLE == true is not holding up it seems. On Nov 9, 11:18 am, a1 arco...@gmail.com wrote: Well, yes, I was also thinking about using EGL_NATIVE_RENDERABLE but without access to device it's just pure speculation. It was pure speculation unfortunately as while EGL_NATIVE_RENDERABLE appears to be a valid attribute you can choose EGLConfigs that don't return true with EGL_NATIVE_RENDERABLE and then one EGLConfig (R:5, G: 6, B:5, A:0, D:16) which works fine with the G1 and on the Droid even returns EGL_NATIVE_RENDERABLE as true simply fails when making the context current with EGL_BAD_ACCESS. I now catch this though and show a meaningful dialog. It'll be great if someone with access to DROID can make small app which will list all available configs and print them (with all config flags). See this zip file for a brief text file showing common parameters of all supported EGLConfigs: http://typhon.egrsoftware.com/errata/android-developers-11.09.09-droid-gl-config-issues.zip But there is one more trap, my game uses depth buffer so in my config template I also added DEPTH_SIZE, 16, on droid eglChooseConfig will list folowing: It seems that DEPTH_SIZE of 24 is optimum on the Droid. I was kind thrown back a bit when I picked an EGLConfig with DEPTH_SIZE of 0 or another value (16, etc.) and rendering of a simple cube was at 40FPS. With an EGLConfig that has a DEPTH_SIZE of 24 the cube was rendering at 60FPS. -- 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: The application android has stopped unexpectedly
Maxood wrote: I created a new AVD. On emulator when the touch event is fired i get the same error: The application android has stopped unexpectedly. In my logcat window i have the following error messages: 11-10 01:43:24.144: DEBUG/dalvikvm(743): GC freed 987 objects / 79024 bytes in 99ms 11-10 01:43:24.324: DEBUG/AndroidRuntime(743): Shutting down VM 11-10 01:43:24.334: WARN/dalvikvm(743): threadid=3: thread exiting with uncaught exception (group=0x4001aa28) 11-10 01:43:24.334: ERROR/AndroidRuntime(743): Uncaught handler: thread main exiting due to uncaught exception 11-10 01:43:24.343: ERROR/AndroidRuntime(743): android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0 You appear to be handing something an empty cursor, or the cursor is becoming empty unexpectedly. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training -- 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]How to move homescreen focus to specific widget?
You cannot do this. On Tue, Nov 10, 2009 at 6:14 AM, Ollie Weng ollie.w...@gmail.com wrote: Hi, I'm writing a appwidget and hope to limit a widget can be added only once on homescreen, and for further trying, i hope to show the correct page of homescreen to show the widget, just like native media player widget. any suggest on how to do this?? TIA, Ollie -- 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 -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. 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 at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: motorola cliq sdk 2.0
Just to mention. The reason Contacts data from social networking services isn't available to applications on the CLIQ/MOTOBLUR is due to Motorola's legal and contractual obligations with those services. On Nov 9, 11:42 am, nEx.Software email.nex.softw...@gmail.com wrote: So sorry Roman, I must've forgotten. I've gone ahead and registered it. Please feel free to forward to me Names and Pictures of those to include. ;) On Nov 9, 11:58 am, Roman ( T-Mobile USA) roman.baumgaert...@t- mobile.com wrote: Hey, the pagewww.androidhallofshame.comisstill not up -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Nov 7, 1:29 pm, Romain Guy romain...@google.com wrote: I want awww.androidhallofshame.comwiththepicture and name of all developers using private APIs :) On Sat, Nov 7, 2009 at 1:25 PM, nEx.Software email.nex.softw...@gmail.com wrote: You know, actually, come to think of it... It might only be those evil non-public apis that we all know not to use but still do anyway... I'll have to look and see if anything I have seen was a public api. I know that working with the Contacts is incredibly frustrating, but that is probably technically working correctly per the API On Nov 7, 2:00 pm, Dianne Hackborn hack...@android.com wrote: Can you give more detail? The APIs should work the same. If there are changes, we'd really like to know. On Sat, Nov 7, 2009 at 10:51 AM, nEx.Software email.nex.softw...@gmail.comwrote: The CLIQ is not representative of a normal Android experience. It is buggy, half of the components have been replaced byMotorola. They use their own variants of some APIs. And, I certainly would not recommend it as a user device, personally. As a user of the CLIQ I have been very, very disappointed. So, if you really want just a testing device I would choose something the is not as heavily modified. If you also want to use it as your actual phone, I would choose something less glitchy and more flexible. On Nov 7, 11:10 am, Dianne Hackborn hack...@android.com wrote: On Fri, Nov 6, 2009 at 8:33 PM, nEx.Software email.nex.softw...@gmail.comwrote: The CLIQ has 1.5 loaded, and it is NOT a good development phone. Trust me. What is wrong with it? Fwiw, one of our goals is that all Android compatible phones should also allow for the full standard development environment. -- 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%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them- Hide quoted text - - Show quoted text - -- 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 can I partecipate to an Android project?
Hi Joey, My advise would be to first start reading about Android. There are several books out there that should aid in this task. After you get comfortable with the language, there will be greater chances for people to reply. Without having some theoretical background, many will not give you a chance. Mihai Fonoage On Nov 7, 2:11 pm, Joey Ramone ivan.laso...@gmail.com wrote: Hi everybody. I'm a student in computer science. I know Java, I don't know Android framework and the design patterns but I wish I learn them. Where can I find an Android project which I might partecipate? I'm sorry for my terrible english. Thank you :D -- 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: outgoing call data stream / channel
Hi Dianne, I am also struggling with this issue and would like to understand the limitations in current Android hardware. My present understanding is that in on current Android phones there is a GSM/3G chip that 1. receives the *analogue* GSM/3G antenna signal 2. receives modem-like AT commands from Android to initiate phone calls, send text messages, etc. 3. routes the *analog* audio signal from the GSM/3G antenna to the amplifier/speaker or bluetooth headset. In such a setup, the audio signal of the phone call would exist in digital form within the GMS/3G chip, but it would be out of reach for the android OS. Outside the GMS/3G chip, the call signa would only exist in analog form - while being routed to the amplifier/speaker or to the bluetooth chip. In this case, the only hope for software access to the audio signal during a phone call would be a completely new design that implements the mobile phone functionality in software. Is that correct? Dr. Joachim Neumann P.S.: I would like to implement a hearing aid in software, see www.amplicell.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
[android-developers] Re: motorola cliq sdk 2.0
From a developer standpoint, that's fine... But, from a user standpoint who expects a Contacts application to have all of his/her Contacts, that is another story. I understand that there are agreements that need to be adhered to and that isn't going to change, but I'm sure you can understand how this affects both the developer and the user in a negative way. For the developer, one must figure out how to explain to the user that their Contacts (in MOTOBLUR) are not accessible and that is because of Motorola's contractual agreements. For the user, one must deal with the frustration of an app not working as they think it should. And I can tell you, as a user I would expect anything that shows in the Contacts application to be considered a Contact, and therefore be available to other Contacts applications. It just adds a new level of complexity that most developers were ill- prepared for. Even the Motorola provided SDK Add-on for MB200 does not portray this behavior (for obvious reasons) for the Contacts API. On Nov 10, 10:31 am, suzanne.alexandra suzanne.alexan...@motorola.com wrote: Just to mention. The reason Contacts data from social networking services isn't available to applications on the CLIQ/MOTOBLUR is due to Motorola's legal and contractual obligations with those services. On Nov 9, 11:42 am, nEx.Software email.nex.softw...@gmail.com wrote: So sorry Roman, I must've forgotten. I've gone ahead and registered it. Please feel free to forward to me Names and Pictures of those to include. ;) On Nov 9, 11:58 am, Roman ( T-Mobile USA) roman.baumgaert...@t- mobile.com wrote: Hey, the pagewww.androidhallofshame.comisstillnot up -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Nov 7, 1:29 pm, Romain Guy romain...@google.com wrote: I want awww.androidhallofshame.comwiththepictureand name of all developers using private APIs :) On Sat, Nov 7, 2009 at 1:25 PM, nEx.Software email.nex.softw...@gmail.com wrote: You know, actually, come to think of it... It might only be those evil non-public apis that we all know not to use but still do anyway... I'll have to look and see if anything I have seen was a public api. I know that working with the Contacts is incredibly frustrating, but that is probably technically working correctly per the API On Nov 7, 2:00 pm, Dianne Hackborn hack...@android.com wrote: Can you give more detail? The APIs should work the same. If there are changes, we'd really like to know. On Sat, Nov 7, 2009 at 10:51 AM, nEx.Software email.nex.softw...@gmail.comwrote: The CLIQ is not representative of a normal Android experience. It is buggy, half of the components have been replaced byMotorola. They use their own variants of some APIs. And, I certainly would not recommend it as a user device, personally. As a user of the CLIQ I have been very, very disappointed. So, if you really want just a testing device I would choose something the is not as heavily modified. If you also want to use it as your actual phone, I would choose something less glitchy and more flexible. On Nov 7, 11:10 am, Dianne Hackborn hack...@android.com wrote: On Fri, Nov 6, 2009 at 8:33 PM, nEx.Software email.nex.softw...@gmail.comwrote: The CLIQ has 1.5 loaded, and it is NOT a good development phone. Trust me. What is wrong with it? Fwiw, one of our goals is that all Android compatible phones should also allow for the full standard development environment. -- 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%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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
[android-developers] Re: Real Poly/sec on ADP1?
Jni is not really a big factor in this. In my experience, if you use vbos, you're not nearly as triangle bound as you are fill bound. If you're only filling half the screen and you use vbos with no normals and no index, I imagine you could get up there with vert count. Here's a little test to see where the texel unit has limits and optimizations... make a quad that's bigger than the viewport and texture it. Rotate it so that it faces the lookat directly, so that there is no skew or distortion. It will render very quickly. Now rotate it just a degree away from the lookat about any axis. You'll see the framerate drop significantly. This shows that no matter how few or many triangles you have on screen, you will always be limited by the texture unit. On Nov 10, 1:36 am, Patrick Årman nemon...@gmail.com wrote: Ok so no where near the chips full potential then, sad to hear, did you use buffers and minimized glcalls? I'm guessing you used only Java and no native code? Though the JNI might be the bottleneck? On Nov 10, 2009 7:44 AM, Jeremy Slade jeremy.g.sl...@gmail.com wrote: 4-5k polys per frame seems about right from my experience on a G1 On Nov 9, 1:42 pm, Patrick nemon...@gmail.com wrote: Well I've been searching for this informa... -- 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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] SoundPool problem
I had the same problem. All my sounds were in .mp3 and they didn't play in 2.0. I had to reencode them in .ogg and everything started working again. But then I had a problem with one of the longer sounds (7 secs). Only 6 seconds were loaded, because there was some stack overflow at the end of the loading. I had to remove the stereo and encode it as a mono. It worked well. On Tue, Nov 10, 2009 at 6:17 PM, ayanir ayanir...@gmail.com wrote: Hello, I'm using a SoundPool for playing my game sound effects. It all worked fine until I checked it on the new SDK 2.0. the sounds are not played and I'm getting in my log: SoundPool Sample channel count (0) out of range right after the playerPool.load (see the code). does any one encountered with this problem? here is my code: package j2ab.android.rpcapp.utils; import android.content.Context; import android.media.AudioManager; import android.media.SoundPool; import j2ab.android.rpcapp.R; public class SoundManager { private static boolean isSoundEnabled = true; private static final int[] PLAYERS_RES_IDS = {R.raw.snd1, R.raw.snd2,R.raw.snd3}; /** * Player priority in case of ONE_PLAYER. the highest priority is 0. */ private static final int[] PLAYERS_PRIORITY = {1, 1, 1}; private int[] idToStream; private SoundPool playerPool; public SoundManager(Context context, int maxStreams) { playerPool = new SoundPool(maxStreams, AudioManager.STREAM_MUSIC, 0); idToStream = new int[PLAYERS_RES_IDS.length]; for (int i = 0; i idToStream.length; i++){ idToStream[i] = playerPool.load(context, PLAYERS_RES_IDS[i], PLAYERS_PRIORITY[i]); } } public int play(int playerId, boolean interrupt) { if(isSoundEnabled){ int status = playerPool.play(idToStream[playerId], 0.99f, 0.99f, 0, 0, 1); if(status == 0) MyLog.printLog(, cant play a sound + playerId); return status; } return 0; } public void stopPlayer(int playerId, boolean resetMediaTime) { if(resetMediaTime){ playerPool.stop(idToStream[playerId]); } else{ playerPool.pause(idToStream[playerId]); } } public void onDispose() { playerPool.release(); } } BTW the emulator managed to play sound using MediaPlayer, but I don't want to use a low level sound management. Tanks Yanir -- 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 can I partecipate to an Android project?
Okay, some information.. the main project source is detailed at: http://source.android.com/ You may want to get an introduction by starting with something small.. Earlier this year I started by improving some SDK developer support issues by contributing changes back to the Android Project and now I am in process of completing some android.test classes that will be contributed back to the Android project. Now remember most first time contributors are not full members of the sub projects so you need to find something small to work on that fixes an issue or bug than progress from there.. What area you interested in? Fred Grott Android Developer http://mobilebytes.wordpress.com On Nov 7, 1:11 pm, Joey Ramone ivan.laso...@gmail.com wrote: Hi everybody. I'm a student in computer science. I know Java, I don't know Android framework and the design patterns but I wish I learn them. Where can I find an Android project which I might partecipate? I'm sorry for my terrible english. Thank you :D -- 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 answer comments on your apps
I've been puzzled by the lack of ability for a developer to answer comments made on the market by users. It has been frustrating to see negative comments or questions made and be unable to do anything about them... I've found an easy to use, yet undocumented method to do this. First, download and install your own app. Second, wait for a comment that you need to respond to, then simply add a comment of your own prefaced by Developer comment: - your comment will appear as a new comment. Each comment made sticks in the comments list, so you can effectively answer anything made on your app. Google should have mentioned this, it's so easy to do. Paid apps may have a problem doing this as developers (for some reason) can't download their own paid apps. -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 at http://groups.google.com/group/android-developers?hl=en
[android-developers] PhoneStateListener::onSignalStrengthChanged
I just started developing on my new VZW Droid and while trying to play around with some of the features, I noticed that in the reference docs, they say that onSignalStrengthChanged is deprecated inside PhoneStateListener, (it only gives the asu value, which I assume is GSM only. Now, that's all and fine, but where the heck is the method that replaces it? In the reference document, they say, see #onSignalStrengthsChanged. http://developer.android.com/reference/android/telephony/PhoneStateListener.html#onSignalStrengthChanged%28int%29 Can anyone help me out, or let the developers of the SDK know there is a disconnect between the reference docs and the actual SDK? Thanks, 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] Cannot install ADT plugin
Hello All, I am trying to install the ADT plugin to eclipse SDK (Version: 3.5.1 Build id: M20090917-0800) but is giving the below error: I have tried the links https://dl-ssl.google.com/android/eclipse/; and http://dl-ssl.google.com/android/eclipse/;. Also tried manually downloading the plug-in (ADT-0.9.4.zip) and installing, but all of them give the same error(below). Please let me know if anyone else has experienced similar problem. Thanks, Sunil !MESSAGE An error occurred while collecting items to be installed !SUBENTRY 1 org.eclipse.equinox.p2.engine 4 0 2009-11-09 17:14:13.904 !MESSAGE session context was:(profile=SDKProfile, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Collect, operand=, action=). !SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 4 2009-11-09 17:14:13.904 !MESSAGE Result of processing steps. !SUBENTRY 2 org.eclipse.equinox.p2.artifact.repository 4 0 2009-11-09 17:14:13.904 !MESSAGE Unpack facility not configured !SUBENTRY 2 org.eclipse.core.runtime 0 0 2009-11-09 17:14:13.904 !MESSAGE OK !SUBENTRY 2 org.eclipse.core.runtime 0 0 2009-11-09 17:14:13.904 !MESSAGE OK !SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 4 2009-11-09 17:14:13.904 !MESSAGE Result of processing steps. !SUBENTRY 2 org.eclipse.equinox.p2.artifact.repository 4 0 2009-11-09 17:14:13.904 !MESSAGE Unpack facility not configured !SUBENTRY 2 org.eclipse.core.runtime 0 0 2009-11-09 17:14:13.904 !MESSAGE OK !SUBENTRY 2 org.eclipse.core.runtime 0 0 2009-11-09 17:14:13.904 !MESSAGE OK !SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 4 2009-11-09 17:14:13.904 !MESSAGE Result of processing steps. !SUBENTRY 2 org.eclipse.equinox.p2.artifact.repository 4 0 2009-11-09 17:14:13.904 !MESSAGE Unpack facility not configured !SUBENTRY 2 org.eclipse.core.runtime 0 0 2009-11-09 17:14:13.904 !MESSAGE OK !SUBENTRY 2 org.eclipse.core.runtime 0 0 2009-11-09 17:14:13.904 !MESSAGE OK !SUBENTRY 1 org.eclipse.equinox.p2.artifact.repository 4 4 2009-11-09 17:14:13.904 !MESSAGE Result of processing steps. !SUBENTRY 2 org.eclipse.equinox.p2.artifact.repository 4 0 2009-11-09 17:14:13.904 !MESSAGE Unpack facility not configured !SUBENTRY 2 org.eclipse.core.runtime 0 0 2009-11-09 17:14:13.904 !MESSAGE OK !SUBENTRY 2 org.eclipse.core.runtime 0 0 2009-11-09 17:14:13.904 -- 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] Touch or Click event...with a listView containing a gridView
Hi, Here is my problem : I have a view containing a listView. And each row of this listview is composed of a linearLayout, itself composed of three textview and a gridView. Here is a summary of my layout for one row : LinearLayout TableLayout TableRow TextView one textview/TextView TextView two textview/TextView TextView three textview /TextView /TableRow /TableLayout GridView one gridView /GridView /LinearLayout I want to perform an action when the user click anywere on an item of the listview. So I try these two approaches on the listview : - myActivity.getListView().setOnTouchListener(new View.OnTouchListener () {...}) - myActivity.getListView().setOnItemClickListener(new AdapterView.OnItemClickListener() { ...}) And here is the trouble : - when I click on the textview, it nearly works : the touch listener is called, but not the clicklistener - when I click on the gridView it doesn't workthe event is just dispatched to the element of the gridView... I try : myActivity.getListView().setClickable(true); myActivity.getListView().setFocusable(true); myActivity.getListView().setFocusableInTouchMode(true); The result is strange...It was not possible anymore to select the element of my gridViewand it is perfect for my application...but the listview's listeners are not called when I click on a row... I try setEnabled(false) on the element of the gridView. I try setFocusable(false), etc...and no result... I try to define a listener for the gridview's item, to check that the event exists...and there is an event...the listener of the gridview is called...but is there any way that the parents receive the event to ? For the touch listener, it seems that there is a problem with the gridview...any solution ? Thanks, I hope it was clear... -- 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] Android 2.0 battery level
I don't know if this is an Android 2.0 or a Motorola Droid issue, but I noticed that the battery level only reports in increments of 10's. For example 70%, 60% etc. Any apps or widgets also can only see this as well. Is this a bug, what happened to the detailed stats? -- 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] android.process.acore occupies 50%+ CPU all the time
I don't know why but I do nothing on my HTC Hero, anyone can help or have some clues? Thanks, Will -- 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] Q: Enabling Antialiasing for OpenGL on Android?
Hello, How do you enable Antialiasing in OpenGL on Android? I'm using a Motorola Droid phone and it contains a PowerVR SGX 530, which supports full scene antialiasing. Keywords: FSAA, antialiasing, opengl, gl, gles Kevin -- 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 email in HTML format
Hello, I would like to send an email in text/html format. I tried by this way : Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.setType(text/html); sendIntent.putExtra(Intent.EXTRA_TEXT,Constant.MAIL_BEGIN +p2+br/+article.getAuthor()+br/+article.getDate()+br/ +article.getTitle()+/p2+article.getContent() +Constant.MAIL_END); sendIntent.putExtra(Intent.EXTRA_SUBJECT, LeFigaro.fr : +article.getTitle()); //sendIntent.setType(message/rfc822); context.startActivity(Intent.createChooser(sendIntent, Title:)); But HTML code isn't interpreted. Maybe Gmail app doesn't support HTML ? I'm interested for any suggestion to resolve this problem. Thanks. Matt. -- 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 start an activity with no focus?
I have an activity that has a single EditText view, when I launch the activity the focus is set to that view. How do I launch an activity with no focus set? 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] Is it possible to add new Icons to Contacts View ??
I wonder if someone is able to tell me if it is possible to add icons to the contacts list. For instances in the contacts view list I would like to have an Icon ( in front of the name ) displaying certain features . As an example , an icon saying that this person makes part of my favorite list , or this person is of one certain nationality ( adding an icon flag ) , or this person is my work colleague ( adding the company logo icon), etc. I supose that I must change the contacts source code , rigth? Is this written in java or c++ ? Is it possible to implement new event listeners to the contacts source code ? So that I can write an application that sets this icons ? Hope someone can help me , 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] How can i divide a picture/image into parts
Hey, I am new to Android and need your guidence and suggestions on a problem im trying to solve. I want to divide an image into 4 parts just like a puzzle game but could not find any tutorials on it. After an image is divided into parts i need to store each part in an array. Any idea, please help me in this scenario!! Looking forward for your kind response... Thanks! Nasir Ibrahim -- 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] Android 2.0 vs 1.6 not running
I Have an app that is running fine in 1.6, I have now updated my sdk to 2.0 and the app never starts properly I was wondering if anyone had an idea of what would stop an app running on the newer version that runs fine usually. Once it is started, it runs threads correctly, but nothing gets displayed then i get the error WARN/ActivityManager(69): Activity idle timeout for HistoryRecord {43b57a38 com.vlm.DojoSquabble/.Mid} I have another application that is very similar that works correctly. Its manifest defines its Activity class as android:name=.Mid , whereas the app that is failing has it as android:name=Mid . Does not seem to make a difference when i change it but it is the only thing i can see that is different Any help would be appreciated but if I figure it out ill post my findings here anyway. -- 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] Android delopers
Hi, -- 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] Centering text in a button?
Hi Guys, Ive just started fooling around with programming my Motorola Droid. I'm programmatic ally laying out an interface such that the text contained in my Button is sized at layout time to fit the button. My questions are: (1) I know the pixel size of the button, what is the best way to set the text size to fit the button size? (2) I can't seem to get it to center. I've tried a Gravity of 11 and that helps, but ist still not right. How do I get my text to center itself properly horizontally and vertically in the button? 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] Why does InputMethodManager#showSoftInput return false?
In some cases, InputMethodManager#showSoftInput (called in response to a motion event, though from a separate thread) is returning false for me and not displaying the virtual keyboard. If I switch to the home screen and then return to the application, it seems to work as expected. What causes InputMethodManager#showInput to return false, and can anyone suggest why this happens when the application is first launched but not when it's returned to after visiting the home screen? -- 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] schemas.android.com site down?
Am I missing something or did http://schemas.android.com/apk/res/android just go away today? (11/10/2009) The hostname doesn't appear to be valid (DNS-wise) and Eclipse is showing that it can't find the DTD while editing XML layouts. -Guy -- 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] Difference between the pointer's ID and the pointer's index
Could you tell me what is the difference between the pointer's ID and the pointer's index for a MotionEvent object? An example would be great. 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] Receiving MP3 play actions in a BroadcastReceiver
Hi, I am trying to build an Android Service that should get notified when the user starts playing an MP3. I checked LogCat when I start playing a song and saw that the following Intent is logged: Intent { act=com.android.music.PLAYBACK_VIEWER flg=0x400 cmp=com.android.music/.MediaPlaybackActivity } I couldn't figure out how to write an IntentFilter to let my Service know that this event has occurred and let me know the name of the song that will be played. I searched Android reference but could not find anything on PLAYBACK_VIEWER. Or should I instead listen for Intent { act=android.intent.action.PICK dat= typ=vnd.android.cursor.dir/track cmp=com.android.music/.TrackBrowserActivity } that is fired when the list of songs is presented? Thanks, C -- 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] Google: Please release below top 20 apps from ADC2 so we don't have to change package names to submit to Android Market
Please. Because if I have to change my package name, it won't be something nice. ;) -- 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] phase current
to phase alternative cuirre,t use the followingf equation current(indexed as x_naught)+1=current(indexed as x_one) -- 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: Overlay vs ItemizedOverlay, your thoughts?
Hi, I'm newbie to android, but from the example http://developer.android.com/intl/es/guide/tutorials/views/hello-mapview.html, it seem to me that you do not need to create a drawable for each item. it's more the opposite. adn you can always overwrite the methode of OverlayItem... On Oct 24, 6:41 pm, Mark Wyszomierski mar...@gmail.com wrote: Hi, I want to draw 20 pins on a MapActivity. Each pin has a small pin image, but I have to dynamically overlay a small bit of text over each pin at runtime. Looks like I have two options: #1) Itemized Overlay This is the suggested method. I put all my pins in one ItemizedOverlay object, and that counts as a single Overlay object for my MapView. #2) One Overlay per pin Create a separate Overlay instance for each pin I need to render. The problem I see with using method #1 is that you need to set a drawable for the item. This would mean that I need to create 20+20 (one for focused/non-focused state each) bitmaps and keep them in memory for the duration of my app. On the other hand, Overlay lets you override the draw method so I can do the simple compositing at runtime. The other issue with Itemized Overlay - although it handles focus for you - does it move the focused item to the front of the z-order when selected? 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] Re: Multitouch support in Android 2.0
On Oct 27, 6:45 pm, Dianne Hackborn hack...@android.com wrote: It's basically just some new APIs on MotionEvent: http://developer.android.com/reference/android/view/MotionEvent.html http://developer.android.com/reference/android/view/MotionEvent.htmlHmmm and I'm not sure why, but in the doc all of those new APIs are in gray, so they should be easy to see. :) Or here is the API diff report: http://developer.android.com/sdk/api_diff/5/changes.html http://developer.android.com/sdk/api_diff/5/changes.htmlI see that I didn't get around to writing documentation in MotionEvent on the way multi-touch works; sorry about that. Basically there are new actions that tell you when additional fingers go down and up, and each MotionEvent you receive allows you to query for the number of pointers in the event as well as the x, y, size, and pressure of each of those points (and the historical data for all those points as well if you want to collect all data since the last motion event you received). So it should be pretty straight-forward. The main thing to watch out for is the difference between the index in the current event for a pointer's data vs. the pointer ID for that pointer: http://developer.android.com/reference/android/view/MotionEvent.html#... http://developer.android.com/reference/android/view/MotionEvent.html#...The pointer ID allows you to keep track of the individual fingers across multiple motion events. For example, if the user touches finger 1, then finger 2, then releases 1, then touches 1 again, you would see: Finger 1 down: MotionEvent ACTION_DOWN with one pointer, whose ID is 0. Finger 2 down: MotionEvent ACTION_POINTER_2_DOWN with two pointers, whose IDs are 0 and 1. Finger 1 up: MotionEvent ACTION_POINTER_1_UP with one pointer, whose ID is 1. Finger 1 down: MotionEvent ACTION_POINTER_1_DOWN with two pointers, whose IDs are 0 and 1. Finger 1 up: MotionEvent ACTION_POINTER_1_UP with one pointer, whose ID is 1. Finger 2 up: MotionEvent ACTION_UP with one pointer, whose ID is 1. (And inspite of what the update documentation says, the API allows for an arbitrary number of fingers, not just 3. I just happened to define convenience constants for the first 3 finger down/up actions, but given their weird naming as seen above and the finger ID mask is actually 255, it is perhaps best just to ignore those constants. :p) On Tue, Oct 27, 2009 at 9:29 AM, Streets Of Boston flyingdutc...@gmail.comwrote: Kind-a burried inside the blog-post on developer.android.com (http:// developer.android.com/sdk/android-2.0-highlights.html), i saw that multi-touch is now supported: Android virtual keyboard •An improved keyboard layout to makes it easier to hit the correct characters and improve typing speed. •The ***framework's multi-touch support*** ensures that key presses aren't missed while typing rapidly with two fingers. •A smarter dictionary learns from word usage and automatically includes contact names as suggestions. I'm really curious how multi-touch is supported in the API. -- 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. Hello, Could you give me a more detailed example. I'm still not sure what is the difference between the pointer's ID and the pointer's index. 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] SDK opengl support - Just an advice
Hi, just broke my app yesterday with a classic openGL programming error: not using power of 2 texture sizes... I corrected it but I did it in the first place because: - it's working in the emulator ! - it's strangely working in the dream and not at all in the droid ! (disclaimer: the width was 512 large, but not the height) So, I was kinda mistaken in the first place :) if you could add in the SDK opengl software emulation a short fix which disable texturing (in short, show a blank screen, like a real device) when the size is not a power of 2, it would be great ! :) Maybe I should file an 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
[android-developers] Using the Eclipse debugger?
Hi Guys, Im programmign on Windows with Elcipse and a Motorola Droid. ADB will successfully download the code to the Droid and run it, but ive been unable to get debugging to work either remotely or with the emulator. (To be honest Im having multiple problems with the emulator and id rather just not have to use it.) Does remote debugging work? If so, how would I get it working? If not, does emulator debugging work and how would I get that working? Right now my debugging consists of setting the text of an onscreen text-view, but thats not a good long-term solution. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com 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: ADC2 Judging App FC
That's exactly what it is. I have confirmation from a Google engineer that there were updates to the market that caused things to break. Same engineer also unofficially said that things are unlikely to be fixed, as they are getting lots of votes anyway, and that someone further up the foodchain had determined that it wouldn't adversely affect the outcome of the contest. I'm curious if Droid users (Android 2.0) are having the same experience, or if everything is fine there over at VZW... On Nov 10, 9:41 am, D.Garcia kfgo...@gmail.com wrote: For the records, it's also happening to me. G1 with recently updated Android 1.6. Could be that ADC2 Judging application doesn't like the new market application? On Mon, Nov 9, 2009 at 23:00, CraigsRace craig...@gmail.com wrote: I did also get stuck once where it just refused to install the app (opening market / rebooting / ... didn't work) and all I could do was press skip. Luckily, there are only 200 apps, so after a few days of judging, the app came around again. On Nov 10, 11:53 am, gjs garyjamessi...@gmail.com wrote: Hi, Actually I reboot the phone every day ( to conserve battery overnight ) and I only have about four market apps installed of which maybe one uses background services sometimes (rarely). When I check internal phone storage it says I have 41.9MB available ( and 395MB free on sdcard ) so I do not think it is a lack of memory issue... I still just get FC each time run the ADC2 app, as I described, even immediately after reboot. Regards On Nov 9, 9:54 pm, Nyll codingcave...@googlemail.com wrote: I think the problem is related to your phone running low on memory and a background service/activity needed by the ADC2 app gets killed to reclaim memory. If you restart your phone, you should be able to review again without the force closes (at least until you run out of memory again :) On Nov 8, 10:27 pm, gjs garyjamessi...@gmail.com wrote: Hi, I'm using t-mobile g1 with (production) Android 1.6, EVERY time I have tried to use the updated ADC2 judging app, for the final round, I get - Sorry! The application Market (process com.android.vending) has stopped unexpectedly. Please try again. [Force close] - after pressing install button or the install manually button for the presented app, I have also tried starting the Market app and rebooting but I still continue to get the same error. I have NOT been able to review/judge a single adc2 final round app. I have NOT tried pressing the skip menu button, nor will I as I want to review the 1st app presented... Following is the dubug output and this is after I have confirmed that the Browser app is able to connect to the internet correctly (using wifi). Regards 11-09 08:47:52.623: INFO/Process(400): Sending signal. PID: 400 SIG: 9 11-09 08:47:52.656: INFO/WindowManager(76): WIN DEATH: Window{432f16b0 com.android.vending/com.android.vending.AssetInfoActivity paused=false} 11-09 08:47:52.656: INFO/ActivityManager(76): Process com.android.vending (pid 400) has died. 11-09 08:47:52.666: INFO/WindowManager(76): WIN DEATH: Window{433d21f0 Attention paused=false} 11-09 08:47:52.716: INFO/ActivityManager(76): Start proc com.android.vending for activity com.android.vending/.AssetInfoActivity: pid=446 uid=10016 gids={3003} 11-09 08:47:52.836: INFO/dalvikvm(446): Debugger thread not active, ignoring DDM send (t=0x41504e4d l=38) 11-09 08:47:52.876: INFO/dalvikvm(446): Debugger thread not active, ignoring DDM send (t=0x41504e4d l=42) 11-09 08:47:52.956: INFO/ActivityThread(446): Publishing provider com.android.vending.SuggestionsProvider: com.android.vending.SuggestionsProvider 11-09 08:47:53.376: WARN/ActivityManager(76): Activity pause timeout for HistoryRecord{433760a0 com.android.vending/.AssetInfoActivity} 11-09 08:47:53.686: DEBUG/dalvikvm(446): GC freed 3766 objects / 297680 bytes in 110ms 11-09 08:47:54.276: INFO/ActivityManager(76): Displayed activity com.android.vending/.AssetInfoActivity: 1612 ms (total 1612 ms) 11-09 08:47:55.546: WARN/dalvikvm(446): threadid=19: thread exiting with uncaught exception (group=0x4001da28) 11-09 08:47:55.546: ERROR/AndroidRuntime(446): Uncaught handler: thread AsyncTask #1 exiting due to uncaught exception 11-09 08:47:55.556: ERROR/AndroidRuntime(446): java.lang.RuntimeException: An error occured while executing doInBackground() 11-09 08:47:55.556: ERROR/AndroidRuntime(446): at android.os.AsyncTask$3.done(AsyncTask.java:200) 11-09 08:47:55.556: ERROR/AndroidRuntime(446): at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java: 234) 11-09 08:47:55.556: ERROR/AndroidRuntime(446): at
[android-developers] AMR bitrate
Dear Developers, Do you know which bitrate is used while choosing AMR_NB in setAudioEncoder(int) function? How can I set the rate programmatically? Thanks, Bence -- 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] New to android and java - Cannot run or debug with eclipse 3.5.1 on windows
Hi, I installed and eclipse, android sdk and tried the first hello, android tutorial but nothing happened on the AVD :-( There are no compilation error, I tried to set break points in the but it does not seem like the application started running at all... Any ideas? 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] How to change the height of a view
I use the following layout to define a gameboard. LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent gomoku.com.BoardView android:id=@+id/gomoku android:layout_width=wrap_content android:layout_height=wrap_content/ /LinearLayout All works fine, however I want the gameboard to appear as square. So I need to resize the board at runtime to put it in the center of the screen and make it square. I tried many options without success :( Help is very much appreciated Thanks, Jasper de Keijzer -- 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: schemas.android.com site down?
Its never been there, the entry in the manifest file is just a dummy. I would look to see if you have change anything else in your environment. -- RichardC On Nov 10, 6:24 pm, Guy Resh guyr...@gmail.com wrote: Am I missing something or didhttp://schemas.android.com/apk/res/android just go away today? (11/10/2009) The hostname doesn't appear to be valid (DNS-wise) and Eclipse is showing that it can't find the DTD while editing XML layouts. -Guy -- 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: Real Poly/sec on ADP1?
I can understand the texturing/filling takes power but could it really be as bad as dragging it down to 2,5%? Sounds really, really bad but I have been thinking a bit about this and come up with a two other things that might also play big roles in pulling down the amount; First off, (and this is a big thief I would guess) using float values instead of fixed-point for the OpenGL stuff since this means it will have to simulate the float calculations; Second, I thought about this about JNI, the overhead is fairly big since it occurs every time you make a GL (and not sure but would guess the float sim is also native? in that case it's extra load + extra overhead for every calculation?) call so trying to limit them by using other methods of culling for ex. before you even get to rendering might help avoid a few calls? Would be really great to get this number up to at least a steady FPS with ~ 2 polys / frame and I feel it should be possible ARM 11 Qualcomm MSM7200A 528 MHz with 256 MHz ARM9 2nd core, Hardware 3D graphics support with up to 4 million 3D triangles per second, and 133 million 3D textured pixels per second fill rate, OpenGL ES- compliant 3D graphics 4 million 3D triangles per second and 133 million 3D textured pixels per second fill rate Feels weird that there is no real world way to get even 10-15% of that on the phones? On Nov 10, 8:17 pm, Robert Green rbgrn@gmail.com wrote: Jni is not really a big factor in this. In my experience, if you use vbos, you're not nearly as triangle bound as you are fill bound. If you're only filling half the screen and you use vbos with no normals and no index, I imagine you could get up there with vert count. Here's a little test to see where the texel unit has limits and optimizations... make a quad that's bigger than the viewport and texture it. Rotate it so that it faces the lookat directly, so that there is no skew or distortion. It will render very quickly. Now rotate it just a degree away from the lookat about any axis. You'll see the framerate drop significantly. This shows that no matter how few or many triangles you have on screen, you will always be limited by the texture unit. On Nov 10, 1:36 am, Patrick Årman nemon...@gmail.com wrote: Ok so no where near the chips full potential then, sad to hear, did you use buffers and minimized glcalls? I'm guessing you used only Java and no native code? Though the JNI might be the bottleneck? On Nov 10, 2009 7:44 AM, Jeremy Slade jeremy.g.sl...@gmail.com wrote: 4-5k polys per frame seems about right from my experience on a G1 On Nov 9, 1:42 pm, Patrick nemon...@gmail.com wrote: Well I've been searching for this informa... -- 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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Using the Eclipse debugger?
Okay we need more information What is your OS environment? What is your eclipse set up? Fred Grott Android Developer http://mobilebytes.wordpress.com On Nov 10, 12:40 pm, CyberQat jef...@gmail.com wrote: Hi Guys, Im programmign on Windows with Elcipse and a Motorola Droid. ADB will successfully download the code to the Droid and run it, but ive been unable to get debugging to work either remotely or with the emulator. (To be honest Im having multiple problems with the emulator and id rather just not have to use it.) Does remote debugging work? If so, how would I get it working? If not, does emulator debugging work and how would I get that working? Right now my debugging consists of setting the text of an onscreen text-view, but thats not a good long-term solution. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com 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: Dev Tools Documentation?
On Nov 9, 5:59 pm, polyclefsoftware dja...@gmail.com wrote: These tools don't do a whole lot of good if we don't know how to use them and there's no documentation. Hey who need documentation? It's more productive for several hundred thousand developers to read the source and reverse engineer how things are supposed to work (wink, wink, irony). -- 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] Paid apps supported in Canada?
subject. -- 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 change the height of a view
I can answer 1/2 your question Jasper de Keijzer wrote: and make it square You need to implement onMeasure in your custom view class and call setMeasuredDimension when you have calculated the largest square your want your custom view to occupy. Centering a view in its parent container I do not know how to do. -- RichardC On Nov 10, 7:52 pm, jdekeij jasper.dekeij...@gmail.com wrote: I use the following layout to define a gameboard. LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent gomoku.com.BoardView android:id=@+id/gomoku android:layout_width=wrap_content android:layout_height=wrap_content/ /LinearLayout All works fine, however I want the gameboard to appear as square. So I need to resize the board at runtime to put it in the center of the screen and make it square. I tried many options without success :( Help is very much appreciated Thanks, Jasper de Keijzer -- 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: Invoke call from background service
I did a little experimenting. It is possible to start and activity from a service and the activity does interrupt the user and hide the previous activity. I would guess this is not best practice? Also I don't understand the purpose of the required DEFAULT category here. Anyone understand this? The following code starts an activity in another application from inside a service. Intent intent = new Intent(Intent.ACTION_VIEW); intent.addCategory(test.foobar.123); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); Where the activity to start has this in the manifest - intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.SAMPLE_CODE / /intent-filter intent-filter action android:name=android.intent.action.VIEW / category android:name=test.foobar.123 / category android:name=android.intent.category.DEFAULT / /intent-filter Without android.intent.category.DEFAULT I got this - W/IntentResolver( 569): resolveIntent failed: found match, but none with Intent.CATEGORY_DEFAULT I/ActivityManager( 569): Starting activity: Intent { action=android.intent.action.VIEW categories={test.foobar.123} flags=0x1000 } W/dalvikvm( 898): threadid=17: thread exiting with uncaught exception (group=0x4000fe70) E/AndroidRuntime( 898): Uncaught handler: thread Thread-9 exiting due to uncaught exception E/AndroidRuntime( 898): android.content.ActivityNotFoundException: On Nov 9, 11:08 am, jotobjects jotobje...@gmail.com wrote: Why do you need a result? There is a tartActivity(intent) method you can use. What does it mean to start an activity from a process that is not visible as in this case? Does it interrupt the user and is that desirable and/or allowed? On Nov 9, 7:41 am, michael hanh.htcdr...@gmail.com wrote: Hello, Anyone could give me suggestion??? -- 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: Using the Eclipse debugger?
Windows 7 Eclipse 3.5 Galileo for Java plus the complete Android 2.0 SDK I'm using a self made AVD which is just a default one with 16000 meg SDCard space and 480 x 854 screen. I have my Motorola Android attched via ADB and a USB cable to the Windows box. Anything else you need to know? On Nov 10, 3:00 pm, Fred Grott(Android Expert, http://mobilebytes.wordpress.com) fred.gr...@gmail.com wrote: Okay we need more information What is your OS environment? What is your eclipse set up? Fred Grott Android Developerhttp://mobilebytes.wordpress.com On Nov 10, 12:40 pm, CyberQat jef...@gmail.com wrote: Hi Guys, Im programmign on Windows with Elcipse and a Motorola Droid. ADB will successfully download the code to the Droid and run it, but ive been unable to get debugging to work either remotely or with the emulator. (To be honest Im having multiple problems with the emulator and id rather just not have to use it.) Does remote debugging work? If so, how would I get it working? If not, does emulator debugging work and how would I get that working? Right now my debugging consists of setting the text of an onscreen text-view, but thats not a good long-term solution. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com 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] Loading contact photos in Android 2.0
Hi all, I'm using ContactsContract.Contacts.openContactPhotoInputStream() to load contact photos in Android 2.0 and users are reporting that some contact photos are not showing correctly. Does anyone know if this method will query all available photos for a particular aggregate contact? Thanks, Adam -- 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