[android-developers] service stops when phone goes idle
Hi, I need to run a service at periodic intervals even after phones goes idle (i.e CPU turn off). For this I'm scheduling an alarm using Alarm Manager using setRepeating () API and RTC_WAKEUP flag But its not working as expected. Only when phone screen is on the alarm is getting scheduled and service is getting executed. But when the screen goes off, the service is not getting executed. code == Intent i = new Intent(); i.setClassName( com.mydomain.AlarmSample, com.mydomain.AlarmSample.myservice ); PendingIntent mAlarmSender = PendingIntent.getService(battMonitor.this, 0, i, 0); AlarmManager am = (AlarmManager)getSystemService(ALARM_SERVICE); am.setRepeating(AlarmManager.RTC_WAKEUP, firstTime, delay*1000, mAlarmSender); == Do I need ot use PARTIAL_WAKE_LOCK to keep the phone from getting turned off.. If so where should I acquire the lock. Is there any sample code for WAKE_LOCK. Regards, Manoj --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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 initial SharedPreferences from an XML file in SD card
Hi, Can I initial a SharedPreferences instance from an XML file saved in SD card?? Is it possible to do that?? Best Regards, Elvis. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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] Browsing G1 from Windows
I have installed the Windows USB drivers, and I was expecting to be able to access the phone like a removable disk from windows. However, when I click on the removable drive (E:) I am told 'Please insert a disk into drive E:' Am I the only one with this problem? Seems it should be a lot easier to upload music and stuff from my PC. Sorry if this is the wrong group from this question. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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] WebView Behavior on Android
Hi, I have a few questions about the behavior of a WebView 1. When an activity launches a web view, and when the webview displays a page, is it all in the same thread? 2. When I click on the BACK button in the emulator when the web view is running, is the process that runs it stopped and cleaned up? Cheers, Earlence --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: Browsing G1 from Windows
OK..I just discovered the fix on my own, I will post it here in case someone else is stuck. When you plug in the cable, top left you will see a notification that the USB is connected. Pull that down, select it and then choose 'Mount' from the list. The disk is then accessible from the desktop. On 2 Jan, 10:48, PorkChop pork...@gmail.com wrote: I have installed the Windows USB drivers, and I was expecting to be able to access the phone like a removable disk from windows. However, when I click on the removable drive (E:) I am told 'Please insert a disk into drive E:' Am I the only one with this problem? Seems it should be a lot easier to upload music and stuff from my PC. Sorry if this is the wrong group from this question. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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] What is the intent to launch the image gallery?
Hi, Can anyone tell me what is the intent used to launch the image gallery through code? Thanks and Regards, Glenys --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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] Hi, please help with installing an .apk
Hi, I'm trying to write a code to install an apk on SDK1R2. I read your posts on google groups, and copied the code like below. but the code doesn't work. Did I miss anything? Thanks. public void insAPK() { Uri data = Uri.parse(file://sdcard/an1115.apk); try { Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(data, application/vnd.android.package-archive); startActivity(intent); } catch (Exception e) { Log.e(insAPK, e.getMessage()); } } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: service stops when phone goes idle
Hi, The issue got resolved after PARTIAL_WAKE_LOCK is acquired. Regards, Manoj On Jan 2, 1:32 pm, mnj manojgopa...@gmail.com wrote: Hi, I need to run a service at periodic intervals even after phones goes idle (i.e CPU turn off). For this I'm scheduling an alarm using Alarm Manager using setRepeating () API and RTC_WAKEUP flag But its not working as expected. Only when phone screen is on the alarm is getting scheduled and service is getting executed. But when the screen goes off, the service is not getting executed. code == Intent i = new Intent(); i.setClassName( com.mydomain.AlarmSample, com.mydomain.AlarmSample.myservice ); PendingIntent mAlarmSender = PendingIntent.getService(battMonitor.this, 0, i, 0); AlarmManager am = (AlarmManager)getSystemService(ALARM_SERVICE); am.setRepeating(AlarmManager.RTC_WAKEUP, firstTime, delay*1000, mAlarmSender); == Do I need ot use PARTIAL_WAKE_LOCK to keep the phone from getting turned off.. If so where should I acquire the lock. Is there any sample code for WAKE_LOCK. Regards, Manoj --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: Rotate MapView
I tried this, but it did not work Here is my code, can some one help me with this package com.rohit.test; import android.content.Context; import android.graphics.Canvas; import android.hardware.SensorListener; import android.hardware.SensorManager; import android.os.Bundle; import android.util.Config; import android.util.Log; import com.google.android.maps.MapActivity; import com.google.android.maps.MapView; public class Compass extends MapActivity { private static final String TAG = Compass; private SensorManager mSensorManager; private float[] mValues = null; private SampleView mView; private final SensorListener mListener = new SensorListener() { public void onSensorChanged(int sensor, float[] values) { if (Config.LOGD) Log.d(TAG, sensorChanged ( + values[0] + , + values[1] + , + values[2] + )); if (mView != null) { mValues = values; mView.invalidate(); } } public void onAccuracyChanged(int sensor, int accuracy) { // TODO Auto-generated method stub } }; @Override protected void onCreate(Bundle icicle) { super.onCreate(icicle); mSensorManager = (SensorManager) getSystemService (Context.SENSOR_SERVICE); mView = new SampleView(this,my key); mView.setClickable(true); setContentView(mView); if (Config.LOGD) Log.d(TAG, onCreate); } @Override protected void onResume() { if (Config.LOGD) Log.d(TAG, onResume); super.onResume(); mSensorManager.registerListener(mListener, SensorManager.SENSOR_ORIENTATION, SensorManager.SENSOR_DELAY_GAME); } @Override protected void onStop() { if (Config.LOGD) Log.d(TAG, onStop); mSensorManager.unregisterListener(mListener); super.onStop(); } public class SampleView extends MapView { public SampleView(Context context,String apiKey) { super(context,apiKey); } @Override protected void dispatchDraw(Canvas canvas) { if (mValues != null) { int py=canvas.getClipBounds().bottom/2; int px=canvas.getClipBounds().right/2; canvas.rotate(-mValues[0],px,py); } super.dispatchDraw(canvas); } } @Override protected boolean isRouteDisplayed() { // TODO Auto-generated method stub return false; } } On Dec 17 2008, 3:20 am, David C da...@scotinus.com wrote: I just received this response: Override a ViewGroup and apply the rotation indispatchDraw(). Thanks Romain! On Dec 8, 12:43 pm, David C da...@scotinus.com wrote: Bump can anyone provide insight here? Did theMapViewonDraw() API change to final at some point? If the recommended method to rotate aMapViewis canvas.rotate() how can that be achieved if not via onDraw()? Personally I'd prefer to see theMapViewAPI extended to support setBearing() or something similar, but nothing like that exists. sigh On Dec 7, 11:23 am, David C da...@scotinus.com wrote: A few threads have discussed using canvas.rotate() as a means to rotate aMapView. However, onDraw() is declared final forMapView and so can't be over-ridden. Is there an alternative way to manipulate theMapViewcanvas than from onDraw()? Thanks, David --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: Pass state from Activity to Service
Can anyone help me pls? On Jan 1, 3:59 pm, mobilek...@googlemail.com mobilek...@googlemail.com wrote: Hi, I'm having hard time working out how to accomplish that. In my activity I call my service as follows: private void startService(){ Intent myIntent = new Intent(this, MyService.class); Bundle b = new Bundle(); b.putSerializable(userBean, user); myIntent .putExtra(MainActivity, b); startService(myIntent ); } Than I try to retrieve the state from the onStart(Intent, int) method from my service like that: public void onStart(Intent intent, int startId) { Bundle b = intent.getBundleExtra(MainActivity); User user = (User) b.getSerializable(userBean); Log.i(User Name:, user.getName()); } Everytime the service gets called, the compiler throws a NullPointerException from the onStart(Intent, int) method. Pls 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: Market paid-for apps
Seems like I was wrong: http://www.google.com/support/forum/p/checkout-merchants/thread?tid=2e476d7b2a1afb77hl=en You can't register as a merchant outside US/UK at the moment. I know all of you want to promote your website but I guess I'll wait for Googles solution since most users will prefer that. But that's for a different thread! ;-) -Christer On Jan 2, 10:02 am, Al Sutton a...@funkyandroid.com wrote: And just so we're not left out; AndAppStore has always allowed paid-for apps using any method the developer wants (PayPal links, Google Checkout links, Mogees integration, etc.) as opposed to requiring any customisations specific to AndAppStore. Al.http://andappstore.com/ Shane Isbell wrote: SlideME is also launching paid apps next week. We have the int'l tax and US domestic sales tax issues sorted, as well as payment to developers, so you will be able to sell freely on our market. It will be an easy process for developers. We also have some good traction with the user community, with over 6,000 downloads of our client. Thanks, Shane http://slideme.org On Thu, Jan 1, 2009 at 10:13 AM, Faisal Abid faisal.a...@gmail.com mailto:faisal.a...@gmail.com wrote: Andspot.com/blog is launching paid apps this week On Jan 1, 2009 12:47 PM, Al Sutton a...@funkyandroid.com mailto:a...@funkyandroid.com wrote: I'd start packing, the email reads; we will enable priced app support in Q1 for developers operating in these countries in the following order: Note the word operating, not selling to, so my understanding is you need to be based in those countries so that Google can process the necessary taxes and comply with the legal requirements of paying companies and individuals in those countries. I'd be interested to hear what you've formed your view from.. Al. Chister Nordvik wrote: I understood it differently :-) The market will open to different coun... -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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 access System directory in an emulator ??
Thanks for your respondence,What i am trying to do is to start apps in system directory through my own instrumentation class, But i am always rejected by android's security mechanism because i do not have the same signature(as is shown in logs:Permission denied) After further consideration,i decided to try installing my app in the system directory ,but also with no luck , any idears i can do this ?? Thanks ! On Jan 2, 2:39 pm, Andrew Stadler stad...@gmail.com wrote: Downloaded apps (such as those developed with the SDK) cannot be installed into the system directory. Perhaps if you can better describe what you are trying to do and which permissions your app requires, the list community can better assist you. On Thu, Jan 1, 2009 at 9:37 PM, Ashrotronics 030440...@163.com wrote: Hi all: It seemed that some work can not be done due to permission reasons unless my APK is in installed in the System/app directory ,So,is there any way i can do that ?? Thanks in advance ~!- 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: Market paid-for apps
On Fri, Jan 2, 2009 at 4:07 AM, Chister Nordvik cnord...@gmail.com wrote: Seems like I was wrong: http://www.google.com/support/forum/p/checkout-merchants/thread?tid=2e476d7b2a1afb77hl=en You can't register as a merchant outside US/UK at the moment. I know all of you want to promote your website but I guess I'll wait for Googles solution since most users will prefer that. If you mean a limited number of customers, from a limited number of countries, with a limited number of payment options, able to pay for applications from a limited number of developers, on only G1 devices, you may very well be right. Shane --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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 write code to uninstall apk from device/emulator?
Hi, How to write code to uninstall apk from device/emulator? Thanks a lot. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: Pass state from Activity to Service
You haven't really given enough information for a definitive answer. Are you calling the following somewhere? public void startService(){ super.onStart(); But, I would also put an if (b != null) in as the third line to stop the next exception. Can you post your Stack trace or logcat? It should have enough information to figure out what the problem is. Sincerely, Brad Gies - Brad Gies 27415 Greenfield Rd, # 2, Southfield, MI, USA 48076 www.bgies.com www.truckerphone.com www.EDI-Easy.com www.pricebunny.com - Moderation in everything, including abstinence -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of mobilek...@googlemail.com Sent: Friday, January 02, 2009 6:28 AM To: Android Developers Subject: [android-developers] Re: Pass state from Activity to Service Can anyone help me pls? On Jan 1, 3:59 pm, mobilek...@googlemail.com mobilek...@googlemail.com wrote: Hi, I'm having hard time working out how to accomplish that. In my activity I call my service as follows: private void startService(){ Intent myIntent = new Intent(this, MyService.class); Bundle b = new Bundle(); b.putSerializable(userBean, user); myIntent .putExtra(MainActivity, b); startService(myIntent ); } Than I try to retrieve the state from the onStart(Intent, int) method from my service like that: public void onStart(Intent intent, int startId) { Bundle b = intent.getBundleExtra(MainActivity); User user = (User) b.getSerializable(userBean); Log.i(User Name:, user.getName()); } Everytime the service gets called, the compiler throws a NullPointerException from the onStart(Intent, int) method. Pls 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: Market paid-for apps
We're always open to suggestions for improvements :). Al. Chister Nordvik wrote: Seems like I was wrong: http://www.google.com/support/forum/p/checkout-merchants/thread?tid=2e476d7b2a1afb77hl=en You can't register as a merchant outside US/UK at the moment. I know all of you want to promote your website but I guess I'll wait for Googles solution since most users will prefer that. But that's for a different thread! ;-) -Christer On Jan 2, 10:02 am, Al Sutton a...@funkyandroid.com wrote: And just so we're not left out; AndAppStore has always allowed paid-for apps using any method the developer wants (PayPal links, Google Checkout links, Mogees integration, etc.) as opposed to requiring any customisations specific to AndAppStore. Al.http://andappstore.com/ Shane Isbell wrote: SlideME is also launching paid apps next week. We have the int'l tax and US domestic sales tax issues sorted, as well as payment to developers, so you will be able to sell freely on our market. It will be an easy process for developers. We also have some good traction with the user community, with over 6,000 downloads of our client. Thanks, Shane http://slideme.org On Thu, Jan 1, 2009 at 10:13 AM, Faisal Abid faisal.a...@gmail.com mailto:faisal.a...@gmail.com wrote: Andspot.com/blog is launching paid apps this week On Jan 1, 2009 12:47 PM, Al Sutton a...@funkyandroid.com mailto:a...@funkyandroid.com wrote: I'd start packing, the email reads; we will enable priced app support in Q1 for developers operating in these countries in the following order: Note the word operating, not selling to, so my understanding is you need to be based in those countries so that Google can process the necessary taxes and comply with the legal requirements of paying companies and individuals in those countries. I'd be interested to hear what you've formed your view from.. Al. Chister Nordvik wrote: I understood it differently :-) The market will open to different coun... -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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] https://dl-ssl.google.com/android/eclipse/
Hi What happened to the ecipse plugin download site? https://dl-ssl.google.com/android/eclipse/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: Could Chinese developper register Android market?
I'm Israeli developer. I completed registration as well. But the question is whether we could upload chargable application and get the income from Google market? Thanks On Dec 12 2008, 5:44 pm, cpedia cpe...@gmail.com wrote: Yes. Of course. I registered and successed. I use MasterCard of chinamerchantbank. On Dec 11, 9:02 am, honglian...@gmail.com honglian...@gmail.com wrote: hi all I Chinese developper have a MasterCard and want to register Android market. But I found the location item has not China. Would you like to let me know if I can ignore this item and use Chinese MasterCard (Bank of China) Android Market successfully? Thank you very much.- 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: Any updates on paid apps timeline?
@Dianne, You are right, i think part of the reason why the demand for the ability to release paid apps is high so early on is the fantastic job that has been done on the SDK, the platform that was picked for the programmability and in general the confidence developers (even at the time of release) have on the platform that they will be able to stand behind the apps they build. A lot of this is testament to the trust that we as developers place on the platform. So all this clamoring should be taken as a compliment :-) -Nitro On Dec 30 2008, 5:29 pm, Justin Collum jcol...@gmail.com wrote: I heard somewhere that there was a 90 day moratorium on not-free apps. Looks like I heard wrong. On Tue, Dec 30, 2008 at 2:38 PM, Dianne Hackborn hack...@android.comwrote: Just to be clear, this is lots of speculation and no facts. :) Some facts I can share: Android is stable as of 1.0 and we will not be breaking compatibility, and in particular we will not be breaking applications in the cupcake branch. Comparing Android to iPhone in that way is also a questionable endeavor, since the way they were released was very different: iPhone shipped for almost a year with no support for third party apps and then released an update to add that feature, while Android shipped from the start with third party app support. I can't comment on adoption of the G1 vs. the original iPhone, but clearly at this point there is a smaller number of Android users, simply because we started from 0 at the point where third party developers were supported. This is something developers should keep in mind and certainly isn't being hidden. On Mon, Dec 29, 2008 at 1:10 PM, Sven Boden boden.s...@gmail.com wrote: I think the answer is guessable (and no I don't work for Google)... when the android OS settles down more or less. I expect it a little while after the cupcake release. Currently some things are still going to break and if they would allow you to buy applications from the market, you would need to get a new version of the applications very quickly, ... I also don't think android adoption is as quick as the iphone's. In a lot of countries you can't even get an T1 in a legal/normal way... Belgium e.g. :( . So maybe if applications would come out now as paying applications they would disappoint the developers as well qua sales. Regards, Sven 2008/12/29 NitroDesk gsuku...@gmail.com True, but the most distressing part is the inability to distribute paid apps on the market, even with the possibility of charging for them offsite. I bet this keeps lots of good apps from showing up on the market, and worse still, from being developed. -Nitro On Dec 28, 12:48 pm, Sven Boden boden.s...@gmail.com wrote: There are already sites out there which allow you to charge for android apps, for the official site I didn't see anything out there yet. Regards, Sven 2008/12/28 Redhunt androidgr...@survivorsoft.com Has anyone heard any news on when developers will be able to post apps for a fee ? Thanks- Hide quoted text - - Show quoted text - -- 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. 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] Are apk contents already compressed?
Does it make sense to compress large data files stored in the assets/ directory or is the apk already a compressed format? Thanks Inder --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: Has anybody received an android dev phone in the US yet?
hi all, may i know how much you guys paid for the phone? and what do you get with the phone? any cables to connect to the development machine for debugging? thanks, anand On Dec 17 2008, 2:40 pm, Vincent C. mephisto@gmail.com wrote: I placed my order at 12/11. Still not get myphone. :-( Now my tracking number shows Pending Shippment. What kind of NUMBER it is?! (even with wrong spell... XD) Hope can get myphonethis week... -Vincent On Dec 17, 5:04 am, Bob C bcopel...@gmail.com wrote: Ordered mine on 12/8 (in the evening). Order screen still says ordered. Sent an email without response on 12/16, and tracking by reference didn't work -- until today, 12/17. Now tracking works and shows that it will be delivered on 12/18. I ordered Fedex 2-day. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: Deployment of native C library
Issue the commands in this order (from a terminal on the device, otherwise change to use adb shell). $su #mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system Add/change anything you need, then revert to read only. $su #mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system On Fri, Jan 2, 2009 at 12:31 AM, Margaret mawei...@gmail.com wrote: add sudo where you do mount . mawei...@gmail.com 13585201588 2009/1/2 shimo...@gmail.com shimo...@gmail.com: Hi, Thanks ! Where do I issue this command from ? When I do this from PTerminal on my Android device it hangs, then issues a warning box saying: Activity pTerminal (in application pTerminal) is not responding Do you have a Dev Phone ? Thanks. On Jan 2, 3:39 am, Joel joel.knigh...@gmail.com wrote: Sounds as if you don't have root. Did you issue a su command first? On Jan 1, 6:11 pm, shimo...@gmail.com shimo...@gmail.com wrote: Hi, Tried that on my Dev Phone, and got mount: operation not permitted Can you tell me why ? TIA On Nov 17 2008, 11:48 am, li chen freep...@gmail.com wrote: You can use adb shell toremount/system and try again: mount -oremountrw /system -freepine -- Joel Knighton --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: Receive notification for onDestroy, onStop, and onPause etc in other applications?
anyone please? On Jan 1, 10:26 am, focuser linto...@gmail.com wrote: Just to clarify: by this I meant to receive notification when onDestroy, onStop etc in other applications are called, i.e. somehow monitor the life cycle of apps running on the phone. On Dec 31 2008, 5:01 pm, focuser linto...@gmail.com wrote: Hi, Is there a way to programmatically receive notification onDestroy, onStop, and onPause etc in other applications on the phone? I see there's a READ_LOGS permission and guess this might be achieved by reading the system log. But I couldn't find anything to access the system logs. Thanks and Happy New Year! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: Jumping to #link after using loadDataWithBaseURL()
I have googled for strings like WebView internal link, read the FAQs, and read the online docs for WebView, WebSettings, WebViewClient, WebChromeClent and still I have not been able to determine how to make the web pages I have generated (which contain internal links [i.e., a name tags]) jump to an internal link once loaded with WebView.loadDataWithBaseURL(). I have even tried turning on javascript in the WebView using the following code: WebSettings settings = webView.getSettings(); settings.setJavaScriptEnabled(true); Then I added the following javascript to the end of my generated HTML (but before the closing /body/html): script language=javascriptlocation.href=#12;alert('running javascript')/script I then load the generated HTML into my WebView using code like the following: webView.loadDataWithBaseURL( content://com.example.app/gen, generatedHtml, text/html,utf-8,); The web page never jumps to the internal link and I never see any indication that the alert box was sent. In other words, the javascript may not be running. Anyway, I don't really want to use javascript to jump to the internal link but it is one method I have tried. I'd rather do it without javascript 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] Re: Google maps api key jar signing on G1...fail
one more thing... I did install a version of the APK on the phone with a different key, but I fully uninstalled before installing this version. could there be a G1 keystore issue? Clay On Jan 1, 9:33 pm, Clay claytan...@gmail.com wrote: Hello Everyone, I am here with my hat in hand begging for a clue. So have tried to follow the directions for release keys and jar signing to the letter, and I am still in fail mode. Here are my references: http://code.google.com/android/toolbox/apis/mapkey.html http://code.google.com/android/devel/sign-publish.html http://code.google.com/android/maps-api-signup.html Here is the cookbook: 1. ant release. Buildfile: C:\home\cgraham\projects\noi-momentarynow-android\build.xml dirs: [echo] Creating output directories if needed... [mkdir] Created dir: C:\home\cgraham\projects\noi-momentarynow- android\bin\classes resource-src: [echo] Generating R.java / Manifest.java from the resources... aidl: [echo] Compiling aidl files into Java classes... compile: [javac] Compiling 143 source files to C:\home\cgraham\projects\noi- momentarynow-android\bin\classes [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. dex: [echo] Converting compiled files and external libraries into bin/ classes.dex... package-res: package-res-no-assets: [echo] Packaging resources... release: [echo] Packaging bin/noi-momentarynow-android-unsigned.apk for release... [echo] It will need to be signed with jarsigner before being published. BUILD SUCCESSFUL Total time: 7 seconds 2. sign the unsigned jar. 2a. create thekey c:\home\cgraham\projects\noi-momentarynow-android\binkeytool -genkey - v -keystore momentarynow-android-release-key.keystore -alias mn_android -keyalg RSA -validity 1 2b. update thekeyfor the releasekeysupplied by google c:\home\cgraham\projects\noi-momentarynow-android\binkeytool -list - keystore momentarynow-android-release-key.keystore Enter keystore password: ?xml version=1.0 encoding=utf-8? RelativeLayout android:layout_width=wrap_content android:layout_height=wrap_content xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/map_layout RelativeLayout android:id=@+id/map_display_layout android:layout_width=wrap_content android:layout_height=92px android:visibility=gone /RelativeLayout RelativeLayout android:id=@+id/map_layout android:layout_below=@+id/map_display_layout android:layout_height=fill_parent android:layout_width=fill_parent !-- release -- com.google.android.maps.MapView android:layout_below=@id/map_display_layout android:id=@+id/maplocator_activity android:enabled=true android:clickable=true android:apiKey=SUPPLIEDBYGOOGLE-basedonMD5-from-momentarynow- android-release-key.keystore android:layout_height=fill_parent android:layout_width=fill_parent/ /RelativeLayout /RelativeLayout c:\home\cgraham\projects\noi-momentarynow-android\bincopy noi- momentarynow-android-unsigned.apk noi-momentarynow-android.apk 2c. run jarsigner c:\home\cgraham\projects\noi-momentarynow-android\binjarsigner - verbose -keystore momentarynow-android-release-key.keystore noi- momentarynow-android.apk mn_android 3. verify the signing c:\home\cgraham\projects\noi-momentarynow-android\binjarsigner - verify -verbose noi-momentarynow-android.apk all entries are listed as sm s = signature was verified m = entry is listed in manifest k = at least one certificate was found in keystore i = at least one certificate was found in identity scope jar verified. 4. install the apk file. C:\clay\installs\android-sdk-windows-1.0_r1\toolsadb install c:\home \cgraham\projects\noi-momentarynow-android\bin\noi-momentarynow- android.apk 1204 KB/s (0 bytes in 558864.000s) pkg: /data/local/tmp/noi-momentarynow-android.apk Success RESULT: The application installs but when I go to the map activity the tiny checkerboard grid is shown instead of beautiful google maps, which would indicate that there is anapikeyfailure. Any and all help is appreciated, I tried to be spot on and thorough but alas...fail. Clay --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: strang error with aapt on 1.0 SDK on unbuntu 8.04
cgra...@aalto:~/apps/android-sdk-linux_x86-1.0_r1/tools$ ls -al total 8600 drwxr-xr-x 3 cgraham cgraham4096 2008-11-30 22:34 . drwxr-xr-x 5 cgraham cgraham4096 2008-11-30 21:53 .. -rwxrwxrwx 1 cgraham cgraham 2861020 2008-09-22 13:45 aapt -rwxrwxr-x 1 cgraham cgraham 782 2008-09-22 13:45 activitycreator -rwxrwxrwx 1 cgraham cgraham 299220 2008-09-22 13:45 adb -rw-rw 1 cgraham cgraham3371 2008-09-22 13:45 add-accounts.py -rwxrwxrwx 1 cgraham cgraham 821072 2008-09-22 13:45 aidl -rwxrwxr-x 1 cgraham cgraham2362 2008-09-22 13:45 apkbuilder -rwxrwxr-x 1 cgraham cgraham2605 2008-09-22 13:45 ddms -rwxrwxrwx 1 cgraham cgraham 68677 2008-09-22 13:45 dmtracedump -rwxrwxr-x 1 cgraham cgraham1920 2008-09-22 13:45 draw9patch -rwxrwxr-x 1 cgraham cgraham2194 2008-09-22 13:45 dx -rwxrwxrwx 1 cgraham cgraham 3348898 2008-09-22 13:45 emulator -rwxrwxr-x 1 cgraham cgraham1967 2008-09-22 13:45 hierarchyviewer drwxr-xr-x 5 cgraham cgraham4096 2008-11-30 21:53 lib -rwxrwxrwx 1 cgraham cgraham 16592 2008-09-22 13:45 mksdcard -rw-rw 1 cgraham cgraham 152990 2008-09-22 13:45 NOTICE.txt -rwxrwxrwx 1 cgraham cgraham 1143451 2008-09-22 13:45 sqlite3 -rwxrwxr-x 1 cgraham cgraham2965 2008-09-22 13:45 traceview cgra...@aalto:~/apps/android-sdk-linux_x86-1.0_r1/tools$ cgra...@aalto:~/apps/android-sdk-linux_x86-1.0_r1/tools$ ./aapt -bash: ./aapt: No such file or directory On Dec 2 2008, 11:13 am, Ralf ralfo...@gmail.com wrote: Would you like to elaborate? - Could you tell us what command you are executing, in which context (command line ant or eclipse?) - Could you give us the exact output generated? R/ On Sun, Nov 30, 2008 at 10:34 PM, Clay claytan...@gmail.com wrote: its very strange. basically I get a No such file or directory error message, but the file is clearly there when I do an ls. any ideas? Clay --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: When will the Media classes be able to connect to telephone 'conversation' audio channels ?
Hello and Happy New Year everyone - just wondering if anyone has had a chance to see/consider my question. Thanks, Steven. On Dec 26 2008, 10:00 pm, StevenS shearer_ste...@hotmail.com wrote: If I'm reading the API documentation correctly, neither the MediaRecorder.AudioSource nor the MediaPlayer.AudioSource can connect to the telephone conversation audio channels - eg. the TELEPHONE CONVERSATION microphone speaker 'lines'. Both of these would be required to support advanced call handling applications ON THE DEVICE - ie. IVR applications.. Are there any plans to support this type of functionality ? When might it be available ? Thanks, Steven. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: Has anybody received an android dev phone in the US yet?
On Fri, Jan 2, 2009 at 7:21 AM, anand anand.aru...@gmail.com wrote: may i know how much you guys paid for the phone? and what do you get with the phone? any cables to connect to the development machine for debugging? The developer phone is US$399, and it comes with a charger, a USB cable for your computer, and a nasty cheap headphone. -Tim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: Service will not stay running
I noticed another application on the market (called Missed Call) has a big message in the about section about how it's not possible to keep a service running forever. Is this a limitation of the Android OS itself? It seems to me that this feature is a real killer for some applications that must stay running constantly. On Jan 1, 11:25 am, bparker cbpar...@gmail.com wrote: Any way to do this without keeping the phone tied to a PC? On Dec 29 2008, 6:17 pm, Tomei Ningen tomei.nin...@yahoo.com wrote: You can run logcat in a DOS window. That way it will keep as much log as you have disk space DOS adb logcat file From:bparkercbpar...@gmail.com To: Android Developers android-developers@googlegroups.com Sent: Sunday, December 28, 2008 5:21:20 PM Subject: [android-developers] Re: Service will not stay running I tried the Logcat app and it seems that it (the app itself) only keeps about 2 hours worth of data, whereas the Logcat view in eclipse shows me at least twice that much... but still not enough to catch the service being stopped, which usually takes at least a day or more. Any ideas on how to log data for this long? On Dec 28, 7:16 pm, Al alcapw...@googlemail.com wrote: Does Logcat show any reason for killing the Service? You can install Logcat app fromhttp://code.google.com/p/android-random/, which will show logcat on the phone. You can also save the data to a text file, but by default, it saves it to /data/{package-name}/file, which we can't access. You can use this patch to save it to the SD Card:http://pastebin.com/m130c099d Hopefully that'll shine more light on why it gets killed. On Dec 28, 6:55 pm,bparkercbpar...@gmail.com wrote: I have a service which is dynamically registered from within an activity. The service listens for incoming and outgoing phone calls, so it needs to stay running all the time. But after about 1 day, without even launching any other applications, the parent activity is killed and the service stops running. How can I prevent this? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: When will the Media classes be able to connect to telephone 'conversation' audio channels ?
There are no plans for exposing in-call audio to the apps processor. In-call audio is controlled by the radio and typically not accessible to the apps processor. On Dec 26 2008, 10:00 pm, StevenS shearer_ste...@hotmail.com wrote: If I'm reading the API documentation correctly, neither the MediaRecorder.AudioSource nor the MediaPlayer.AudioSource can connect to the telephone conversation audio channels - eg. the TELEPHONE CONVERSATION microphone speaker 'lines'. Both of these would be required to support advanced call handling applications ON THE DEVICE. Are there any plans to support this type of functionality ? When might it be available ? Thanks, Steven. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: imeem and buffering audio with MediaPlayer
I haven't looked at imeem, but one way to get around the issue is using an HTTP proxy on the device. The proxy server could be buffering up the next stream while the current stream is playing. On Dec 30 2008, 11:37 pm, Dan McGuirk mcgu...@gmail.com wrote: Hi, I'm wondering if anyone knows how the imeem application is handling its streaming audio. It seems to be able to buffer the entire track as quickly as possible, as well as buffering the upcoming track before it is played. As far as I can tell from reading several other threads here, that is only possible by writing the track to a file and then pointing the media player at the file. But I'm watching df pretty closely and I don't see the space used on any of the partitions going up as it buffers. Is the data hiding somewhere? Another possibility that was raised was that you could do this using a file descriptor associated with a socket, sort of like in this example: http://groups.google.com/group/android-developers/browse_thread/threa... But apparently this doesn't work--I'm guessing maybe because the MediaPlayer tries to seek on the fd to determine its length? (Guessing based on its behavior with normal files that are appended to after it starts playing.) Is there some other possibility? Obviously the imeem folks have it working well somehow, but I don't quite get how. Some of the other threads I've read seem to be telling me this isn't quite possible (links below). If I just pass URLs to MediaPlayer one after the other in the normal way, there's way too long of a delay (10+ seconds) between tracks. That's too long; long enough for the user to start thinking, Why isn't this working?, pick up the phone and double-check it, etc. So I need some way to start buffering an upcoming track in advance (maybe create a second MediaPlayer and call prepareAsync() early... although this seems messy, and it can't be what imeem is doing). Thanks for any help. Related threads: http://groups.google.com/group/android-developers/browse_thread/threa...http://groups.google.com/group/android-developers/browse_thread/threa...http://groups.google.com/group/android-developers/browse_thread/threa... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: Receive notification for onDestroy, onStop, and onPause etc in other applications?
Maybe your best best is to have a root around the Activity source code http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/app/Activity.java;h=eafb0488490fd144fa6fac15cbd303dfd93eb894;hb=HEAD Having said that the base activity doesn't seem to be signalling these methods in any way so I think your plain out of luck. Al. On Jan 2, 4:26 pm, focuser linto...@gmail.com wrote: anyone please? On Jan 1, 10:26 am, focuser linto...@gmail.com wrote: Just to clarify: by this I meant to receive notification when onDestroy, onStop etc in other applications are called, i.e. somehow monitor the life cycle of apps running on the phone. On Dec 31 2008, 5:01 pm, focuser linto...@gmail.com wrote: Hi, Is there a way to programmatically receive notification onDestroy, onStop, and onPause etc in other applications on the phone? I see there's a READ_LOGS permission and guess this might be achieved by reading the system log. But I couldn't find anything to access the system logs. Thanks and Happy New Year! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: imeem and buffering audio with MediaPlayer
ooh thats an interesting idea. On Jan 2, 9:32 am, Dave Sparks davidspa...@android.com wrote: I haven't looked at imeem, but one way to get around the issue is using an HTTP proxy on the device. The proxy server could be buffering up the next stream while the current stream is playing. On Dec 30 2008, 11:37 pm, Dan McGuirk mcgu...@gmail.com wrote: Hi, I'm wondering if anyone knows how the imeem application is handling its streaming audio. It seems to be able to buffer the entire track as quickly as possible, as well as buffering the upcoming track before it is played. As far as I can tell from reading several other threads here, that is only possible by writing the track to a file and then pointing the media player at the file. But I'm watching df pretty closely and I don't see the space used on any of the partitions going up as it buffers. Is the data hiding somewhere? Another possibility that was raised was that you could do this using a file descriptor associated with a socket, sort of like in this example: http://groups.google.com/group/android-developers/browse_thread/threa... But apparently this doesn't work--I'm guessing maybe because the MediaPlayer tries to seek on the fd to determine its length? (Guessing based on its behavior with normal files that are appended to after it starts playing.) Is there some other possibility? Obviously the imeem folks have it working well somehow, but I don't quite get how. Some of the other threads I've read seem to be telling me this isn't quite possible (links below). If I just pass URLs to MediaPlayer one after the other in the normal way, there's way too long of a delay (10+ seconds) between tracks. That's too long; long enough for the user to start thinking, Why isn't this working?, pick up the phone and double-check it, etc. So I need some way to start buffering an upcoming track in advance (maybe create a second MediaPlayer and call prepareAsync() early... although this seems messy, and it can't be what imeem is doing). Thanks for any help. Related threads: http://groups.google.com/group/android-developers/browse_thread/threa.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: Google maps api key jar signing on G1...fail
so for some unknown reason this resolved itself, I did a clean sweep and uninstall, regened the keys and followed the above cookbook identically, and it now works at least I created an ok tutorial. Clay On Jan 2, 9:11 am, Clay claytan...@gmail.com wrote: one more thing... I did install a version of the APK on the phone with a different key, but I fully uninstalled before installing this version. could there be a G1 keystore issue? Clay On Jan 1, 9:33 pm, Clay claytan...@gmail.com wrote: Hello Everyone, I am here with my hat in hand begging for a clue. So have tried to follow the directions for release keys and jar signing to the letter, and I am still in fail mode. Here are my references: http://code.google.com/android/toolbox/apis/mapkey.html http://code.google.com/android/devel/sign-publish.html http://code.google.com/android/maps-api-signup.html Here is the cookbook: 1. ant release. Buildfile: C:\home\cgraham\projects\noi-momentarynow-android\build.xml dirs: [echo] Creating output directories if needed... [mkdir] Created dir: C:\home\cgraham\projects\noi-momentarynow- android\bin\classes resource-src: [echo] Generating R.java / Manifest.java from the resources... aidl: [echo] Compiling aidl files into Java classes... compile: [javac] Compiling 143 source files to C:\home\cgraham\projects\noi- momentarynow-android\bin\classes [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. dex: [echo] Converting compiled files and external libraries into bin/ classes.dex... package-res: package-res-no-assets: [echo] Packaging resources... release: [echo] Packaging bin/noi-momentarynow-android-unsigned.apk for release... [echo] It will need to be signed with jarsigner before being published. BUILD SUCCESSFUL Total time: 7 seconds 2. sign the unsigned jar. 2a. create thekey c:\home\cgraham\projects\noi-momentarynow-android\binkeytool -genkey - v -keystore momentarynow-android-release-key.keystore -alias mn_android -keyalg RSA -validity 1 2b. update thekeyfor the releasekeysupplied by google c:\home\cgraham\projects\noi-momentarynow-android\binkeytool -list - keystore momentarynow-android-release-key.keystore Enter keystore password: ?xml version=1.0 encoding=utf-8? RelativeLayout android:layout_width=wrap_content android:layout_height=wrap_content xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/map_layout RelativeLayout android:id=@+id/map_display_layout android:layout_width=wrap_content android:layout_height=92px android:visibility=gone /RelativeLayout RelativeLayout android:id=@+id/map_layout android:layout_below=@+id/map_display_layout android:layout_height=fill_parent android:layout_width=fill_parent !-- release -- com.google.android.maps.MapView android:layout_below=@id/map_display_layout android:id=@+id/maplocator_activity android:enabled=true android:clickable=true android:apiKey=SUPPLIEDBYGOOGLE-basedonMD5-from-momentarynow- android-release-key.keystore android:layout_height=fill_parent android:layout_width=fill_parent/ /RelativeLayout /RelativeLayout c:\home\cgraham\projects\noi-momentarynow-android\bincopy noi- momentarynow-android-unsigned.apk noi-momentarynow-android.apk 2c. run jarsigner c:\home\cgraham\projects\noi-momentarynow-android\binjarsigner - verbose -keystore momentarynow-android-release-key.keystore noi- momentarynow-android.apk mn_android 3. verify the signing c:\home\cgraham\projects\noi-momentarynow-android\binjarsigner - verify -verbose noi-momentarynow-android.apk all entries are listed as sm s = signature was verified m = entry is listed in manifest k = at least one certificate was found in keystore i = at least one certificate was found in identity scope jar verified. 4. install the apk file. C:\clay\installs\android-sdk-windows-1.0_r1\toolsadb install c:\home \cgraham\projects\noi-momentarynow-android\bin\noi-momentarynow- android.apk 1204 KB/s (0 bytes in 558864.000s) pkg: /data/local/tmp/noi-momentarynow-android.apk Success RESULT: The application installs but when I go to the map activity the tiny checkerboard grid is shown instead of beautiful google maps, which would indicate that there is anapikeyfailure. Any and all help is appreciated, I tried to be spot on and thorough but alas...fail. Clay --~--~-~--~~~---~--~~ You received this message because you are
[android-developers] Re: layout directories
hello all, few days ago I've posted this question. Any information about where and when to have the resources/layouts will be very helpful. thanks --mahesh n On Dec 26 2008, 10:17 am, Mahesh nagarajan.mah...@gmail.com wrote: Where can I find documentation about different layout directories like layout, layout-land, layout-finger and layout-keyshidden and similar drawable directories? A brief description would be helpful. thanks --mahesh n --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: Market paid-for apps
Quote: But that's for a different thread!. So lets get back to the original question. How are developers in countries like Norway expected to get paid for their application through the Google Marketplace with Google's solution? Are we just going to sit and wait and hope Google will think about us? Or do we have to establish a UK company? Anyone else thought about this? -Christer On 2 Jan, 15:02, Al Sutton a...@funkyandroid.com wrote: We're always open to suggestions for improvements :). Al. Chister Nordvik wrote: Seems like I was wrong: http://www.google.com/support/forum/p/checkout-merchants/thread?tid=2... You can't register as a merchant outside US/UK at the moment. I know all of you want to promote your website but I guess I'll wait for Googles solution since most users will prefer that. But that's for a different thread! ;-) -Christer On Jan 2, 10:02 am, Al Sutton a...@funkyandroid.com wrote: And just so we're not left out; AndAppStore has always allowed paid-for apps using any method the developer wants (PayPal links, Google Checkout links, Mogees integration, etc.) as opposed to requiring any customisations specific to AndAppStore. Al.http://andappstore.com/ Shane Isbell wrote: SlideME is also launching paid apps next week. We have the int'l tax and US domestic sales tax issues sorted, as well as payment to developers, so you will be able to sell freely on our market. It will be an easy process for developers. We also have some good traction with the user community, with over 6,000 downloads of our client. Thanks, Shane http://slideme.org On Thu, Jan 1, 2009 at 10:13 AM, Faisal Abid faisal.a...@gmail.com mailto:faisal.a...@gmail.com wrote: Andspot.com/blog is launching paid apps this week On Jan 1, 2009 12:47 PM, Al Sutton a...@funkyandroid.com mailto:a...@funkyandroid.com wrote: I'd start packing, the email reads; we will enable priced app support in Q1 for developers operating in these countries in the following order: Note the word operating, not selling to, so my understanding is you need to be based in those countries so that Google can process the necessary taxes and comply with the legal requirements of paying companies and individuals in those countries. I'd be interested to hear what you've formed your view from.. Al. Chister Nordvik wrote: I understood it differently :-) The market will open to different coun... -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: layout directories
Have a look at http://code.google.com/android/devel/resources-i18n.html#AlternateResources Xav On Fri, Jan 2, 2009 at 10:58 AM, Mahesh nagarajan.mah...@gmail.com wrote: hello all, few days ago I've posted this question. Any information about where and when to have the resources/layouts will be very helpful. thanks --mahesh n On Dec 26 2008, 10:17 am, Mahesh nagarajan.mah...@gmail.com wrote: Where can I find documentation about different layout directories like layout, layout-land, layout-finger and layout-keyshidden and similar drawable directories? A brief description would be helpful. thanks --mahesh n --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: Service will not stay running
Your saying the parent activity is killed and the service stops running sounds like you are trying to keep the service running by binding to it from an activity. If so, that defeats the purpose of the service. If you want a service to remain running on its own, you need to use startService(). Otherwise, you can try using adb shell dumpsys activity.services to see the state of your service. As long as you have called startService() and not stopService(), it should be listed there with information about its current condition. On Sun, Dec 28, 2008 at 10:55 AM, bparker cbpar...@gmail.com wrote: I have a service which is dynamically registered from within an activity. The service listens for incoming and outgoing phone calls, so it needs to stay running all the time. But after about 1 day, without even launching any other applications, the parent activity is killed and the service stops running. How can I prevent this? Thanks -- 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. 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: Receive notification for onDestroy, onStop, and onPause etc in other applications?
No, sorry. On Fri, Jan 2, 2009 at 8:26 AM, focuser linto...@gmail.com wrote: anyone please? On Jan 1, 10:26 am, focuser linto...@gmail.com wrote: Just to clarify: by this I meant to receive notification when onDestroy, onStop etc in other applications are called, i.e. somehow monitor the life cycle of apps running on the phone. On Dec 31 2008, 5:01 pm, focuser linto...@gmail.com wrote: Hi, Is there a way to programmatically receive notification onDestroy, onStop, and onPause etc in other applications on the phone? I see there's a READ_LOGS permission and guess this might be achieved by reading the system log. But I couldn't find anything to access the system logs. Thanks and Happy New Year! -- 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. 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: Are apk contents already compressed?
Yes all files are compressed by default, except a few extensions for file types that are known to already be compressed (such as .png). On Fri, Jan 2, 2009 at 6:59 AM, inder inder...@gmail.com wrote: Does it make sense to compress large data files stored in the assets/ directory or is the apk already a compressed format? Thanks Inder -- 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. 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: How can i access System directory in an emulator ??
Why do you want to run your own instrumentation against apps in the system directory? Anyway, as you say, you need to be signed with the same certificate as the app your are running your instrumentation against. It's not really a matter of being installed in the system dir. If you don't own the target app enough to be able to sign your instrumentation with the same certificate, then you can't run instrumentation against it, and it is very much designed to be that way. On Fri, Jan 2, 2009 at 4:54 AM, Ashrotronics 030440...@163.com wrote: Thanks for your respondence,What i am trying to do is to start apps in system directory through my own instrumentation class, But i am always rejected by android's security mechanism because i do not have the same signature(as is shown in logs:Permission denied) After further consideration,i decided to try installing my app in the system directory ,but also with no luck , any idears i can do this ?? Thanks ! On Jan 2, 2:39 pm, Andrew Stadler stad...@gmail.com wrote: Downloaded apps (such as those developed with the SDK) cannot be installed into the system directory. Perhaps if you can better describe what you are trying to do and which permissions your app requires, the list community can better assist you. On Thu, Jan 1, 2009 at 9:37 PM, Ashrotronics 030440...@163.com wrote: Hi all: It seemed that some work can not be done due to permission reasons unless my APK is in installed in the System/app directory ,So,is there any way i can do that ?? Thanks in advance ~!- Hide quoted text - - Show quoted text - -- 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. 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: How to initial SharedPreferences from an XML file in SD card
No, sorry. On Fri, Jan 2, 2009 at 2:16 AM, elvisw elvise...@gmail.com wrote: Hi, Can I initial a SharedPreferences instance from an XML file saved in SD card?? Is it possible to do that?? Best Regards, Elvis. -- 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. 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: Market paid-for apps
From what I can tell I believe your options are use a UK or US publishing company who in turn can list on Market, or try and build your own presence and use something like Mogees and distribute through the app directories which will allow you to (and hopefully help to make people aware of the alternative app directories :)). Al. http://andappstore.com/ Chister Nordvik wrote: Quote: But that's for a different thread!. So lets get back to the original question. How are developers in countries like Norway expected to get paid for their application through the Google Marketplace with Google's solution? Are we just going to sit and wait and hope Google will think about us? Or do we have to establish a UK company? Anyone else thought about this? -Christer On 2 Jan, 15:02, Al Sutton a...@funkyandroid.com wrote: We're always open to suggestions for improvements :). Al. Chister Nordvik wrote: Seems like I was wrong: http://www.google.com/support/forum/p/checkout-merchants/thread?tid=2... You can't register as a merchant outside US/UK at the moment. I know all of you want to promote your website but I guess I'll wait for Googles solution since most users will prefer that. But that's for a different thread! ;-) -Christer On Jan 2, 10:02 am, Al Sutton a...@funkyandroid.com wrote: And just so we're not left out; AndAppStore has always allowed paid-for apps using any method the developer wants (PayPal links, Google Checkout links, Mogees integration, etc.) as opposed to requiring any customisations specific to AndAppStore. Al.http://andappstore.com/ Shane Isbell wrote: SlideME is also launching paid apps next week. We have the int'l tax and US domestic sales tax issues sorted, as well as payment to developers, so you will be able to sell freely on our market. It will be an easy process for developers. We also have some good traction with the user community, with over 6,000 downloads of our client. Thanks, Shane http://slideme.org On Thu, Jan 1, 2009 at 10:13 AM, Faisal Abid faisal.a...@gmail.com mailto:faisal.a...@gmail.com wrote: Andspot.com/blog is launching paid apps this week On Jan 1, 2009 12:47 PM, Al Sutton a...@funkyandroid.com mailto:a...@funkyandroid.com wrote: I'd start packing, the email reads; we will enable priced app support in Q1 for developers operating in these countries in the following order: Note the word operating, not selling to, so my understanding is you need to be based in those countries so that Google can process the necessary taxes and comply with the legal requirements of paying companies and individuals in those countries. I'd be interested to hear what you've formed your view from.. Al. Chister Nordvik wrote: I understood it differently :-) The market will open to different coun... -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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 Start a RTSP connection
According to this thread: http://groups.google.com/group/android-developers/browse_thread/thread/a68113ee42f62353 there are issues streaming with the emulator, so you may have to test on a G1 device. Also, I've been able to play back the video RTSP streams from http://www.americafree.tv/ For example - this works on my G1: private VideoView mVideoView; ... mVideoView = (VideoView) findViewById(R.id.MainVideoView); mVideoView.setVideoURI(Uri.parse(rtsp://video2.americafree.tv/ AFTVHorrorH26496.sdp)); mVideoView.start(); You could probably do the same thing with the MediaPlayer class, but it was easier for me to use a VideoView since I was playing back video. -Jason On Dec 24 2008, 11:30 pm, lucky wjj...@gmail.com wrote: Kamil, Do you do such RTSP streaming test on emulator or G1 phone? Or is it possible to test it on emulator? BRs wjjsun On Dec 20, 9:14 pm, kamil kamit...@gmail.com wrote: Hi, maybe someone could post here URL of someRTSPstream which is known to work with G1? It would really help a lot in finding out why SDP answer is being rejected. I believe there must be at least one person which has been testing Android'sRTSPstack ;) Or maybe I'm the only one who leaves testing to the customer ;D thanks Kamil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: layout directories
Thanks a lot Xav! --mahesh n On Jan 2, 11:23 am, Xavier Ducrohet x...@google.com wrote: Have a look athttp://code.google.com/android/devel/resources-i18n.html#AlternateRes... Xav On Fri, Jan 2, 2009 at 10:58 AM, Mahesh nagarajan.mah...@gmail.com wrote: hello all, few days ago I've posted this question. Any information about where and when to have the resources/layouts will be very helpful. thanks --mahesh n On Dec 26 2008, 10:17 am, Mahesh nagarajan.mah...@gmail.com wrote: Where can I find documentation about different layout directories like layout, layout-land, layout-finger and layout-keyshidden and similar drawable directories? A brief description would be helpful. thanks --mahesh n --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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 we restart an Activity properly?
Hi All, I created a restart() method to restart an Activity, there are some reasons for us to do this since there are some thing that we can not do unless we make the Activity completely restarted, for example, if the SurfaceView is created in GPU memory and we want to move it back to normal memory, than we have to restart the Activity. Anyway, the following cod is our implementation of restart(): public void restart(String commandLineArguments) { Intent intent = new android.content.Intent(); intent.setClass(this, this.getClass()); //We will start the Activity itself, not any other this.startActivity(intent); //this.finish(); //I need to remove this line, otherwise the new Activity will just live for a short moment. } The code is almost same as the SDK sample cod from Forwarding.java except the last line this.finish(). If we have this line, then the newly started Activity will be shut down too (why?). After I eliminated this line, a new Activity is started successfully but the old activity is still inside of the Activity Stack, as the result, there going to be numbers of instance of same Activity in the Activity stack. So the question is: how to properly kill previous Activity in the newly launched Activity? Or, in other words, how can a Activity knows who launched me? and need to terminate it I tried to use Intent, but could not find a suitable function. Many thanks for any suggestions. Hongkun www.omnigsoft.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: Mobile Developers Research Project asking for Android's opinion, by Carnegie mellon University
Hi folks, thanks for your participation in our research!! We need more of you developers to fill in the survey to reach a meaningful sample. I remind you that it is open until Jan. 10th. FILL IT NOW and DON'T MISS THE CHOICE TO WIN A PRIZE! http://www.questionpro.com/akira/TakeSurvey?id=1108623 Bests, Alberto --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: suggestion. replace onActivityResult(), Request Code and Result Codes with flexible callbacks
Great points! I am going to try and produce this patch. You are welcome to join me in this effort. Am going to download the source. - Anil On Dec 28 2008, 11:40 pm, brnzn brendon.mathe...@gmail.com wrote: Something like Anil is suggesting is probably eventually going to be essential for the platform as without it re-using 3rd party activities is problematic. Imagine a case where from your activity you want to invoke two different 3rd party activities to do some particular tasks and give you back results. It's possible both those activities might use the same requestCode and resultCode values, meaning that in your onActivityResult() method, you're going to have a hard time figuring out what actually happened. There's a post on the developerLife blog where the author basically implemented what Anil is suggesting in his own Activity sub-class:http://developerlife.com/tutorials/?p=302 While this works, it re-purposes the requestCode parameter which should represent the verb (Add, delete, whatever) to instead be a unique identifier for the request. It would be better if the framework provided direct support for this. On Dec 15, 11:24 am, Anil anil.r...@gmail.com wrote: I am willing to collaborate with anyone interested to implement this. I don't have the ability, knowledge or desire to implement it alone. BTW, are you the Dianne in the Android video here?http://www.youtube.com/watch?v=3aUjukCdPyQ On Dec 12, 3:01 pm, Dianne Hackborn hack...@android.com wrote: Whoops, sorry I missed that you were talking about having the callback be a method name. That would indeed be more possible to implement... but still, this is not nearly as high a priority as many other things, so the way to get this done is to contribute a patch. On Fri, Dec 12, 2008 at 12:59 PM, Dianne Hackborn hack...@android.comwrote: (This would be more appropriate for the android-framework group to talk about changes to the platform.) There is currently no plan for doing this kind of thing, because it is extremely problematic to deal with the case when the activity's process is killed and restarted between startActivityForResult() and eventually receiving the result. If this is something you really want, you are welcome to work on a patch you can contribute to add the feature. On the priority list of the people currently working on the platform, though, it is very low because: (1) Given the processing killing issue, an API as simple as being described is impossible to do, so it would need to be more complicated, making its utility unclear. (2) Whatever desired API there is can just as easily be implemented by the application, it doesn't need to be done in the framework. There is very little additional capabilities the framework has to do this, except possibly the chance to change the result from an int to a string (and so being able to make it say a class name that it dynamically instantiates when delivering the result). On Fri, Dec 12, 2008 at 9:39 AM, Anil anil.r...@gmail.com wrote: Objective: simpler and arguably more elegant design by making object oriented and remove the mass of switch statements that result using only one fixed callback method - onActivityResult(), Request Code and Result Codes. Suggestion: modify API so that calling startActivityForResult() will be instead startActivityForResult(callbackMethodName). where callbackMethodName is a method. We could simply use a String rather than Method, to keep things simple. callbackMethodName(Bundle result) { } If an error happens in the sub activity, then the exception that is thrown, is delivered to callbackMethodName() which must contain an empty try block at the beginning. try{ } catch(e1){ handle exception e1 thrown in the call to the sub activity } catch(e2) { handle exception e2 thrown in the call to the sub activity } now other normal code in callbackMethodName() Any other result information is communicated by the Bundle result parameter. (I have submitted it as a suggestion in issue tracker. http://code.google.com/p/android/issues/detail?id=1520) -- 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. All such questions should be posted on public forums, where I and others can see and answer them. -- 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. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received
[android-developers] Re: Any updates on paid apps timeline?
There is only 1 Android phone on the market - G1 and while there is only 1 iPhone as well number of G1 users is nowhere near the number of iPhone users. Not yet anyway - maybe in a couple of years... I think there are more developers desperately trying to get some money for their apps than there are current Android users willing to pay for them :) On Jan 2, 9:50 am, NitroDesk gsuku...@gmail.com wrote: @Dianne, You are right, i think part of the reason why the demand for the ability to release paid apps is high so early on is the fantastic job that has been done on the SDK, the platform that was picked for the programmability and in general the confidence developers (even at the time of release) have on the platform that they will be able to stand behind the apps they build. A lot of this is testament to the trust that we as developers place on the platform. So all this clamoring should be taken as a compliment :-) -Nitro On Dec 30 2008, 5:29 pm, Justin Collum jcol...@gmail.com wrote: I heard somewhere that there was a 90 day moratorium on not-free apps. Looks like I heard wrong. On Tue, Dec 30, 2008 at 2:38 PM, Dianne Hackborn hack...@android.comwrote: Just to be clear, this is lots of speculation and no facts. :) Some facts I can share: Android is stable as of 1.0 and we will not be breaking compatibility, and in particular we will not be breaking applications in the cupcake branch. Comparing Android to iPhone in that way is also a questionable endeavor, since the way they were released was very different: iPhone shipped for almost a year with no support for third party apps and then released an update to add that feature, while Android shipped from the start with third party app support. I can't comment on adoption of the G1 vs. the original iPhone, but clearly at this point there is a smaller number of Android users, simply because we started from 0 at the point where third party developers were supported. This is something developers should keep in mind and certainly isn't being hidden. On Mon, Dec 29, 2008 at 1:10 PM, Sven Boden boden.s...@gmail.com wrote: I think the answer is guessable (and no I don't work for Google)... when the android OS settles down more or less. I expect it a little while after the cupcake release. Currently some things are still going to break and if they would allow you to buy applications from the market, you would need to get a new version of the applications very quickly, ... I also don't think android adoption is as quick as the iphone's. In a lot of countries you can't even get an T1 in a legal/normal way... Belgium e.g. :( . So maybe if applications would come out now as paying applications they would disappoint the developers as well qua sales. Regards, Sven 2008/12/29 NitroDesk gsuku...@gmail.com True, but the most distressing part is the inability to distribute paid apps on the market, even with the possibility of charging for them offsite. I bet this keeps lots of good apps from showing up on the market, and worse still, from being developed. -Nitro On Dec 28, 12:48 pm, Sven Boden boden.s...@gmail.com wrote: There are already sites out there which allow you to charge for android apps, for the official site I didn't see anything out there yet. Regards, Sven 2008/12/28 Redhunt androidgr...@survivorsoft.com Has anyone heard any news on when developers will be able to post apps for a fee ? Thanks- Hide quoted text - - Show quoted text - -- 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. 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 to initial SharedPreferences from an XML file in SD card
but you can supply default values when you retrieve preference parameters. Make these defaults the same as what you'd put in the xml, and you're done. Or you have your app read an xml file and initialize the preferences with that. On Jan 2, 8:38 pm, Dianne Hackborn hack...@android.com wrote: No, sorry. On Fri, Jan 2, 2009 at 2:16 AM, elvisw elvise...@gmail.com wrote: Hi, Can I initial a SharedPreferences instance from an XML file saved in SD card?? Is it possible to do that?? Best Regards, Elvis. -- 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. 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: Any updates on paid apps timeline?
Google is using Android to push their Google Checkout service. The only problem is that Google Checkout is fairly new and rather limited. It just recently went international. They will get there eventually, on their own schedule. Shane On Fri, Jan 2, 2009 at 1:13 PM, loty lev.pert...@gmail.com wrote: There is only 1 Android phone on the market - G1 and while there is only 1 iPhone as well number of G1 users is nowhere near the number of iPhone users. Not yet anyway - maybe in a couple of years... I think there are more developers desperately trying to get some money for their apps than there are current Android users willing to pay for them :) On Jan 2, 9:50 am, NitroDesk gsuku...@gmail.com wrote: @Dianne, You are right, i think part of the reason why the demand for the ability to release paid apps is high so early on is the fantastic job that has been done on the SDK, the platform that was picked for the programmability and in general the confidence developers (even at the time of release) have on the platform that they will be able to stand behind the apps they build. A lot of this is testament to the trust that we as developers place on the platform. So all this clamoring should be taken as a compliment :-) -Nitro On Dec 30 2008, 5:29 pm, Justin Collum jcol...@gmail.com wrote: I heard somewhere that there was a 90 day moratorium on not-free apps. Looks like I heard wrong. On Tue, Dec 30, 2008 at 2:38 PM, Dianne Hackborn hack...@android.com wrote: Just to be clear, this is lots of speculation and no facts. :) Some facts I can share: Android is stable as of 1.0 and we will not be breaking compatibility, and in particular we will not be breaking applications in the cupcake branch. Comparing Android to iPhone in that way is also a questionable endeavor, since the way they were released was very different: iPhone shipped for almost a year with no support for third party apps and then released an update to add that feature, while Android shipped from the start with third party app support. I can't comment on adoption of the G1 vs. the original iPhone, but clearly at this point there is a smaller number of Android users, simply because we started from 0 at the point where third party developers were supported. This is something developers should keep in mind and certainly isn't being hidden. On Mon, Dec 29, 2008 at 1:10 PM, Sven Boden boden.s...@gmail.com wrote: I think the answer is guessable (and no I don't work for Google)... when the android OS settles down more or less. I expect it a little while after the cupcake release. Currently some things are still going to break and if they would allow you to buy applications from the market, you would need to get a new version of the applications very quickly, ... I also don't think android adoption is as quick as the iphone's. In a lot of countries you can't even get an T1 in a legal/normal way... Belgium e.g. :( . So maybe if applications would come out now as paying applications they would disappoint the developers as well qua sales. Regards, Sven 2008/12/29 NitroDesk gsuku...@gmail.com True, but the most distressing part is the inability to distribute paid apps on the market, even with the possibility of charging for them offsite. I bet this keeps lots of good apps from showing up on the market, and worse still, from being developed. -Nitro On Dec 28, 12:48 pm, Sven Boden boden.s...@gmail.com wrote: There are already sites out there which allow you to charge for android apps, for the official site I didn't see anything out there yet. Regards, Sven 2008/12/28 Redhunt androidgr...@survivorsoft.com Has anyone heard any news on when developers will be able to post apps for a fee ? Thanks- Hide quoted text - - Show quoted text - -- 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. 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: Receive notification for onDestroy, onStop, and onPause etc in other applications?
Thanks Alistair and Dianne, Now I understand that a notification is not possible, But how does an app with READ_LOGS permission access system log? I couldn't find any documentation about this either. I'm guessing if one could read the log, the app could pretty much know when an app is killed because the ActivityManager write a line into the log when this happens. On Jan 2, 11:29 am, Dianne Hackborn hack...@android.com wrote: No, sorry. On Fri, Jan 2, 2009 at 8:26 AM, focuser linto...@gmail.com wrote: anyone please? On Jan 1, 10:26 am, focuser linto...@gmail.com wrote: Just to clarify: by this I meant to receive notification when onDestroy, onStop etc in other applications are called, i.e. somehow monitor the life cycle of apps running on the phone. On Dec 31 2008, 5:01 pm, focuser linto...@gmail.com wrote: Hi, Is there a way to programmatically receive notification onDestroy, onStop, and onPause etc in other applications on the phone? I see there's a READ_LOGS permission and guess this might be achieved by reading the system log. But I couldn't find anything to access the system logs. Thanks and Happy New Year! -- 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. 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: How can we restart an Activity properly?
Just want to add one more thing: I printed out the instance count by this.getInstanceCount(), the result is that the instance count is increased once the restart() is called, like 1, 2, 3, ..., which means the old instance is not killed. We need to kill the old instance in the newly restarted Activity. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: When will the Media classes be able to connect to telephone 'conversation' audio channels ?
This is a mistake. There are many reasons why exposing in-call audio to the apps process is a good idea. Please reconsider your position on this. Kind Regards, Vince On Jan 3, 1:27 am, Dave Sparks davidspa...@android.com wrote: There are no plans for exposing in-call audio to the apps processor. In-call audio is controlled by the radio and typically not accessible to the apps processor. On Dec 26 2008, 10:00 pm, StevenS shearer_ste...@hotmail.com wrote: If I'm reading the API documentation correctly, neither the MediaRecorder.AudioSource nor the MediaPlayer.AudioSource can connect to the telephone conversation audio channels - eg. the TELEPHONE CONVERSATION microphone speaker 'lines'. Both of these would be required to support advanced call handling applications ON THE DEVICE. Are there any plans to support this type of functionality ? When might it be available ? Thanks, Steven. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: Could Chinese developper register Android market?
I am Chinese and I register Android market with my CMB credit card mawei...@gmail.com 13585201588 2009/1/2 EvgenyV evgen...@gmail.com: I'm Israeli developer. I completed registration as well. But the question is whether we could upload chargable application and get the income from Google market? Thanks On Dec 12 2008, 5:44 pm, cpedia cpe...@gmail.com wrote: Yes. Of course. I registered and successed. I use MasterCard of chinamerchantbank. On Dec 11, 9:02 am, honglian...@gmail.com honglian...@gmail.com wrote: hi all I Chinese developper have a MasterCard and want to register Android market. But I found the location item has not China. Would you like to let me know if I can ignore this item and use Chinese MasterCard (Bank of China) Android Market successfully? Thank you very much.- 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 access System directory in an emulator ??
Here is the case: While i'm trying to make fuctional tests against all apps installed in my device,The feature Target package of My instrumentation class makes it insurmountable to access a third pkg,But in some cases,It is much of a need to do so, e.g. an email from a stranger comes and after i view the content ,i decide to add him to my contact list by pressing menu-add to contact This action may invoke a certain activity in pkg .contact,And in this situation,My instrumentation will abort,as the top activity is already out of the target pkg(.email), So, any way i can do this ?? Thanks again! On Jan 3, 3:38 am, Dianne Hackborn hack...@android.com wrote: Why do you want to run your own instrumentation against apps in the system directory? Anyway, as you say, you need to be signed with the same certificate as the app your are running your instrumentation against. It's not really a matter of being installed in the system dir. If you don't own the target app enough to be able to sign your instrumentation with the same certificate, then you can't run instrumentation against it, and it is very much designed to be that way. On Fri, Jan 2, 2009 at 4:54 AM, Ashrotronics 030440...@163.com wrote: Thanks for your respondence,What i am trying to do is to start apps in system directory through my own instrumentation class, But i am always rejected by android's security mechanism because i do not have the same signature(as is shown in logs:Permission denied) After further consideration,i decided to try installing my app in the system directory ,but also with no luck , any idears i can do this ?? Thanks ! On Jan 2, 2:39 pm, Andrew Stadler stad...@gmail.com wrote: Downloaded apps (such as those developed with the SDK) cannot be installed into the system directory. Perhaps if you can better describe what you are trying to do and which permissions your app requires, the list community can better assist you. On Thu, Jan 1, 2009 at 9:37 PM, Ashrotronics 030440...@163.com wrote: Hi all: It seemed that some work can not be done due to permission reasons unless my APK is in installed in the System/app directory ,So,is there any way i can do that ?? Thanks in advance ~!- Hide quoted text - - Show quoted text - -- 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. 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: Could Chinese developper register Android market?
You guys should really take a look at SlideME: http://slideme.org. We are rolling out paid app support next week and SlideME is much more favorable to the developer than the Android Market. For example, excluding taxes, a $2 app sold from the Android Market, after carrier cut and the Google Checkout transaction, you would retain only 58% of the sale price. With SlideME, you will retain 92.5% of the sale. Shane On Fri, Jan 2, 2009 at 4:13 PM, Margaret mawei...@gmail.com wrote: I am Chinese and I register Android market with my CMB credit card mawei...@gmail.com 13585201588 2009/1/2 EvgenyV evgen...@gmail.com: I'm Israeli developer. I completed registration as well. But the question is whether we could upload chargable application and get the income from Google market? Thanks On Dec 12 2008, 5:44 pm, cpedia cpe...@gmail.com wrote: Yes. Of course. I registered and successed. I use MasterCard of chinamerchantbank. On Dec 11, 9:02 am, honglian...@gmail.com honglian...@gmail.com wrote: hi all I Chinese developper have a MasterCard and want to register Android market. But I found the location item has not China. Would you like to let me know if I can ignore this item and use Chinese MasterCard (Bank of China) Android Market successfully? Thank you very much.- 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: Market paid-for apps
On Fri, Jan 2, 2009 at 11:19 AM, Chister Nordvik cnord...@gmail.com wrote: Quote: But that's for a different thread!. So lets get back to the original question. How are developers in countries like Norway expected to get paid for their application through the Google Marketplace with Google's solution? Are we just going to sit and wait and hope Google will think about us? Or do we have to establish a UK company? Sounds like a personal choice to me. Either you choose to wait for Google or you don't. Shane --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: Could Chinese developper register Android market?
This is false. As we've said, developers will receive 70% of the Android Market revenue for their apps, when billing is available. http://android-developers.blogspot.com/2008/10/android-market-now-available-for-users.html - Dan On Fri, Jan 2, 2009 at 5:58 PM, Shane Isbell shane.isb...@gmail.com wrote: You guys should really take a look at SlideME: http://slideme.org. We are rolling out paid app support next week and SlideME is much more favorable to the developer than the Android Market. For example, excluding taxes, a $2 app sold from the Android Market, after carrier cut and the Google Checkout transaction, you would retain only 58% of the sale price. With SlideME, you will retain 92.5% of the sale. Shane On Fri, Jan 2, 2009 at 4:13 PM, Margaret mawei...@gmail.com wrote: I am Chinese and I register Android market with my CMB credit card mawei...@gmail.com 13585201588 2009/1/2 EvgenyV evgen...@gmail.com: I'm Israeli developer. I completed registration as well. But the question is whether we could upload chargable application and get the income from Google market? Thanks On Dec 12 2008, 5:44 pm, cpedia cpe...@gmail.com wrote: Yes. Of course. I registered and successed. I use MasterCard of chinamerchantbank. On Dec 11, 9:02 am, honglian...@gmail.com honglian...@gmail.com wrote: hi all I Chinese developper have a MasterCard and want to register Android market. But I found the location item has not China. Would you like to let me know if I can ignore this item and use Chinese MasterCard (Bank of China) Android Market successfully? Thank you very much.- 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: Could Chinese developper register Android market?
I'm just cranking the basic math, but if you guys at Google imply you aren't charging anything for Google checkout, then great! The conclusion being the same, numbers different: 70% vs 92.5% for a $2 app, and we can sell apps to Chinese customers and remit funds to Chinese developers. Same for Israel. No $25 signup fee. This means that SlideME's Marketplace puts more money in the developer's pocket (In the case of Margaret and EvgenyV it would be 0% under the Android Market). Shane On Fri, Jan 2, 2009 at 7:43 PM, Dan Morrill morri...@google.com wrote: This is false. As we've said, developers will receive 70% of the Android Market revenue for their apps, when billing is available. http://android-developers.blogspot.com/2008/10/android-market-now-available-for-users.html - Dan On Fri, Jan 2, 2009 at 5:58 PM, Shane Isbell shane.isb...@gmail.comwrote: You guys should really take a look at SlideME: http://slideme.org. We are rolling out paid app support next week and SlideME is much more favorable to the developer than the Android Market. For example, excluding taxes, a $2 app sold from the Android Market, after carrier cut and the Google Checkout transaction, you would retain only 58% of the sale price. With SlideME, you will retain 92.5% of the sale. Shane On Fri, Jan 2, 2009 at 4:13 PM, Margaret mawei...@gmail.com wrote: I am Chinese and I register Android market with my CMB credit card mawei...@gmail.com 13585201588 2009/1/2 EvgenyV evgen...@gmail.com: I'm Israeli developer. I completed registration as well. But the question is whether we could upload chargable application and get the income from Google market? Thanks On Dec 12 2008, 5:44 pm, cpedia cpe...@gmail.com wrote: Yes. Of course. I registered and successed. I use MasterCard of chinamerchantbank. On Dec 11, 9:02 am, honglian...@gmail.com honglian...@gmail.com wrote: hi all I Chinese developper have a MasterCard and want to register Android market. But I found the location item has not China. Would you like to let me know if I can ignore this item and use Chinese MasterCard (Bank of China) Android Market successfully? Thank you very much.- 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] Tutorial on searching in MapView
Hey Guys, Does anyone know of a tutorial or code example that shows how to use the search functionality that works so well on the google maps but I want to do something similar in my android app. I saw a new cool app called dinefinder where the app launches with a mapview that has the pins laid out pointing to different restaurants that the user can click and get additional information. I wonder if anyone has code samples on how to get the restaurant data from the map search?? Also, I see that the Maps on the G1 has a Search and Directions menu options and I wanted to see how to add something like that in my google app. Does anyone know or any code samples for this?? Thanks, BarbieDahl --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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] Fonts
Hi Guys... I'm new in the android platformbut i created one project in androidhow to use Tamil Fonts in android..I created one layout and then i set background image...i giving Scrollview...the image also scrolling..so i want stadard background image.please help me --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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 write code to uninstall apk from device/emulator?
Hi , this is the coding for uninstall the apk file. *adb uninstall apk_filename in command mode *using emulator Go to the dev tools go to package browser then unistall the package name now ur emulator delelte that package Thank u --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: WebView Behavior on Android
Hi, can u send me ur coding please.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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] http proxy
Hi, Is there a way to set the http proxy behind a wifi network? I looked around but couldn't find any option. Even a non-authenticated proxy setting will do. There's no way to do this in the settings page, and I could neither find any app that let's me do this. Thanks, Krishna. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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: Customizing ListAdapter
Hi, The examples in the blog are using ViewInflate class, however I can't find this class in the SDK API reference. http://code.google.com/android/reference/classes.html#letter_V Is this deprecated ? Eclipse is also complaining about this. Thanks, Sarath On Wed, Dec 31, 2008 at 6:01 AM, Mark Murphy mmur...@commonsware.com wrote: Sarath Kamisetty wrote: Hi, I have a ListActivity for which I am setting up ListAdapter like below: phoneListAdapter = new SimpleCursorAdapter(this, R.layout.contacts_list_row, managedCursor, new String[] { PhonesColumns.NUMBER, PhonesColumns.TYPE}, new int[] { R.id.text1, R.id.text2 }); setListAdapter(phoneListAdapter); However, the output here is not readable as PhonesColumns.TYPE is displaying number strings like 2, 1 etc. A sample output that I get is like below: 111-222- 2 222-333- 1 I want to make it more readable by converting them to Mobile, Home, Work etc. A sample desired output list is like below: 111-222- MOBILE 222-333- WORK Essentially, I don't want the columns to be displayed as is. How do I achieve this ? There are two ways to approach this: as a data problem, or as a view problem. As a data problem, you could create your own CursorWrapper class that wraps your managedCursor and converts PhonesColumns.TYPE into something more user-friendly. I tend to look at this as a view problem, so I create a custom adapter that creates my own views, where I can make 2, 1 be MOBILE, WORK or different icons or whatever I feel like. I have a whole series of blog posts up on this topic: http://androidguys.com/?s=fancy+listviews Forgive the formatting, and be aware that the older posts are for the M5 SDK and so need some tweaking to work on the current SDK. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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 write code to uninstall apk from device/emulator?
Hi, Thanks for your reply. I mean how to write code to uninstall apk from device/emulator, not in an interactive commander line or shell. With SDK0.9, there's a method, packagemanager.deletePackage(), but with SDK1, that method is removed. I wonder how to uninstall apk with SDK1. Thanks - Original Message - From: kiran raj To: android-developers@googlegroups.com Sent: Saturday, January 03, 2009 2:33 PM Subject: [android-developers] Re: How to write code to uninstall apk from device/emulator? Hi , this is the coding for uninstall the apk file. *adb uninstall apk_filename in command mode *using emulator Go to the dev tools go to package browser then unistall the package name now ur emulator delelte that package Thank u --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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 write code to uninstall apk from device/emulator?
On Fri, Jan 2, 2009 at 11:23 PM, Dr. Tingrong Lu lutingr...@hotmail.comwrote: Hi, Thanks for your reply. I mean how to write code to uninstall apk from device/emulator, not in an interactive commander line or shell. With SDK0.9, there's a method, packagemanager.deletePackage(), but with SDK1, that method is removed. I wonder how to uninstall apk with SDK1. You can't do it. Thanks - Original Message - *From:* kiran raj mkkiran...@gmail.com *To:* android-developers@googlegroups.com *Sent:* Saturday, January 03, 2009 2:33 PM *Subject:* [android-developers] Re: How to write code to uninstall apk from device/emulator? Hi , this is the coding for uninstall the apk file. *adb uninstall apk_filename in command mode *using emulator Go to the dev tools go to package browser then unistall the package name now ur emulator delelte that package Thank u --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. 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 -~--~~~~--~~--~--~---