[android-developers] Re: send a image file on sdcard with email not messaging or other options
We can work out ways to deal with this question, but I would ask first: How restrictive are you trying to be? For example the user might have a Gmail account set up, and both platform Email and K9 installed configured. Are you sure you want to restrict them to Email only? The user experience design for the intent resolver is to allow the user to control behaviors like this, so it's worth thinking through the desired use cases before adding restrictions. --Andy On Sun, Apr 5, 2009 at 10:10 AM, Gaurav gau...@silkenmermaid.com wrote: I need to send an image file on my sdcard using email in my application. Note that I don't want user to get option to use messaging or other ways to send the file. My current code, as shown below, gives option of both email and messaging whereas I want the user to get only emailing option. How do I do this? Intent intent = new Intent(Intent.ACTION_SEND); intent.addCategory(Intent.CATEGORY_DEFAULT); intent.setType(image/*); intent.putExtra(Intent.EXTRA_STREAM, Uri.parse(file:/sdcard/mydir/ myimage.jpg)); startActivity(intent); Gaurav Software Developer http://SilkenMermaid.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: JUnit on the emulator without instrumentation
It's actually quite useful and doable to write pure unit tests within the InstrumentationTestRunner framework. For a working example, please take a look at ApiDemos, in the tests/ directory, and look for classes that extend the TestCase class. Benefits of doing it this way: 1. Although you can restrict yourself to pure JUnit style tests if you want, you can also write a mix of tests, ranging from purely unit (extending TestCase and AndroidTestCase) to almost totally functional (e.g. extending ActivityInstrumentationTestCase) and group them together as a test suite. 2. Although it doesn't work in the published SDK, quite soon you will in fact be able to run these tests directly from Eclipse. In other words, because this is the supported mechanism, you'll benefit from upcoming improvements tools. Hope this helps. --Andy On Fri, Mar 27, 2009 at 10:15 PM, gudujarlson gudujarl...@gmail.com wrote: I discovered that at least some of JUnit exists on the emulator. In particular TestCase and Assert exist. However, TestRunner does not appear to exist. I find it odd that only parts of JUnit are present. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Where is the source code for Pictures app
You'll probably get better results asking this question on the android-platform mailing list, as the gallery is part of the platform distribution, and folks on that mailing list are working on apps like that. On Sun, Mar 22, 2009 at 4:01 PM, yves...@gmail.com yves...@gmail.com wrote: I just downloaded Android source code, but I can't find the source for Pictures app. I did see Calculator code. Anyone know where I can find the Pictures or why it is not in the source code package? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: No Latitude in ADP1.1
Portakai- One of the specific goals of the ADP was to provide developer phones in countries where the G1 was not available. As you know, the G1 originally shipped in just one country (U.S.) while the ADP (if I recall correctly) shipped in 18 countries. We included as much software as we could, and we share your belief that developers everywhere should be enabled to the greatest extent possible. But the regulatory environment is *very* complex, when you include issues of licensing, radios, and telecom privacy laws. It's simply not possible to deliver the same software everywhere. --andy On Tue, Mar 10, 2009 at 4:21 PM, Portakal ozk...@gmail.com wrote: This is probably the most rubbish answer I get from the first hand so far. Since this is the developer version, it must include all the available options on it, so a developer -living anywhere on earth- can build a program and test upon it. And for the record, I live in Turkey, officially no Latitude support here, however with just a simple query string parameter, I can easily use it. - O. On Mar 10, 4:23 am, Jean-Baptiste Queru j...@android.com wrote: Unlike consumer devices that are designed for specific regions or countries, the Android Dev Phone 1 is a worldwide phone, configured to be identical in all geographies. The Android Dev Phone 1 ships in countries where Google Latitude isn't available, and that currently prevents from enabling Google Latitude on the Android Dev Phone 1. JBQ On Mon, Mar 9, 2009 at 7:17 PM, Mark L. Chang mark.ch...@gmail.com wrote: JBQ - any insight into what the policies are @GOOG in determining what gets left out of ADP builds? I can understand the Amazon MP3 stuff, random TMO branding packages, and I can even live with the annoying single-transport IM program. But no Latitude? The Latitude web page (http://www.google.com/latitude/intro.html) shows: Google Latitude is a feature of Google Maps for mobile on these phones: * Android-powered devices, such as the T-Mobile G1 Guess we'll need an asterisk there* (except the Android Developer Phone 1). Hrmph. -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Accessing raw resource files with the filename as a String
Have you looked at storing your files in the assets folder? You can then use getContext().getAssets().openFd(filename) to open them by name. On Sat, Mar 7, 2009 at 2:35 PM, Hayden hayden.stew...@gmail.com wrote: Is there a way to access a raw resource file by having its filename in a String? According Google's documentation, I need to use Resources.openRawResource (R.raw.myDataFile) This requires that I have the file name at compile time, but what if I have 20 or so files and want to do something to a specific file by passing its file name at runtime? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to make android work fine with QVGA?
Larry- You'll probably do better asking this question on android-platform or android-porting. The SDK only supports shipping devices with their screen resolutions. On Sat, Mar 7, 2009 at 10:47 PM, larry Ming mingla...@gmail.com wrote: My phone's resolution is QVGA so the buttons of dialer are overlapped. Please help me how to resize the button of dialer or how to make android work fine with QVGA? Thanks in advance! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to enable search functionality to EditText
There are numerous examples of this in ApiDemos - look for AutoCompleteTextView. On Tue, Feb 24, 2009 at 3:05 AM, manoj manojkumar.m...@gmail.com wrote: Hi friends, I would like to enable search functionality to EditText. my requirement is like this: when some one types with some letter, suppose the user types 'a', then it should show all the words which starts with 'a' should be shown as a drop down list. For example, if I first typed copy in the EditText, if again, I cleared the EditText and tried to type co, then it should show the drop-down list copy,come,cow I want to enable this feature to my EditText view. Can any one please suggest me how to do this? Thanks, Manoj. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: When will Android support Multiple PDP?
Henry Long- Please don't send repeated test messages to this mailing list. We received all of them. You are creating unnecessary traffic for many subscribers. On Mon, Feb 23, 2009 at 3:12 AM, Long henry.l...@qisda.com.tw wrote: test On Feb 22, 6:53 am, Tote tot...@gmail.com wrote: Well, according tohttp://www.3g4g.co.uk/Tutorial/ZG/zg_pdpit is not the same. MultipleAPNmeans that you can use different connections at the same time. Whereas multiple PDP contexts means that you can use the same connection with different configurations (e.g. QoS). On Feb 20, 5:53 pm, Jon Colverson jjc1...@gmail.com wrote: On Feb 20, 9:13 am, David Hu vistoda...@gmail.com wrote: More specifically, as I know, Symbian 7.0s higher support Multiple PDP, that's mean you can create multiple, for example, GPRS context use it simultaniously(such as MMS WAP Inet context)... Does Android support this feature? If not, when will it support? Please help me. The Android roadmap mentions upcoming support for multiple APNs:http://source.android.com/roadmap Is that the same thing? -- Jon- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: quicker compiles
Also, make supports multi-threaded compilation, but not by default - you're probably building with one core and idling the other(s). On any multi-processor or multi-core system, you can obtain an immediate speedup by allowing make to use more CPU resources. Every system is different, so there's no single value, but you can experiment with different values and find the best tradeoff between build time and system performance. For example, on my laptop (core duo 2) I use -j2 when I need to do other stuff, and -j3 when I just want it to build as fast as possible (UI gets pretty sluggish here). Recent desktop machines can do -j4 or higher. Note: Build errors can be more difficult to read in multi-threaded builds, because logs and error messages are interleaved. If you are having trouble diagnosing build errors, you may want to build without -j to get a clearer picture of what's wrong. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Voice Recognition like in Voice Search? (STT)
Hello Markus - I think we have tried to be as clear as we possibly can on this (and related topics). For application development, we only support the use of API's, intents, or any other resources that have been provided in the SDK. I think that the blog post provided in another message actually says it quite well: This library is not officially supported by the Android SDK and it should not be used in any consumer facing applications. Please feel free to experiment with your own apps on your own devices, of course. We're very glad to see developers exploring and learning the platform. But shipping apps with unsupported code, well, that's your own choice, but it's not a wise one. --Andy On Wed, Feb 11, 2009 at 9:46 AM, Markus Junginger mar...@junginger.biz wrote: Future APIs are one thing, using Intents to access existing functionality is another, imho. Voice search is already here, so the question for me is if there are Intents to start the voice recognition Activity and work on with the results. Thank Intents and loose coupling. :) For my purpose voice recognition would be optional - even if it would break in a future release it would be fine. I would put a trycatch around it anyway. Would this approach (if possible at all) be OK for you? Thanks, Markus -- http://jars.de --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Running different actives in the same package?
You might find relevant discussion on this topic (how to start stop activities) in the android-beginners mailing list. http://developer.android.com/community/index.html Good luck and welcome to Android! Andy On Fri, Feb 13, 2009 at 6:33 AM, Asif k asifk1...@gmail.com wrote: include all the activities in manifest use following code Intent i = new Intent(Context.this, New activity.class); startActivity(i); this code will divert you to New Activity On Feb 13, 1:18 pm, bigauto chidragon1...@gmail.com wrote: It seems that finish() ends a activity, but I'm not sure if it will actually allow me to run a different activity on a simulator. Also if there are any tutorials dealing with this it would be greatly appreciated. On Feb 13, 2:26 am, susanner zsusan...@163.com wrote: Close with finish() for that activity when you are done. On 2月13日, 下午2时42分, bigauto chidragon1...@gmail.com wrote: I am using eclipse to run the simulations and I can't get the simulator to run anything other than the default activity. When I created the android project, eclipse automatically created a default class within that package, and it seems like I can't run anything other than that class. I created another activity in that package, but I can't seem to get the simulator to run that instead. Also I was wondering if we can have class constructors for activity classes?- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Customization on SearchDialog
Hello Marty, Unfortunately, the search dialog was not designed to be extended in this way. This was not meant to protect it so much as a consequence of the data-driven design of the Search system. If you can describe some of the changes you have in mind, perhaps we can assist with some good suggestions. *Please* don't try to hack into it via reflection. We cannot guarantee compatibility across multiple phone software versions. Andy Stadler (Google) On Mon, Feb 9, 2009 at 7:07 PM, Marty Wang mo.hy.w...@gmail.com wrote: Hi Android folks, We currently want to customize the default Android search dialog UI to have our own lookfeel. After looking into Android source code, we found out that two things of Android preventing us from doing it. 1. SearchManager declares an instance of SearchDialog as one of its private fields 2. SearchDialog is not compiled into the SDK. We are using 1.0R2. As for problem 1, we actually could work it around by reflection. The following is our code snippet to expose the private search dialog field of SearchManager SearchManager searchManager = (SearchManager)getSystemService(Context.SEARCH_SERVICE); try { Class? searchManagerClass = searchManager.getClass(); Field searchDialogField = searchManagerClass.getDeclaredField(mSearchDialog); searchDialogField.setAccessible (true); searchDialogField.set (searchManager, new OurCustomSearchDialog(context)); } catch (SecurityException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (NoSuchFieldException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IllegalArgumentException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IllegalAccessException e) { // TODO Auto-generated catch block e.printStackTrace(); } However, when the code comes to the line searchDialogField.set(searchManager, new OurCustomSearchDialog (context));, it brings up the second problem. Because SearchDialog is not in the SDK, we have no way to create our custom search dialog by subclassing it. Then the line is actually not possible. Since the approach above cannot achieve our goal, I wonder if any of you guys happen to know how to customize the default Android search dialog, or at least why Google takes measures like that to protect SearchDialog from being customized. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to call callActivityOnRestoreInstanceState of Instrumentation
Meryl- It's hard to say with only a partial snippet, but I'm guessing that you're using an InstrumentationTestCase or possibly an ActivityUnitTestCase. You'll be better served here using an ActivityInstrumentationTestCase, which will start your activity for you, and then you should be able to call into it normally. In either case, a clue that something is wrong is that you're calling both startActivity() *and* callActivityOnStart(), which cannot be right. --Andy On Wed, Feb 4, 2009 at 4:50 PM, Meryl Silverburgh silverburgh.me...@gmail.com wrote: Hi, I have the following test code which calls callActivityOnRestoreInstanceState of Instrumentation class. mStartIntent = new Intent(Intent.ACTION_MAIN); Bundle bundle = new Bundle(); bundle.putBoolean(testProperty, false); MyActivity myActivity = startActivity(mStartIntent, null, null); getInstrumentation().callActivityOnStart(myActivity); getInstrumentation().callActivityOnRestoreInstanceState(myActivity, bundle); But when I run the unit test with instrumentation, i get this error: ndroid.util.AndroidRuntimeException: Acquiring SearchManager objects only valid in Activity Contexts. at android.app.ApplicationContext.getSearchManager(ApplicationContext.java:976) at android.app.ApplicationContext.getSystemService(ApplicationContext.java:861) at android.view.ContextThemeWrapper.getSystemService(ContextThemeWrapper.java:73) at android.app.Activity.getSystemService(Activity.java:3091) at android.app.Activity.performRestoreInstanceState(Activity.java:797) at android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1171) at com.mycompany.TestMyActivity.testSaveRestoreInstanceState(TestMyActivity.java:79) Can you please tell me what am I missing in setting up my instrumentation? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Some Activities never display UIs?
Ron- This is not comprehensive, but here is one example: You can create an Activity that serves to accept Intents, process or react to them in a non-UI way, and then either send a new Intent or a response. Here's how: Do all of the work in onCreate(), never call setContentView(), and on the way out of onCreate, be sure to call finish(). --Andy On Mon, Feb 2, 2009 at 8:03 PM, Ron DuPlain ron.dupl...@gmail.com wrote: I hear that some Activities never display UIs according to http://code.google.com/android/devel/building-blocks.html. My question: is this true? I have yet to find a way to make an Activity without a UI. Documentation suggests an Activity can be non-visual. For example, Activity.getWindow() returns the current window, or null if the activity is not visual. When would an Activity have a null Window? The docs say the Activity class takes care of creating a window for you... at http://code.google.com/android/reference/android/app/Activity.html. Any idea? Ron PS - Yes, I know a Service does not have a UI. My question is about the Activity class. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Should onSaveInstanceState call super?
Pablo-- There is support within the TestCase subclasses for running all or parts of your tests on the UI thread - that might solve your issue. --Andy On Jan 28, 2009 11:48 PM, J. Pablo Fernández pup...@pupeno.com wrote: Hello, At the beginning of my onSaveInstanceState I was calling super.onSaveInstanceState(outState) and everything was working fine. But now I wrote an instrumentation test case which basically does: Activity activity = getActivity(); getInstrumentation().callActivityOnStart(activity); getInstrumentation().callActivityOnResume(activity); Bundle outState = new Bundle(); getInstrumentation().callActivityOnSaveInstanceState(activity, outState); and I'm getting this error: Only the original thread that created a view hierarchy can touch its views. (stack trace at the bottom). So I'm wondering, what am I doing wrong here? the test or the app? Thanks. -- J. Pablo Fernández pup...@pupeno.com (http://pupeno.com) PS: The stack trace: Error in testLoadingAndSavingState: android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. at android.view.ViewRoot.checkThread(ViewRoot.java:1849) at android.view.ViewRoot.invalidateChild(ViewRoot.java:468) at android.view.ViewRoot.invalidateChildInParent(ViewRoot.java:481) at android.view.ViewGroup.invalidateChild(ViewGroup.java:2250) at android.view.View.invalidate(View.java:4095) at android.widget.TextView.invalidateCursor(TextView.java:2767) at android.widget.TextView.access$1300(TextView.java:151) at android.widget.TextView$ChangeWatcher.spanChange(TextView.java:4278) at android.widget.TextView$ChangeWatcher.onSpanAdded(TextView.java:4304) at android.text.SpannableStringInternal.sendSpanAdded(SpannableStringInternal.java:312) at android.text.SpannableStringInternal.setSpan(SpannableStringInternal.java:136) at android.text.SpannableString.setSpan(SpannableString.java:46) at android.text.SpannableStringInternal.init(SpannableStringInternal.java:50) at android.text.SpannableString.init(SpannableString.java:30) at android.widget.TextView.onSaveInstanceState(TextView.java:2015) at android.view.View.dispatchSaveInstanceState(View.java:4944) at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:1052) at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:1052) at android.view.View.saveHierarchyState(View.java:4927) at com.android.internal.policy.impl.PhoneWindow.saveHierarchyState(PhoneWindow.java:1314) at android.app.Activity.onSaveInstanceState(Activity.java:1055) at blah.blah.Blah.onSaveInstanceState(TodoEdit.java:110) at android.app.Activity.performSaveInstanceState(Activity.java:999) at android.app.Instrumentation.callActivityOnSaveInstanceState(Instrumentation.java:1255) at blah.blah.BlahTest.testLoadingAndSavingState(TodoEditIntegrationTest.java:37) at java.lang.reflect.Method.invokeNative(Native Method) at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:136) at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:126) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:155) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:142) at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:313) at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1508) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How do you pass a Bundle to an activity on an instrumentation test case?
Pablo-- Unfortunately, you cannot do this. We've made some improvements in this area for cupcake, but if you are building against the current sdk, you won't see them yet. --Andy On Jan 29, 2009 1:31 AM, J. Pablo Fernández pup...@pupeno.com wrote: Hello, When implementing an ActivityInstrumentationTestCase, how do you start the activity with a Bundle of saved state? Thanks. -- J. Pablo Fernández pup...@pupeno.com (http://pupeno.com) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How do you save the state of an activity on an ActivityUnitTestCase
Pablo- ActivityUnitTestCase is extremely limited in its support for operations that require interfacing with the rest of the system, because the Activity is never attached to the Activity Manager or the rest of the runtime. It may be possible to fix this particular case (so you can make this call via Instrumentation) in an update but in the meantime, you will probably find it easier to use ActivityInstrumentationTestCase - have you tried that? --Andy On Thu, Jan 22, 2009 at 12:28 AM, J. Pablo Fernández pup...@pupeno.com wrote: Hello, In an ActivityUnitTestCase I'm trying to do: Activity activity = startActivity(INSERT_INTENT, initialState, null); Bundle outState = new Bundle(); getInstrumentation().callActivityOnSaveInstanceState(activity, outState); But on the save state call I get this trace: android.util.AndroidRuntimeException: Acquiring SearchManager objects only valid in Activity Contexts. at android.app.ApplicationContext.getSearchManager(ApplicationContext.java:976) at android.app.ApplicationContext.getSystemService(ApplicationContext.java:861) at android.view.ContextThemeWrapper.getSystemService(ContextThemeWrapper.java:73) at android.app.Activity.getSystemService(Activity.java:3091) at android.app.Activity.performSaveInstanceState(Activity.java:1004) at android.app.Instrumentation.callActivityOnSaveInstanceState(Instrumentation.java:1255) at com.blah.blah.SomeActivityTest.testLoadingAndSavingState(SomeActivityTest.java:90) at java.lang.reflect.Method.invokeNative(Native Method) at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:136) at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:126) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:155) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:142) at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:313) at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1508) Going through the ApplicationContext source code I've found this (http://tinyurl.com/d8qsyc): private SearchManager getSearchManager() { // This is only useable in Activity Contexts if (getActivityToken() == null) { throw new AndroidRuntimeException( Acquiring SearchManager objects only valid in Activity Contexts.); } synchronized (mSync) { if (mSearchManager == null) { mSearchManager = new SearchManager(getOuterContext(), mMainThread.getHandler()); } } return mSearchManager; } It seems the problem is that the activity token is not set. But here I'm puzzled, I don't know where to go next. Any ideas on how to fix it or workaround it are appreciated. I want to test that my application is saving its state correctly. Thanks. -- J. Pablo Fernández pup...@pupeno.com (http://pupeno.com) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: start Activity without Manifest
Is there a specific reason you don't want to put your Activity in the manifest? Understanding that may help provide a better suggestion for you. On Fri, Jan 23, 2009 at 5:54 AM, Mark Murphy mmur...@commonsware.com wrote: AlexKar wrote: Can I launch unregistered Activity directly from my provider? No. Any Activity class that is not listed in AndroidManifest.xml file cannot be used as an Activity by the Android framework, AFAIK. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training in Sweden -- http://www.sotrium.com/training.php --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Search Dine (Restaurant search Android app by Mofirst)
Nitichandra- Congratulations on releasing your application, but unless you're planning to release and discuss its source code, can you please make announcements like this in the android-discuss mailing list? Thanks, Andy On Thu, Jan 22, 2009 at 6:34 AM, nitichandra ingle nitichan...@gmail.com wrote: you can even watch the video of the application on youtube by searching for it the link is http://in.youtube.com/watch?v=a9b-i9qWuCg On Thu, Jan 22, 2009 at 7:51 PM, nitichandra ingle nitichan...@gmail.com wrote: Search Dine Intro: Search Dine alleviates Searching food anywhere across United States of America. Suppose you are travelling, amidst you get hungry and look for a place to eat then Search Dine can locate the nearest restaurant for you. It is a handy application when you are planning a trip or if you are at a new place or to just explore the restaurants nearby. More: You can search by either entering the zip code or restaurant name. Favorite Food items can be selected from a wide range of cuisines displayed on the screen. Instantly after the search click, the address as well as the contact number is displayed and you can make a call to the desired restaurant. The map enhances the search by displaying the options of Satellite, Map or Street view adding spice to the Food search About: Mofirst designed the product for Google Android and launched it with the Rising Sun on 19th Jan all over the market. This is their first product for Google Android and it is just the beginning from the committed team of IIT graduates as they have a lot to offer in the coming future. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: PM Issues
Wrong list. Please see android-porting, which covers topics such as this. http://source.android.com/discuss for more information. On Wed, Jan 21, 2009 at 12:45 AM, Mallesh annya20i...@gmail.com wrote: Hi All, I am working on android kernel on OMAP 2430 board. After initial display ,successfully transits from sleep to active mode first time. But second time fails. Transition from sleep to normal mode was done by pressing the key on the hardware keypad.LCD switches off and console hangs. Here is the trace from my console: android sleep state 0-2 at 118050479923 android_power_suspend: enter suspend PM: Syncing filesystems ... done. Freezing user space processes ... (elapsed 0.03 seconds) done. Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done. Suspending console(s) Restarting tasks ... android_power_wakeup 2-0 at 118294365922 done. android_power_suspend: exit suspend, ret = 0 android_power_suspend: done Please give any input on this issue. Thanks and Regards Mallesh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to re-install sign android built-in applications
Wrong list. Please see android-platform, which covers topics such as this. http://source.android.com/discuss for more information. On Tue, Jan 20, 2009 at 12:24 AM, Gerald myq...@gmail.com wrote: Hi, I want to customize some built-in applications on android, for example Launcher or Contacts, etc. I've downloaded the source code and compile it by eclipse successfully. But when I tried to run it, a signing error comes: [2009-01-20 16:17:27 - Launcher] Installing Launcher.apk... [2009-01-20 16:17:35 - Launcher] Application already exists. Attempting to re-install instead... [2009-01-20 16:17:43 - Launcher] Re-installation failed due to different application signatures. [2009-01-20 16:17:43 - Launcher] You must perform a full uninstall of the application. WARNING: This will remove the application data! [2009-01-20 16:17:43 - Launcher] Please execute 'adb uninstall com.android.launcher' in a shell. I followed above instruction: adb uninstall com.android.launcher, but it failed (Can't remove the application). The official document only provides How to sign a new application, but it's not usable in my case. Does anyone know how to do it? Thank you very much Gerald --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Not able to add account on email client of emulator(sdk r2)
Jalandar- If you're having trouble operating one of the built-in applications, I think android-discuss would probably be a better board for asking about discussing it. See http://source.android.com/discuss for more information. Good luck, Andy On Tue, Jan 20, 2009 at 4:16 AM, jalandar jagtap...@gmail.com wrote: Hello everybody, I am trying to add account(gmail) on EMail client of emulator(sdk r2), It is not getting connected I activated pop3 and Imap setting options from my gmail account. and did the following settings in emulator Incoming settings IMAP server: imap.gmail.com Port: 993 Security type: SSL (always) the out going setting window screen is not coming . I tried for pop3 also POP sever : pop.gmail.com port: 995 Security type: SSL (always) Whats the matter here, will anybody guide me. Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how to pause n resume the activity???
Wesley- There are lots of ways to pause and resume activities. Why don't you repost with a more comprehensive description of what you're trying to do (what user experience you are trying to create), and we can go from there. --Andy On Mon, Jan 19, 2009 at 11:46 PM, Wesley Sagittarius sit06...@gmail.com wrote: hi all, anyone know how to pause and resume the activity??? wesley. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: #2# [NO, Mailbox, does, not, exist]
Questions about using K9 are probably better directed to the K9 development team, or on a K9-related discussion list. See http://code.google.com/p/k9mail/ for more information. On Mon, Jan 19, 2009 at 10:40 AM, BeWillDir wmmichael...@gmail.com wrote: This oddly under-informative subject line is borne on messages that keep stacking up in my K9mail-errors folder, apparently when I refresh other folders via IMAP. Things appears to be working otherwise. How to diagnose and correct? The body of the message seems to contain a Java stack dump with this: com.android.email.mail.store.ImapStore$ImapException: #2# [NO, Mailbox, does, not, exist] at com.android.email.mail.store.ImapStore $ImapConnection.executeSimpleCommand(Unknown Source) at com.android.email.mail.store.ImapStore $ImapConnection.executeSimpleCommand(Unknown Source) at com.android.email.mail.store.ImapStore$ImapFolder.open(Unknown Source) at com.android.email.MessagingController.synchronizeMailboxSynchronous (Unknown Source) at com.android.email.MessagingController$11$2.run(Unknown Source) at com.android.email.MessagingController.run(Unknown Source) at java.lang.Thread.run(Thread.java:935) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android browser is really slow/buggy when clicking on checkboxes
This is probably better discussed on android-discuss (if interested in talking about the browser) or android-platform (if you're interested in trying to fix it...) See http://source.android.com/discuss for more information. On Fri, Jan 16, 2009 at 12:44 PM, Chister Nordvik cnord...@gmail.com wrote: Hi! I have made an app that shows a list of RSS feeds at the main screen. One of the reasons is to be able to generate polls for the users and host them on my webserver. The Android browser is close to unusable when clicking checkboxes. At least on my device. The behavior that I am experiencing: - Checking a checkbox can take 1-2 seconds to update. If I just wait then suddenly the check appears. - Checking a checkbox in touch mode takes two touches. One to get the focus square around it and one to check. Standard checkboxes are small so not easy to do this! And it's not standard behavior inside Android itself to click twice on a checkbox... Can anyone of you try to check the checkboxes on this page with your Android browser? http://www.mobilefootie.com/polls/fotmob2.jsp And please let me know if you have a different experience than me! -Christer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: static member data issue in arm-eabi-ld
Sorry to keep repeating this, but native development is *not* currently supported by the SDK. This mailing list is for discussion of application development using the SDK. You may want to try android-platform or android-discuss. See http://source.android.com/discuss for more information. Thanks, Andy On Thu, Jan 15, 2009 at 8:25 AM, simon semen.sema...@gmail.com wrote: hi all, i'm trying to compile simple native application under Android platform and got problem with linker (looks like linker or linker scripts bug) my simple program: class C { static int m; public: static void f() { m = 0; } }; int main(int, char**) { C::f(); return 0; } compilation commands: arm-eabi-gcc -c -I/home/simon/workspace/mydroid/system/core/include -I/ home/simon/workspace/mydroid/hardware/libhardware/include -I/home/ simon/workspace/mydroid/hardware/ril/include -I/home/simon/workspace/ mydroid/dalvik/libnativehelper/include/nativehelper -I/home/simon/ workspace/mydroid/frameworks/base/include -I/home/simon/workspace/ mydroid/frameworks/base/libs/audioflinger -I/home/simon/workspace/ mydroid/external/skia/include -I/home/simon/workspace/mydroid/out/ target/product/generic/obj/include -I/home/simon/workspace/mydroid/ bionic/libc/arch-arm/include -I/home/simon/workspace/mydroid/bionic/ libc/include -I/home/simon/workspace/mydroid/bionic/libstdc++/include - I/home/simon/workspace/mydroid/bionic/libc/kernel/common -I/home/simon/ workspace/mydroid/bionic/libc/kernel/arch-arm -I/home/simon/workspace/ mydroid/bionic/libm/include -I/home/simon/workspace/mydroid/bionic/ libm/include/arch/arm -I/home/simon/workspace/mydroid/bionic/ libthread_db/include -I/home/simon/workspace/mydroid/bionic/libm/arm - I/home/simon/workspace/mydroid/bionic/libm -I/home/simon/workspace/ mydroid/out/target/product/generic/obj/SHARED_LIBRARIES/ libm_intermediates -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ - D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -DANDROID -DSK_DEBUG -DDEBUG - march=armv5te -mtune=xscale -msoft-float -mthumb-interwork -fno- threadsafe-statics -fpic -fno-exceptions -ffunction-sections -funwind- tables -fstack-protector-all -fmessage-length=0 main2.cpp arm-eabi-gcc -o mt -I/home/simon/workspace/mydroid/system/core/include -I/home/simon/workspace/mydroid/hardware/libhardware/include -I/home/ simon/workspace/mydroid/hardware/ril/include -I/home/simon/workspace/ mydroid/dalvik/libnativehelper/include/nativehelper -I/home/simon/ workspace/mydroid/frameworks/base/include -I/home/simon/workspace/ mydroid/frameworks/base/libs/audioflinger -I/home/simon/workspace/ mydroid/external/skia/include -I/home/simon/workspace/mydroid/out/ target/product/generic/obj/include -I/home/simon/workspace/mydroid/ bionic/libc/arch-arm/include -I/home/simon/workspace/mydroid/bionic/ libc/include -I/home/simon/workspace/mydroid/bionic/libstdc++/include - I/home/simon/workspace/mydroid/bionic/libc/kernel/common -I/home/simon/ workspace/mydroid/bionic/libc/kernel/arch-arm -I/home/simon/workspace/ mydroid/bionic/libm/include -I/home/simon/workspace/mydroid/bionic/ libm/include/arch/arm -I/home/simon/workspace/mydroid/bionic/ libthread_db/include -I/home/simon/workspace/mydroid/bionic/libm/arm - I/home/simon/workspace/mydroid/bionic/libm -I/home/simon/workspace/ mydroid/out/target/product/generic/obj/SHARED_LIBRARIES/ libm_intermediates -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ - D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -DANDROID -DSK_DEBUG -DDEBUG - march=armv5te -mtune=xscale -msoft-float -mthumb-interwork -fno- threadsafe-statics -fpic -fno-exceptions -ffunction-sections -funwind- tables -fstack-protector-all -fmessage-length=0 -Bdynamic -Wl,-T,/home/ simon/workspace/mydroid/build/core/armelf.x -Wl,-dynamic-linker,/ system/bin/linker -Wl,--gc-sections -Wl,-z,nocopyreloc -Wl,--no- undefined -Wl,-rpath,/system/lib,-rpath,/data/lib -Wl,-rpath-link,/ home/simon/workspace/mydroid/out/target/product/generic/obj/lib -L/ home/simon/workspace/mydroid/out/target/product/generic/obj/lib - nostdlib /home/simon/workspace/mydroid/out/target/product/generic/obj/ lib/crtend_android.o /home/simon/workspace/mydroid/out/target/product/ generic/obj/lib/crtbegin_static.o -lc -lm -gdb main2.o linker output and error message: main2.o: In function `C::f()': main2.cpp:(.gnu.linkonce.t._ZN1C1fEv+0x64): undefined reference to `C::m' collect2: ld returned 1 exit status Maybe I use wrong ldscripts? Have somebody any suggestions? Thanks for advice. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to build Android.jar from the source code
Although there is a long-term goal to move in that direction, not all of the platform applications can be built in the SDK. Sorry Andy On Wed, Jan 14, 2009 at 8:48 PM, Android malapati.raghaven...@gmail.com wrote: hi all , Thanks for your help and valuable comments. here one quick question... I taken the MMS application which is availble in the source code. I created an android project for that source code in my eclipse.which uses the new SDK (android-sdk-windows-1.0_r2). MMS application uses some of the packages like com.google.android.mms., android.provider.Telephony.Mms; android.provider.Telephony.Sms; android.provider.Telephony.Threads; which are not present in this version of SDK. So how am i can get those packages and i can bale to run my MMS application. one more question if i want to debug framework like i mean to say telephone manager , how can i able to achieve this task usiing eclipse. Regards, Raghu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: AutoCompleteTextView: Need help.
Don- Here is one way to do this: In your activity declaration, add this interface: MyActivity extends Activity implements OnItemClickListener Then implement as follows: /** * Implements OnItemClickListener */ public void onItemClick(AdapterView? parent, View view, int position, long id) { if (parent == myAutoCompleteTextView) { // handle item click } } For additional tricks, see also OnItemSelectedListener. Hope this helps. --Andy On Thu, Jan 15, 2009 at 5:45 AM, Don Rules don.rulz.wo...@gmail.com wrote: I have written an application to show the contacts in the AutoCompleteTextView. while the user types the alphabets, it fetches the matching contacts to display. For this I have used a CursorAdapter Now I have to get the Contact name when the contact is clicked. How do i use setOnItemSelectedListener(AdapterView.OnItemSelectedListener l) for the AutoCompleteTextvView. Please help. Regards, Don. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: [buid code problem] android 1.5
Morris- Questions about building Android code from the open source repositories should be sent to the android-platform mailing list. This list is for discussion of developing android apps using the SDK. You can find more information at http://source.android.com/discuss Thanks Andy On Tue, Jan 13, 2009 at 9:15 PM, Morris morrischen.c...@gmail.com wrote: Dear All: I face a situation about building the new android. I don't know whether I successfully build the new code which I got via repo. I use repo to update my android from 1.4 to 1.5. After I get it using repo sync, I type make to build the new code. In the event I saw the blow message, but I don't know whether the build process is successful. mor...@morris-desktop:~/mydroid$ make build/core/product_config.mk:207: WARNING: adding test OTA key TARGET_PRODUCT=generic TARGET_BUILD_VARIANT=eng TARGET_SIMULATOR= TARGET_BUILD_TYPE=release TARGET_ARCH=arm HOST_ARCH=x86 HOST_OS=linux HOST_BUILD_TYPE=release BUILD_ID= build/core/main.mk:180: implicitly installing apns-conf_sdk.xml build/core/base_rules.mk:117: *** recovery: MODULE.TARGET.EXECUTABLES.recovery already defined by bootable/ recovery. Stop. ** Best Regards, Morris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to debug Android application like (Browser, Camera etc.)
Hi Atish- Questions or issues regarding the open source build or debugging platform applications should be posted to android-platform. This list is for discussion development of apps using the published SDK. See source.android.com/discuss for more information Thanks Andy On Tue, Jan 13, 2009 at 1:49 AM, Atish atish...@gmail.com wrote: Hi All, I have downloaded the Android source code. I have also added all the source code files to an Android project in Eclipse to browse. Now I am unable to debug any application like Browse, Camera etc. :( Can anyone please help me? Thanks in Advance, Atish --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Show AlertDialog after back button
tmat- You might want to try this: 1. Override your activity's onKeyDown() method. 2. If the KeyEvent is KEYCODE_BACK, display your dialog 3. If your dialog returns YES, simply call Activity.finish() Remember that when you override onKeyDown(), you must return true if you handle the key locally, and false for all other keys/situations. --Andy On Fri, Jan 9, 2009 at 5:40 AM, tmat tomasz.matyszew...@gmail.com wrote: Hi, How to display dialog YES/NO before user click back button ? If I show some dialog in onPause() method it don't work based on Activity Lifecycle so maybe there is another way to show some kind of dialog after user press back ? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Native IM application
Hi Amit- Questions or issues regarding the open source build or debugging platform applications should be posted to android-platform. This list is for discussion development of apps using the published SDK. See source.android.com/discuss for more information Thanks Andy On Tue, Jan 13, 2009 at 9:50 AM, AP08 pawara...@gmail.com wrote: Hi, Since gtalkservice is not present in SDK 1.0 onwards; how can i use the native IM client (provided by Esmertec) ? The IM client code does not compile. Or where can I get the source code /jar file for the required packages ? thank you, Amit --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Dependency injection into Activity
Koert- Instead of looking at Instrumentation.html, I would recommend focusing (for now) on the Junit-based test environment that is already set up for what you are trying to do. InstrumentationTestCase is a good place for writing tests that work mainly by manipulating the UI (e.g. when I click this button, make sure X happens). ActivityInstrumentationTestCase is similar, but focuses on a single Activity giving you more direct access to the Activity (e.g. when I click this button, make sure that this method returns value Y). As Dianne alluded to, neither of these is a true Unit Test because Activities are just too tied into the system to do much on their own. There *is* a unit test case fixture, ActivityUnitTestCase, that creates your Activity in isolation. But it is very limited, due to the tight integration already noted, and it doesn't get used very much. Be sure to check out the unit test examples in the ApiDemos package. Hope this helps, Andy On Tue, Jan 13, 2009 at 4:37 AM, Koert koert.zeils...@gmail.com wrote: I have been developing an Android application and I keep wishing some king of dependency injection would be possible to make unit testing a bit easier. And I mean unit testing in the Eclipse IDE, not integration testing on the emulator or phone itself. I have been experimenting with reflection and I can make a simple kind of dependency injection working. It would be very nice if I could inject the dependencies into an Activity as it is created. I was looking at the instrumentation configuration in the manifest, thinking that I could configure some kind of interceptor that could enrich the Activity after creation and before it was started. See: http://code.google.com/android/reference/android/app/Instrumentation.html http://code.google.com/android/devel/bblocks-manifest.html However, I cannot figure out how to make it work; any suggestions how I might make it work? Thanks, Koert Zeilstra --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: JNI - FindClass() returns null
As has been noted before, native code JNI development is not currently supported on the SDK, and probably is better off discussed in the android-platform or android-discuss boards. See http://source.android.com/discuss for more information. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: email client of emulator ( second sdk release) not working
You're going to have to tell us a bit more about what's happening, what you expect to see, and what you actually observe On Mon, Jan 12, 2009 at 11:44 PM, jalandar jagtap...@gmail.com wrote: email client of my emulator (sdk r2) is not working, account is not getting created. what the reason behind this. How to use email client appl for emulator. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Full multitouch working on the G1, new approach (video + source)
Unless an SDK is released with multi-touch support, this discussion is probably better off in android-discuss or android-platform. (Just trying to cut down on cross-posting) On Sun, Jan 11, 2009 at 2:34 PM, luke luke.hu...@gmail.com wrote: My personal take is that there is a whole lot of prior art (the iPhone was not the first by a long shot), so it's probably not super- defensible in court... but Apple has deep pockets and an elite image to maintain. They apparently have about 200 patents on the iPhone, two of which especially deal with their touchscreen technology -- but I haven't looked into the details. On Jan 11, 11:32 am, Sena Gbeckor-Kove s...@imkon.com wrote: Great! Does anybody know if this is ok IP wise, or is a lawsuit likely? S On 11 Jan 2009, at 13:30, luke wrote: I have multitouch working on the G1 in a way that is backwards- compatible with single-touch applications. I capture the multitouch events and then hijack an unused field in MotionEvent to pass the multitouch events in a way that only affects programs that have been designed to work in multitouch mode -- i.e. this did not require re- plumbing the event system. The approach also does not require any kernel modifications, it just needs modifications to one Java system class. Video and full source here: http://lukehutch.wordpress.com/android-stuff/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: long home key press / task switcher
Dan- When one holds the home key for long key press, it invokes a notification dialog box with a list of recent applications. Is there a reason to limit that list to 6 ?? Put simply, it was specified that way in the UI design. Where in the git repository can I find related to this long key homepress invoking the task switcher ? Since it's a platform utility, not related to anything one can do from the SDK, I'd suggest moving this discussion to android-discuss or android-platform. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem when launch IM application on Cupcake...
You'll have better luck getting cupcake-related answers on the android-platforms mailing list. The SDK (which this list covers) does not support cupcake yet. On Thu, Jan 8, 2009 at 8:03 PM, Dennis dong...@gmail.com wrote: Dear all, I tried to launch IM application on cupcake, but failed... :( From DDMS log I found Ignore bad IM frontdoor plugin... and load plugin failed, no plugin found! In cupcake build IM application seems have a new plugin mechanism for providers... Seems no IM Plugin Service available... Does anyone know how to use the pulgin mechanism or how to make IM working on cupcake? Thanks a lot. Dennis --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: New
Mukesh- You'll probably find more useful information on the android-beginners mailing list. See http://source.android.com/discuss for more information. Good luck! On Wed, Jan 7, 2009 at 5:13 AM, msmsmukesh msmsmuk...@gmail.com wrote: Hi I m new to this android. I know java nly. Anyone pls tell how to work with android. Thanks, Mukesh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Bluetooth in Cupcake - please help
Anduzer - Questions about the internals of the platform source code will probably better addressed in the android-platform mailing list. See http://source.android.com/discuss for more details. Good luck! On Thu, Jan 8, 2009 at 5:49 AM, Manohar Mahapatra androidu...@gmail.com wrote: Hi I needed some info regarding the Bluetooth module in the cupcake release. I wanted to know how BT is structured in Android cupcake and what profiles will be supported post cupcake release . Yes I know that Bluetooth API support is currently not there and will be there soon , all that info I did collect previosly from this wonderful group, thanks to this group for this! However, I wanted to start looking at the code . For that I visited http://android.git.kernel.org/ and I have downloaded the source codes (from the Code drop from //branches/cupcake/...fields) for these modules platform/external/bluez.git platform/system/bluetooth.git platform/packages/apps/Settings.git I wanted to know did I miss any module, because I am not finding the files that deal with files supporting Java framework classes like ex BluetoothDevice(BluetoothDevice.java),Headset (BluetoothHeadset.java), Rfcomm related (RfcommSocket.java) etc which were supposed to change post SDK1. Will Appreciate the help Thanks in advance Regards Anduzer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Uninstalling application breaks gmail preview on G1
Tyler, Any time you see a problem like this (where an application stopped unexpectedly) the most useful thing you can do is monitor the log output (using adb logcat), capture the stack trace of the actual crash, and share that. Otherwise there's just no telling what is going wrong. --Andy On Wed, Jan 7, 2009 at 2:51 PM, Tyler Ernst ernst.ty...@gmail.com wrote: We are working on an application to view documents for Android. So our main Activity registers an intent filter to be the default viewer for that document type. Below is an example of how we register a filter. action android:name=android.intent.action.VIEW/action category android:name=android.intent.category.DEFAULT/category data android:mimeType=application/pdf/data After installing our application you can select Preview in gmail with a document attachment to use our viewer to view the file. However after uninstalling our application selecting Preview on the same document you previously viewed with our viewer causes gmail to crash with the message below. But attachments that had not previously been viewed with our viewer opened correctly with the default HTML viewer. Sorry! The application Gmail (process com. Google.android.gm) has stopped unexpectedly. So far we have been unable to track this one down any ideas? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Dalvik spends 7.4% of its time garbage collecting, Android UI spends 7.4% of its time unresponsive
This is a great topic, but is probably more suited to android-platform. On Wed, Jan 7, 2009 at 11:05 PM, __ luke.hu...@gmail.com wrote: With the phone sitting *idle*, Dalvik GCs every 3.5sec on average. A GC usually takes ~260ms. That means that a whole 7.4% of the time it is garbage collecting (albeit for only a quarter of a second each time). *7.4% of the time* the UI is completely unresponsive (and this percentage increases once your UI starts allocating its own objects during user interaction). This results in all sorts of unpleasantness that goes deeper than overall jerkiness of the UI: http://code.google.com/p/android/issues/detail?id=1742 http://code.google.com/p/android/issues/detail?id=1740 Are there any plans to decrease the time needed for garbage collection in Dalvik (maybe using a multi-stage object obsoletion and recycling scheme like in Sun's JVM 1.6+)? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Get Email log
Can you please describe what you're looking for, in a bit more detail, and perhaps what you're hoping to do with it? On Sat, Dec 27, 2008 at 1:33 AM, ena enu1...@gmail.com wrote: Hi All, How to get Email log??? Please help me out... Thanks in Advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: when user click back, which function is called
Cindy (or April)- Will finish() be called every time? As I wrote before, unless you override the key handlers, pressing the back button *will* call finish(). so current activity will be totally destroyed (onDestroy() will be called)? Please refer to the documentation I sent you the link to. Most, if not all of your questions are answered in it. For example, in the Activity Lifecycle section, it says that onDestroy() is called because the activity is finishing (someone called finish() on it). --Andy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: when user click back, which function is called
Unless you've overridden the key handlers, clicking back will call finish() on your activity, which will cause the activity to exit via the standard transitions. The transitions between activities are documented in http://code.google.com/android/reference/android/app/Activity.html. It's important to be very familiar with them when developing Android applications. On Sun, Jan 4, 2009 at 10:17 AM, cindy ypu01...@yahoo.com wrote: My application have several screens, when user clicks back button, it goes back to next screen. Which function will be called, when it is back? I used some static variable to remember global function. I found that sometime, the value of those variable has been changed. Do you experience the same problem? Thanks! April --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How can i access System directory in an emulator ??
It's not clear if you're trying to write tests (as you implied in the first paragraph) or modify behavior of a running system (as you implied in the second paragraph). But in either case, as Dianne noted, Instrumentation is designed for use directly with your own code, not to be applied to any other code. I don't think it's applicable in either of the cases you describe here. On Fri, Jan 2, 2009 at 5:45 PM, Ashrotronics 030440...@163.com wrote: Here is the case: While i'm trying to make fuctional tests against all apps installed in my device,The feature Target package of My instrumentation class makes it insurmountable to access a third pkg,But in some cases,It is much of a need to do so, e.g. an email from a stranger comes and after i view the content ,i decide to add him to my contact list by pressing menu-add to contact This action may invoke a certain activity in pkg .contact,And in this situation,My instrumentation will abort,as the top activity is already out of the target pkg(.email), So, any way i can do this ?? Thanks again! On Jan 3, 3:38 am, Dianne Hackborn hack...@android.com wrote: Why do you want to run your own instrumentation against apps in the system directory? Anyway, as you say, you need to be signed with the same certificate as the app your are running your instrumentation against. It's not really a matter of being installed in the system dir. If you don't own the target app enough to be able to sign your instrumentation with the same certificate, then you can't run instrumentation against it, and it is very much designed to be that way. On Fri, Jan 2, 2009 at 4:54 AM, Ashrotronics 030440...@163.com wrote: Thanks for your respondence,What i am trying to do is to start apps in system directory through my own instrumentation class, But i am always rejected by android's security mechanism because i do not have the same signature(as is shown in logs:Permission denied) After further consideration,i decided to try installing my app in the system directory ,but also with no luck , any idears i can do this ?? Thanks ! On Jan 2, 2:39 pm, Andrew Stadler stad...@gmail.com wrote: Downloaded apps (such as those developed with the SDK) cannot be installed into the system directory. Perhaps if you can better describe what you are trying to do and which permissions your app requires, the list community can better assist you. On Thu, Jan 1, 2009 at 9:37 PM, Ashrotronics 030440...@163.com wrote: Hi all: It seemed that some work can not be done due to permission reasons unless my APK is in installed in the System/app directory ,So,is there any way i can do that ?? Thanks in advance ~!- Hide quoted text - - Show quoted text - -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: dealing with multiple activities
This suggestion is correct- use the intent extras to send your own data back-and-forth to the sub-launched activity. Here are a couple of things to consider: (1) If at all possible, the sub activity should not crash if expected extras data is not found in the launching intent. (Null pointer exceptions are very common in this area.) Launch with defaults if possible; Or finish() immediately (perhaps after a dialog warning.) This makes it more resilient to unexpected launch conditions like being launched from AnyCut, launched by a testing monkey, or your own test code. (2) When passing data between activities, be extremely careful that you don't include references to the activity objects themselves - this can cause memory leaks. Make sure that any objects you pass between activities are self-contained. (The common mistake here is to use inner classes that are not static.) Hope this helps. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Testing a Android Activity..
Here is a quick reply of things to look at (not a tutorial): * See samples/ApiDemos which has examples of different kinds of tests. *ALWAYS* start here; If you can't get these working, there's no point in trying to get your own tests working. * To test standalone code (not Activities) you'll want to base your test on TestCase (for pure unit tests) or AndroidTestCase (for unit tests that require Context parameters). * To test Activities, you actually have three choices: ** InstrumentationTestCase will launch your app, and you can manually start activities and send events into them. This is good for testing UI state of your entire application, esp. if you want to track transitions between Activities, but less helpful for testing single Activities. ** ActivityInstrumentationTestCase will launch a specific activity, you can either send events into them or make calls directly to the object. This is usually more useful for testing single Activities. ** Both of those actually launch your activity within the real system (ActivityManager, etc). ActivityUnitTestCase will create your activity outside of the regular system, just as an isolated object, which is lighter weight but not all methods work properly. * There are also test case classes for other system classes, e.g. ApplicationTestCase. On Mon, Dec 22, 2008 at 1:54 AM, Manjunatha M (ಮಂಜುನಾಥ ಎಂ) man...@gmail.com wrote: Hi All, I need your help how to test the Android application. I need to test each activity and automate some test cases. Which class should be used to like ActivityUnitTestCase or any thing else? How do we run those test cases? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Please help with android source making
Dr. Lu: As you may have seen from other posts, this mailing list is for developers using the SDK to create applications for Android devices. Questions about building from open source should be addressed to one of the open source or platform lists described at http://source.android.com/discuss. On Sat, Dec 13, 2008 at 8:26 PM, Dr. Tingrong Lu lutingr...@hotmail.com wrote: Hi, I downloaded android source and make according to the doc (I've set the ANDROID_JAVA_HOME). The webkit browser on the emulator made from source cannot access the Internet, meanwhile the webkit browser on the emulator come with android SDK 1.0r1 can. Can anyone help figure out what's wrong with the emulator made from source? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How Can I Remove Top Title Bar from an Application? Or Add things to it...
Moto Mark- You can also do this at compile time by adding android:theme=@android:style/Theme.NoTitleBar to the Activity declaration(s) in your manifest. Hint: Poke around the ApiDemos sample app, you can find almost may examples of UI variations, and then check the source code to see how it was done. --Andy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Timeout executing service
Sukumar- The activity manager assumes that your code has died, because it did not return from the broadcast receiver in a reasonable amount of time. In general, receivers should execute very very quickly, and any long-term operations (such as *any* network operations) should be on their own thread(s). Hope this helps, Andy On Thu, Dec 11, 2008 at 7:26 AM, sukumar [EMAIL PROTECTED] wrote: hi, I created a service which is launched by BOOT_COMPLETE event. The launched service needs to make httpget and store the data. If httpget fails, my serivce needs to make 2 httpget attempts with interval of 30s.To wait for 30sec, I used Thread.sleep() call. The problem Im facing is, once I make Thread.sleep() call, my service is kill by Iprocess activity.and I see activityManager log as below (nabservice is my service name) W/ActivityManager( 59): Timeout executing service: ServiceRecord {4316d2a0 com.nabservice/.NotifyInfoUser} Pls correct me, If Im doing wrong. Shouldnt I call Thread.sleep() for wait in a service ? Thanks in Advance. Regards, Sukumar. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: send activity in background
The way to send my activity to the background is to send another activity to the foreground... All you have to do is create an Intent and call startActivity(). On Thu, Dec 11, 2008 at 3:17 AM, sthustfo [EMAIL PROTECTED] wrote: Hi, How do I send my activity to background when user presses a key? What should I do in the onKeyDown() event handler? Using finish() will destroy the activity. public boolean onKeyDown(int keyCode, KeyEvent event) { super.onKeyDown(keyCode, event); // finish(); return true; } Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Clone inner-class Dalvik bug? or Don't do that
Ward- This is not a Dalvik bug. It's a common side-effect of the way Java inner classes work. Not only will your approach not work properly, but it will cause significant memory leaks (the back-trail of outer-class this pointers will prevent the previous Activity from being GC'd). If you don't already have it, I would encourage you to check out Effective Java, which is loaded with tips that can steer you away from situations like this. http://www.amazon.com/Effective-Java-2nd-Joshua-Bloch/dp/0321356683/ Back to your specific problem. The most important rule of thumb is that inner classes should be static whenever possible - this breaks the hidden linkage with the outer class, and makes them more appropriate for moving around. Depending on the complexity of what you're doing, you may also need to break it into two inner classes - one that's static for holding the data-to-be-shared, and one that's not static for doing things with its outer class. There are other solutions, but I would start there. --Andy On Wed, Dec 10, 2008 at 8:20 AM, Ward Willats [EMAIL PROTECTED] wrote: Hello. On the G1 Say you have a custom view class. It has an inner-class with some view state. This inner-class references some variables in the outer class. The outer-class instances the inner-class and holds a reference to it. Now, say you clone the inner class reference, and pass the copy to a new instance of the custom view in another activity (so the new view instance can pick up where the previous one left off). In the new activity, new view instance, inner-class view state clone, you find that the this pointer is that of the OLD view parent, and that attempts to access variables in the outer class access variables in the OLD outer class instance. In the debugger, it appears there is an anonymous pointer (Outer-class$0) to the enclosing outer-class that was not cloned / setup properly by the native clone helper and runtime. It still points back to the old outer-class. Not being an Uber Java Wonk(tm), you rewrite your code to not use inner-classes, and all works well. But you decide to write to the list and see if this is maybe a Dalvik bug, or just something you shouldn't try to do in the first place. -- Ward --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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?
David- This is already supported in both the Email and Gmail apps. Is there a reason that you believed that it wasn't? Here is the raw Javadoc straight from Intent.ACTION_VIEW: /** * Activity Action: Display the data to the user. This is the most common * action performed on data -- it is the generic action you can use on * a piece of data to get the most reasonable thing to occur. For example, * when used on a contacts entry it will view the entry; when used on a * mailto: URI it will bring up a compose window filled with the information * supplied by the URI; when used with a tel: URI it will invoke the * dialer. * pInput: [EMAIL PROTECTED] #getData} is URI from which to retrieve data. * pOutput: nothing. */ So all you have to do is create an intent with the ACTION_VIEW action, a mailto:; scheme in the Uri, and send it. Hope this helps. --Andy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 codec component PV log
Just a reminder, this list is for discussion of Java development using the SDK. Please move this discussion to one of the open-source mailing lists described at http://source.android.com/discuss Thanks, Andy On Wed, Dec 10, 2008 at 9:25 PM, Yogi [EMAIL PROTECTED] wrote: Hi All, i have enabled the complete pv log by doing the following step: 1.changed extlibs/pv/oscl/pvlogger/src/pvlogger.h: /* Release mode-- No logging */ #define PVLOGGER_INST_LEVEL 0 Changed this value to 5 and extlibs/pv/android/thread_init.cpp: #if 0- Changed this value to 1 PVLoggerAppender *appender = new AndroidLogAppenderTimeAndIdLayout,1024(); ... ... #endif but i am not getting codec components logs. How i can enable particular component logs? Thanks in advance, Yogi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Sending E-mail Programatically from Android Emulator
We've been strongly recommending (in other threads here) against sending email behind a user's back. This has two problems: It creates a tremendous opportunity for abuse, and it is extremely difficult to properly configure (do you know the user's credentials and server?) A much more straightforward approach is to let Email or Gmail send the outgoing mail for you. All you have to do is configure and send an Intent with a View action and a mailto: scheme. See http://code.google.com/android/reference/android/content/Intent.html#ACTION_VIEW for more information. On Wed, Dec 10, 2008 at 8:29 PM, And-Rider [EMAIL PROTECTED] wrote: Hi all, Can anyone help me as how to send an Email programatically from an android emulator.I got a sample code from this website.. http://davanum.wordpress.com/2007/12/22/android-send-email-via-gmail-actually-via-smtp/ But the code doesn't seem to be working in the new SDK I later tried a program using JavaMail API .It worked fine when i ran it as a java application.But when ran the same code after converting it into an android project i got the following error. 12-11 09:58:03.117: WARN/dalvikvm(209): Link of class 'Ljavax/ activation/DataHandler;' failed 12-11 09:58:03.127: WARN/dalvikvm(209): VFY: unable to resolve new- instance 322 (Ljavax/activation/DataHandler;) in Land/mail/ GMailSender; 12-11 09:58:03.127: WARN/dalvikvm(209): VFY: rejecting opcode 0x22 at 0x0008 12-11 09:58:03.127: WARN/dalvikvm(209): VFY: rejected Land/mail/ GMailSender;.sendMail (Ljava/lang/String;Ljava/lang/String;Ljava/lang/ String;Ljava/lang/String;)V 12-11 09:58:03.127: WARN/dalvikvm(209): Verifier rejected class Land/ mail/GMailSender; 12-11 09:58:03.127: DEBUG/AndroidRuntime(209): Shutting down VM 12-11 09:58:03.127: WARN/dalvikvm(209): threadid=3: thread exiting with uncaught exception (group=0x40010e28) 12-11 09:58:03.137: ERROR/AndroidRuntime(209): Uncaught handler: thread main exiting due to uncaught exception 12-11 09:58:03.167: ERROR/AndroidRuntime(209): java.lang.VerifyError: and.mail.GMailSender 12-11 09:58:03.167: ERROR/AndroidRuntime(209): at and.mail.mail.onCreate(mail.java:14) 12-11 09:58:03.167: ERROR/AndroidRuntime(209): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1122) 12-11 09:58:03.167: ERROR/AndroidRuntime(209): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2103) 12-11 09:58:03.167: ERROR/AndroidRuntime(209): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2156) 12-11 09:58:03.167: ERROR/AndroidRuntime(209): at android.app.ActivityThread.access$1800(ActivityThread.java:112) 12-11 09:58:03.167: ERROR/AndroidRuntime(209): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1580) 12-11 09:58:03.167: ERROR/AndroidRuntime(209): at android.os.Handler.dispatchMessage(Handler.java:88) 12-11 09:58:03.167: ERROR/AndroidRuntime(209): at android.os.Looper.loop(Looper.java:123) 12-11 09:58:03.167: ERROR/AndroidRuntime(209): at android.app.ActivityThread.main(ActivityThread.java:3742) 12-11 09:58:03.167: ERROR/AndroidRuntime(209): at java.lang.reflect.Method.invokeNative(Native Method) 12-11 09:58:03.167: ERROR/AndroidRuntime(209): at java.lang.reflect.Method.invoke(Method.java:515) 12-11 09:58:03.167: ERROR/AndroidRuntime(209): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:739) 12-11 09:58:03.167: ERROR/AndroidRuntime(209): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) 12-11 09:58:03.167: ERROR/AndroidRuntime(209): at dalvik.system.NativeStart.main(Native Method) 12-11 09:58:03.177: INFO/Process(53): Sending signal. PID: 209 SIG: 3 I searched for previous posts in this group for help but i could not find a solution .Could somebody help me... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Accessing email
Not at present. Gmail is not open source, although Email is; It might be helpful if you can explain what you're trying to do, and the community may be able to suggest alternative implementations for you. On Wed, Dec 10, 2008 at 2:31 PM, Nathan Ekstrom [EMAIL PROTECTED] wrote: Is there a way for an application to query the gmail app for a set of emails? Nathan PS: I've tried to post to this list three times now and the message never shows up. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 an email from the gmail applications?
One reason that you won't find APIs for Gmail, in the SDK, is because Gmail is not necessarily available on every Android device. Thus, any use of it cannot be supported on a platform-wide basis. In general, very few apps are guaranteed to be on any given Android device, so you'll find little support for interacting directly with them. On Wed, Dec 10, 2008 at 8:14 AM, Nathan Ekstrom [EMAIL PROTECTED] wrote: I've been trying to find any information on how to get an email from the gmail application. I've seen it mentioned that people have found a android.provider.Gmail but nobody seems to have worked with it. What I need to do is get a specific set of emails that I can go through and parse the data from. Does any one know of a way to do this or will I need to roll my own imap client. Nathan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Multiple email accounts
Hello tanshin07, On the G1, the Gmail client (and related clients such as calendar) only support a single Gmail-based account. If you wish to check additional email accounts, however, you can use the Email client and configure them using IMAP access. If they are simple [EMAIL PROTECTED] accounts, they will auto-configure; If they are using Google Apps For Your Domain (see http://www.google.com/a/help/intl/en/org/) they'll still work but you'll have to manually configure them for IMAP. Note, you may need to configure each Gmail account to support IMAP access - see Settings and then Forwarding and POP/IMAP. On Tue, Dec 9, 2008 at 4:38 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi there, When using Android for the first time, it only allows you to register one of your gmail accounts. Would you be able to create a function that can allow you to sign on with a different account without having to go through the Internet? Thanks :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Please help with Android source
Dr. Lu - This mailing list is primarily for developers who use the SDK to build Android applications. Your question will probably be better addressed on one of the open source / platform mailing lists, which you can learn more about at http://source.android.com/discuss. On Tue, Dec 9, 2008 at 1:26 AM, Dr. Tingrong Lu [EMAIL PROTECTED] wrote: Hi, I read Android source Get source doc. There is a section Building the code, it says that to cd to the source directory and run make. Here comes my way stupid question, what is it going to make? what code it's going to build? It seems no doc is concerning it. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem configuring build path
Aniruddha - This seems fragile. Is there a reason that the activities need to be in separate applications? Will your code do the right thing if the user deletes one package or the other, but not both? If at all possible, keeping them together will make things simpler. If you must separate them, you'll probably have a much easier time if you simply register one or more intent-filters and used named intents to go from activity to activity. This is much cleaner and easier than depending on hardcoded class names. --Andy On Mon, Dec 8, 2008 at 11:24 AM, Aniruddha [EMAIL PROTECTED] wrote: Hi. I am trying to call one android application from another. Both these applications are working fine independently. The commands I have given are: Intent intent = new Intent(); intent.setClassName(android.sip.simpleclient, android.sip.simpleclient.SIPclient.class); startActivity(intent); But I am getting the error message stating that android.sip.simpleclient can't be resolved. I tried the Fix project setup option but it gave the message No proposals were found. So, then I tried to manually configure the build path of the project. But even after adding the target project folder into the Required projects on the build path, the package needed is not being resolved. Please give me some advice regarding this. What am I missing? Thanks and Regards. Aniruddha. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 G1 (RC30) eMail client
Actually, there is a lot of development happening on the client. Please feel free to file bugs on the public tracker, or ask questions here about specific issues. I can't guarantee which release any given fix will appear in, but we are definitely tracking and fixing issues on it. On Fri, Dec 5, 2008 at 10:30 AM, SLSq [EMAIL PROTECTED] wrote: ... does not work properly. K-9 is just another fork to no where. It is time to fix the builtin eMail client! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Epilog: Largish HTTP Post vs. ANR
On Fri, Dec 5, 2008 at 8:40 AM, [EMAIL PROTECTED] wrote: So I finally figured out what was going on. It had nothing to do with HTTP posts, thankfully. What it did have to do with was Formatter (or String.format). An innocuous foreground loop using Formatter was taking 10 seconds for about 10kb worth of data. The same loop using string concats (ie, this++that) takes 100ms. What on earth is Formatter doing that takes 2 orders of magnitude more time? Something's really out of whack. Interesting tidbit2: per Mark's suggestion, I implemented the HTTP post using both HttpURLConnection and DefaultHttpClient mechanisms. The DefaultHttpClient method was about 5-10x *slower* than HttpURLConnection for identical data. Not sure why that is... maybe using stringsBuffers to collect the post data instead of file io is a lose. For both of these, it would be *fantastic* if you could create a small but working test code snippet, and collect timing, and file the whole thing in bug reports. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Testing application
This is probably a question more suited for android-beginners. That and other lists are described in more detail at http://code.google.com/android/groups.html Welcome to Android app development! On Tue, Dec 2, 2008 at 8:09 PM, indiabolbol.com [EMAIL PROTECTED] wrote: I am interested in how the developers tested the application before putting the application on the android market. I know it can be tested on the device, but what about testing on the real device. In other words, if I have the real device can I upload the application to the device and perform the test? If so, how do I connect my development environment to real device, rather than the emulator. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: wpa_supplicant not compiled?
This list is for developers using the Android SDK to develop applications. For questions regarding accessing, building and using the open source release, please refer to one of the groups listed at http://code.google.com/android/groups.html. Thanks, Andy On Tue, Dec 2, 2008 at 11:45 PM, Richard Zhao [EMAIL PROTECTED] wrote: Hi all, I got android souce using repo sync, and run choosecombo using the default value. After making, I find external/wpa_supplicant was not compiled. I can't find place to add wpa_supplicant for compile. I also tried the wpa_supplicant from G1 phone, but it doesn't support wireless extension. Thanks Richard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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
Yasmin, if you're not sure where the sample apps are, you may want to jump over to the android-beginners list, described in more detail at http://code.google.com/android/groups.html. You'll probably find more useful responses there. Welcome to Android development! On Tue, Dec 2, 2008 at 10:59 PM, yasmin afrose [EMAIL PROTECTED] wrote: Hi, Thanks for your kind reply... Can you please tell the URL... Thanks, Yasmin On Sun, Nov 30, 2008 at 11:26 AM, Dianne Hackborn [EMAIL PROTECTED] wrote: 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. -- Everything is Possible For U only
[android-developers] Re: getting latest version repo
Reminder: android-developers@googlegroups.com is a list for discussion of application development using the SDK. For questions about building Android from open source, or about porting to other hardware, you'll get better responses from one of the lists described here: http://source.android.com/discuss. Thanks! On Mon, Nov 24, 2008 at 10:11 AM, cihan [EMAIL PROTECTED] wrote: hi When I run this command , I got this error. I couldnt find any mistake. #repo init -u git://android.git.kernel.org/platform/manifest.git fatal: unable to start /mnt/depo/calisma/android-source/mydroid/.repo/repo/main.py fatal: [Errno 13] Permission denied --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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...
Reminder: android-developers@googlegroups.com is a list for discussion of application development using the SDK. For questions about building Android from open source, or about porting to other hardware, you'll get better responses from one of the lists described here: http://source.android.com/discuss. Thanks! On Tue, Nov 25, 2008 at 2:07 AM, Sameer Oak [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. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: native audio interface / AudioRecord.h
GnuHash- I'm sorry to be repetitive but as Dianne said: At this point: no native code is supported in the SDK. Using it may result in your application breaking when an update to the phone is delivered. Using C++ APIs will definitely result in you breaking in the future. Could this please be moved over to one of the open-source groups? Nothing we are talking about is part of the current SDK? Thanks. On Tue, Nov 25, 2008 at 11:35 PM, GnuHash [EMAIL PROTECTED] wrote: hi I tried writing a java wrapper class that interfaces the native library using JNI. But i am getting RECORD_AUDIO permission denial from the emulator. I have added RECORD _AUDIO permission in the Android manifest. My application doesnt use mediarecorder to record but talks to the native interface audiorecord for the recording using JNI. Am i missing something? Gnuhash On Nov 24, 1:40 am, Dorn Hetzel [EMAIL PROTECTED] wrote: David, Thank you very very much for the tips. I've gotten as far as downloading the android source code (onto a clean ubuntu VM I built for the job) and doing an initial make (which generated quite a lot of whining level errors but seemed to complete ok). I'm so-so at Java but a pretty old hand at C/C++ so hopefully I will be able to work through the remaining steps. Can you recommend any other similarinterfaceclasses I could examine for general clues? Once I get all this done, will the .so in the .apk be able to go through the marketplace and run on a real G1 or will I only be able to play with in on the emulator? In any case, I will write progress reports to the list and make the code available to all if I succeed. Best Regards, Dorn Hetzel On Fri, Nov 21, 2008 at 8:23 PM, davidsparks davidsparks [EMAIL PROTECTED] wrote: The nativeinterfaceis called AudioRecord.h. You'll need to download the Android source code, write a JNIinterfaceto AudioRecord, build a .so library that you can include in your APK, write a Java wrapper class for it, and then load the library from your Java wrapper. Hope that helps. Dave On Wed, Nov 19, 2008 at 11:22 AM, Dorn Hetzel [EMAIL PROTECTED] wrote: David, It looks like the MediaRecorder functionality is a non-start for my application since I need to process theaudioas it is coming in, not some time later after the recording is complete. Can you provide me some clue as to where to find information on the nativeinterface, since I would rather be able to at least make some progress with the rest of my application while waiting for the next version. Without some alternative to MediaRecorder I will be simply unable to proceed. Thanks! -Dorn On Wed, Nov 19, 2008 at 2:14 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: It is the only supported method in SDK 1.0. There is a native interfacetoaudioinput, but it will be changing in a future release and I strongly advise against using it. On Nov 19, 8:26 am, dorn [EMAIL PROTECTED] wrote: Is the MediaRecorder the only method available to acquireaudiofrom the microphone, or is there a lower level method available? On Nov 14, 4:59 pm, Dave Sparks [EMAIL PROTECTED] wrote: The MediaRecorder is currently hardcoded for AMR-NB and is intended for MMS messages. You can expect improvements toaudiorecording in a future SDK. On Nov 14, 12:26 pm, ste [EMAIL PROTECTED] wrote: I'm testing out the MediaRecorder'saudiorecording capability, and the quality of theaudiowas less then I was expecting. It was significantly lower then the quality you get while speaking on the phone, and sounded very digitized. I've tested both the 3gpp and MPEG_4 encoding options, and noticed the same quality. Has anyone else noticed this, and is this an issue with the phone's hardware or the MediaRecorder's capabilities? If it's the latter, is the quality of recording something which is planned to be improved? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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
On Tue, Nov 25, 2008 at 3:51 PM, steve_macleod [EMAIL PROTECTED] wrote: Oh yeah should also say the example code im working from is in the Android Essentials book, and its quite outdated now... Maybe you should use that book for a monitor stand instead of letting it give you bad advice. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [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
Dianne is absolutely right, Android is an Open Source platform and you or your partner companies are free to begin working on it immediately. If you are interested in a more formal relationship with some of the companies involved in Android, you may also wish to look at http://www.openhandsetalliance.com/. This mailing list is primarily for developers who are using the SDK to develop applications. You won't find much about business relationships here. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Anyway we can get a maps binary that works with the open source code?
Reminder: android-developers@googlegroups.com is a list for discussion of application development using the SDK. For questions about building Android from open source, or about porting to other hardware, you'll get better responses from one of the lists described here: http://source.android.com/discuss. Thanks! On Fri, Nov 21, 2008 at 4:28 PM, Keith [EMAIL PROTECTED] wrote: Hi, I am running Android on my HTC Vogue/Sprint Touch to great success! A kind fellow in New Zealand named Martin has written drivers for the main hardware and is currently working on camera support. See: http://forum.xda-developers.com/showthread.php?p=2918032 http://www.myhtcphone.com/vogue-cab-installer Now Martin has requested for someone to write to google and request a maps framework binary that will work in the open source code so we can switch to that codebase that allows us to try using Android Marketplace and Gmail binaries and others. Here is the post: http://forum.xda-developers.com/showthread.php?p=2918032#post2918032 Feel free to email me personally (keith at hadm dot net) if you need any other info, or if there's anything I could help you with. Thanks everyone for your guys hard work and I love Android, even if I don't have 3g tmobile coverage. :) Keith Herrington --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: about open source project
Reminder: android-developers@googlegroups.com is a list for discussion of application development using the SDK. For questions about building Android from open source, or about porting to other hardware, you'll get better responses from one of the lists described here: http://source.android.com/discuss. Thanks! On Sat, Nov 22, 2008 at 3:37 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello guys: I have used Android in Ubuntu 8.04 recently and it can work now. Besides, I also make the source code in here http://source.android.com/projects and instruction of repo sync and make have cost me lots of time. And now my question is, how should I use these source code? Run in eclipse to show in emulator or whatelse? Thank you for your response. Samuel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: UMA Support
Reminder: android-developers@googlegroups.com is a list for discussion of application development using features APIs supported in the Android SDK. For questions about building Android from open source, or about porting to other hardware, you'll get better responses from one of the lists described here: http://source.android.com/discuss. Thanks! On Sat, Nov 22, 2008 at 7:41 PM, Noah Swint [EMAIL PROTECTED] wrote: I found some glimmer of hope while searching for the wifi Chipset on the G1. It appears that the Texas Instruments TNETW1251 Wifi chipset does support UMA. Sooo.. given some time and kernel hacking, could the G1's UMA capable wifi chipset and others be incorporated in the Android OS? http://focus.ti.com.cn/pdfs/wtbu/tnetw1251_1253_prod_bulletin.pdf http://www.cdrinfo.com/Sections/News/Details.aspx?NewsId=13005 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Flaky network connections
If your code is going to access a site every 10 seconds, the radio is going to, essentially, stay on continuously. This is going to have a significant impact on your users' battery life. Is this definitely what you want to do? On Mon, Nov 24, 2008 at 5:17 AM, joshv [EMAIL PROTECTED] wrote: I am attempting to write an application that regularly polls data from a publicly available website using a URLConnection. The code is pretty basic (urlStr contains the URL...) URL url = new URL(urlStr); URLConnection urlConn = url.openConnection(); urlConn.setConnectTimeout(5000); BufferedReader in = new BufferedReader(new InputStreamReader (urlConn.getInputStream())); String line; while ((line = in.readLine())!=null) { Anyway, even when the G1 is connected to the network (verified in browser) this block of code will regularly throw java.net.SocketException: No route to host, java.net.SocketTimeoutException: Socket is not connected (though this is probably because I added a timeout), and many times throw an Exception claiming that it could not resolve the hostname in urlStr - oddly the web browser has no such issues resolving the name. The above block of code runs every 10 seconds (or longer if the previous request takes longer), and I'd guess succeeds approximately 25-50% of the time, though it tends to be a bit streaky. When the connection succeeds, it take less than a second to connect and download the data, it's a very small data set - so the timeout setting should not be an issue. The periods of error do not correspond to a loss of connectivity, as I can browser the web at the same time the errors are happening. This happens whether connected to local wi-fi or 3G. Am I doing something wrong, or is network connectivity on the G1 just this flaky? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Scrolling with Multiple ListViews
I think that the point Romain is making is that scrolling things (be they ListView or Scrollview) should not be *embedded* within each other. The framework was not intended to support this, as it creates all sorts of UI issues. Strictly speaking, you *could* put two independent scrolling things in any given layout, but with limited screen real estate, we haven't found this to be a particularly useful UI pattern. On Nov 20, 2008 12:05 PM, Andrew Burgess [EMAIL PROTECTED] wrote: So essentially multiple ListViews on a single screen are a pretty big no-no. Fair enough, I'll try something else. Thanks for the response. On Thu, Nov 20, 2008 at 3:01 PM, Romain Guy [EMAIL PROTECTED] wrote: Hi, ListView i... Andrew Burgess --~--~-~--~~~---~--~~ You received this message because you are su... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Changing Google image server
Can you clarify what you mean by pulling in imagery? Or in the immortal words, What are you really trying to do? On Nov 20, 2008 10:29 AM, Robert [EMAIL PROTECTED] wrote: I am looking for a way to change which Google server our Android app will look too when pulling in imagery. We have an Enterprise Google server purchased from Google that will serve up imagery. Does anyone know of anyway to get Android pointing to that server instead of the public Google server? Robert --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: radio frequency receive
Just as a reminder, this list is for discussion of developing applications for Android devices using the Android SDK. Please see http://code.google.com/android/groups.html for other mailing lists that may be more suitable for your question. In this case, access to the underlying radio devices is a fairly platform-specific thing and is not addressed in the SDK. It is also quite locked down due to radio licensing regulations. On Wed, Nov 19, 2008 at 8:54 AM, Ernest Tam [EMAIL PROTECTED] wrote: What frequency does G1 support? I don't know exactly the radio frequency of our device generating. If I know the frequency of G1, I can verify with my supplier whether my luck is really running out. Ernie On Wed, Nov 19, 2008 at 8:10 AM, Ian [EMAIL PROTECTED] wrote: On Nov 18, 3:29 pm, Ernest Tam [EMAIL PROTECTED] wrote: I have a requirement to write a driver to receive a special radio frequency on G1. I believe there should be some API available... I thnik you're out of luck! The radios in a phone (there are several) aren't just like a shortwave that you can tune to any frequency; they're built to operate on the specific frequencies and encoding modes for what they do. It's generally not even legal to make them work on other frequencies. Headstay --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 call log layout
The call log isn't implemented by the system, so its resources (such as layout) are not in the system. Take a look at Contacts/res/layout-finger/, which you can obtain from the open source release. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 store the Higest Scores of the players who download my Game
Imran- You might take a look at the Google App Engine, http://code.google.com/appengine/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: whoever wrote the email app for the G1.....
If you're unhappy with the Email app (or other apps on the phone) I strongly suggest a couple of things: (1) File bugs on the android bug tracker so your comments don't get lost (2) Contribute! I'm aware of at least two non-Google efforts to improve the Email client, and I'm sure they could use help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: migrating from m3-rc37a to x86-1.0_r1
Hey petunio- It would be great if you can watch adb logcat and actually let us know what you see when it crashes. There will probably be a Java exception (with stack trace) and possibly additional diagnostic information. You might even figure out the problem once you see that. On Thu, Oct 30, 2008 at 4:56 PM, petunio [EMAIL PROTECTED] wrote: Hi all I did an application for the android developer challenge, and since the deadline for uploading the entries (back in april I think), I haven't played with it Well, I have downloaded the new sdk (x86-1.0_r1) and obviously I got a lot of errors with my old code... I have managed to fix all the compile errors, but now, it crashes when I run it The problem is: - on my xml layout (babel_layout.xml), I used to have the following code: com.google.android.babel.babelView android:id=@+id/babel android:layout_width=fill_parent android:layout_height=fill_parent/ - then, on the java file, I have this: class babelView extends View { public babelView(Context context, AttributeSet attrs, Map inflateParams) { super(context, attrs); } } - and, in the main class: public class babel extends Activity { protected void onCreate(Bundle icicle) { super.onCreate(icicle); // Turn off the title bar requestWindowFeature(Window.FEATURE_NO_TITLE); // Make our view setContentView(R.layout.babel_layout); } It crashes when it gets to setContentView !! so, it seems like I am doing something wrong in the xml file, or maybe the way that babelView is defined... Any ideas would be really appreciated, and the world will be a much better place, and I will finish my app and I will uploaded to the android market so the world can enjoyed it. (he he) This is my app, by the way (using the old m3-rc37a sdk) http://www.jjym.co.uk/babel Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: howto debug apps with more than one process
Jakob- It may be possible to do this with the SDK, but I am not enough of an SDK expert to know for sure. However, you might find it easier to simply develop/debug your Service in the same process. Once it's running and is fairly stable, you can try making it remote. The calling conventions are essentially the same for local remote processes; The primary difference is that you have more restrictions with a remote process, since everything has to go through a binder (no direct object references or method calls, and all data has to be parcelable). But you can make calls to your local service using the binder-based interface and it will still work properly. Hope this helps. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 you compile the bundled apps that comes with the Android source code
Assuming you have downloaded the open source project and you can build it using the given instructions: 1. Make sure you're cd'd into the android/ directory 2. Type . build/envsetup.sh 3. Type lunch 1 4. Type mmm packages/apps/Email Exercise left to the reader as to what each of these commands does. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 debug the source code using Eclipse
[ Note, this mailing list is intended for app development, typically using the SDK. Questions about building or debugging the open source release may get better answers discussion in one of android-platform, android-framework, or android-porting. But since we're here ] There is an eclipse .classpath file in android/development/ide/eclipse/. You can use this to set up a project, as follows: 1. Download open source and do a complete build cycle. Deal with any errors or tool problems before continuing. 2. Copy android/development/ide/eclipse/.classpath to android/.classpath 3. In eclipse, select New Java Project (not Android) 4. Tell it to use existing sources and point it at your android/ folder. Eclipse should set up a project with a long string of packages. It will take a while the first time (Eclipse will recompile everything using its own toolchain) but when it's done, you should see all of the Java sources available and 0 errors in the problems view. Debugging requires some additional steps which I don't want to describe here (I'm not in front of a running system and I don't want to describe something incorrectly). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Userspace Hardware Abstraction layer
This list [android-developers] is intended primarily for app developers (users of the SDK). You'll probably find more help and better answers for your question on the [android-porting] mailing list. Details here: http://source.android.com/discuss --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: First Run Method
A lighter-weight solution might be to simply write out a little first.run.has.happened file, and check for it on subsequent launches. For most purposes (e.g. show the welcome page once) the file could be empty, and a simple existence check is sufficient. If you need something more strict, you could write a small key into it (e.g. some sort of hash) to make it harder to spoof. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Search Not Working
I assume that the problem you're experiencing is that, when you call startSearch(), nothing happens? If this is the case, read on. If this is not the case, please write back with additional information about what you expected and what actually happened. From looking at your implementation of onSearchRequested(), it looks like you're trying to implement some additional or non-standard functionality. It would be helpful if you could describe what exactly you're trying to accomplish here, from a UI perspective. However, just looking at the code, I see a couple of things that look odd: (1) What exactly are you trying to store in the bundle, and why? These are typically used only for special cases where you need access to that same data in the search intent receiver. (2) It doesn't make sense to call this: webView.requestFocus(); After you try and launch the search UI. The search UI will want focus, and you're just creating a race condition. For now, I would recommend simply removing onSearchRequested() and let the base method in Activity take care of things. After the basic search invocation is debugged and working, you can start to build it back in and add the special functionality you want. If you call startSearch() and nothing happens, it may mean that your search metadata is either incorrect or insufficient. One thing you can do is examine the output of adb logcat and see if the search manager is writing any diagnostic information to the logs. You can also post snippets of your manifest, and your searchable.xml file, here if you'd like anyone here to take a closer look at it. No permissions are required to invoke the search UI. Specific apps may depend on the INTERNET permission, but only if their searchable activity (or suggestions provider) use the network to gather data. Hope this helps. On Thu, Oct 23, 2008 at 1:47 AM, anirudh Bhatnagar [EMAIL PROTECTED] wrote: I am trying to implement the search functionality in my app,But I am not able to get the page,Following is the code : public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.web_view); onSearchRequested(); } public boolean onSearchRequested() { EditText searchString = (EditText) findViewById(R.id.searchText); webView = (WebView) findViewById(R.id.browser); Bundle dataBundle = new Bundle(); dataBundle.putString(null, searchString ); startSearch(queryPrefill, false, appDataBundle, false); webView.requestFocus(); return true; } I have even set the User permission in AndroiManifest.xml for INTERNET. Thanks, Anirudh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Now the source is released what steps do we need to take to port to other hardware?
Along with the open source release, some new mailing lists have been set up which are targeted for questions like this. Take a look at http://source.android.com/discuss. In particular, you may want to subscribe to android-porting. This list (android-developers) is described as Discuss developing Android applications using the Android framework. Get help with troubleshooting apps, advice on implementation, and strategies for improving your app's speed and user experience. Good luck! On Wed, Oct 22, 2008 at 6:40 AM, Matt [EMAIL PROTECTED] wrote: Now the source is released what steps do we need to take to port to other hardware? In particular I would like to port to the HTC prophet, but I know that others will want to port to their own flavours of handset. However I'd be grateful if someone could point me in the right direction of a porting guide, or anything that I can use to get started. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: What is callback function to catch text entered into search box
Billsen - When the user enters the search UI and types enter or clicks the search button, the ACTION_SEARCH intent will be sent. At least one activity within your application must be configured (using an intent-filter) to receive and handle this Intent. For more information, please see: http://code.google.com/android/reference/android/app/SearchManager.html http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/app/ Hope this helps. --Andy On Mon, Oct 20, 2008 at 1:20 PM, Billsen [EMAIL PROTECTED] wrote: hi, I tried to find a callback function that could catch text entered in search box, but could not find it. In my application, I started local search and entered text in search box. What I want to do is to catch text entered in my app. Anybody can help? Thanks, Billsen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: What happens to the Intent internally after startActivity ??? (especially to Google-Developers)
You might have more luck simply storing your object in the extras structure provided in every Intent. Remember that Intent data must be parcelable so that it can be transported between processes. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 Filesytem loading error on i.mx31 platform
You'll probably find more answers to this question in the android-internals mailing list. http://groups.google.com/group/android-internals On Wed, Oct 15, 2008 at 7:42 AM, Eric Michael [EMAIL PROTECTED] wrote: Hi all., I m porting android to imx31 hardware, kernel is booting well but Filesystem shows some error which loading the binder information required for the android to load... I ve created the file system by following the steps mentioned in http://elinux.org/Android_on_OMAP while booting .. I m able to get the initial red eye movement ,similar one which we see in emulator... but after red eye screen ... I m not getting the android screen as in emulator... red eye continuous its state .. My log message for the binder error is as follows.. Freeing init memory: 188K sh: can't access tty; job control turned off # /system/bin/a.sh Using fallback suid method Using fallback suid method Failed to start message bus: The pid file /tmp/messagebus.pid exists, if the message bus is no t running, remove this file binder_open: 794:794 binder_mmap: 794 4000-4040 (4096 K) vma 71 pagep 5f +++ post-zygote binder: 794:797 ERROR: bcREGISTER_LOOPER called without request binder: 794:797 ERROR: bcENTER_LOOPER called after bcREGISTER_LOOPER binder: 794:798 ERROR: bcENTER_LOOPER called after bcREGISTER_LOOPER binder_open: 795:795 binder_mmap: 795 4265c000-42a5c000 (4096 K) vma 71 pagep 5f binder: 795:801 ERROR: bcREGISTER_LOOPER called without request binder: 795:801 ERROR: bcENTER_LOOPER called after bcREGISTER_LOOPER binder: 795:802 ERROR: bcENTER_LOOPER called after bcREGISTER_LOOPER binder: 795:795 ERROR: bcREGISTER_LOOPER called without request binder: 795:795 ERROR: bcENTER_LOOPER called after bcREGISTER_LOOPER binder_flush: 795 woke 3 threads Prepping: /system/app/AlarmProvider.apk:/system/app/Browser.apk:/ system/app/Calendar.apk:/syste m/app/Camera.apk:/system/app/Contacts.apk:/system/app/Development.apk:/ system/app/GDataFeedsProv ider.apk:/system/app/Gmail.apk:/system/app/GmailProvider.apk:/system/ app/GoogleApps.apk:/system/ app/GoogleAppsProvider.apk:/system/app/Home.apk:/system/app/ ImProvider.apk:/system/app/Maps.apk: app/GoogleAppsProvider.apk:/system/app/Home.apk:/system/app/ ImProvider.apk:/system/app/Maps.apk: /system/app/MediaPickerActivity.apk:/system/app/MediaProvider.apk:/ system/app/Phone.apk:/system/ app/PimProvider.apk:/system/app/ApiDemos.apk:/system/app/ SettingsProvider.apk:/system/app/Sms.ap k:/system/app/SyncProvider.apk:/system/app/TelephonyProvider.apk:/ system/app/XmppService.apk:/sy stem/app/YouTube.apk File not found: /system/app/AlarmProvider.apk File not found: /system/app/Calendar.apk File not found: /system/app/Camera.apk File not found: /system/app/GDataFeedsProvider.apk File not found: /system/app/Gmail.apk File not found: /system/app/GmailProvider.apk File not found: /system/app/MediaPickerActivity.apk File not found: /system/app/PimProvider.apk File not found: /system/app/ApiDemos.apk File not found: /system/app/Sms.apk File not found: /system/app/SyncProvider.apk File not found: /system/app/YouTube.apk Prep complete fatal error opening /sys/android_power/acquire_partial_wake_lock binder: 794:794 ERROR: bcREGISTER_LOOPER called without request binder: 794:794 ERROR: bcENTER_LOOPER called after bcREGISTER_LOOPER binder_open: 826:826 binder_mmap: 826 4265c000-42a5c000 (4096 K) vma 71 pagep 5f binder: 826:834 ERROR: bcREGISTER_LOOPER called without request binder: 826:834 ERROR: bcENTER_LOOPER called after bcREGISTER_LOOPER binder: 826:835 ERROR: bcENTER_LOOPER called after bcREGISTER_LOOPER binder_open: 828:828 binder_mmap: 828 4265c000-42a5c000 (4096 K) vma 71 pagep 5f binder: 828:836 ERROR: bcREGISTER_LOOPER called without request binder: 828:836 ERROR: bcENTER_LOOPER called after bcREGISTER_LOOPER binder: 828:837 ERROR: bcENTER_LOOPER called after bcREGISTER_LOOPER Can anyone come up with the solution for this issue... Thanks Eric --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Confused by Android testing framework
Ludwig- I just checked your blog and I'd like to add a couple of notes. (1) You're right that the tests don't build properly using the default SDK settings. I don't have the workaround handy, but it is possible to build the tests. I will see if I can get a writeup on that, either here or in the documentation site. (2) It absolutely should not be necessary to restart the emulator after installing anything. Something else is going on in your setup which is forcing this. You may want to watch the output of adb logcat as you go through the steps of installing ApiDemos, installing ApiDemosTests, and launching the tests - it may reveal some other issue which is causing your problem. --Andy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Emulator Orientation Change on Mac
Of course, with a system this new, everything's undergoing continuing development and improvement. For the most part, tools that report their own help (e.g. emulator -help or emulator -help-keys) will be fairly current. Please don't hesitate to file bugs at code.google.com if you find documentation errors. It's very helpful to know which areas need improvement. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Confused by Android testing framework
Mark- I think it would make sense to start with the ApiDemos tests, so that you can (at a minimum) start with a known good quantity. The structure of these is that there are two packages - the Api Demos package itself (com.example.android.apis), and the package of tests that goes with it (com.example.android.apis.tests). So the first thing to do is to make sure that everything built properly and installed properly. It's easy to confirm that the ApiDemos package is on your emulator - you should be able to launch it from the home screen. To look under the covers, use this command: $ adb shell pm list packages | grep example And you should see (among other things) both of the packages I mentioned. If you don't see both packages, then fix that first (no point in launching the instrumentation yet). Finally, when you have instrumentation launch failure, did you take a look at what's happening in adb logcat? As you've discovered, the output from adb shell am instrument is pretty thin; Sometimes you can learn more about the problem from the logcat output. --Andy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Confused by Android testing framework
As you've figured out, both of your problems are related to having one but not both packages installed. Interestingly, it appears to be the opposite condition: It sounds as if your ApiDemos *tests* are not loaded, but your own app is also not loaded. Yes, you've also figured out that the name packages has been overloaded here. In the context of the package manager, as well as the way that Instrumentation is applied, we are referring here to Android packages, which are mostly typically found in .apk files. In the case of ApiDemos, you'll note that there are two makefiles and two manifests. The android package string is set near the top of each manifest. Anyway, as I said before, at the end of the day for any given app+test pair, you should be able to build both packages, install both packages, and view them using adb shell pm list packages. Only then, try running them --Andy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Emulator Orientation Change on Mac
First, boilerplate answer, you can use $ emulator -help-keys to get an up-to-date list of hotkeys in the emulator. You didn't mention if you're on a laptop or mac desktop. I know that the keyboards are somewhat different. I can only answer for laptops because I'm using my laptop right now to test this. One solution is to press fn and type 7. This works because on a macbook, there is a virtual numeric keypad (you can see a small set of numbers, 0..9, on the keys). The other solution is to type ctrl-F11. This was put in to provide an option for mac laptop users. Hope these help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: save image in Database
Are you sure that you really want to do this? It might make more sense to save each image as a file. If necessary, you could use a database to store image metadata (depending on the needs of your application). On Tue, Sep 30, 2008 at 7:02 AM, Nemat [EMAIL PROTECTED] wrote: Hi Frnds. I have to save an image in database.How can it be possible in SDK-1.0?? Thanks in Advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: SqlLite!!???
On Wed, Sep 17, 2008 at 2:07 AM, Peli [EMAIL PROTECTED] wrote: If you want other applications to access your data, the best way is still to use ContentProviders on top of an sql database. Just to be clear; I think it's safer to say: ...the best way is still to use ContentProviders on top of your data storage. Many ContentProviders use sqlite. The key here is that the ContentProvider system is intended to isolate clients from the underlying storage mechanics of your data. Please use sqlite if it's appropriate, but you may find that for some types of data, other mechanisms may be more appropriate. --Andy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: List background style
On Tue, Sep 16, 2008 at 3:52 PM, David Given [EMAIL PROTECTED] wrote: Ah, I didn't know about state_selected (would you like a bug report on documentation for this?). Yes, that works fine. Documentation bugs are *always* helpful. You don't have to ask. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 -~--~~~~--~~--~--~---