[android-developers] Re: Editing the incoming call dialog
Sorry, you can't do this with the SDK. On Tue, Nov 25, 2008 at 4:00 AM, Rich [EMAIL PROTECTED] wrote: Can anyone offer some advice on how I can add/replace text on the dialog displayed when an incoming call is ringing? I guess I need a way to get a handle on the view. Thanks Rich -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: android htc touch HD
Hi, this kind of discussion should be on the android-porting list, thanks. On Mon, Nov 24, 2008 at 1:20 PM, Josh Joy [EMAIL PROTECTED] wrote: Hi, Was wondering if anyone was working on putting android on the htc touch HD? If there are any efforts, I would be willing to help out. Thanks, Josh -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android on Motorola A810...
Questions about porting Android should be on the android-porting list, thanks! On Mon, Nov 24, 2008 at 10:42 PM, Sam Android [EMAIL PROTECTED] wrote: Hello ALL, Can Android be ported on Motorola A810? Has anyone done this? A little I have come to know that Android was ported on Motorola Ming A1200, the predecessor of Motorola A810. Regards, - sam. -- Add more friends to your messenger and enjoy! Invite them now.http://in.rd.yahoo.com/tagline_messenger_6/*http://messenger.yahoo.com/invite/ -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: FLAG_ONEWAY for asynchronous communication between services
A oneway interface currently only applies when an IPC is needed to go through the interface -- that is when the callee and caller are running in different processes -- and is handled by Binder, the low-level IPC transport. When two interfaces are in the same process, calls on them are just direct function calls into the other object, so there is no way to introduce asynchronicity. I'd like to do the user-space work to allow for async local interfaces, but don't know when that may happen. In the meantime, what we generally do is use a Handler on the receiving side to schedule the work in another thread so that all calls into the object are async. On Tue, Nov 25, 2008 at 4:20 AM, nimbus83 [EMAIL PROTECTED] wrote: Hi, for research reasons I want to study the possibility for asynchronous communication between services in Android. Currently I'm using the FLAG_ONEWAY option in the AIDL interface of the services. What I see is that the asynchronous commmunication works fine when the services are implemented in different APKs. If the services are implemented in the same APK, they communicate synchronous although I have defined them with the attribute android:process=:remote and I've used the FLAG_ONEWAY option. Can anybody explain me why that happens? Is it possible for two services to communicate asynchronously with each other through AIDL interfaces using the FLAG_ONEWAY option? Best wishes, Vladimir -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How can I get the Contact Pointer of Google(Android) blow Issue
There is no need to get in contact with Google, Android is a fully open-source platform and you can get the source and start working with it: http://source.android.com/ On Mon, Nov 24, 2008 at 10:49 PM, Hunt Bae [EMAIL PROTECTED] wrote: Hi! My name is Hunt Bae from Korea Telematics Business Association (KOTBA: http://www.kotba.org) which was established to promote telematics market in Korea with Gov't (Ministry of Knowledge Economy)and private sectors in Korea. The reason I am writing this Post to you is that since we have 55 members who are leading telematics market in Korea such as Mobile operator, Car OEM(Hyundai Motor) and several device manufacturers (SamSung and LG), we would like to ask you for a few thing to cooperate. 1. We would like to propose if we can work on platform Android for car device. 2. We have established AIIC-Automotive Information Innovation Center with Microsoft, Hyundai Motor and IITA(Institute for information Technology Advancement) that we would like to join this work or apply your platform to this center if possible) I know this very sudden and informal way to approach but I would like to who to contact and what to do o process this with google. Thank you very much for your time and hope to hearing from you soon. Best Regards, -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Notification details Activity never receives Intent used to fire it
It may or may not be the right thing to do. If you are not going to use the old intent, you should just use FLAG_CANCEL_CURRENT to first cancel the existing one so it can be replaced with your new one. On Tue, Nov 25, 2008 at 12:29 AM, Guillaume Perrot [EMAIL PROTECTED] wrote: Yes using request codes is the right thing to do, this is just a documentation bug in the end. 2008/11/25 alex [EMAIL PROTECTED] Ok, so I ran into this exact issue too. I need to send different data via the extras of the intent, but the old intent with the old extras keeps getting delivered unless I pass unique values into the mysterious requestCode parameter. So this begs the question: is using the requestCode in this way kosher? Is there a better way? BTW, I'm using PendingIntents for alarms and notifications. On Nov 21, 2:47 pm, Guillaume Perrot [EMAIL PROTECTED] wrote: Thanks for your answer, it eventually solves the mystery \o/ I quoted it in the Issue 863. http://code.google.com/p/android/issues/detail?id=863 On 21 nov, 23:38, Dianne Hackborn [EMAIL PROTECTED] wrote: Ah you are right, the request code is also part of its identity. For the nitty gritty details, this file defines a PendingIntent maintained by the system and the full key used to match them: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;. .. On Fri, Nov 21, 2008 at 3:07 AM, Matthias [EMAIL PROTECTED] wrote: And to further clear up my intentions: I have a model class called Event. It represents user activity in my system (such as rating items or writing messages). These events are delivered to the user through NotificationManager. For every such event, the NM calls Event.toNotification() and delivers the notification. Furthermore, I have an activity called EventDetailsActivity. This is triggered whenever the user taps on the notification to read the event info in full length. This implies primarily two things: 1. I must be able to pass an Event model object to EventDetailsActivity whenever the user taps the corresponding notification 2. I must be able to reuse EventDetailsActivity even it is already displaying another event (e.g. update it via onNewIntent()) Thus, in Event.toNotification(), I do this: public final Notification toNotification(Context context) { Intent intent = new Intent(context, EventDetailsActivity.class); intent.putExtra(event, this); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP); configureIntent(intent); // template method for subclasses PendingIntent contentIntent = PendingIntent.getActivity (context, requestCode++, intent, 0); Notification notification = new Notification (getNotificationIcon(), getTickerText(), getDate().getTime()); notification.setLatestEventInfo(context, getTitle(), getText (), contentIntent); return notification; } Hope that clears up my intentions. On 21 Nov., 11:14, Matthias [EMAIL PROTECTED] wrote: Well, when /do/ PendingIntents match? All I can say is that calling PendingActivity.getActivity() created a new PendingIntent each time I called it (I checked the OID in the debugger), and in this new object, I always store a new Intent object. As Guillaume suggested, I solved the problem by calling getActivity() like this: private static int requestCode; ... pi = PendingIntent.getActivity(context, requestCode++, intent, 0) and now everything works as expected. As for the intent itself, I instantiated it using FLAG_ACTIVITY_NEW_TASK and FLAG_ACTIVITY_SINGLE_TOP. On 20 Nov., 22:55, Dianne Hackborn [EMAIL PROTECTED] wrote: I am really not clear on exactly what you are doing or expecting, but one thing to watch out for -- when you get a PendingIntent, if there is already a PendingIntent matching the Intent you have been given (NOT including the extras), then you get that PendingIntent, NOT a new one. So if you want to change the extras you will either need to cancel the existing one, or modify something in the action, type, data, or category so that it doesn't match the existing one. This is covered (not very well) in the last paragraph of the PendingIntent documentation: http://code.google.com/android/reference/android/app/PendingIntent.html On Thu, Nov 20, 2008 at 8:38 AM, Matthias [EMAIL PROTECTED] wrote: This gets weirder every minute. Just out of curiosity I just called setIntent(null) in onPause() to make sure the Intent the Activity was started with is always reset. As soon as I start the Activity again
[android-developers] Re: can we assure that Application#onCreate always runs before the Provier#onCreate and Activity#onCreate
I wouldn't count on one or the other. For your problem, just have a global singleton for accessing the data, and retrieve that everywhere you need it. The first one who gets it will initialize it. On Mon, Nov 24, 2008 at 9:16 PM, magicpig [EMAIL PROTECTED] wrote: Hi, I have a AndroidManifest.xml: application . activity /activity provider... provider... /application I guess the Application#onCreate always runs first. But during some experiments, Provider#onCreate may run before Application#onCreate. I want to find a place that can read the meta-data from AndroidManifest.xml that will be used for the whole application and I put it in Application#onCreate. During my experiment... I am afraid I have made a mistake. Any one can tell me where is the right place, the first will read the meta-data before all the onCreates run. Thanks a lot. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Launch browser issue. Is this a bug for 1.0?
Hard to say without a stack crawl or anything. On Mon, Nov 24, 2008 at 11:10 PM, 3D [EMAIL PROTECTED] wrote: On Sep 29, 9:37 pm, april [EMAIL PROTECTED] wrote: url=http://www.google.com;; Intent i = new Intent(Intent.ACTION_VIEW,Uri.parse(url)); startActivity(i); I've been developing with SDK 0.9 and I haven't updated to 1.0 yet. I have this same code (above) and it works just fine on my emulator (SDK 0.9) but when I run it on a G1 it crashes when this Intent is started. Any idea why thats happening? -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ACTION_VIEW uri.parse options (System Settings)
On Tue, Nov 25, 2008 at 9:29 AM, joshbeck [EMAIL PROTECTED] wrote: Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(market:// search?q=pname:com.android.MY_PACKAGE_NAME)); It launches the market. A couple of questions: -Where is this Market:// uri intent documented? (I can't seem to find it.) Probably nowhere. In fact I didn't know about it, and that is a really bad name to have chosen for a scheme; there probably shouldn't be a scheme at all. :( -What would I use to send the user directly to the system settings. (Location and Security) http://code.google.com/android/reference/android/provider/Settings.html -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to put a dialog box to another activity's foreground?
This is working as intended, please don't try to work around it. Popping dialogs up on the user from outside of where they are currently working is an ugly thing to do. If you need to get the user's attention from outside of your application, the notification manager is the recommended solution. On Mon, Nov 24, 2008 at 5:29 PM, android dev [EMAIL PROTECTED]wrote: Hi, I have an activity which listens to certain event from another application. In onReceive, I fire a dialog box. How do I get the dialog box to appear on top of the other application? What's happening is that the dialog box does not appear while the other application still running. But as soon as I close the other application, it goes back to my activity, and the dialog box stays there. Do I need to convert the activity to a service? Thanks, J -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Intent variable required for onStart function
Er... the onStart() method takes Intent as a parameter, so that is what your onStart() method should be taking. This code looks like it was from a pre-1.0 version of the platform (and whoever wrote it didn't use @Override, naughty naughty!). On Tue, Nov 25, 2008 at 3:09 PM, steve_macleod [EMAIL PROTECTED]wrote: Hi, Quick question, I am running a service (code below). I have a problem with the super.onStart(intent, startId) line. The onStart call expects and Intent as paremeter. How can I get this from the context below? Thanks package com.stevemacleod.prankapp; import java.io.IOException; import android.app.Service; import android.content.Context; import android.content.Intent; import android.media.MediaPlayer; import android.os.Bundle; import android.os.IBinder; public class PrankService extends Service { MediaPlayer player = null; String str; public IBinder onBind(Intent intent) { return null; } public void onStart(int startId, Bundle arguments) { super.onStart(intent, startId); player = MediaPlayer.create((Context)this, R.raw.groove_arm); player.start(); } public void onDestroy() { super.onDestroy(); player.stop(); } } -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Why is my application suspended?
This is probably the relevant part: 3.3 You may also choose to distribute Products for free. If the Product is free, you will not be charged a Transaction Fee. You may not collect future charges from users for copies of the Products that those users were initially allowed to download for free. This is not intended to prevent distribution of free trial versions of the Product with an upsell option to obtain the full version of the Product: Such free trials for Products are encouraged. However, if you want to collect fees after the free trial expires, you must collect all fees for the full version of the Product through the Payment Processor on the Market. In this Agreement, free means there are no charges or fees of any kind for use of the Product. All fees received by Developers for Products distributed via the Market must be processed by the Market's Payment Processor. On Tue, Nov 25, 2008 at 6:01 PM, [EMAIL PROTECTED] [EMAIL PROTECTED]wrote: I uploaded a game on the Android market 2 days ago called Path of a Warrior. It had a 1 time trail and after that users were asked to buy the game to keep playing. I used Mogees as the payment module, and I think that might have been the problem. Google just send me an email saying that the application violated its policies, but nothing more than that. Do you think it's because I used Mogees? Any thoughts? -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to insure the singed file is correct?
The certificate you use to sign your package is your identity as a developer; if you change it, you have turned this into another application that has no trust with the original application, and thus can not be used to update the original. The previous one must be uninstalled and re-installed. As such, you MUST follow the documented steps for creating your own certificate, and never change that certificate. The certificate created by the keytool each time is unique, and can never be created again. Never give it to anyone else, and use it to sign all of your applications. On Tue, Nov 25, 2008 at 8:20 PM, Tyler Ernst [EMAIL PROTECTED] wrote: We just updated our application on the market place and are getting the same problem you are Package file was not signed correctly. when attempting to install over the the previous market version. [EMAIL PROTECTED] wrote: I test is ok on emulator, but many user still report me the singed error. why? On Nov 22, 7:17�pm, Christine [EMAIL PROTECTED] wrote: adb uninstall yourapp.apk adb install yourapp.apk On Nov 22, 2:40�am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: can we test this process on emulator ? if can do, how do it, thanks On Nov 22, 5:03�am, atrus123 [EMAIL PROTECTED] wrote: Hello, If you try and install a signed package on top of a pre-existing unsigned package, you will get this error. �To resolve, uninstall the currently existing package from the G1. Sometimes if an install has previously failed, you may have to reinstall the unsigned package and then uninstall in order to remove any left-over files (databases, etc.) Hope this helps, J. On Nov 21, 11:36�am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I upgraded my android app version, but user report me Error: Package file was not signed correctly. keytool -genkey � �-keystore keys/androidrss.keystore-alias androidrss.keystore-keyalg RSA -validity 1 � �keytool -genkey -v -keystore keys/androidrss.keystore-alias androidrss.keystore-keyalg RSA -validity 1 jarsigner -verbose -keystore keys/androidrss.keystore-signedjar androidrss_signed.apk androidrss.apkandroidrss.keystore I retry this twice, but not fix this problem. can you help me asap?- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how to inject a KeyEvent
There is no plan at this point, though I imagine some time in the future some of these things may be allowed maybe under the guise of telling the user that the application can do anything they can or such. On Sat, Nov 22, 2008 at 8:33 AM, Dorn Hetzel [EMAIL PROTECTED] wrote: Is that a permanent, security related, state if the droid, or is it thought that someday, with the right permissions, or between consenting applications, this would be allowed? :) On Fri, Nov 21, 2008 at 7:23 PM, Dianne Hackborn [EMAIL PROTECTED] wrote: Correct, one application can not inject key events into another application. There should be no way around this. For instrumentation test cases that cross application boundaries, I strongly recommend you set up an ActivityMonitor to block the launching of that other application's activity, returning a mocked result instead. On Fri, Nov 21, 2008 at 3:34 PM, dreamerBoy [EMAIL PROTECTED] wrote: Hi Hackbod - I tried this using Instrumentation - The goal of this little program is to make an outgoing call and then generate a keypress on the ENDCALL button. 1. It appears that I am incapable of unlocking the keyguard: 11-21 14:40:58.445: INFO/InstTest(209): after inKeyguardRestrictedInputMode() ? true 2. Then, Android tells me I don't have permission to send a key event: 11-21 14:41:00.173: WARN/WindowManager(53): Permission denied: injecting key event from pid 209 uid 10019 to window Window{43506808 com.android.phone/com.android.phone.InCallScreen} owned by uid 1001 EmptyActivity is just as it sounds - no additional code other than what Eclipse generates. If anyone can see something that is not being done correctly, I would very much appreciate their thoughts - Thanks - Paul ~~ package test.instTest; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.telephony.PhoneStateListener; import android.telephony.TelephonyManager; import android.test.ActivityInstrumentationTestCase; import android.util.Log; import android.view.KeyEvent; import android.app.Instrumentation; import android.view.View; import android.content.IntentFilter; import android.app.Instrumentation.ActivityResult; import android.app.KeyguardManager; public class InstTest extends ActivityInstrumentationTestCaseEmptyActivity { private static final String LOG_TAG= InstTest; private TelephonyManagertelMgr; private Instrumentation instrumentation; private Context context; private KeyguardManager keyguardMgr; public InstTest() { super(test.instTest, EmptyActivity.class); } public void testPreconditions() { instrumentation = getInstrumentation(); assertTrue(Instrumentation must be non-null, instrumentation ! = null); context = instrumentation.getContext(); assertTrue(Context must be non-null, context != null); telMgr = (TelephonyManager) context.getSystemService (Context.TELEPHONY_SERVICE); assertTrue(TelephonyManager must be non-null, telMgr != null); keyguardMgr = (KeyguardManager) context.getSystemService (Context.KEYGUARD_SERVICE); assertTrue(KeyguardManager must be non-null, keyguardMgr != null); } public void testCall() { testPreconditions(); Log.i(LOG_TAG, before inKeyguardRestrictedInputMode() ? + keyguardMgr.inKeyguardRestrictedInputMode()); KeyguardManager.KeyguardLock keyguardLock = keyguardMgr.newKeyguardLock(LOG_TAG); keyguardLock.disableKeyguard(); Log.i(LOG_TAG, after inKeyguardRestrictedInputMode() ? + keyguardMgr.inKeyguardRestrictedInputMode()); IntentFilter intentFilter = new IntentFilter (Intent.ACTION_CALL); Uri parsedPhoneNumber = Uri.parse(tel:1234567); Intent myIntent = new Intent(Intent.ACTION_CALL, parsedPhoneNumber); Intent resultData = new Intent(Intent.ACTION_CALL, parsedPhoneNumber); // myIntent = new Intent(Intent.ACTION_DIAL, parsedPhoneNumber); myIntent.setFlags(Intent.FLAG_DEBUG_LOG_RESOLUTION | Intent.FLAG_FROM_BACKGROUND | Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_NEW_TASK); resultData.setFlags(Intent.FLAG_DEBUG_LOG_RESOLUTION | Intent.FLAG_FROM_BACKGROUND | Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_NEW_TASK); Instrumentation.ActivityResult actResult = new Instrumentation.ActivityResult(Activity.RESULT_OK, resultData); Instrumentation.ActivityMonitor actMonitor = new Instrumentation.ActivityMonitor(intentFilter, actResult, false); Log.i(LOG_TAG, starting call.); instrumentation.waitForIdleSync(); context.startActivity(myIntent); instrumentation.waitForIdleSync(); Log.i(LOG_TAG, number of hits from
[android-developers] Re: Two applications respond to the same intent
What is the manifest for your application? Note that addPackageToPreferred() was not intended to be in the final system, and it will be turned off in a future release (it is an old simpler way to manage preferred applications, which deeply conflicts with the current intent-based model). On Wed, Nov 26, 2008 at 6:49 AM, Thao [EMAIL PROTECTED] wrote: Hello all, I've posted a question at the following link regarding issue I met when trying to replace the standard contact application that comes with android : http://groups.google.com/group/android-developers/browse_thread/thread/565d89d354691a/d4f9d6a5f9560ffd#d4f9d6a5f9560ffd I've done more tests to try to understand what is happening. Also I have added my app in preferred package with : PackageManager pm = getPackageManager(); pm.addPackageToPreferred(getPackageName()); (Note that I also have the right permission in the manifest) This is the log I have from logcat : /ActivityManager( 55): Starting activity: Intent { action=android.intent.action.MAIN categories= {android.intent.category.LAUNCHER} flags=0x1000 comp= {com.android.contacts/ com.android.contacts.DialtactsContactsEntryActivity} } /dalvikvm( 97): GC freed 3025 objects / 156504 bytes in 66ms /AndroidRuntime( 97): Shutting down VM /dalvikvm( 97): threadid=3: thread exiting with uncaught exception (group=0x40010e28) /AndroidRuntime( 97): Uncaught handler: thread main exiting due to uncaught exception /AndroidRuntime( 97): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.contacts/ com.android.contacts.DialtactsActivity}: java.lang.SecurityException: Requesting code from www.dmailer.com (with uid 10017) to be run in rocess android.process.acore (with uid 10002) /AndroidRuntime( 97):at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2140) ... To summarize my previous post : I've found the intents that allow my application to be launched when I click on the contact icon from android. So now it prompts me to choose between the standard contact app an my contact app, with a option to set my app to be the default one. When I set this option and launch my app, I got the error above. What I could see : It seems that the standard contact app is launched prior to mine whereas both of them respond to the SAME intents. It also seems that it requested my application to run in the same process android.process.acore. I know I could not make it to run using the process.acore for security reason, and anyway I wan't my app to run in its own process. My questions are then : Is it the normal behavior that one could expect when two applications respond to the same intents ? Why would an application be launched prior to the other one that respond to the same intents ? Thanks for help, I really have no more idea of how I could resolve this . -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: AIDL in same process
Calls through an aidl interface in the same process are simple direct function calls, no overhead added. There is currently no way to bundle multiple .apks into a single thing that the users installs; the user will need to deal with them as separate applications they need to install. On Wed, Nov 26, 2008 at 4:06 AM, Louis [EMAIL PROTECTED] wrote: Hi, All Our team want build some services which provided to 3rd party, and we are trying to design the interfaces which using the AIDL, and also, we want to build our own application base on this services also, and run in the same process, but is it still need using IPC to transfer the data info, that's sounds too heavy for one process, any suggestions for it? And also, if we want public to 3rd part, is there anyway to install our services and their application together? (Not public our codes to them). Welcome any help for that. Best regards, Louis. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Querys involving more than one table of Contatcs Content Provider
On Wed, Nov 26, 2008 at 3:37 AM, jarkman [EMAIL PROTECTED] wrote: I have the slightly hazy idea that we could write our own Cursor that took a pair of Cursors and a join expression, so as to do this in a general way. That would be handy in all sorts of ways. Do you think that would be practical ? Or is the absence of it in the SDK a clue that it is harder than it looks ? Sure, Cursor is just an interface. For example: http://code.google.com/android/reference/android/database/MergeCursor.html -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Two applications respond to the same intent
I don't see anything in that manifest that could possibly cause your app to run in the acore process, so I am very confused by that. Some other comments: On Wed, Nov 26, 2008 at 12:20 PM, Thao [EMAIL PROTECTED] wrote: manifest xmlns:android=http://schemas.android.com/apk/res/android; package=www.mypackage.com Please use your own package name here. This name is incorrect in two ways: - The package name follows the java style, where top-level domain appears first (i.e. com.android.foo). - The domain needs to be one you own to prevent conflicts with other packages. The name www.mypackage.com is definitely not good in this regard. Note that this name needs to be globally unique across all android applications ever written. application android:icon=@drawable/fleches android:label=@string/app_name android:process=www.dmailerMobile.com android:icon=@drawable/fleches android:label=@string/app_name There is no need to explicitly specify a process name, unless you are going to have multiple .apks running in the same process (and then you need to use sharedUserId so they can have the same uid). Also your XML is corrupt here, since there are attributes outside of the tag. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Push Notification Techniques: Discuss
On Wed, Nov 26, 2008 at 10:33 AM, G [EMAIL PROTECTED] wrote: P.S. To to folks at Google, please help us out. By not giving devs the ability to push notifications to our apps from the internet, you've seriously gimped our ability to design lots of killer apps and thereby boost the popularity of android. This has got to be something you guys have thought about before, right? I know you wanted 3rd parties to handle the exchange compatibility, but you had to consider that we'd need some sort of Push to do that. Should we wait for the next SDK update or what? You can have a look through the list archives for discussion about this; it's probably not worth having again. Summary: there was a push mechanism in early SDKs, but we weren't able to get it production quality for 1.0. It's certainly something we want to do, though I don't know when except it won't be in the next SDK update. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Push Notification Techniques: Discuss
On Wed, Nov 26, 2008 at 1:01 PM, MrSnowflake [EMAIL PROTECTED] wrote: I was thinking about such a standardized system too: it requires the phone to only have 1 service running for possible dozens of tasks. Actually I was hoping (since this first SDK) we could use the xmpp (GoogleChat, or what was it called) for this purpose. http://android-developers.blogspot.com/2008/08/some-information-on-apis-removed-in.html -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: AutoCompleteTextView without keyboard input
Currently AutoCompleteTextView is driven by key input events, so the only way to get it to pop up its autocomplete list is to deliver key events to its onKeyDown() its funcs and let it perform the text insert and then the other magic it does. On Sat, Nov 29, 2008 at 11:06 AM, [EMAIL PROTECTED] [EMAIL PROTECTED]wrote: Anyone? -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: AlarmManager not always waking device (using RTC_WAKEUP)
You need to hold a wake lock the entire time you want to be running, from when onReceiveIntent() is called until you have done all of your work. On Tue, Nov 18, 2008 at 9:56 PM, Adam K [EMAIL PROTECTED] wrote: Thanks Dianne. Should I be holding a wakelock in the pendingintent receiver of the alarm (basically acquiring at the start of the onReceive() and releasing at the end)? All I am doing in the receiver is setting off a notification - I am not creating any other intents or accessing any other threads or services. Cheers, Adam On Tue, Nov 18, 2008 at 9:22 PM, Dianne Hackbod [EMAIL PROTECTED]wrote: Fwiw, I am not aware of any issues with the alarm itself not waking up the phone. Typically bugs in this area are a result of applications not holding wake locks the entire time needed. Note that the behavior when not holding a wake lock can change significantly between devices, depending on things like how often sync is running. On Tue, Nov 18, 2008 at 6:15 PM, Adam K [EMAIL PROTECTED]wrote: Ping. Anyone? It seems for certain people the alarm can never wake up the phone. For others (like myself) it pretty much always wakes up the phone. Thanks, Adam On Nov 16, 8:15 pm, Adam K [EMAIL PROTECTED] wrote: Hi all, I noticed that AlarmManager does not always seem to wake the device correctly when using types RTC_WAKEUP or ELAPSED_REALTIME_WAKEUP. It seems like whatever intent was pending is triggered later after the Menu key is hit. I realize you need to hold a wakelock for any activity fired after the initial pending intent event - but I thought at least the pending intent should execute without a wakelock being required? All I want to do is set off a Notification when the alarm is complete - nothing else. It does seem to work 90% of the time without an issue, just not 100% of the time. Has anyone else noticed this? Here is a summarized version of what I'm doing: //in main activity, set alarm for some time in future myPendingIntent = PendingIntent.getBroadcast(myContext, 0, new Intent(myContext, MyReceiver.class), 0); myAM = (AlarmManager) getSystemService(ALARM_SERVICE); myAM.set(AlarmManager.RTC_WAKEUP, getTriggerTime(), myPendingIntent); //in MyReceiver.class, onReceiver(), trigger notification NotificationManager myNM = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); Notification notif = new Notification(); ..setup notification to play alarm, vibrate etc. myNM.notify(MYNOTIFICATION_ID, notif); Thanks, Adam -- Dianne Hackborn [EMAIL PROTECTED] -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: WindowManager$BadTokenException: Unable to add window -- token null is not for an application
It would help if you would include the stack crawl of the error and such. One cause of this error may be trying to display an application window/dialog through a Context that is not an Activity. On Wed, Nov 26, 2008 at 9:33 AM, Ash [EMAIL PROTECTED] wrote: Hello super smart people, I've got a strangle little bug to test you. I have an application that tries to display an RTSP video in a view (Content View - ScrollView - AbsoluteLayout - VideoView). However, in the emulator the MediaPlayer throws dispatches an error message which tries to display an Alert which throws the WindowManager exception. On device I hear the sound but do not see the the video then I get the exception when the MediaController is shown. WTF is going on? If I create a tiny Activity this works fine but once I get into a real application it all goes to hell. Is this Dalvik and the Android SDK showing it's immaturity? Ash -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Java App UI / Engine C split query
At this time native code is not supported in the SDK. On Thu, Nov 27, 2008 at 9:52 AM, Mungbeans [EMAIL PROTECTED] wrote: If I have a large existing component alredy developed for another platform in C and I want to port it to Android what are the options? If I re-write the entire thing in Java that will take a long time and also I would be worried about performance issues with everything running in the JVM. So if I split it so that the UI is in Java and the engine is in C what are the available mechanism(s) for making the C API available to the Java application? How would I debug this i.e. if I run the Java app in Eclipse how can I step into the C code? Are there other options? -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: For modular requirement
A good way to do this is publish it as a service in another .apk, which you can query the package manager for and bind to. This isn't really a true plug-in though (a service is a global singleton in the system, and you'll nee to define a .aidl interface to it so it can run in another process). Another approach is to put your plug-in into another .apk, publish it in the manifest however you want, find the .apk with the Package Manager, and then use Context.createApplicationContext() with the flag to load the code. From there you can get the ClassLoader for the other .apk and instantiate classes. If you do the latter though you really need to be aware of what you are doing: this has all kinds of security implications for you, can have problems if code ends up running as different uids, etc. This is best for the situation where you provide all of the plug-ins, so you can sign them with the same certificate and use a shared user ID for all of them as well as the main application. On Fri, Nov 28, 2008 at 2:39 AM, Xiaoliang Ding [EMAIL PROTECTED] wrote: Hi, Ludwing, Louis But how about a new added application. If we want to a new plug-in added into the main application, how can do it ? Thanks Ding 2008/11/28, Louis [EMAIL PROTECTED]: Thanks Ludwig. And by the way, could we download a Jar file and put it into the basic application, then the basic application can call it through some interfaces? On Nov 27, 8:28 pm, Ludwig [EMAIL PROTECTED] wrote: Think about Intents and split your application into multiple applications (perhaps running under the same userid), each serving a bunch of intents. Then you can upgrade each application (which might just respond to one intent) separately and Android will at run-time find the best-matching intent (or give the user the choice which one to use if there are multiple good matches). Ludwig 2008/11/26 Louis [EMAIL PROTECTED] Hi, All: Our products which running in other platform are using the modular approach, which means if user want to add a new feature, he/she only need to download a new plug-in, but not reinstall the who application. And we used COM library base ideas to do that before, is there anyway to do it in Android? Welcome any help for it. Best regards, Louis. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: SpecialCharacters
No. On Thu, Nov 27, 2008 at 11:24 PM, ena [EMAIL PROTECTED] wrote: can it be done using keyCharacterMap Class? On Nov 28, 10:41 am, Ernest [EMAIL PROTECTED] wrote: It works well if define it in string.xml like string name=XXX \u1E00/string On 11月28日, 下午1时21分, Ernest [EMAIL PROTECTED] wrote: But setText(\u1234) is not work well ,It shows on Screen like ' Ⴄ'. On 11月28日, 上午7时34分, Ralf [EMAIL PROTECTED] wrote: Just use myedittext.setText((c)); or setText(\u1234) where 1234 is theunicodecharacter you want. R/ On Thu, Nov 27, 2008 at 4:32 AM, ena [EMAIL PROTECTED] wrote: I try to draw SpecialCharacters in Edittext.. i want draw '(c)' character i am used Java: KeyCharacterMap keyCharacterMap = KeyCharacterMap .load(KeyCharacterMap.BUILT_IN_KEYBOARD); keyEvents = keyCharacterMap.getEvents(new char[] { '(c)' }); dispatchKeyEvents(Main.edittext, keyEvents); but it's show error..could u plz tel me..how to draw it???- 隐藏被引用文字 - - 显示引用的文字 -- 隐藏被引用文字 - - 显示引用的文字 - -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to automate emulator hardware keys.
Just send a key event with the appropriate key code. Note that you probably do not want to do this with, say, HOME, since that will leave your app and then you aren't going to be able to send any more events to the focus window. On Thu, Nov 27, 2008 at 8:15 PM, sush [EMAIL PROTECTED] wrote: Hi, I am testing my application using Instrumentation I am able to automate the virtual keys and UI clicks but I am unable to automate the emulator hardware keys such as, Home, Menu, Home etc... Please help me in this. Thanks in advance. Susama -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Screen orientation woes
On Thu, Nov 27, 2008 at 3:29 PM, Stoyan Damov [EMAIL PROTECTED]wrote: On Fri, Nov 28, 2008 at 1:23 AM, Ralf [EMAIL PROTECTED] wrote: On Thu, Nov 27, 2008 at 11:39 AM, Stoyan Damov [EMAIL PROTECTED] wrote: I also don't want my activity to get restarted when the screen orientation changes, so I set the Config changes attribute to mcc|mnc|locale|touchscreen|keyboard||fontScale and handle onConfigurationChanged myself. That's great too. You only need to check for keyboardHidden|orientation. I don't want my app restarted when any of these settings change - e.g. I don't care if user switched locale, MCC, MNC, etc. Please don't do this. If, when your app is restarted due to these changes, it to breaks, then it will also break when the user moves to another app and then returns to yours and it needs to be restarted. There is simply no reason to do this kind of thing except to hide bugs in your app, which users will eventually encounter. As far as finding out if the user tried to put your app in an orientation it is not allowing... no, there is no way to do this, because you are forcing a particular orientation, so actually the orientation didn't change at all. And actually, I'd have to wonder, if you are forcing the orientation one way, does it really make sense to show a different UI if the orientation might have changed? I mean, if you are forcing portrait, and the user opens the G1 keyboard, and... well, the screen stays portrait. Your app still works. Why tell them they can't use it when they happen to have the keyboard open? Likewise if on some device the orientation is controlled by the accelerometer, why tell them they can't use your app if they happen to have the screen angled a certain way? -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: FLAG_ONEWAY for asynchronous communication between services
On Thu, Nov 27, 2008 at 4:31 AM, nimbus83 [EMAIL PROTECTED] wrote: May you shortly explain how Android behave while many services are running in separate processes and communicating with each other? Each process currently has an overhead of about 2MB (generally there is ~20MB total available to applications), and you'll be doing IPCs each time you cross a process boundary which is 1-2ms of overhead (running an animation at 60fps gives you 20ms per frame). Seriously, this is not a desktop system. You shouldn't be designing an app like it is one. The first rule of mobile development is: less is better. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Possibility to access the Own Content Provider
Have you gone through the NotePad sample app? That shows you a complete working example of writing and using a content provider. On Thu, Nov 27, 2008 at 3:24 AM, yasmin afrose [EMAIL PROTECTED]wrote: Hi Dianne, Thanks for your reply. ie, In OWNCONTENTPROVIDER manifest file, I've included provider as follows : provider android:name=com.aspire.android.wikinotes.database.WikiNotesProvider android:authorities=com.aspire.android.wikinotes.database.wikinotes / In OWNPROVIDERACCESS manifest file, I don't know what I need to include to access my OWNCONTENTPROVIDER data. :( NOTE : In OWNPROVIDERACCESS manifest file, I've included user-permission android.name = READ_CONTACTS if I've accessed the Contacts Application database (Contacts.db). Please help me. Thanks in advance!!! Yasmin On Thu, Nov 27, 2008 at 8:04 AM, Dianne Hackborn [EMAIL PROTECTED]wrote: You need to publish the content provider in your AndroidManifest.xml. There is generally no reason to go through all of this trouble unless you want to allow other applications to use your content provider, so you need to describe in your manifest what it is so others can find it. On Tue, Nov 25, 2008 at 9:05 PM, AndroidKid [EMAIL PROTECTED]wrote: Hi All, I've accessed existing Content Provider. ie, I've retrieved data from Contacts Application by including the Permission Read_Contacts within my application Android Manifest file. I've created new Content Provider by extending my class from Content Provider. I've overridded the method query(), delete(), update() getType(). For that, I've included provider within AndroidManifest file. Now I would like to access my own content provider in another application. For this, I've tried the following code : package com.aspire.android.accessprovider; import android.app.Activity; import android.app.ListActivity; import android.content.ContentUris; import android.content.Intent; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.provider.Contacts.People; import android.view.View; import android.widget.ListAdapter; import android.widget.ListView; import android.widget.SimpleCursorAdapter; import com.aspire.android.wikinotes.database.WikiNote; // TO ACCESS MY OWN CONTENT PROVIDER public class OwnProviderAccessActivity extends ListActivity { private ListAdapter mAdapter; Uri uri = WikiNote.Notes.ALL_NOTES_URI; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); String auth = WikiNote.Notes.ALL_NOTES_URI.getAuthority(); // Note the below line Cursor C = getContentResolver().query(WikiNote.Notes.ALL_NOTES_URI, null, null, null, null); startManagingCursor(C); // Here I've accessed one coulmn from the table in OwnContentProvider Applciation String[] columns = new String[] {WikiNote.Notes.TITLE}; int[] names = new int[] {R.id.row_entry}; mAdapter = new SimpleCursorAdapter(this, R.layout.contacts, C, columns, names); setListAdapter(mAdapter); } @Override protected void onListItemClick(ListView l, View v, int position, long id) { super.onListItemClick(l, v, position, id); } } I've got output by adding OWNCONTENTPROVIDER application within BuildPath. Here the source of entire OWNCONTENTPROVIDER application will be inclueded within the my OWNPROVIDERACCESS application. I would like to achieve the same thing using permission like Accessing Existing Content Provider. Please give your answers... I was totally confused I've stuck with this issue. Any kind of reply will be appreciated!!! Thanks in Advance!!! Yasmin -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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. -- Everything is Possible For U only -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to implement a horizon scrollview?
There isn't one in the framework. You can get the ScrollView source code and make your own version that scrolls horizontally. On Wed, Nov 26, 2008 at 10:27 PM, ilikeB2 [EMAIL PROTECTED] wrote: Hi When i want to use a scroll view that can contain a table which has large width, I can not find how to use a view that has horizonal scrollbar, can anyone help me? -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to enable screen transition when launching Activity
Inter-activity transitions are not supported at this point, sorry. On Tue, Nov 25, 2008 at 11:51 PM, Tomei Ningen [EMAIL PROTECTED]wrote: This question was asked before http://groups.google.com/group/android-developers/browse_thread/thread/d5baa0831af53d80?q=android+G1+screen+transition#8cb9752ead82d2eb but I'll ask it again :-) On earlier Android SDK, when you are in home screen, and you launch an app (like Contacts), there's an iphone-like transition effect, where the new app is zoomed out. On G1 phone, this is disabled (probably due to poor performance). Is there anyway to turn it back on? Thanks -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: call to determine current context?
There is no current context, you need to explicitly pass it in. Having a concept of a current concept is very problematic in the face of multiple embedded activities inside of each others and thus calls going arbitrarily back and forth between them. On Sun, Nov 30, 2008 at 12:10 PM, Peter Jeffe [EMAIL PROTECTED] wrote: I can't find any way to determine my current context, I'm hoping I'm just missing it, but maybe I'm missing something about contexts. I have a singleton object that maintains a connection to a service on behalf of potentially multiple activities, and I need to be able to bind/unbind on their behalf, and it's impractical (and maybe impossible) to know which context I'm running under at any given point. So I just want to be able to determine the context from down in the call stack. Thanks for any help. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Theme setting for all applications
There is some architecture work done for this, but a fair amount remaining. At this point finishing the work is not scheduled on the roadmap. On Sun, Nov 30, 2008 at 4:31 PM, E [EMAIL PROTECTED] wrote: I'd like to know about full-OS themes too. It looks like (from the developer's kit) that such a thing is already supported in the backend (why wouldn't it be, right?), but there doesn't appear to be a system- level app that will manage or switch between theme configs. If this truly isn't available yet, when will it be? thanks, -Ethan On Nov 22, 11:58 pm, Paul Anders [EMAIL PROTECTED] wrote: Hello, I would like to ask you about how to change application theme. In case of application-specific theme, it is possible to change theme by asking your Activity to call setTheme(int theme). On the other hand, how can we change theme applicable to all applications which does not have their own theme? As you know, Windows OS has a theme setting which can be changed by an end-user in the display property of control panel. Does android platform support this feature? If Android platform does not support theme setting, I have the following solutions from developer point of view. (1) Modify themes.xml provided by Android framework as default, and then make a build. (/frameworks/base/core/res/res/values/themes.xml) (2) Change Android open source code to add new APIs for changing theme for all applications. Is there any other better solution to change theme for all applications? Regards, /Paul -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Returning to my application after a call ends
There probably isn't a way to do this -- during the call, the user could have left it, gone to another application, returned to your own, closed it, gone home, and hung up the call while not even in the in-call screen. On Sun, Nov 30, 2008 at 12:27 AM, [EMAIL PROTECTED] [EMAIL PROTECTED]wrote: Hi, I want to return to my own application after a call originated from within it ends. I have implemented the notification to get the call state change to IDLE, and managed to launch another app from there, but not to launch my own app. Is this doable ? TIA -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: SharedPreferences problem
It means multiple processes, as per: http://code.google.com/android/intro/appmodel.html What may be happening is that you are writing the new shared preferences at the same time as the system kills the process, so the file write is not completed, and the next time it is read it is unable to parse the truncated file. So you should only write the shared preferences at a time when you know the system is keeping your application around -- in onReceiveIntent(), a service, as part of the activity lifecycle, etc. On Sun, Nov 30, 2008 at 9:13 PM, joshv [EMAIL PROTECTED] wrote: What exactly do the docs mean when they say 'multiple processes'. Do they mean different threads in the same application? Or do they mean for example a background service accessing a shared preference file at the same time a foreground process is accessing the same shared preference file? I am having intermittent issues with one of my apps loosing it's shared preferences. My app uses threads to keep the UI responsive, and I just figured I had some sort of synchronization issue with saving preferences. But no, I've locked down the critical sections with synchronized blocks and still, very rarely, my app will lose it's preferences. It usually seems to happen when the app is killed by the OS, or by the debugger, normal resume/pause events never result in loosing the preferences. But again it's intermittent. I have another app that's never lost it's preferences - but it's not multi-threaded. -josh On Nov 19, 1:55 pm, Dianne Hackbod [EMAIL PROTECTED] wrote: [snip...] I'm not sure I follow your reasoning -- if you are saying that your application is all running in one process, why do you think the whole caveat about not supporting multiple processes even applies? [...] -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Trouble with AssetManager
Have a look at the API demo for loading assets: http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/content/ReadAsset.html Note that the asset manager (and all file related stuff in android) is case sensitive. It looks like you are trying to load Ship.Obj, but the file is Ship.obj. On Sun, Nov 30, 2008 at 8:51 PM, Casey Borders [EMAIL PROTECTED]wrote: I am using this code to try to access my assets: try { Resources res = context.getResources(); AssetManager assMan = res.getAssets(); String assets[] = assMan.list(Models); InputStream is = assMan.open(Models/Ship.Obj); ObjLoader loader = new ObjLoader(is); mVertexBuffer = loader.getVerts(); mIndexBuffer = loader.getIndex(); } catch(IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } When I look at the value of assets it contains Ship.obj (see attached image) but when I try to open the file it throws the exception. Does anyone have any experience with this? -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Is it possible to start an remote activity which is loaded by classLoader
You don't need any kind of class, just set the desired ComponentName. On Mon, Dec 1, 2008 at 12:41 AM, Ernest [EMAIL PROTECTED] wrote: Hello,everyone. I have a question: I can get an Activity class by classLoader which can't be declared in the local Manifest.xml.I want to start the activity in this way: Intent intent = new Intent(this, xxx.class);(xxx.class is the remote activity which loaded by classLoader) startActivity(intent); But it can't make it work well,because the activity is not declared in local AndroidManifest.xml. So how can I start the remote Activity then?Thank you very much. Best Regards -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: (Service == Process)?
On Mon, Dec 1, 2008 at 5:41 AM, patrick [EMAIL PROTECTED] wrote: - therefore an activity is a process - but from what I know a service uses another address space than the hosting activity If there is anything in http://code.google.com/android/intro/appmodel.htmlor the other docs leading you to this conclusion, please let me know what that is so we can fix it. :) - how are AIDL IPC calls synchronized when they are different processes? There is a special driver in the kernel called binder that takes care of these IPCs. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android screen resolution limit
Hi, please post these types of questions to android-porting, thanks! On Sun, Nov 30, 2008 at 7:30 PM, [EMAIL PROTECTED] [EMAIL PROTECTED]wrote: Hi, I have searched this group but couldn't find the answer: What's the largest screen resolution android support right now? We are going to port android on rather large size of scree and the resolution is about 1024X800. Can Android supports this? If not, is there any setup or configuration file I can change? thanks, Hill -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Can one application removes files of other application?
On Mon, Dec 1, 2008 at 3:56 AM, John Jiang [EMAIL PROTECTED] wrote: 2) I want to use 'setuid su' security hole, but that is fixed on Android RC30. This wasn't usable by applications, anyway, you had to press the physical keys. Is it possible to remove files of other application? No. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Checking API: checkapi-last Error when compiling android source code after repo sync in 11/23/2008 Beijing Time
Please move this to one of the open-source groups. On Sun, Nov 30, 2008 at 5:34 PM, dakman [EMAIL PROTECTED] wrote: I also got the same issue when I did the build Nov29,2008 on my ubuntu, after the repo sync, I did nothing else except make. I searched the google groups but did not find the fix for it. could someone guide me where I can find the discussion on it? thanks. error 17: Field android.media.AudioManager.ROUTE_ALL has changed value from 15 to -1 On Nov 23, 5:55 pm, Jeff Hamilton [EMAIL PROTECTED] wrote: This should be fixed now. -Jeff On Sun, Nov 23, 2008 at 1:34 AM, Romain Guy [EMAIL PROTECTED] wrote: Either you changed a public API on your copy of the tree, or we broke the build :) On Sun, Nov 23, 2008 at 1:19 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: when i try to repo sync and compile the android source code. A error is reported out. Would you like to let me know how to fix it? Thank you very much. Steps to reproduce the problem: 1. repo sync 2. make The error log is as below. [EMAIL PROTECTED]:/home/thomast/mydroid# make build/core/product_config.mk:229: WARNING: adding test OTA key build/core/main.mk:177: implicitly installing apns-conf_sdk.xml Checking API: checkapi-last (unknown): error 17: Fieldandroid.media.AudioManager.ROUTE_ALL has changed value from 15 to -1 ** You have tried to change the API from what has been previously released in an SDK. Please fix the errors listed above. ** make: *** [out/target/common/obj/PACKAGING/checkapi-last-timestamp] Error 38 [EMAIL PROTECTED]:/home/thomast/mydroid# [EMAIL PROTECTED]:/home/thomast/mydroid# -- Romain Guy www.curious-creature.org -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Theme setting for all applications
You can modify any of the resources however you want if you are rebuilding the system. These will be used without having to do anything. Note that we are calling this skinning and generally does NOT involve modifying theme resources; theme resources are used by applications to specify the specific theme they want (dark background, light background, dialog, etc). Changing the global look of the UI will usually involve just changing the resources for things like the button image, screen background, etc. On Mon, Dec 1, 2008 at 8:00 AM, Paul Anders [EMAIL PROTECTED]wrote: Thanks for the reply:)I understand that at this point there is no support for theme switch application which enables an end-user to choice theme from multiple themes like Windows OS I am looking forward to this feature to be delivered from Google. On the other hand, even if we cannot switch themes, I would like to try to modify default theme. Is it possible to do this by modifying themes.xml in the Android open source /frameworks/base/core/res/res/values directory and then making a build to create emulator? In addition to this, I found themes.xml and other resources in tools/lib/res/default/values in the Android SDK toolkit directory. I changed this xml file and other png files in drawable folder, but nothing changes in Android emulator... Why? Is there something else to do this? Regards, /Paul 2008/12/1 Dianne Hackborn [EMAIL PROTECTED] There is some architecture work done for this, but a fair amount remaining. At this point finishing the work is not scheduled on the roadmap. On Sun, Nov 30, 2008 at 4:31 PM, E [EMAIL PROTECTED] wrote: I'd like to know about full-OS themes too. It looks like (from the developer's kit) that such a thing is already supported in the backend (why wouldn't it be, right?), but there doesn't appear to be a system- level app that will manage or switch between theme configs. If this truly isn't available yet, when will it be? thanks, -Ethan On Nov 22, 11:58 pm, Paul Anders [EMAIL PROTECTED] wrote: Hello, I would like to ask you about how to change application theme. In case of application-specific theme, it is possible to change theme by asking your Activity to call setTheme(int theme). On the other hand, how can we change theme applicable to all applications which does not have their own theme? As you know, Windows OS has a theme setting which can be changed by an end-user in the display property of control panel. Does android platform support this feature? If Android platform does not support theme setting, I have the following solutions from developer point of view. (1) Modify themes.xml provided by Android framework as default, and then make a build. (/frameworks/base/core/res/res/values/themes.xml) (2) Change Android open source code to add new APIs for changing theme for all applications. Is there any other better solution to change theme for all applications? Regards, /Paul -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Theme setting for all applications
Btw, discussion about modifying the open-source platform should be moved to one of the open-source groups. On Mon, Dec 1, 2008 at 11:09 AM, Dianne Hackborn [EMAIL PROTECTED]wrote: You can modify any of the resources however you want if you are rebuilding the system. These will be used without having to do anything. Note that we are calling this skinning and generally does NOT involve modifying theme resources; theme resources are used by applications to specify the specific theme they want (dark background, light background, dialog, etc). Changing the global look of the UI will usually involve just changing the resources for things like the button image, screen background, etc. On Mon, Dec 1, 2008 at 8:00 AM, Paul Anders [EMAIL PROTECTED]wrote: Thanks for the reply:)I understand that at this point there is no support for theme switch application which enables an end-user to choice theme from multiple themes like Windows OS I am looking forward to this feature to be delivered from Google. On the other hand, even if we cannot switch themes, I would like to try to modify default theme. Is it possible to do this by modifying themes.xml in the Android open source /frameworks/base/core/res/res/values directory and then making a build to create emulator? In addition to this, I found themes.xml and other resources in tools/lib/res/default/values in the Android SDK toolkit directory. I changed this xml file and other png files in drawable folder, but nothing changes in Android emulator... Why? Is there something else to do this? Regards, /Paul 2008/12/1 Dianne Hackborn [EMAIL PROTECTED] There is some architecture work done for this, but a fair amount remaining. At this point finishing the work is not scheduled on the roadmap. On Sun, Nov 30, 2008 at 4:31 PM, E [EMAIL PROTECTED] wrote: I'd like to know about full-OS themes too. It looks like (from the developer's kit) that such a thing is already supported in the backend (why wouldn't it be, right?), but there doesn't appear to be a system- level app that will manage or switch between theme configs. If this truly isn't available yet, when will it be? thanks, -Ethan On Nov 22, 11:58 pm, Paul Anders [EMAIL PROTECTED] wrote: Hello, I would like to ask you about how to change application theme. In case of application-specific theme, it is possible to change theme by asking your Activity to call setTheme(int theme). On the other hand, how can we change theme applicable to all applications which does not have their own theme? As you know, Windows OS has a theme setting which can be changed by an end-user in the display property of control panel. Does android platform support this feature? If Android platform does not support theme setting, I have the following solutions from developer point of view. (1) Modify themes.xml provided by Android framework as default, and then make a build. (/frameworks/base/core/res/res/values/themes.xml) (2) Change Android open source code to add new APIs for changing theme for all applications. Is there any other better solution to change theme for all applications? Regards, /Paul -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: SharedPreferences problem
On Mon, Dec 1, 2008 at 5:59 AM, dar [EMAIL PROTECTED] wrote: Is there an exception thrown if the ... next time it is read it is unable to parse the truncated file.? If so, we could catch the exception and explain to the users that an error occurred reading the preferences, therefore we need to collect them again, or reset their preferences to the defaults. No, there is no exception, and really even if you tell the user why they lost all of their preferences that doesn't make anything better for them. Best to not let it happen at all. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: SharedPreferences problem
On Mon, Dec 1, 2008 at 6:36 AM, joshv [EMAIL PROTECTED] wrote: Regarding process death and preferences, I thought the same thing so I scaled back my persistence code to only save preferences in an onPause (). It was my understanding that even when a task is killed, the onPause is called before the process is terminated - is that not the case? Can the process be killed in the middle of the onPause() processing? Perhaps this is a debugger only phenomenon? There is nothing called before the process is terminated, if you are thinking of it as the system thinks it needs to kill something, so politely asks it to get ready and then kills it. What actually happens it that onPause is called when the system is going to put the process in a background state, and from there at whatever point the system needs to get rid of the process it will just kill it, no questions asked. While onPause() is running, the process is in a foreground state, so it will not be killed unless the system is so low on memory it needs to kill that process to continue to have memory for the core system processes... which should only happen if the app is just using all of the available memory so that not even background things can run. Basically never for non-buggy apps. However, your process can get killed if you are installing an update to it, because the first thing the system does is cleanup and kill all existing code of the process before installing the update. We should probably do something to make this a little more clean for users installing updates. And this same thing happens every time you run your app from eclipse, since all it is really doing is telling the system to update to your current version of the app. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Debug Boot complete Broadcast event on phone
You can call waitForDebugger() at the beginning of the function to give yourself a chance to attach the debugger: http://code.google.com/android/reference/android/os/Debug.html#waitForDebugger() On Mon, Dec 1, 2008 at 4:23 AM, mnj [EMAIL PROTECTED] wrote: Hi, I have a class BootTest which extends BroadcastReceiver. I want to put a breakpoint in onReceive method and debug from Eclipse IDE when phone(G1) boots up. What I observe is that the onReceive() method is getting called but the control is not coming to the breakpoint. Probably the debugger is not yet connected when BOOT_COMPLETE event is received. This is just my guess. Has anyone of you tried debugging such scenario where a receiver is waiting for BOOT_COMPLETE event. Thanks, Manoj -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to hand in a callback in AIDL?
Use .asBinder() to retrieve the IBinder that the stub is talking through (or of the local implementation). This object will be the same every time you receive the interface. On Mon, Dec 1, 2008 at 1:04 PM, DulcetTone [EMAIL PROTECTED] wrote: I have found it convenient to make AIDL interfaces in pairs -- one for how the client calls the server, and one by which a server can call back into the client. However, I find that the design of the Proxy/ Stub model (which I confess I don't fully grasp) causes me issues in the method I use to have a client identify itself. I have calls in the server interface where the client hands in a reference to its CLIENT interface (which is convenient, as they are all Parcelable). If the server ever decides it wants to call back to the client, it simply calls methods on this interface. HOWEVER... each time an interface is handed in to the server, it arrives in server space as a new stub -- there is no means by which they can be compared against each other and so each client appears new and distinct every time it calls a function on the server. Is there any way I can see which of these interfaces are for the same client, or do I have to code up my own Parcelable class that has a unique hash of some kind? For instance, do instances of the same interface already HAVE a hash function on them that would return the same value? e,g.: if I do this... ServiceConnection serviceConnection = new ServiceConnection() { public void onServiceConnected(ComponentName name, IBinder service) { myService = IMyService.Stub.asInterface((IBinder)service); try { myService.registerClient(myClientInterface); myService.doubleCheckThatClientHandle(myClientInterface); } catch (RemoteException e) { } } public void onServiceDisconnected(ComponentName name) { myService = null; } }; and the server's implementation of registerClient() and doubleCheckThatClientHandle() examine the client interface, there is no way for it to easily see that the same client is being referred to. I suppose the lightest weight fix might be for the service to return a unique GUID when a client registers, and map them on its side. The client, in turn, could provide that GUID each time it wants to identify itself on subsequent function calls. I hope this makes sense. tone -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How do i get a transparent background for icons/shortcuts?
If it's a transparent PNG, it will be displayed appropriately with a transparent background. Please avoid using GIF, PNG is our standard format for the UI. On Mon, Dec 1, 2008 at 1:58 PM, VelvetDanceFloor [EMAIL PROTECTED]wrote: Im looking to create shortcut icons that are, like the system icons, not square... with shadows and transparencies. so far i can't, it puts a black background behind it if its a png, and a white if its a gif. is there a way to make it recognize the image as having transparency? im a graphic designer, not a coder... but i know some code. so shoot, just keep that in mind. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Loading a bitmap from a byte buffer
DO NOT DO THIS. This marshalling format is private to the system and class, and can change arbitrarily across releases. On Mon, Dec 1, 2008 at 2:58 PM, Koush [EMAIL PROTECTED] wrote: I inspected Bitmap.cpp and found this function: static jboolean Bitmap_writeToParcel(JNIEnv* env, jobject, const SkBitmap* bitmap, jboolean isMutable, jobject parcel) { if (parcel == NULL) { SkDebugf(--- writeToParcel null parcel\n); return false; } android::Parcel* p = android::parcelForJavaObject(env, parcel); p-writeInt32(isMutable); p-writeInt32(bitmap-config()); p-writeInt32(bitmap-width()); p-writeInt32(bitmap-height()); p-writeInt32(bitmap-rowBytes()); if (bitmap-getConfig() == SkBitmap::kIndex8_Config) { SkColorTable* ctable = bitmap-getColorTable(); if (ctable != NULL) { int count = ctable-count(); p-writeInt32(count); memcpy(p-writeInplace(count * sizeof(SkPMColor)), ctable-lockColors(), count * sizeof(SkPMColor)); ctable-unlockColors(false); } else { p-writeInt32(0); // indicate no ctable } } size_t size = bitmap-getSize(); bitmap-lockPixels(); memcpy(p-writeInplace(size), bitmap-getPixels(), size); bitmap-unlockPixels(); return true; } I can manually marshal a Bitmap parcel in the proper format, and then append the custom byte buffer, and then use createFromParcel to create a bitmap. That gets me indirect access to creating a bitmap directly from a byte buffer. It's a bit of a hack obviously, and not ideal. Is there a better way to do this? On Dec 1, 2:41 pm, Koush [EMAIL PROTECTED] wrote: I'm trying to populate a create a bitmap from something other than an RGBA int array. However, the Bitmap creation overloads only take int arrays as inputs. In particular, I have a byte buffer that is in the R5G6B5 format that I want to load directly into a bitmap. The format is supposedly supported internally, but I can't figure out how to create the bitmap without doing the R5G6B5 to A8R8G8B8 conversion first. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: 2D over 3D
Or follow the SurfaceView Overlay API Demo. http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/graphics/ On Tue, Dec 2, 2008 at 11:11 AM, Robert Green [EMAIL PROTECTED] wrote: You can just do one square billboard positioned such that it is directly in front of the frustum. The texture can be transparent and you just draw what you want to have show up. That will be only 2 additional polys for the 2D. On Dec 2, 9:56 am, fcalzada [EMAIL PROTECTED] wrote: Yes i thought about it, but it's gonna take some 3d resources... and my application is already quite heavy in vertices number On Dec 2, 3:51 pm, Robert Green [EMAIL PROTECTED] wrote: In desktop 3D stuff I've always just created billboards and drawn to the textures for them. I'm sure this same technique would work. On Dec 2, 4:29 am, fcalzada [EMAIL PROTECTED] wrote: Hi, I'm having the same issue, I tried hard but without success. Did you find a workaround ? thanks On Nov 20, 1:57 pm, petunio [EMAIL PROTECTED] wrote: Hi I am porting an application based on the sdk 3.0, and I am having countless problems... now, I am struggling trying to put 2D graphics on top of a 3D scene... After a lot of headache, I managed to create a opengl context, which now works, but when I try to put 2D graphics on top of it, this is what happens: public void drawFrame(GL10 gl) { //view is a SurfaceView, and the value is not null ! mySurfaceHolder=view.getSurfaceHolder(); Canvas c=mySurfaceHolder.lockCanvas(); //this is where I wanted to place my 2D drawing, but after the above line, this is //what I got in the Log: //11-20 12:52:02.508: ERROR/SurfaceComposerClient(490): eLocked set when entering lock_layer(), //layer=1 (lcblk=0x410420a0), state=0020 //11-20 12:52:02.598: ERROR/SurfaceHolder(490): Exception locking surface mySurfaceHolder.unlockCanvasAndPost(c); } Any help would be very appreciated Thanks! -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Starting an activity with FLAG_ACTIVITY_MULTIPLE_TASK
You need to at least post the stack crawl of the error. On Tue, Dec 2, 2008 at 4:57 AM, RoadRunner.Android [EMAIL PROTECTED]wrote: I am writing an application in which I want the activity to a new instance everytime it is executed, so I am applying FLAG_ACTIVITY_MULTIPLE_TASK in conjuction with FLAG_ACTIVITY_NEW_TASK in the Intent that triggers the activity. But I soon as I execute the application, I get an Force Closed dialog box. Can anyone help me out or tell a better way to achieve the required task? Thank-you very much. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Loading a bitmap from a byte buffer
If that's the case, then this discussion shouldn't be on android-developers, which is for developing with the SDK. Let's move it to one of the open source platform groups. On Tue, Dec 2, 2008 at 1:00 AM, Koush [EMAIL PROTECTED] wrote: Dianne Hackborn: I am asking this in the context of how to create a screenshot application. Taking screenshots is not possible on the G1 anyways, because reading from /dev/graphics/fb0 is only available to root and shell and not available to actual applications. Thus is only works on hacked phones. So you're asking me to not do something, when I'm well past the line of things I should not be doing. :) Incidentally, the inability to take a simple screenshot of what is on your phone is a pretty significant oversight (you're not going to always be hooked up to a PC with the SDK/DDMS tool at your disposal). John Spurlock: Decode byte array is for compressed byte arrays, such as PNGs and JPG. I am basically trying to copy directly into the pixel buffer. On Dec 1, 3:34 pm, John Spurlock [EMAIL PROTECTED] wrote: BitmapFactory.decodeByteArray ? http://code.google.com/android/reference/android/graphics/BitmapFacto... On Dec 1, 5:58 pm, Koush [EMAIL PROTECTED] wrote: I inspected Bitmap.cpp and found this function: static jboolean Bitmap_writeToParcel(JNIEnv* env, jobject, const SkBitmap* bitmap, jboolean isMutable, jobject parcel) { if (parcel == NULL) { SkDebugf(--- writeToParcel null parcel\n); return false; } android::Parcel* p = android::parcelForJavaObject(env, parcel); p-writeInt32(isMutable); p-writeInt32(bitmap-config()); p-writeInt32(bitmap-width()); p-writeInt32(bitmap-height()); p-writeInt32(bitmap-rowBytes()); if (bitmap-getConfig() == SkBitmap::kIndex8_Config) { SkColorTable* ctable = bitmap-getColorTable(); if (ctable != NULL) { int count = ctable-count(); p-writeInt32(count); memcpy(p-writeInplace(count * sizeof(SkPMColor)), ctable-lockColors(), count * sizeof(SkPMColor)); ctable-unlockColors(false); } else { p-writeInt32(0); // indicate no ctable } } size_t size = bitmap-getSize(); bitmap-lockPixels(); memcpy(p-writeInplace(size), bitmap-getPixels(), size); bitmap-unlockPixels(); return true; } I can manually marshal a Bitmap parcel in the proper format, and then append the custom byte buffer, and then use createFromParcel to create a bitmap. That gets me indirect access to creating a bitmap directly from a byte buffer. It's a bit of a hack obviously, and not ideal. Is there a better way to do this? On Dec 1, 2:41 pm, Koush [EMAIL PROTECTED] wrote: I'm trying to populate a create a bitmap from something other than an RGBA int array. However, the Bitmap creation overloads only take int arrays as inputs. In particular, I have a byte buffer that is in the R5G6B5 format that I want to load directly into a bitmap. The format is supposedly supported internally, but I can't figure out how to create the bitmap without doing the R5G6B5 to A8R8G8B8 conversion first. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: G1 Linux
Because He Was Enthralled By The Awesomeness Of It, Like I Am Too. It Is Awesome! On Tue, Dec 2, 2008 at 2:20 PM, Xavier Mathews [EMAIL PROTECTED]wrote: Why Did You Say That? On 12/02/2008, Eric Mill [EMAIL PROTECTED] wrote: This has been an awesome thread. On Dec 1, 5:33 pm, Xavier Mathews [EMAIL PROTECTED] wrote: So that means the G1 Does! Xavier A. Mathews Student/Browser Specialist/Developer/Web-Master Google Group Client Based Tech Support Specialist Hazel Crest Illinois [EMAIL PROTECTED]@[EMAIL PROTECTED] Fear of a name, only increases fear of the thing itself. On Mon, Dec 1, 2008 at 4:31 PM, Jean-Baptiste Queru [EMAIL PROTECTED] wrote: Android is and has always been built on top of Linux. JBQ On Mon, Dec 1, 2008 at 2:30 PM, Xavier Live Tech.S [EMAIL PROTECTED] wrote: Will G1 be running Linux like Iphone anytime soon? -- Xavier A. Mathews Student/Browser Specialist/Developer/Web-Master Google Group Client Based Tech Support Specialist Hazel Crest Illinois [EMAIL PROTECTED]@[EMAIL PROTECTED] Fear of a name, only increases fear of the thing itself. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: When an app needs Google account credentials...
On Tue, Dec 2, 2008 at 4:39 PM, androidian [EMAIL PROTECTED] wrote: Dianne, do you have any input on this? Also, do you have any updated info on the API? Sorry, I don't know about it. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Including SQLite database with application
Your best option is to copy it to the SD card. I don't see any chance if supporting SQLite on an database embedded in a .apk any time soon. Ignoring whatever issues there are in SQLite just to do this kind of thing, I wouldn't want to count on Android 3.x running who knows what later version of SQLite being able to operate on a SQLite database from 1.0 without being able to do some kind of upgrade process on it. Also, just to start to be able to support this, you would need to store the database in your .apk without compression. If you take the approach of copying it to the SDCard, you can keep it in the .apk as a normal compressed file, which I would bet would make it significantly smaller (the SQLite database format is almost certainly designed for efficient access and not optimal size). As far as app installers go, this is something we actually have deliberately avoided. In our current implementation, a person can turn off a .apk and the system will behave as if it never existing, and you can later turn it on and it will come back as you left it. I would be strongly opposed to anything that broke that model. Doing dependency tracking, so that if you install app A you will also get app B that it needs, is another issue, and something we will certainly address hopefully sooner rather than later, though most of that will probably be in the Market. On Wed, Dec 3, 2008 at 10:50 AM, burton miller [EMAIL PROTECTED]wrote: i'm not trying to be difficult - i've been a desktop developer for many years - but the desktop systems have a LOT more storage, so the paradigm is fundamentally different than a phone. i'm very hesistant to ship a 4.5mb database and duplicate it all inside the tiny sliver of user storage android provides. right now i'm planning on doing a two-stage installation where the application downloads the database from the internet when it first runs. and probably push it onto the sd card if i can figure out how to make database api work on something not located in data/data/ package/databases. if anyone has any practical solutions that are better than this, then i'd like to hear them. On Dec 3, 4:56 am, Mark Murphy [EMAIL PROTECTED] wrote: burton miller wrote: these solutions will not work for me. i have a 4.5mb database, which i do not want to duplicate by copying it out of the apk and into a directory. copying it from the web could potentially be very slow as well. i can't believe that there is not a better solution to this extremely common situation. many, many apps will need to come with a pre- populated database. If you were to write a Windows application, and you were to distribute a pre-populated database, you would bundle the database in the application installer (.EXE, .MSI) and would install it to your targeted location. If the user elected to hold onto the application installer, you would have the same scenario as with Android and the APK: two copies of the database (master in the installer, working copy outside it). If you were to write a Linux application, and you were to distribute a pre-populated database, you would bundle the database in the application package (RPM, DEB, etc.) and would install it to your targeted location. If the user elected to hold onto the application package, you would have the same scenario as with Android and the APK: two copies of the database (master in the package, working copy outside it). If you were to write a desktop Java application, and you were to distribute a pre-populated database, you *might* bundle the database in the JAR and would copy it to your targeted location on first run. That way, you can still have an executable JAR. Here, again, you would have the same scenario as with Android and the APK: two copies of the database (master in the JAR, working copy outside it). So, it's not like the Android model is singularly unusual. It's not optimal, particularly for the tiny number of applications shipping large databases with their apps, but it's not preposterous, either. Now, don't get me wrong. It'd be nice if there were a higher-order packaging option beyond the APK -- something that could bundle and install one or more APKs plus other files (e.g., databases), after which the meta-package could get deleted. This would solve a bunch of problems, not the least of which could be the issue of APK dependencies (e.g., Application X requires Remote Service Y, which might already be installed via some other app). However, I'm not terribly shocked that it's not in Android 1.0r1. At some point, somebody will have the itch for this sort of thing and will scratch it, whether that somebody is on the core Android team or working outside of it. -- Mark Murphy (a Commons Guy)http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml -- Dianne Hackborn
[android-developers] Re: Database Backup when updating my app
As long as your new version is signed with the same certificate and has the same manifest package name, updating is just a matter of installing the new version, which will replace the current version and retain its existing data. On Wed, Dec 3, 2008 at 10:40 AM, pabbot [EMAIL PROTECTED] wrote: Hi everyone! I was wondering how should I proceed if I want to update my own application. I mean, I'm currently developing a typical app, which stores all the data on a SQLite Database. The point is that once I've delivered the application to my customer and he's been playing around with it for a coupe of weeks, the stored info has to be removed in order to update the package, by removing and installing it again. Am I right or am I missing some important step? Therefore, my question is: How do I backup my customers' DB every time I want to update the application without losing any row? Please, note that I have not mentioned Android Market since I'm delivering the app via URL link. Many thanks in advance! Cheers! -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Neeeeeed HELP......How to get the text's length after TextView.setText()?
On Wed, Dec 3, 2008 at 9:31 AM, Mark Murphy [EMAIL PROTECTED] wrote: Most likely, your views are not yet laid out when you are calling test(). Either delay your call to test() until the views are laid out (e.g., onResume() might be late enough), or manually request a layout() of your root view. I'm not sure what you mean by manually request a layout, but I think that is probably something I would recommend against. As a general rule, if you are trying to extract view width and height information outside of the normal layout flow, you are probably doing something wrong, and will break in various situations (such as if the system needs to resize your window for some reason, like say an input method being displayed). The view hierarchy is designed to drive layout, with callbacks into View and ViewGroup for the objects to work together as the layout changes. For things that depend on layout, you should hook there, so you can correctly handle any time layout changes. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Google Dell To Android
Are you talking about developing applications for android? It doesn't look like it to me. Thus this is probably the wrong group. Try android-discuss for this kind of material. On Wed, Dec 3, 2008 at 9:03 AM, Xavier Mathews [EMAIL PROTECTED]wrote: This is on topic ANDROID please stop replying to my post if you have nothing positive to say. THANK YOU On 12/03/2008, Michael [EMAIL PROTECTED] wrote: Please stop this off-topic spam. -- Xavier A. Mathews Student/Browser Specialist/Developer/Web-Master Google Group Client Based Tech Support Specialist Hazel Crest Illinois [EMAIL PROTECTED]@[EMAIL PROTECTED] Fear of a name, only increases fear of the thing itself. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem in Android-JNI IPC
Hi, this is not about developing for the SDK, so should be moved to one of the open source groups. Thanks. On Wed, Dec 3, 2008 at 6:10 AM, Pankaj Munjal [EMAIL PROTECTED]wrote: Hello folks, I have implemented a JNI layer for communication between the Android Java Application and Android Native C code. However, we are facing issues with IPC in this JNI layer. I tried the following IPC approaches: 1. Socket in JNI layer: C Sockets to communicate with the underlying C based processes. I get an error in bind(). Sample code: fd_recv_es = socket(AF_INET,SOCK_DGRAM,0); if (0 fd_recv_es) { return (FAILURE); } bzero(es_recv_addr, sizeof(es_recv_addr)); es_recv_addr.sin_family = AF_INET; es_recv_addr.sin_port = htons(self_port); es_recv_addr.sin_addr.s_addr = inet_addr(self_ip.str); memset((es_recv_addr.sin_zero), '\0', 8); if ( -1 == bind( fd_recv_es,(struct sockaddr*)(es_recv_addr), sizeof(struct sockaddr_in))) // Fails here { return (FAILURE); } 2. Message Q in JNI layer: Linux based message queue to communicate with the underlying C based processes. I get an error in creating the message queue. Sample Code: struct my_msgbuf buf; int msqid, i; key_t key; if ((key = ftok(/data/IPC/dummy, 'B')) == -1) { perror(ftok); exit(1); } if ((msqid = msgget(key, 0644 | IPC_CREAT)) == -1) // Fails here { perror(msgget); exit(1); } Both these approaches work perfectly fine when I use them in an Android C executable, and we are getting this problem only when we use them in a JNI DLL. The linking command for the building JNI DLL is: ALIB := $(NDK_BASE)/toolchain/arm-eabi/lib/gcc/arm-eabi/4.2.1/ libgcc.a $(CC) -nostdlib -Wl,-soname,libApp.so -Wl,-shared,-Bsymbolic -L$(NDK_BASE)/lib $^ $(LIBS) -o libApp.so -Wl,--no-undefined $(ALIB) Has anyone faced a similar issues with IPC(with C executables) in JNI layer? Also, are there are some other flags required for building a JNI DLL that I've missed out on. Any pointers in this direction shall be really helpful. Thanks, Pankaj -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: start your application on camera button
The call button starts an activity, it doesn't send a broadcast, as described in the doc. (Yes this is inconsistent with the camera button and the camera button should probably be changed.) On Wed, Dec 3, 2008 at 11:32 AM, [EMAIL PROTECTED] [EMAIL PROTECTED]wrote: Hi, I cant get this to work. I am trying this for the CALL_BUTTON and on the emulator. Added the lines below to my manifest. Created the MyReceiver class just like you do here. Then trying to register the receiver in OnCreate: IntentFilter filter = new IntentFilter (android.intent.action.CAMERA_BUTTON); Intent intnt = registerReceiver(mCallButtonIntentReceiver, filter); intnt always return null. What am I doing wrong here ? TIA Shimon On Nov 14, 10:09 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks Guys. I added a receiver with CAMERA_BUTTON intent-filter and it then triggers my Main application. But I am not getting the choose application dialog. Instead, both my Main application and camera application opens. activity android:name=MainApp android:label=@string/app_name android:theme=@android:style/Theme intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter intent-filter action android:name=android.intent.action.MY_INTENT/action category android:name=android.intent.category.DEFAULT / /intent-filter /activity receiver android:name=MyReceiver intent-filter action android:name=android.intent.action.CAMERA_BUTTON/ /intent-filter /receiver public class MyReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { Intent newIntent = new Intent(.android.intent.action.MY_INTENT); context.startActivity(newIntent); } } -abhi On Nov 14, 2:53 am, Ludwig [EMAIL PROTECTED] wrote: If you have more than one best matching activity for an intent is to offer you a list to pick the desired activity, with the option of using one as the default (ie do not ask again). It is easy to trigger, just by defining two activities with the same intent...Ludwig 2008/11/14 blindfold [EMAIL PROTECTED] What happens when more than one application has this in the manifest? Thanks On Nov 14, 8:53 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Register to receive the intent android.intent.action.CAMERA_BUTTON. Here's how you might add it to your app's manifest: receiver android:name=CameraButtonIntentReceiver intent-filter action android:name=android.intent.action.CAMERA_BUTTON/ /intent-filter /receiver -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: TabActivity vs VideoView vs Camera Preview contention
I wouldn't be surprised if this doesn't work. :} On Wed, Dec 3, 2008 at 3:55 PM, Jason Proctor [EMAIL PROTECTED] wrote: hey all, i have TabActivity which does camera previews in one tab and has a VideoView in another. they don't get on very well - seems like each thinks it has control of the screen. in particular, once a preview has been done in the camera tab, then the VideoView tab has a black rectangle the size of the preview frame parked in the middle of it. i suspect that both facilities write direct to the frame buffer, and so some contention would be expected. is there any way round this? i'm setting the views' visibility accordingly in onTabChanged(), but it makes no difference, which i suspect is a bug. thanks for any help with this one j -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: TabActivity vs VideoView vs Camera Preview contention
There could well be a bug here, nobody has done this kind of thing as far as I know, and the code for handling a SurfaceView is quite complicated and could easily have bugs in this area. So feel free to file a bug. That said, I can't make any promises about this being addressed any time soon, as there are probably many features and bugs that at this point have a significantly higher priority. If it is something that someone really wants to have fixed, the best way to get a result on it would probably be to debug the platform and submit a patch to fix it. :} (Which I know is asking a lot, because this IS very tricky code.) Oh one other thing, you might want to use hierarchyviewer just to make sure the state of your view hierarchy looks sane. On Wed, Dec 3, 2008 at 5:36 PM, Jason Proctor [EMAIL PROTECTED] wrote: i'm looking at the source for TabHost and it turns out that when a tab is selected, its view is set to visibility GONE. hence me setting it to INVISIBLE afterwards probably isn't helping! either way, i think making a SurfaceView GONE should probably stop it claiming chunks of screen and interfering with other views which are definitely VISIBLE. does the panel agree that this is a bug? -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: intent-filter for addContact and editContact ?
Yes, this is the way to monitor for content provider changes. Note that this is deliberately not done as a broadcast, you can only receive these while you are running by explicitly registering for them, because we didn't want to get in the situation of launching 1 or more apps every time some piece of data in a content provider changes. On Thu, Dec 4, 2008 at 3:08 PM, Bill Napier [EMAIL PROTECTED] wrote: I would start looking here: http://code.google.com/android/reference/android/content/ContentResolver.html#registerContentObserver(android.net.Urihttp://code.google.com/android/reference/android/content/ContentResolver.html#registerContentObserver%28android.net.Uri , boolean, android.database.ContentObserver) with ContentObserver.registerContentObserver which sounds like it should do what you want. I haven't used the function yet, so you may have to mess with it. Please report back you results so others can know the answer too. Thanks! Bill On Thu, Dec 4, 2008 at 6:11 AM, jaspher [EMAIL PROTECTED] wrote: hello I'm looking for a intent-filter which can start my BroadcastReciver when somebody adds a new contact or edit a contact. Unfortunately I couldn't finde something like that. Does it exist? If not how can I get a Notification when somebody added a new contact or something like that? thanks in advance jaspher -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Is Bitmap.compress thread safe?
Should be fine. On Thu, Dec 4, 2008 at 9:00 AM, webmonkey [EMAIL PROTECTED] wrote: Because the Bitmap.compress(Bitmap.CompressFormat format, int quality, OutputStream stream) function can sometimes take a long time I am calling it in a separate thread with low priority. During this time I am drawing the same bitmap in the UI thread using Canvas.drawBitmap (Bitmap bitmap, float left, float top, Paint paint) at 30fps. Although the bitmap is mutable I am not writing to the bitmap during this period. It works fine but I want to make sure that it is safe to do this. Thanks -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Foreign Language support/Adding new system fonts
Sorry, at this point applications can't add new system fonts, they can only use custom fonts in their own app. We don't even have a font picker, which I think would be the thing to do before allowing new fonts to be added. :) On Wed, Dec 3, 2008 at 4:19 PM, Eric [EMAIL PROTECTED] wrote: Can new system fonts be added to Android? Can applications refer to them? Several threads have addressed this, but I can't find a complete answer. The only method I have found to change system fonts is with adb push. If I use adb to install a new font can an app use it? Or does Android only allow the Droid fonts it is shipped with? Is there a user friendly way to install a system font? (no adb, no hacking disk images). Can an app install a system font? I'm writing an app that needs foreign language support which is not currently part of Android. I'm especially interested in Koine (New Testament) Greek. Modern Greek is kind of supported, but Koine has a lot more diacritical marks (for example: Εν ἀρχῆ ἦν ὁ λόγος will not display correctly in Android). I can include a font with my application. However this limits it's use to only my app. Adding a good unicode font can add several 100k to my app, which makes it many times bigger than entire rest of the app. This is a waste, especially if more than one app wants to use the font. (Is there a way to share fonts across apps without using a system font?) In the case of trying to use an Android phone in a foreign language a system-wide font is an absolute necessity. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Application Context
Nope, there is no current context. You need to explicitly supply the context. On Wed, Dec 3, 2008 at 4:02 PM, Cezar Augustus Signori [EMAIL PROTECTED] wrote: Hi! It would be pretty good to obtain the application context from a static method, without the use of an Activity object. I mean, there is a lot of frameworks that do it and its really very useful.. Something like Context.getCurrentInstance() would help a lot.. Someone know anything about that on Android? Thanks! -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem Launching Emulator after integrating codec
This kind of discussion should go on one of the android open source platform groups, thanks! On Thu, Dec 4, 2008 at 12:40 AM, Yogi [EMAIL PROTECTED] wrote: Hi All, I have facing problem in launching emulator from the source code. I have also set the environment variable ANDROID_PRODUCT_OUT. I am getting the following error message, ~/bin# out/host/linux-x86/bin/emulator Cannot locate system directory, which contains 'system.img' and other system files. Please specify one by using '-system directory' or by defining the environment variable ANDROID_PRODUCT_OUT. After that i tried with the following command : ~/bin# out/host/linux-x86/bin/emulator -system out/target/product/ generic Cannot find file: out/target/product/generic/kernel-qemu Please specify a valid -kernel file I am still getting the error message. I have integrated my codec library onto android.Is this causing the problem? Do i need to allocate memory in emulator? Please help me out. Thanks in advance, Yogesh -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Change Tab Widget icon for currently active tab
Make your tab drawable a selector drawable that picks other drawables based on its state, like the standard tab drawable: ?xml version=1.0 encoding=utf-8? !-- Copyright (C) 2008 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the License); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -- selector xmlns:android=http://schemas.android.com/apk/res/android; !-- Non focused states -- item android:state_focused=false android:state_selected=false android:state_pressed=false android:drawable=@drawable/tab_unselected / item android:state_focused=false android:state_selected=true android:state_pressed=false android:drawable=@drawable/tab_selected / !-- Focused states -- item android:state_focused=true android:state_selected=false android:state_pressed=false android:drawable=@drawable/tab_focus / item android:state_focused=true android:state_selected=true android:state_pressed=false android:drawable=@drawable/tab_focus / !-- Pressed -- item android:state_pressed=true android:drawable=@drawable/tab_press / /selector On Thu, Dec 4, 2008 at 2:45 PM, mscwd01 [EMAIL PROTECTED] wrote: Anyone? I've spent most of today on this problem and its starting to get old ;) On Dec 4, 6:43 pm, mscwd01 [EMAIL PROTECTED] wrote: This is not so much a problem, more a question about how to achieve something... I have a tabhost with three tabs. I have 6 icons, 3 in colour and 3 an exact copy but in grayscale. What I want to do is have the coloured version of the icon displayed when the tab is active i.e. being viewed. Otherwise I want the other inactive tabs to show the grayscale version of their icon - and change to the coloured version if they are clicked. So I want a tab to show a coloured icon if active and a grayscale icon if inactive... Any ideas how to achieve this anyone? I have played around with the TabHost onTabChangeListener but havent been able to find a solution. Ideally I need something like: tabHost.setOnTabChangedListener(new TabHost.OnTabChangeListener() { public void onTabChanged(String arg0) { int selectedTab = tabs.getCurrentTab(); // Update newly selected tab to display colorful icon // Update previously selected tab to display greyscale icon } }); Thanks -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Storing pictures in internal storage.
The platform has pretty much defined that any android phone will have an sdcard filesystem available to applications, though it may be temporarily removed. IMHO, if a person gets an android phone with a removable SD card, and removes that card... well they get what they asked for. :) On Thu, Dec 4, 2008 at 2:50 PM, Mark Murphy [EMAIL PROTECTED] wrote: Jean-Baptiste Queru wrote: Space on internal storage is very very tight, and users are guaranteed to have an SD card with their G1. To be fair, users are guaranteed that they *can have* an SD card in their G1. That is not the same as saying there is always an SD card installed in the G1, as SD cards are removable and can be misplaced, used in other equipment, eaten by gerbils, etc. I'm not quibbling with the decision vis a vis the operation of the Camera app, but I also don't want developers thinking the SD card is soldered into the G1 or something. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: OpenGL context = how to load non power of two dimension bitmap?
I believe the G1 hardware does not support non-power-of-2 textures. On Thu, Dec 4, 2008 at 8:48 AM, Guian [EMAIL PROTECTED] wrote: in the OpenGL android API (android.opengl.GLUtils.texImage2D() ) ( http://code.google.com/android/reference/android/opengl/GLUtils.html ) we can read= Whether or not bitmap can have non power of two dimensions depends on the current OpenGL context. I load my OpenGL context using : mEglContext = mEgl.eglCreateContext(mEglDisplay, mEglConfig,EGL10.EGL_NO_CONTEXT, null); do you know what do I have to do in order to load non power of two dimensions bitmap? -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: invoking com.android.internal.*
If you want to use private APIs, you need to get the platform source and build it. You are only allowed to use private APIs if you are writing code that is built-in to the android system, so we really don't -want- to make it easy to do this unless you are doing it for the appropriate reason of working on the platform/system itself. On Thu, Dec 4, 2008 at 2:58 PM, dreamerBoy [EMAIL PROTECTED] wrote: Yes, I know about this URL and have downloaded much of the source code. The delicate problem is how to build in access to the internal classes that I need and have them be invoked correctly by Android. Question is, how to do this without in effect rolling your own version of Android i.e., doing a full build ... after all, (this probably includes Linux), there are 8 million lines of code in Android. This would likely turn into a project unto itself. I have an old android.jar from version 0.9 with the internal classes available. When I try to use that, the Eclipse aapt environment immediately figures out what I'm trying to do, fails my attempt, and gives me a snarky message saying that I'm going to have problems trying to do this. Monsieur Queru - any comment? Thanks dreamer On Dec 3, 10:10 am, Ash [EMAIL PROTECTED] wrote: Use GIT to checkout the source code and add the internals paths you need to your application. //android.git.kernel.org/platform/frameworks/base/telephony is what you are looking for, I think. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Newbe question - Application folders, how to?
If you mean you want to put such a thing in the sliding drawer that you pull up from the bottom, that is a flat list of apps. But you can just write an activity that goes in there, and when your activity is launched show a folder of whatever sub-activities you want. On Thu, Dec 4, 2008 at 9:06 AM, Anders Rundgren [EMAIL PROTECTED]wrote: Thanx! But I wanted to create a folder in the application drawer (or what it should be called) that also should not look like a folder but as an app which would if pressed open the folder with the real apps. Isn't that what most mult-app installs need? On Nov 29, 11:59 am, Romain Guy [EMAIL PROTECTED] wrote: Long press an empty space on Home (or click Menu Add) then choose Shortcut Folder. You can drop applications in the newly created folder. On Sat, Nov 29, 2008 at 2:56 AM, Anders Rundgren [EMAIL PROTECTED] wrote: In other operating systems you can typically define a folder and when clicked it opens a view with applications. I may be blind, but I don't see any of this using the emulator and SDK 1.0. Is the ApiDemos the only GUI-way you can create a suite of associated applications? -- Romain Guywww.curious-creature.org -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Largish HTTP Post vs. ANR
You can look in I believe /data/anr/traces.txt to find a dump of the stacks of all processes and threads when the ANR happened, which should tell you what your thread was stuck doing at the time. On Thu, Dec 4, 2008 at 4:27 PM, [EMAIL PROTECTED] wrote: Yes, I've already coded that up and it behaves identical to HttpURLConnection. So that's not the root cause of this. I just tested this on 3g vs. my home wireless and it too behaves identically, so it's not the kind of net connectivity that's causing this either. Mike On Thu, Dec 4, 2008 at 4:21 PM, Mark Murphy [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: So I switch over to using DefaultHttpClient and friends and it... behaves the same way. (I assume that's what you meant by HTTPComponents aka the apache stuff?) Yes, the stuff in org.apache.http.*. Documentation can be found at http://hc.apache.org, and example code for HttpClient can be found at: http://hc.apache.org/httpcomponents-client/examples.html -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Published! -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how to update apk's Jad file in run time
An .apk is read-only, you can't modify it. On Thu, Dec 4, 2008 at 11:19 PM, Sudha Gupta [EMAIL PROTECTED]wrote: Hello, I have a application in J2me, its a client server application. In this application user registers the handset(with the phone number) on the web site , In return server sends a message to the handset with the link to download the client application on the handset. before download of the client application, server appends few values(like device id, user id) in the jad file. I am developing the same application for Android, I wanted to know how this information (device id, user id) will be added in the apk in run time. Plz help me Thanks Sudha gupta -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to send email programmatically?
You need to go through the UI of the mailer activity, so the user can select which app to use etc. Adding support for allowing applications to get at the user's personal e-mail information and send on their behalf without their interaction (but some other way to inform them that the app is doing this) is not a high priority for the platform; actually, I would personally much prefer that apps go through the mail UI so the user can be aware of and confirm whatever some non-mail app is sending on their behalf. As a user, wouldn't you prefer this too? :} On Mon, Dec 1, 2008 at 4:23 PM, Jay-andro [EMAIL PROTECTED] wrote: I too want to send email programmtaically (i.e without a send form). I've got it working with my hardcoded credentials, but I want my app to use the user's account to send the email from the user's account and receive replies to his account. How do I do this? On Nov 12, 10:51 am, Sunit Katkar [EMAIL PROTECTED] wrote: Thank you. I will try this. On Wed, Nov 12, 2008 at 12:44 AM, Peli [EMAIL PROTECTED] wrote: You can find a code snippet here: http://www.openintents.org/en/node/121 There is also a related SENDTO action which you can look up in the documentation. Peli www.openintents.org On Nov 12, 8:52 am, Sunit Katkar [EMAIL PROTECTED] wrote: Ok how would I implement the 'send form'. Do you mean that I should launch a web browser and use some webmail type of application hosted on a server? I was thinking about the Email Outbox. How can I put a simple text message as an email in the Outbox? I know I could do this long long ago with Palm OS ver3.0. Hope there is a way to do it on Android. - Sunit On Tue, Nov 11, 2008 at 5:25 PM, Andrew Burgess [EMAIL PROTECTED] wrote: If you don't want to direct the user to the typical send form, then you're going to have to either try and adapt an existing java based mailer to android or write an SMTP client from scratch. The SMTP standard isn't too hard to implement. On Tue, Nov 11, 2008 at 8:05 PM, Sunit Katkar [EMAIL PROTECTED] wrote: Any ideas? Any pointers to some examples? On Tue, Nov 11, 2008 at 9:42 AM, Sunit Katkar [EMAIL PROTECTED] wrote: Suppose I have an Activity which has couple of text fields - one for the subject and one for body text. And there is a simple Button. When user clicks the button, I wish to send the text in the textfields via email to a predetermined email address. How can I achieve this? Sorry for being lazy and not looking up the SDK docs :) PS: I have configured the EMAIL app on G1 using the Email setup steps, so it can receive and send email from my email account. -- - Sunit Katkar http://sunitkatkar.blogspot.com/-Android OS Tutorials -- - Sunit Katkar http://sunitkatkar.blogspot.com/-Android OS Tutorials -- Andrew Burgess -- - Sunit Katkarhttp://sunitkatkar.blogspot.com/-Android OS Tutorials -- - Sunit Katkarhttp://sunitkatkar.blogspot.com/- Android OS Tutorials -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ::CPU usage
You really can't judge performance based on the emulator. Ignoring the CPU emulation, there is no emulation of the memory bus, it doesn't do any graphics hardware acceleration, etc. Ultimately you need to do development on a real device, that is the only way to know how your application is actually going to behave. On Sat, Dec 6, 2008 at 6:12 AM, Xavier Mathews [EMAIL PROTECTED]wrote: Yes it will depending on the processor speed of the device. 50% Is Alot. On 12/06/2008, Mark Murphy [EMAIL PROTECTED] wrote: Imran wrote: Hi All...!!! i have developed a small game application... i have a problem... when i run the application it is using 50% of CPU (mine is 2Ghz processor )... will this create a problem in actual device.. Possibly. The emulator is inefficient, in that it has to convert ARM instructions into x86 instructions for execution on your development PC. This adds a fair bit of overhead, which results in a higher-than-expected CPU utilization. However, it is very difficult to project how a certain CPU utilization on the development PC will translate into CPU utilization on a device. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! -- Xavier A. Mathews Student/Browser Specialist/Developer/Web-Master Google Group Client Based Tech Support Specialist Hazel Crest Illinois [EMAIL PROTECTED]@[EMAIL PROTECTED] Fear of a name, only increases fear of the thing itself. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Alternative to category LAUNCHER for plugins?
Market unfortunately doesn't support this right now. On Sun, Dec 7, 2008 at 11:46 AM, Peli [EMAIL PROTECTED] wrote: Hm, my colleague just checked, but the way outlined above did not work. Which IntentFilter do I have to specify so that the Market app can launch my plugin (to show a custom warning message), but it is still not included in the list of all LAUNCHER applications? If it is not possible currently, that is also ok. I would just like to know whether I should invest more time in investigating this or not... Peli On 7 Dez., 17:48, Peli [EMAIL PROTECTED] wrote: Our users complain about the following: You're getting hammered by negative comments on oi voice notes because after install it gives launch error. I suggest creating an idiot window on launch that says this app is an addon, and to use within other oi products. We provide a plug-in (addon, extension,..) for our shopping list application that is called voice notes, which should only appear in the menu of shopping list. We do not want that plugin to be listed in the list of all applications (as we plan to have more add-ons in the future), so we did not specify the android.intent.category.LAUNCHER, just the android.intent.category.ALTERNATIVE. How can we provide an activity that is launched by the Android installer after installation (to display a warning that this has to be used from within shopping list), but still does not show up in the list of all applications? Hm, thinking about it, is it as simple as providing an intent android.intent.action.MAIN without the category LAUNCHER? Is this what the installer would call? (I have not downloaded the latest SDK yet, otherwise I could probably answer this question myself by trying it out...) Peliwww.openintents.org -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to make my activity on top of system message.
Sorry, there isn't really a way to do this. On Sun, Dec 7, 2008 at 9:35 AM, AndroidGeek [EMAIL PROTECTED] wrote: Hi, I am trying to start my application when a call is received and show it on top of system message (showing phone number on the screen). How can I suppress system screen and bring my activity on top of it? Is there any way to do this Regards, Tabrej -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: precision of alarms using RTC_WAKEUP
On Mon, Dec 8, 2008 at 12:18 AM, alex [EMAIL PROTECTED] wrote: My problem is that some alarms (maybe 20% of them) fire late, up to 15 minutes late. Others are right on time. Is this expected behavior? Has anyone else noticed this? Are you sure you are holding a wake lock the entire time you process the alarm? Put a log output in your intent receiver to be sure the problem is the alarm not going off, instead of the CPU going to sleep while your own code is running, A related question: if the user powers off and on his/her device, it seems that the alarms that were set prior to the off/on don't fire. Is that expected behavior as well? Yes. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: New SDK Available
It's the same as the G1. On Sun, Dec 7, 2008 at 4:04 PM, Christine [EMAIL PROTECTED]wrote: But we don't know which phone Google will be shipping. Is it similar to a US G1 or to a UK G1 which seems to work on a different 3G frequency? I guess we'll all know by the end of the week. On Dec 7, 11:57 pm, Pierre Bonnefoy [EMAIL PROTECTED] wrote: A SIM is necessary if you want to make phone calls on a standard cellular networks (I mean, you can still make phone calls on WiFi without a SIM). 2008/12/7 Xavier Mathews [EMAIL PROTECTED] I thought that iphone was also an ipod and has over 10,000 apps what is the point of a sim? -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to prevent one program to be overlaped by another
Sorry, you can not do this. On Mon, Dec 8, 2008 at 9:58 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello. Is there any way of how to prevent e.g. incoming call screen display during playing some game? Probably, some parameters can be specified while starting activity which preventing any overlapping? Thanks. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Creating a TabHost with Tabs containing Activities WITHOUT extending TabActivity
Fyi, ActivityGroup is very simple and as far as I know doesn't use any internal methods: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob_plain;f=core/java/android/app/ActivityGroup.java;hb=HEAD It's basically the same as ListActivity, a convenience class for a common pattern that you can implement yourself. On Mon, Dec 8, 2008 at 4:41 PM, Mark Murphy [EMAIL PROTECTED] wrote: mscwd01 wrote: Anyone? I'm guessing its possible but I cant find an obvious solution... Alas, I don't think it is possible, unless you fancy getting your hands dirty in the Android source code. You need the activity that is managing the tabs to be an ActivityGroup if you want one or more tabs to contain Intent-launched activities. The only such class is TabActivity. Similarly, AFAIK, you need to use MapActivity for your MapView to work. Your only hope is to get the Android source code for TabActivity and MapActivity and attempt to merge them yourself to create TabbedMapActivity, so you can have an ActivityGroup subclass that implements both tabbing and mapping behavior. Having written a section in Version 1.9 of my book on using Intent-based tabs in a TabActivity, I confess as to having no real good idea why anyone would want to use one. The only scenario I can see is if you need something that can be run independently as an activity *and* appear as a tab in another activity...but that can be solved just by separating those smarts out into a separate Java class and reusing the logic in both spots. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: JavaBinder: !!! FAILED BINDER TRANSACTION !!!
It means the native Binder IPC system reported an error when trying to submit an operation to it. On Mon, Dec 8, 2008 at 7:55 PM, sandy8531 [EMAIL PROTECTED] wrote: I get this message on the G1 device. Can anyone shed some light on what scenarios could cause this message, I suspect that it is coming from Platform code. 12-08 21:43:27.149 1825 2980 E JavaBinder: !!! FAILED BINDER TRANSACTION !!! -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to send email programmatically?
If you want a feature like this, feel free to look at submitting a patch to the platform. You'll want to talk with people in the platform group about the security implications of doing so, so we can have a patch that we are comfortable with. This is probably way down on the priority list for the core platform work, so I doubt a feature like it would be added without someone who wants it coming in and making it happen. On Mon, Dec 8, 2008 at 8:44 PM, Jay-andro [EMAIL PROTECTED] wrote: Diane I accept (with a heavy heart :-( that Google is not interested in providing for this, but I do believe it is a valid requirement. First let me clarify that I have no interest in accessing the user's personal account information from my app. I would ideally like an android api that protects this info and just allows my app to invoke a sendmail method with subject, body etc. Under the covers the api would access the personal account credentials of so it can connect to the smtp server. Second, consider the following use cases where this requirement comes up: - A salesforce phone app is set up to always send an email to the sales supervisor when a customer support person updates a customer ticket. The email is automatic and informational - A service rep (cable guy) app is set up to automatically email the service supervisor, when a rep leaves the location of his/her last service order. - A game is set up to automatically email the highest score to all members of a game-group In all cases, the app would advertise the auto-email as a feature, that the user can opt into or out of. thx jay On Dec 6, 2:13 pm, Dianne Hackborn [EMAIL PROTECTED] wrote: You need to go through the UI of the mailer activity, so the user can select which app to use etc. Adding support for allowing applications to get at the user's personal e-mail information and send on their behalf without their interaction (but some other way to inform them that the app is doing this) is not a high priority for the platform; actually, I would personally much prefer that apps go through the mail UI so the user can be aware of and confirm whatever some non-mail app is sending on their behalf. As a user, wouldn't you prefer this too? :} On Mon, Dec 1, 2008 at 4:23 PM, Jay-andro [EMAIL PROTECTED] wrote: I too want to send email programmtaically (i.e without a send form). I've got it working with my hardcoded credentials, but I want my app to use the user's account to send the email from the user's account and receive replies to his account. How do I do this? On Nov 12, 10:51 am, Sunit Katkar [EMAIL PROTECTED] wrote: Thank you. I will try this. On Wed, Nov 12, 2008 at 12:44 AM, Peli [EMAIL PROTECTED] wrote: You can find a code snippet here: http://www.openintents.org/en/node/121 There is also a related SENDTO action which you can look up in the documentation. Peli www.openintents.org On Nov 12, 8:52 am, Sunit Katkar [EMAIL PROTECTED] wrote: Ok how would I implement the 'send form'. Do you mean that I should launch a web browser and use some webmail type of application hosted on a server? I was thinking about the Email Outbox. How can I put a simple text message as an email in the Outbox? I know I could do this long long ago with Palm OS ver3.0. Hope there is a way to do it on Android. - Sunit On Tue, Nov 11, 2008 at 5:25 PM, Andrew Burgess [EMAIL PROTECTED] wrote: If you don't want to direct the user to the typical send form, then you're going to have to either try and adapt an existing java based mailer to android or write an SMTP client from scratch. The SMTP standard isn't too hard to implement. On Tue, Nov 11, 2008 at 8:05 PM, Sunit Katkar [EMAIL PROTECTED] wrote: Any ideas? Any pointers to some examples? On Tue, Nov 11, 2008 at 9:42 AM, Sunit Katkar [EMAIL PROTECTED] wrote: Suppose I have an Activity which has couple of text fields - one for the subject and one for body text. And there is a simple Button. When user clicks the button, I wish to send the text in the textfields via email to a predetermined email address. How can I achieve this? Sorry for being lazy and not looking up the SDK docs :) PS: I have configured the EMAIL app on G1 using the Email setup steps, so it can receive and send email from my email account. -- - Sunit Katkar http://sunitkatkar.blogspot.com/-AndroidOS Tutorials -- - Sunit Katkar http://sunitkatkar.blogspot.com/-AndroidOS Tutorials -- Andrew Burgess -- - Sunit Katkarhttp://sunitkatkar.blogspot.com/-AndroidOSTutorials -- - Sunit Katkarhttp://sunitkatkar.blogspot.com
[android-developers] Re: How to send email programmatically?
Btw, you can probably get away with doing this with little to no platform changes at all, by defining an intent protocol that is similar to the existing one but doesn't require presenting a UI. There are still some important security, user interaction, and management issues that would need to be addressed though, such as what to do with multiple e-mail apps with multiple accounts. Anyway, the point is that this is an open source project. You aren't dependent on Google for things, you don't have to sit here begging for people to give you features you want, if you feel strongly about something you can make it happen. On Mon, Dec 8, 2008 at 9:31 PM, Dianne Hackborn [EMAIL PROTECTED] wrote: If you want a feature like this, feel free to look at submitting a patch to the platform. You'll want to talk with people in the platform group about the security implications of doing so, so we can have a patch that we are comfortable with. This is probably way down on the priority list for the core platform work, so I doubt a feature like it would be added without someone who wants it coming in and making it happen. On Mon, Dec 8, 2008 at 8:44 PM, Jay-andro [EMAIL PROTECTED] wrote: Diane I accept (with a heavy heart :-( that Google is not interested in providing for this, but I do believe it is a valid requirement. First let me clarify that I have no interest in accessing the user's personal account information from my app. I would ideally like an android api that protects this info and just allows my app to invoke a sendmail method with subject, body etc. Under the covers the api would access the personal account credentials of so it can connect to the smtp server. Second, consider the following use cases where this requirement comes up: - A salesforce phone app is set up to always send an email to the sales supervisor when a customer support person updates a customer ticket. The email is automatic and informational - A service rep (cable guy) app is set up to automatically email the service supervisor, when a rep leaves the location of his/her last service order. - A game is set up to automatically email the highest score to all members of a game-group In all cases, the app would advertise the auto-email as a feature, that the user can opt into or out of. thx jay On Dec 6, 2:13 pm, Dianne Hackborn [EMAIL PROTECTED] wrote: You need to go through the UI of the mailer activity, so the user can select which app to use etc. Adding support for allowing applications to get at the user's personal e-mail information and send on their behalf without their interaction (but some other way to inform them that the app is doing this) is not a high priority for the platform; actually, I would personally much prefer that apps go through the mail UI so the user can be aware of and confirm whatever some non-mail app is sending on their behalf. As a user, wouldn't you prefer this too? :} On Mon, Dec 1, 2008 at 4:23 PM, Jay-andro [EMAIL PROTECTED] wrote: I too want to send email programmtaically (i.e without a send form). I've got it working with my hardcoded credentials, but I want my app to use the user's account to send the email from the user's account and receive replies to his account. How do I do this? On Nov 12, 10:51 am, Sunit Katkar [EMAIL PROTECTED] wrote: Thank you. I will try this. On Wed, Nov 12, 2008 at 12:44 AM, Peli [EMAIL PROTECTED] wrote: You can find a code snippet here: http://www.openintents.org/en/node/121 There is also a related SENDTO action which you can look up in the documentation. Peli www.openintents.org On Nov 12, 8:52 am, Sunit Katkar [EMAIL PROTECTED] wrote: Ok how would I implement the 'send form'. Do you mean that I should launch a web browser and use some webmail type of application hosted on a server? I was thinking about the Email Outbox. How can I put a simple text message as an email in the Outbox? I know I could do this long long ago with Palm OS ver3.0. Hope there is a way to do it on Android. - Sunit On Tue, Nov 11, 2008 at 5:25 PM, Andrew Burgess [EMAIL PROTECTED] wrote: If you don't want to direct the user to the typical send form, then you're going to have to either try and adapt an existing java based mailer to android or write an SMTP client from scratch. The SMTP standard isn't too hard to implement. On Tue, Nov 11, 2008 at 8:05 PM, Sunit Katkar [EMAIL PROTECTED] wrote: Any ideas? Any pointers to some examples? On Tue, Nov 11, 2008 at 9:42 AM, Sunit Katkar [EMAIL PROTECTED] wrote: Suppose I have an Activity which has couple of text fields - one for the subject and one for body text. And there is a simple Button. When user clicks the button, I
[android-developers] Re: JavaBinder: !!! FAILED BINDER TRANSACTION !!!
It's possibly due to the application, but I really don't know enough about what you are doing to help any more. The only hard-coded limit in the IPC system is the size of an individual transaction, which you want to keep below 100K or so. So if you are sending, say, a big bitmap across processes, you may be killing yourself. On Tue, Dec 9, 2008 at 9:02 AM, sandy8531 [EMAIL PROTECTED] wrote: Dianne, Thanks for the reply. Can a misbehaving application code cause this ? If so what should I look for in my application code. Could this be caused by hitting some hardcoded limits during IPC ? -thanks On Dec 8, 10:14 pm, Dianne Hackborn [EMAIL PROTECTED] wrote: It means the native Binder IPC system reported an error when trying to submit an operation to it. On Mon, Dec 8, 2008 at 7:55 PM, sandy8531 [EMAIL PROTECTED] wrote: I get this message on the G1 device. Can anyone shed some light on what scenarios could cause this message, I suspect that it is coming from Platform code. 12-08 21:43:27.149 1825 2980 E JavaBinder: !!! FAILED BINDER TRANSACTION !!! -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: the fastest way to draw on screen
Within the view hierarchy, drawing a bitmap is the fasted way to draw a blob of arbitrary pixels. For more specialized things, you can use OpenGL in a SurfaceView (which is hardware accelerated on the G1). On Tue, Dec 9, 2008 at 8:54 AM, Romkin [EMAIL PROTECTED] wrote: What is the fastest way to draw on screen? currently we use OnDraw and have Bitmap, but is there a faster way to draw pixel array to screen? Thanks. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: 2d Canvas over Opengl (Flickering !!)
There is an Api demo showing how arbitrary views can be positioned on top of a SurfaceView, if you want a true overlay. On Tue, Dec 2, 2008 at 2:42 AM, fcalzada [EMAIL PROTECTED] wrote: Hi petunio, you said I managed (after a lot of problems) to put 2D graphics on top of 3D. I'm trying hard to do the same, and i don't find a solution. how did you do ? thanks a lot On Nov 27, 3:09 pm, petunio [EMAIL PROTECTED] wrote: Hi all does anybody know what am I doing wrong? I managed (after a lot of problems) to put 2D graphics on top of 3D. But the 2D graphics are flickering... this is the main loop: public void drawFrame(GL10gl, my3DObject world, Canvas myCanvas) { gl.glClear(GL10.GL_COLOR_BUFFER_BIT |GL10.GL_DEPTH_BUFFER_BIT); gl.glClearColor(0, 0, 0, 1); world.draw(gl); //draws the 3D world, it works... drawIcons(myCanvas); //draws the 2D graphics. the ones that are flickering... mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); } Also, in the SurfaceCreated method I obtain the canvas, by doing: myCanvas=mHolder.lockCanvas(); and then, when the surface is destroyed, I do: mHolder.unlockCanvasAndPost(myCanvas); Any help would be very appreciated Thanks! -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: intent-filter for addContact and editContact ?
I was just explaining why we designed things the way we did. On Tue, Dec 9, 2008 at 8:25 AM, jaspher [EMAIL PROTECTED] wrote: hello everyboday thank you for your support and sorry for my slowly answer... it works with a contentResolver and a ContentObserver (code). do you mean that it isn't for the performance of the device not a good idea to work with something like that? thanks in advance public class BackgroundService extends Service { private Handler handler = new Handler(); @Override public IBinder onBind(Intent arg0) { // TODO Auto-generated method stub return null; } public void onStart(Intent intent, int startId) { super.onStart(intent, startId); System.out.println(BACKGROUND SERVICE IS RUNNING); ContactsContentObserver cco = new ContactsContentObserver(handler); ContentResolver contentResolver = getContentResolver(); contentResolver.registerContentObserver(Contacts.People.CONTENT_URI, true, cco); } private class ContactsContentObserver extends ContentObserver { public ContactsContentObserver(Handler h) { super(h); } public void onChange(boolean selfChange) { System.out.println(SOMEBODAY CHANGED ANYTHING AT THE CONTACTS); } } } On 5 Dez., 00:24, Dianne Hackborn [EMAIL PROTECTED] wrote: Yes, this is the way to monitor for content provider changes. Note that this is deliberately not done as a broadcast, you can only receive these while you are running by explicitly registering for them, because we didn't want to get in the situation of launching 1 or more apps every time some piece of data in a content provider changes. On Thu, Dec 4, 2008 at 3:08 PM, Bill Napier [EMAIL PROTECTED] wrote: I would start looking here: http://code.google.com/android/reference/android/content/ContentResol.. .http://code.google.com/android/reference/android/content/ContentResol.. . , boolean, android.database.ContentObserver) with ContentObserver.registerContentObserver which sounds like it should do what you want. I haven't used the function yet, so you may have to mess with it. Please report back you results so others can know the answer too. Thanks! Bill On Thu, Dec 4, 2008 at 6:11 AM, jaspher [EMAIL PROTECTED] wrote: hello I'm looking for a intent-filter which can start my BroadcastReciver when somebody adds a new contact or edit a contact. Unfortunately I couldn't finde something like that. Does it exist? If not how can I get a Notification when somebody added a new contact or something like that? thanks in advance jaspher -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to prevent one program to be overlaped by another
No, sorry. On Tue, Dec 9, 2008 at 10:51 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Ok, then from another side - is it possible to overlap InCallScreen? ;) -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to prevent one program to be overlaped by another
Well I should qualify that -- you can always show a toast, which will temporarily overall all application windows and can't receive any input. On Tue, Dec 9, 2008 at 12:44 PM, Dianne Hackborn [EMAIL PROTECTED]wrote: No, sorry. On Tue, Dec 9, 2008 at 10:51 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Ok, then from another side - is it possible to overlap InCallScreen? ;) -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to send email programmatically?
On Tue, Dec 9, 2008 at 10:47 AM, Brad Gies [EMAIL PROTECTED] wrote: Does android have a standardized email settings dialog box we can invoke? Or do we have to roll our own? There is no standard settings dialog, we already have to e-mail apps that are very different: gmail and email. I don't think it makes sense to try to come up with a general-purpose UI for this as part of the platform, though of course making one that others can re-use embedded in their apps would be great. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Event when shortcut is dragged to Trash?
Sorry, there isn't really such a thing. On Tue, Dec 9, 2008 at 10:31 AM, Blake B. [EMAIL PROTECTED] wrote: Is there any kind of event or hook available for determining when a shortcut (and which one) is dragged to the Trash button on the Home screen? -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: my custom Parcelable jams on cross-process read
I don't see a problem off-hand, though you didn't include your CREATOR object. We do this kind of thing extensively in the system. On Tue, Dec 9, 2008 at 9:42 AM, DulcetTone [EMAIL PROTECTED] wrote: using SDK r1 I have a Parcelable I am passing successfully in an AIDL call from a Service to the Activity that launched the Service, but which jams on the first parcel.readString() through the same AIDL call to a different Activity. Here is my interface's AIDL: package com.me; import com.me.MyParcelable; oneway interface IMyCallbackInterface { void localInput(in MyParcelable p); } --- Here are the boilerplate elements of MyParcelable: private MyParcelable(Parcel in) { G.debug(read has size + in.dataSize() + , avail is + in.dataAvail()); mString = in.readString(); G.debug(read string ' + s + '); G.debug(read has leftover + in.dataAvail()); } public void writeToParcel(Parcel out, int flags) { G.debug(write string ' + mString + ' into parcel that already has + out.dataSize()); out.writeString(mString); G.debug(wrote + out.dataSize()); } In the first case, where a Service calls localInput() to the Activity that launched it, I get the following debug output and sane operation: 12-09 01:11:58.246: INFO/System.out(1054): write string '' into parcel that already has 100 12-09 01:11:58.256: INFO/System.out(1054): wrote 108 12-09 01:11:58.266: INFO/System.out(1048): read has size 108, avail is 8 12-09 01:11:58.286: INFO/System.out(1048): read sender '' 12-09 01:11:58.286: INFO/System.out(1048): read has leftover 0 In the second case, where the same Service calls the function on an Activity other than the one that launched it, I get the following debug output, and the readString() apparently never fires off despite the fact that there appears to be the same conditions -- 108 bytes of data, and 8 available before the readString() is called. 12-09 01:16:15.416: INFO/System.out(1054): write string '' into parcel that already has 100 12-09 01:16:15.416: INFO/System.out(1054): wrote 108 12-09 01:16:15.566: INFO/System.out(1091): read has size 108, avail is 8 program seems to wedge here... no further output from my code results Obviously, my question is: why is this not working? I am going to try changing the interface from a oneway to a general one. I'm stumped, otherwise. Thanks in advance for any insights. tone -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: precision of alarms using RTC_WAKEUP
On Mon, Dec 8, 2008 at 6:43 AM, Dorn Hetzel [EMAIL PROTECTED] wrote: Is there a recommended method for setting alarms that will survive a power cycle ? No, it is very intentional in the design that they do not. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Thread Allocation Question
There is no JVM scheduler, Linux does all of the thread scheduling. The scheduler we use in Linux does normally use time slicing between threads. On Wed, Dec 10, 2008 at 2:03 PM, beachy [EMAIL PROTECTED] wrote: Hi Guys, Just a quick general question someone might be able to answer off the top of their head, does the JVM scheduler use time slicing when allocating process to threads of the same priority? Cheers, Greg B. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Compile error on Android SDK
Hi, questions about working with the open-source platform should be posted on one of the associated groups such as android-platform. Thanks! On Wed, Dec 10, 2008 at 9:04 AM, Ian Beveridge [EMAIL PROTECTED]wrote: I'm getting a compile error when I try to compile the SDK. Here's what I do, and the tail end of the errors... repo init -u git://android.git.kernel.org/platform/manifest.git repo sync make build/core/product_config.mk:229: WARNING: adding test OTA key build/core/main.mk:177: implicitly installing apns-conf_sdk.xml host C++: aapt = frameworks/base/tools/aapt/XMLNode.cpp frameworks/base/tools/aapt/XMLNode.cpp: In function `status_t parseStyledString(Bundle*, const char*, android::ResXMLTree*, const android::String16, android::String16*, android::VectorStringPool::entry_style_span*, bool)': frameworks/base/tools/aapt/XMLNode.cpp:115: error: syntax error before `,' token frameworks/base/tools/aapt/XMLNode.cpp:125: error: syntax error before `,' token frameworks/base/tools/aapt/XMLNode.cpp:132: error: syntax error before `,' token frameworks/base/tools/aapt/XMLNode.cpp:167: error: syntax error before `,' token frameworks/base/tools/aapt/XMLNode.cpp:176: error: syntax error before `,' token frameworks/base/tools/aapt/XMLNode.cpp:193: error: syntax error before `,' token frameworks/base/tools/aapt/XMLNode.cpp:221: error: syntax error before `,' token frameworks/base/tools/aapt/XMLNode.cpp:229: error: syntax error before `,' token make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/ XMLNode.o] Error 1 Anyone got any ideas of what might cause this? - Ian Beveridge -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Optional Permissions
I don't think the answer is that it's absolutely not how we want it to work, but as of today you are granted all permissions you request at install time. It is certainly possible for the user to be able to pick which permissions they want to grant at install time, I actually had a change I was doing to allow for this at the package manager level, but never had time to finish it. Even so, just adding the facility raises more questions than it answers: how to you modify the current permissions UI to allow for this without making things even more confusing for the user, how to you give the user a facility to change this decision later on in some kind of way most users can understand, etc. There maybe are a few things that are more desireable and understandable to the user, such as getting location information, that could be done as a special case. Again, I've answered questions about this, and have not said we don't want it done, but it just isn't a high priority for us to work on right now vs. a number of other things. Btw I realize that IRC is a favorite thing for discussion on open source projects, but a lot of the android engineers find it to be much more of a distraction than it is worth, so I would suggest not drawing significant conclusions from any discussion there. :) You are much more likely to have more people involved in such discussions on the android-platform/android-framework/etc groups. On Wed, Dec 10, 2008 at 1:05 PM, Disconnect [EMAIL PROTECTED] wrote: This has been kicked around the #android irc channel off and on for a while, and the basic answer from Google devs seems to be no, thats not how we want it to work. (Which leads to only one alternative really - ship multiple versions of your app into the marketplace, with different security requests and a shared uid..) Not to pick on anyone specific, but the various webpage apps (wikipedia.. bank of america.. etc) that require gps are perfect examples here. Sure, SOMETIMES I might want to know what pages (or branches) are nearby. But usually, I just want to use the app. And sometimes I explicitly might -not- want the app to be able to suck up my location... On Wed, Dec 10, 2008 at 2:03 PM, Brad Gies [EMAIL PROTECTED] wrote: Is there a way to make a permission optional for the user? I would like my app's user to be able to send emails to their contacts if they want, but don't want them to have to approve the Contacts permissions when the app is installed. What I'd like to do is have a button in the app that they could click on, the app would check to see if it had that permission, and if it didn't popup a dialog box to ask the user if they want to give that permission, and only continue if they agreed, and disable that feature if they don't want to. Obviously this would have to be built into the framework for it to work, but is it there now? Is there a way to grant an application additional permissions after it is installed? 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 -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how to access file system
Er... so stick it in your .apk. You can either put it in as a compiled xml resource, raw resource, or loose asset. On Wed, Dec 10, 2008 at 12:57 PM, Evgeny V [EMAIL PROTECTED] wrote: No. There are preferences coming with apk. But I would avoid to include it to apk as reource file(s). It will give the flexibility when will send updates without recompile the apk. Thanks On Wed, Dec 10, 2008 at 10:44 PM, Mark Murphy [EMAIL PROTECTED]wrote: EvgenyV wrote: Can I install any external file xml or text file next to apk like .config file? If your program downloads or creates data, it can store the data on the device. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---