[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: How can I get the Contact Pointer of Google(Android) blow Issue
Ok, Thank you for your reply... That's good advice for me Um, I'll contact the openhandsetalliance.com Thank you.. 2008/11/26 Andrew Stadler [EMAIL PROTECTED]: 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. -- 裵孝洙 拜上 Hunt Bae Business Development Coordinator Telematics Cluster Association KOrea Telematics Business Association(KOTBA) Tel : +82-2-2285-1650 Fax: +82-2-2285-2166 Mobile : 011-9881-3760 URL: http://www.kotba.org eMail : [EMAIL PROTECTED] [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Amazon MP3 Intent URI
If you're writing an app with a link to it please remember that the MP3 store isn't available on every device. It doesn't even ship on the G1 if you buy it in the UK. Al. joe.monti wrote: How would one link to the Amazon MP3 store? What is the Intent URI syntax? Can anyone provide any examples or hints where to find it? Thanks! - Joe -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Querys involving more than one table of Contatcs Content Provider
Dianne - thanks for the confirmation. I had spent a while banging my head on this issue, convinced that there ought to be an easy way if only I found the right ContentProvider magic. I can see that we will need to solve similar problems more than once, and I would love to stay in the world of Cursors, which means the CursorJoiner won't do it for us. I have the slightly hazy idea that we could write our own Cursor that took a pair of Cursors and a join expression, so as to do this in a general way. That would be handy in all sorts of ways. Do you think that would be practical ? Or is the absence of it in the SDK a clue that it is harder than it looks ? Thanks, Richard On Nov 26, 1:31 am, Dianne Hackborn [EMAIL PROTECTED] wrote: Correct, you can't directly do joins on the database. This is intentional, as the exact schema of the database can change over time, and a ContentProvider is intended to provide a more abstract mechanism for accessing it that can remain compatible as those changes occur. On Tue, Nov 25, 2008 at 7:03 AM, jarkman [EMAIL PROTECTED] wrote: I've been looking at a similar problem. Something like this: Cursor cursor = context.getContentResolver().query( Contacts.GroupMembership.CONTENT_URI, new String[] {Contacts.GroupMembership._ID,Contacts.GroupMembership.PERSON_ID, Contacts.GroupColumns.NAME}, Contacts.GroupMembership._ID = Contacts.Groups.GROUP_MY_CONTACTS, null, null); will get you the IDs of the people in the group. I'd love to make a cursor which also included the name of the person, but as far as I know there is no way to do that with a single query. That is, as far as I can tell, there's no way to do a join via the content provider interface, and permissions prevent us from accessing the contacts database directly via SQL calls. I really hope somebody can prove me wrong! Richard On Nov 24, 11:14 am, Huebi [EMAIL PROTECTED] wrote: I'd like to get a Cursor for all contacts in the My Contacts group. I could not figure out how to do this with the ContentProvider. As far as I understood the table structure, I need to use the GroupMembership table, the Groups table (to get the ID of the My Contacts group and the People table to actually retrieve the contact data. Has anyone successfully solved this task? Thanks! -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] AIDL in same process
Hi, All Our team want build some services which provided to 3rd party, and we are trying to design the interfaces which using the AIDL, and also, we want to build our own application base on this services also, and run in the same process, but is it still need using IPC to transfer the data info, that's sounds too heavy for one process, any suggestions for it? And also, if we want public to 3rd part, is there anyway to install our services and their application together? (Not public our codes to them). Welcome any help for that. Best regards, Louis. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 message
It works for me, but only if I have two emulators. From emulator 5556 I can send to emulator 5554. On Wed, Nov 26, 2008 at 6:58 AM, andrex [EMAIL PROTECTED] wrote: Hi all, can anyone help me, I want to send an auto message or an alert to the phone. I've trying this SmsManager sm = SmsManager.getDefault(); sm.sendTextMessage(5554,null, My text Message, null, null); I put 5554 because is the emulator direcction. No errors, but the emulator don't receive the message. Any idea? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 remove certain SMS notifications
A more strange thing that happens is: If you send a message using the SmsManager it doesn't appear in the conversations within the Messages (Mms.app) application. After digging in the Mms source code I found that they have an MessagingNotification class that handles the notifications. What Mms.apk is missing is a way to notify it that it's data changed (using its content providers) so that it can update its notifications. I have an idea how to do it but I'm not sure if google will approve it :) On Wed, Nov 26, 2008 at 12:43 AM, G [EMAIL PROTECTED] wrote: I would like to be able to do this as well, but I think the folks at google deemed it a security risk (which is sad because SMS-intercept capabilities could allow almost any app to support some kind of push notification in a very simple way) On Nov 24, 1:13 pm, Tughi [EMAIL PROTECTED] wrote: Hi, I have a BroadcastReceiver that fetches incoming SMSs. I need to know how can I remove/cancel the notification for a particular SMS. I found no way to list the contents of the notifications bar, and also only marking a SMS as read doesn't do the trick. Is it possible to remove a particular notification from the notification bar? 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] For modular requirement
Hi, All: Our products which running in other platform are using the modular approach, which means if user want to add a new feature, he/she only need to download a new plug-in, but not reinstall the who application. And we used COM library base ideas to do that before, is there anyway to do it in Android? Welcome any help for it. Best regards, Louis. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: NotePad sample app bug
For the OI Notepad (which is based on Google's sample notepad application), we set the intent action manually from INSERT to EDIT, once it has been created. This way, it is not inserted multiple times on screen orientation changes. http://code.google.com/p/openintents/source/browse/trunk/NotePad/src/org/openintents/notepad/NoteEditor.java I don't know if this is the cleanest way of doing things though, because we have to keep additional state information that the note was originally inserted... There may be a more elegant way to achieve the same result. Peli www.openintents.org On Nov 25, 5:50 am, j [EMAIL PROTECTED] wrote: If user chooses Add note, the editor activity launches. Now if user slide out/in the keyboard, each time orientation changes, onCreate gets called so a new row is inserted into the database, which is obviously not desirable. protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); final Intent intent = getIntent(); // Do some setup based on the action being performed. final String action = intent.getAction(); if (Intent.ACTION_EDIT.equals(action)) { // Requested to edit: set that state, and the data being edited. mState = STATE_EDIT; mUri = intent.getData(); } else if (Intent.ACTION_INSERT.equals(action)) { // Requested to insert: set that state, and create a new entry // in the container. mState = STATE_INSERT; mUri = getContentResolver().insert(intent.getData(), null); // If we were unable to create a new note, then just finish // this activity. A RESULT_CANCELED will be sent back to the // original activity if they requested a result. if (mUri == null) { Log.e(TAG, Failed to insert new note into + getIntent().getData()); finish(); return; } // The new entry was created, so assume all will end well and // set the result to be returned. setResult(RESULT_OK, (new Intent()).setAction(mUri.toString ())); } else { // Whoops, unknown action! Bail. Log.e(TAG, Unknown action, exiting); finish(); return; } // Set the layout for this activity. You can find it in res/ layout/note_editor.xml setContentView(R.layout.note_editor); // The text view for our note, identified by its ID in the XML file. mText = (EditText) findViewById(R.id.note); // Get the note! mCursor = managedQuery(mUri, PROJECTION, null, null, null); // If an instance of this activity had previously stopped, we can // get the original text it started with. if (savedInstanceState != null) { mOriginalContent = savedInstanceState.getString (ORIGINAL_CONTENT); } } What is the correct (best practice) code to avoid a second (or third) record from being inserted? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: PLUGIN Eclipse
help me please? On 24 Nov, 10:38, mimmolinox [EMAIL PROTECTED] wrote: This is the error: No repository found athttps://dl-ssl.google.com/android/eclipse/ Error reading update sitehttps://dl-ssl.google.com/android/eclipse/. Unconnected sockets not implemented On 21 Nov, 16:10, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: The URL of Eclipse plugin's is not aviable. how can I set the Eclipse IDE's??? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: PLUGIN Eclipse
Install the plugin using the ADT archive. On Wed, Nov 26, 2008 at 3:54 PM, mimmolinox [EMAIL PROTECTED] wrote: help me please? On 24 Nov, 10:38, mimmolinox [EMAIL PROTECTED] wrote: This is the error: No repository found athttps://dl-ssl.google.com/android/eclipse/ Error reading update sitehttps://dl-ssl.google.com/android/eclipse/. Unconnected sockets not implemented On 21 Nov, 16:10, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: The URL of Eclipse plugin's is not aviable. how can I set the Eclipse IDE's??? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Editing the incoming call dialog
Presumably though I could popup some new view on part of the screen though, like the whitepages caller ID application? I'm using PhoneStateListener to detect an incoming call, how can I then popup a view on part of the screen? Thanks On Nov 25, 6:09 pm, Dianne Hackborn [EMAIL PROTECTED] wrote: Sorry, you can't do this with the SDK. On Tue, Nov 25, 2008 at 4:00 AM, Rich [EMAIL PROTECTED] wrote: Can anyone offer some advice on how I can add/replace text on the dialog displayed when an incoming call is ringing? I guess I need a way to get a handle on the view. Thanks Rich -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Standard widget styles
Hello all, I'm trying to implement a view similar to the Contact view (screen with a contact icon, name, favourite checkbox, dial number and send SMS actions) available in the Android emulator. And I'm interesting if there are any standard styles available for that. Particularly, I'm looking for: 1. Style for the header view (gray background where an icon and a contact name are displayed). Well, this probably is used only in Contacts application, so it may be not among system styles. But hopefully someone encountered smth like this. 2. Style for list section header (where Dial number, Send SMS/MMS text appears), it looks similar to window header. It seems I got smth close to that style with: TextView labelTitle = new TextView(MyActivity.this, null, android.R.attr.windowTitleBackgroundStyle); labelTitle.setTextAppearance(MyActivity.this, android.R.style.TextAppearance_WindowTitle); but background colour looks slightly different. Besides, there are two default style attributes are available: android.R.attr.windowTitleStyle and android.R.attr.windowTitleBackgroundStyle. First is responsible for the font size/colour another is responsible for the background. Is there any solution to apply them both using constructor only (without setting text appearance later)? And the last question, have anybody seen the list of all available styles in Android with images what do they look like? Thank you 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: Can't retrieve page with HttpClient
Mark, thanks for your reply. I can get other pages without problem but some static pages from my web site i just can't get to. What is weird about it is that I can navigate and view those pages in the browser in emulator or on my G1 but using the same exact URL in HttpClient doesn't work. I think I'm missing something here. On Nov 25, 7:23 pm, Mark Murphy [EMAIL PROTECTED] wrote: loty wrote: Have a weird problem - I'm trying to read a page from my web site but for some reason it just can't find it. I can navigate to my page in a browser no problem but if I use the same URL in HttpClient I get the 404 (File not found) from my host service. Any clues? Here is the code I use - seems pretty straightforward HttpClient client = new DefaultHttpClient(); HttpGet getMethod = new HttpGet(strURL); try { HttpResponse response = client.execute(getMethod); Log.d(LOG_TAG, Response Code + Integer.toString (response.getStatusLine().getStatusCode())); if(response.getStatusLine().getStatusCode()==404) { Log.d(LOG_TAG, WTF - 404); return; } String res = EntityUtils.toString(response.getEntity()); Log.d(LOG_TAG, res); Can you request other pages, from other services, other than the one you're trying? In other words, is your problem unique to your host service, or is it a problem for all pages you try requesting? Assuming the problem is unique to your host service... Is the request of a static page or something generated by some server-side process? If the latter, is the process expecting other behavior (e.g., session cookie from a successful login) and is failing with a 404 instead of a 500 or something? -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Standard widget styles
Hello, What I could advise is to donwload the android source code. You have the source of contact application. It would help a lot ! On 26 nov, 14:03, Andriy Zakharchuk [EMAIL PROTECTED] wrote: Hello all, I'm trying to implement a view similar to the Contact view (screen with a contact icon, name, favourite checkbox, dial number and send SMS actions) available in the Android emulator. And I'm interesting if there are any standard styles available for that. Particularly, I'm looking for: 1. Style for the header view (gray background where an icon and a contact name are displayed). Well, this probably is used only in Contacts application, so it may be not among system styles. But hopefully someone encountered smth like this. 2. Style for list section header (where Dial number, Send SMS/MMS text appears), it looks similar to window header. It seems I got smth close to that style with: TextView labelTitle = new TextView(MyActivity.this, null, android.R.attr.windowTitleBackgroundStyle); labelTitle.setTextAppearance(MyActivity.this, android.R.style.TextAppearance_WindowTitle); but background colour looks slightly different. Besides, there are two default style attributes are available: android.R.attr.windowTitleStyle and android.R.attr.windowTitleBackgroundStyle. First is responsible for the font size/colour another is responsible for the background. Is there any solution to apply them both using constructor only (without setting text appearance later)? And the last question, have anybody seen the list of all available styles in Android with images what do they look like? Thank you 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: FLAG_ONEWAY for asynchronous communication between services
Thank you for your answer. On 25 Nov., 19:14, Dianne Hackborn [EMAIL PROTECTED] wrote: A oneway interface currently only applies when an IPC is needed to go through the interface -- that is when the callee and caller are running in different processes -- and is handled by Binder, the low-level IPC transport. When I wrote my message yesterday, I had two services in the same APK. They were BOTH defined in the AndroidManifest.xml with the attribute android:process=:remote. I expected that the services will run in different processes, because I thought android:process=:remote will automatically place each service in its own process. The FLAG_ONEWAY option didn't work while the services were communicating with each other. Today I edited the APK's AndroidManifest.xml and now only one of the both processes has the android:process=:remote attribute in its service tag. Now the asynchronous communication works in both directions with the FLAG_ONEWAY option in the transact()-method of both AIDL interfaces. I read the documentation about android:process. I understood that in case we define two services inside one APK with the android:process=:remote attribute, then the both services are inside the same process because the attribute refers to the same process name. If a developer want to have each service inside one APK in its own process, she/he has to declare the android:process attribute like that : android:process=:Service_Process_Unique_Name_For_This_APK. In this way the asynchronous communication between services in own processes in Android is possible. I hope the fact each service run in separate process does not have enormous and destructive impact on Android's performance and runtime environment. When two interfaces are in the same process, calls on them are just direct function calls into the other object, so there is no way to introduce asynchronicity. I'd like to do the user-space work to allow for async local interfaces, but don't know when that may happen. In the meantime, what we generally do is use a Handler on the receiving side to schedule the work in another thread so that all calls into the object are async. I shall probably also take a look at the possibility for Handler usage. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] Know about the Android Developers
Android Developer Challenge - To support you in your efforts, Google has launched the Android Developer Challenge, which will provide $10 million in awards. http://www.freewebs.com/recordindstry/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Getting GPS Location in Android 1.0 SDK
anyone?having the same problem here On Oct 22, 12:29 pm, Matthias [EMAIL PROTECTED] wrote: Hi, no, it still doesn't work as expected. It only works when going through telnet and sending manual fixes using the geo command, but it never works via ADB and Eclipse GUI. Bummer. I run Linux though, and I have seen it working on my friend's Windows machine. Is that feature platform dependent by any chance? On Oct 16, 8:40 pm, Gautam [EMAIL PROTECTED] wrote: Thanks Ludwig for pointing me in the right direction :) I've got it working now and this is how it works for me: For getLastKnownLocation() to work, the best way is to telnet into the emulator geo fix command or DDMS controls using Eclipse. Without using one of these options above to set the location, the method will return null. A better way is to get the LocationAPISample and geo_sample_data fromhttp://groups.google.com/group/android-developers/files The LocationSample registers a LocationListener so we keep getting location updates instead of just one location value plus the .gpx file can be used to set locations or simulate a path (cool!) @Matthias Let me know if my pointers help you or we can continue working to get this working for you as well. Thanks everyone, Gautam On Oct 16, 1:36 pm, Ludwig [EMAIL PROTECTED] wrote: There has been a recent exchange over this:http://groups.google.com/group/android-developers/browse_thread/threa... Apologies if I missed a more specific problem in your question. Ludwig 2008/10/16 Matthias [EMAIL PROTECTED] anyone found a solution? I am still struggling over this... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: SimpleCursorAdapter to Spinner getting CursorIndexOutOfBoundsException
Thanks for the tip and your help Mark. btw, Your book is great. Cheers, Wes On Nov 16, 12:41 pm, Mark Murphy [EMAIL PROTECTED] wrote: After this I decided to implement a for loop just to see if I could display all the cursor information before I actually try to use it somewhere. Here's my loop: Did you call c.moveToFirst() before entering the loop? For unclear reasons, Cursors from the database are positioned before the first returned result, so you need to call moveToFirst(), um, first. --MarkMurphy(a Commons Guy)http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Two applications respond to the same intent
Hello all, I've posted a question at the following link regarding issue I met when trying to replace the standard contact application that comes with android : http://groups.google.com/group/android-developers/browse_thread/thread/565d89d354691a/d4f9d6a5f9560ffd#d4f9d6a5f9560ffd I've done more tests to try to understand what is happening. Also I have added my app in preferred package with : PackageManager pm = getPackageManager(); pm.addPackageToPreferred(getPackageName()); (Note that I also have the right permission in the manifest) This is the log I have from logcat : /ActivityManager( 55): Starting activity: Intent { action=android.intent.action.MAIN categories= {android.intent.category.LAUNCHER} flags=0x1000 comp= {com.android.contacts/ com.android.contacts.DialtactsContactsEntryActivity} } /dalvikvm( 97): GC freed 3025 objects / 156504 bytes in 66ms /AndroidRuntime( 97): Shutting down VM /dalvikvm( 97): threadid=3: thread exiting with uncaught exception (group=0x40010e28) /AndroidRuntime( 97): Uncaught handler: thread main exiting due to uncaught exception /AndroidRuntime( 97): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.contacts/ com.android.contacts.DialtactsActivity}: java.lang.SecurityException: Requesting code from www.dmailer.com (with uid 10017) to be run in rocess android.process.acore (with uid 10002) /AndroidRuntime( 97):at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2140) ... To summarize my previous post : I've found the intents that allow my application to be launched when I click on the contact icon from android. So now it prompts me to choose between the standard contact app an my contact app, with a option to set my app to be the default one. When I set this option and launch my app, I got the error above. What I could see : It seems that the standard contact app is launched prior to mine whereas both of them respond to the SAME intents. It also seems that it requested my application to run in the same process android.process.acore. I know I could not make it to run using the process.acore for security reason, and anyway I wan't my app to run in its own process. My questions are then : Is it the normal behavior that one could expect when two applications respond to the same intents ? Why would an application be launched prior to the other one that respond to the same intents ? Thanks for help, I really have no more idea of how I could resolve this . --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Can't retrieve page with HttpClient
loty wrote: I can get other pages without problem but some static pages from my web site i just can't get to. Can you check your server logs and confirm that you are getting 404's there that match your 404's you're getting on the client? If they're there, do you see anything unusual in the paths recorded in the server logs? Maybe the URL is getting munged somehow before you hand it off to the HTTPComponents. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] G1 Calendar app on Emulator/SDK?
Hello, We are trying to use the Calendar App/API on the emulator/latest SDK, but people here are saying that the app is not available in the SDK. Is there any way we can get it from source (android source) and add it to the SDK ourselves? We want to try and avoid having to download the full android source code, and then developing against it in Ubuntu/Linux (we currently use windows xp for all our development). If there is no way to get this app in the SDK/emulator, then we'd like to know if we can indeed develop against the android source code/ platform in Eclipse. We are currently just using the windows android sdk and eclipse android plugin to develop android applications. Would eclipse also integrate well with the source version of android ? (automatic code signing using debug certificate, automatic build, automatic deployment, emulator launch, debugging etc) Would appreciate any help, 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: SSLSocket working sample code
The Email application that comes with Android has quite a bit of SSLSocket use. Check in the android source for that. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Plz help me getting solution for the below problem
#1 chunk data here indicates some unit of bytes (may be 512, 1024 etc) . it would be better if you could point me to some example of such an application written in java which works on android This doesn't tell us anything at all. By what means do you want to get this data? HTTP? FTP? #2 browser doesnot connect to internet by default, i am getting network error when i am trying to accesswww.google.com through android browser. (for your information , my host is within a firewall protected by proxy server) . is there any way to connect android emulator to internet in this scenario. Ah, proxy might be the issue, I don't know about using a proxy with the emulator, I don't have to do that. - michael --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Getting File Descriptor For Pipe
This is unlikely to work because the OpenCore engine isn't setup to play from a pipe. It plays from a local file, which allows it to seek within the file, or from an HTTP or RTSP/RTP stream, which requires content formatted specifically for streaming. A future version of the SDK will support streamed audio I/O from Java apps. On Nov 26, 7:47 am, Kenneth Loafman [EMAIL PROTECTED] wrote: I'm relatively new to Java and I need some help, probably in the terminology, more than the technology. How do you get a file descriptor for a Pipe in Java? I've looked and I've read, but it seems like Java is hiding the underlying filesystem FD and file name from the user. I need to generate a sound and be able to change it roughly 24 times per second. Threaded MediaPlayer just is not smooth enough to enable it to be continuous (clicks and silence), so I was thinking of changing the data source to an FD and just feed it a continuous stream, changing as needed. I just can't find where Java is hiding the file descriptor. Any help will be appreciated. ...Thanks, ...Ken --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Deleteing from IMAP with built-in Email application.
Sorry, I shouldn't have posted this to the board. In trying to answer my last question about bug reports I found that indeed there is an issue tracking system and the issue I mentioned has already been filed as Issue 1029 (http://code.google.com/p/android/issues/detail?id=1029). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 J2ME project
Hi all, We just had a NEW RELEASE today, please download and give a try! Thanks Dana (408)702-2103 [EMAIL PROTECTED] On Tue, Nov 25, 2008 at 9:31 AM, Jayabharath B [EMAIL PROTECTED]wrote: Ohh!! OK. Thanks On Tue, Nov 25, 2008 at 10:45 AM, Dana Li [EMAIL PROTECTED] wrote: This is a produce from our company. On 11/24/08, Jayabharath B [EMAIL PROTECTED] wrote: Hi Dana, *J2ME Runner* is part of Android later platforms or is it a product from your company? Cheers On Thu, Nov 13, 2008 at 10:47 PM, Dana Li [EMAIL PROTECTED] wrote: We have a product called J2ME Runner which allows any j2me application to run in android directly without code change What is the url to your j2me ? Thanks, Dana Li On 11/11/08, David Given [EMAIL PROTECTED] wrote: brownbear wrote: [...] I'm a new member of this group a newbie in google android j2me. Unfortunately Android doesn't actually support J2ME --- it's J2SE more than anything else. You're unlikely to be able to use any existing J2ME code. The documentation is excellent; try the 'getting started' pages on the left: http://code.google.com/android/documentation.html -- David Given [EMAIL PROTECTED] -- Thanks! Jay. -- Thanks! Jay. -- Dana --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 GPS Support on Android
let me know the location too, please. On Oct 24, 12:45 pm, Mayank Rana [EMAIL PROTECTED] wrote: Hi, I haven't read how to test location services and I am still not able to find it. Please let me know the path or location of it. Thanks. Regards, _-_Mayank Rana_-_ On Thu, Oct 23, 2008 at 8:49 PM, nkijak [EMAIL PROTECTED] wrote: Did you read the how to test location services section of the documentation? It's pretty easy to find. On Oct 23, 3:56 pm, Mayank Rana [EMAIL PROTECTED] wrote: Hi All, I have couple of things to clarify: 1. What are the GPS Applications currently part of Android ? 2. As on Emulator , I am not able to run maps applications as there is no GPS Driver and hardware connected. How can I use google maps on emulator ? 3. Providing GPS HAL interface gps_get_hardware_interface will be sufficient to connect GPS Drive with Application Framework and upper application in Android ? 4. Is there any basic test application for GPS on Android ? not necessary maps kind of application. Any more information related to GPS on Android is welcome. Thanks. Regards, _-_Mayank Rana_-_ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how to inject a KeyEvent
That kinda seems like the wrong way to do things, simulating key events. But anyways, if you want to pass data between Activities, you add it into the Intent. See putExtra() and getExtra(). - michael --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Amazon MP3 Intent URI
Good point. Thanks for pointing that out. But if Amazon MP3 is available, does anyone know how to link to it? Thanks, - Joe On Nov 26, 6:10 am, Al Sutton [EMAIL PROTECTED] wrote: If you're writing an app with a link to it please remember that theMP3 store isn't available on every device. It doesn't even ship on the G1 if you buy it in the UK. Al. joe.monti wrote: How would one link to theAmazonMP3store? What is the Intent URI syntax? Can anyone provide any examples or hints where to find it? Thanks! - Joe -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Send message
Hi Stefan thanks, but Can I send me a message, to the emulator how run the application? or what can I do if i want to send an alert to the user, something like a wap push message or maybe a reminder. I'll be thanks for the answers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] Contacts Performance
I have 620 contact records that I maintain in GNOME's Evolution on Linux. My first attempt at getting them onto a T-Mobile G1 was using syncevolution with Funambol and the Android Funambol client. The Funambol client is incredibly slow but I suppose that is an issue for discussion at the Funambol client site. More of a concern is that when all of the contact records were loaded the built-in Contacts application was unable to handle them. The built-in Contacts application would load successfullly and display the records however it was unusably slow. After opening Contacts I would get the Sorry dialog box indicating that the service was not responding with the option to kill it or wait. If I selected wait it would evenutally respond but scrolling was unresponsive. Although Contacts didn't crash it could not preform its function as it would not be useful to have such long delays when the use case is to place a telephone call to someone in the contacts list. So the question I need to answer is if the Contacts application was not written with performance characteristics such that it can handle 620 contacts with a fast response time or if the Funambol loading of records skipped some sort of important indexing operation. Is anyone have success with Contacts using 600 or more records? If so were they synchronized via Gmail or through some other conduit? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how to inject a KeyEvent
There is no plan at this point, though I imagine some time in the future some of these things may be allowed maybe under the guise of telling the user that the application can do anything they can or such. On Sat, Nov 22, 2008 at 8:33 AM, Dorn Hetzel [EMAIL PROTECTED] wrote: Is that a permanent, security related, state if the droid, or is it thought that someday, with the right permissions, or between consenting applications, this would be allowed? :) On Fri, Nov 21, 2008 at 7:23 PM, Dianne Hackborn [EMAIL PROTECTED] wrote: Correct, one application can not inject key events into another application. There should be no way around this. For instrumentation test cases that cross application boundaries, I strongly recommend you set up an ActivityMonitor to block the launching of that other application's activity, returning a mocked result instead. On Fri, Nov 21, 2008 at 3:34 PM, dreamerBoy [EMAIL PROTECTED] wrote: Hi Hackbod - I tried this using Instrumentation - The goal of this little program is to make an outgoing call and then generate a keypress on the ENDCALL button. 1. It appears that I am incapable of unlocking the keyguard: 11-21 14:40:58.445: INFO/InstTest(209): after inKeyguardRestrictedInputMode() ? true 2. Then, Android tells me I don't have permission to send a key event: 11-21 14:41:00.173: WARN/WindowManager(53): Permission denied: injecting key event from pid 209 uid 10019 to window Window{43506808 com.android.phone/com.android.phone.InCallScreen} owned by uid 1001 EmptyActivity is just as it sounds - no additional code other than what Eclipse generates. If anyone can see something that is not being done correctly, I would very much appreciate their thoughts - Thanks - Paul ~~ package test.instTest; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.telephony.PhoneStateListener; import android.telephony.TelephonyManager; import android.test.ActivityInstrumentationTestCase; import android.util.Log; import android.view.KeyEvent; import android.app.Instrumentation; import android.view.View; import android.content.IntentFilter; import android.app.Instrumentation.ActivityResult; import android.app.KeyguardManager; public class InstTest extends ActivityInstrumentationTestCaseEmptyActivity { private static final String LOG_TAG= InstTest; private TelephonyManagertelMgr; private Instrumentation instrumentation; private Context context; private KeyguardManager keyguardMgr; public InstTest() { super(test.instTest, EmptyActivity.class); } public void testPreconditions() { instrumentation = getInstrumentation(); assertTrue(Instrumentation must be non-null, instrumentation ! = null); context = instrumentation.getContext(); assertTrue(Context must be non-null, context != null); telMgr = (TelephonyManager) context.getSystemService (Context.TELEPHONY_SERVICE); assertTrue(TelephonyManager must be non-null, telMgr != null); keyguardMgr = (KeyguardManager) context.getSystemService (Context.KEYGUARD_SERVICE); assertTrue(KeyguardManager must be non-null, keyguardMgr != null); } public void testCall() { testPreconditions(); Log.i(LOG_TAG, before inKeyguardRestrictedInputMode() ? + keyguardMgr.inKeyguardRestrictedInputMode()); KeyguardManager.KeyguardLock keyguardLock = keyguardMgr.newKeyguardLock(LOG_TAG); keyguardLock.disableKeyguard(); Log.i(LOG_TAG, after inKeyguardRestrictedInputMode() ? + keyguardMgr.inKeyguardRestrictedInputMode()); IntentFilter intentFilter = new IntentFilter (Intent.ACTION_CALL); Uri parsedPhoneNumber = Uri.parse(tel:1234567); Intent myIntent = new Intent(Intent.ACTION_CALL, parsedPhoneNumber); Intent resultData = new Intent(Intent.ACTION_CALL, parsedPhoneNumber); // myIntent = new Intent(Intent.ACTION_DIAL, parsedPhoneNumber); myIntent.setFlags(Intent.FLAG_DEBUG_LOG_RESOLUTION | Intent.FLAG_FROM_BACKGROUND | Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_NEW_TASK); resultData.setFlags(Intent.FLAG_DEBUG_LOG_RESOLUTION | Intent.FLAG_FROM_BACKGROUND | Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_NEW_TASK); Instrumentation.ActivityResult actResult = new Instrumentation.ActivityResult(Activity.RESULT_OK, resultData); Instrumentation.ActivityMonitor actMonitor = new Instrumentation.ActivityMonitor(intentFilter, actResult, false); Log.i(LOG_TAG, starting call.); instrumentation.waitForIdleSync(); context.startActivity(myIntent); instrumentation.waitForIdleSync(); Log.i(LOG_TAG, number of hits from
[android-developers] Re: Enabling taps in ListView
David Orme wrote: I got no answer to this query on Android-Beginner so I'm reposting it here: I have a ListView where I've supplied a custom row object. I can both tap and long-tap using the hardware track ball (or the Enter key in the emulator), but these same gestures do not work on the screen when I tap over the TextView in the row. Other interactive widgets in the row work the way I would expect. How do I enable this? Have you tried adding android:clickable and/or android:longClickable? I'm not sure if TextView necessarily responds to those events by default, so you might have to toggle them on yourself. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Two applications respond to the same intent
What is the manifest for your application? Note that addPackageToPreferred() was not intended to be in the final system, and it will be turned off in a future release (it is an old simpler way to manage preferred applications, which deeply conflicts with the current intent-based model). On Wed, Nov 26, 2008 at 6:49 AM, Thao [EMAIL PROTECTED] wrote: Hello all, I've posted a question at the following link regarding issue I met when trying to replace the standard contact application that comes with android : http://groups.google.com/group/android-developers/browse_thread/thread/565d89d354691a/d4f9d6a5f9560ffd#d4f9d6a5f9560ffd I've done more tests to try to understand what is happening. Also I have added my app in preferred package with : PackageManager pm = getPackageManager(); pm.addPackageToPreferred(getPackageName()); (Note that I also have the right permission in the manifest) This is the log I have from logcat : /ActivityManager( 55): Starting activity: Intent { action=android.intent.action.MAIN categories= {android.intent.category.LAUNCHER} flags=0x1000 comp= {com.android.contacts/ com.android.contacts.DialtactsContactsEntryActivity} } /dalvikvm( 97): GC freed 3025 objects / 156504 bytes in 66ms /AndroidRuntime( 97): Shutting down VM /dalvikvm( 97): threadid=3: thread exiting with uncaught exception (group=0x40010e28) /AndroidRuntime( 97): Uncaught handler: thread main exiting due to uncaught exception /AndroidRuntime( 97): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.contacts/ com.android.contacts.DialtactsActivity}: java.lang.SecurityException: Requesting code from www.dmailer.com (with uid 10017) to be run in rocess android.process.acore (with uid 10002) /AndroidRuntime( 97):at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2140) ... To summarize my previous post : I've found the intents that allow my application to be launched when I click on the contact icon from android. So now it prompts me to choose between the standard contact app an my contact app, with a option to set my app to be the default one. When I set this option and launch my app, I got the error above. What I could see : It seems that the standard contact app is launched prior to mine whereas both of them respond to the SAME intents. It also seems that it requested my application to run in the same process android.process.acore. I know I could not make it to run using the process.acore for security reason, and anyway I wan't my app to run in its own process. My questions are then : Is it the normal behavior that one could expect when two applications respond to the same intents ? Why would an application be launched prior to the other one that respond to the same intents ? Thanks for help, I really have no more idea of how I could resolve this . -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: AIDL in same process
Calls through an aidl interface in the same process are simple direct function calls, no overhead added. There is currently no way to bundle multiple .apks into a single thing that the users installs; the user will need to deal with them as separate applications they need to install. On Wed, Nov 26, 2008 at 4:06 AM, Louis [EMAIL PROTECTED] wrote: Hi, All Our team want build some services which provided to 3rd party, and we are trying to design the interfaces which using the AIDL, and also, we want to build our own application base on this services also, and run in the same process, but is it still need using IPC to transfer the data info, that's sounds too heavy for one process, any suggestions for it? And also, if we want public to 3rd part, is there anyway to install our services and their application together? (Not public our codes to them). Welcome any help for that. Best regards, Louis. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Querys involving more than one table of Contatcs Content Provider
On Wed, Nov 26, 2008 at 3:37 AM, jarkman [EMAIL PROTECTED] wrote: I have the slightly hazy idea that we could write our own Cursor that took a pair of Cursors and a join expression, so as to do this in a general way. That would be handy in all sorts of ways. Do you think that would be practical ? Or is the absence of it in the SDK a clue that it is harder than it looks ? Sure, Cursor is just an interface. For example: http://code.google.com/android/reference/android/database/MergeCursor.html -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Can't retrieve page with HttpClient
When something like this happens, I use Wireshark to see what's actually going out to the web server. There must be something wrong with what's going out, or you wouldn't get a 404 error. On Nov 26, 4:00 pm, Mark Murphy [EMAIL PROTECTED] wrote: loty wrote: I can get other pages without problem but some static pages from my web site i just can't get to. Can you check your server logs and confirm that you are getting 404's there that match your 404's you're getting on the client? If they're there, do you see anything unusual in the paths recorded in the server logs? Maybe the URL is getting munged somehow before you hand it off to the HTTPComponents. -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: AIDL in same process
IPC binder calls within the same process are treated as local C++ calls, i.e. they occur synchronously on the same thread. I'm not sure what you are asking in the second part of your question. Is this a request for dependencies in the Market, e.g. Application A requires Application B to be installed? On Nov 26, 4:06 am, Louis [EMAIL PROTECTED] wrote: Hi, All Our team want build some services which provided to 3rd party, and we are trying to design the interfaces which using the AIDL, and also, we want to build our own application base on this services also, and run in the same process, but is it still need using IPC to transfer the data info, that's sounds too heavy for one process, any suggestions for it? And also, if we want public to 3rd part, is there anyway to install our services and their application together? (Not public our codes to them). Welcome any help for that. Best regards, Louis. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Deleteing from IMAP with built-in Email application.
Thanks for the reply. My account was indeed setup manually. I'll look forward to the update then. If you are associated with Google perhaps you could update the status of Issue 1029 with this great news. Having access to the bug reports is so relaxing and so much better than the non-android alternatives. Also, if this is just a bug in the setup process does it happen to write a config file somewhere such as /etc? Could I manually edit the file to make the correction as a temporary work-around? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Enabling taps in ListView
If clickable is not set, would clicking with the trackball or enter key work? I have noticed that the touch screen can behave weird when the clickable textview is small. It's hard to click in the right spot. On Nov 26, 6:36 pm, Mark Murphy [EMAIL PROTECTED] wrote: David Orme wrote: I got no answer to this query on Android-Beginner so I'm reposting it here: I have a ListView where I've supplied a custom row object. I can both tap and long-tap using the hardware track ball (or the Enter key in the emulator), but these same gestures do not work on the screen when I tap over the TextView in the row. Other interactive widgets in the row work the way I would expect. How do I enable this? Have you tried adding android:clickable and/or android:longClickable? I'm not sure if TextView necessarily responds to those events by default, so you might have to toggle them on yourself. -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 GPS Support on Android
It's called location based services On Nov 26, 5:32 pm, crontabpy [EMAIL PROTECTED] wrote: let me know the location too, please. On Oct 24, 12:45 pm, Mayank Rana [EMAIL PROTECTED] wrote: Hi, I haven't read how to test location services and I am still not able to find it. Please let me know the path or location of it. Thanks. Regards, _-_Mayank Rana_-_ On Thu, Oct 23, 2008 at 8:49 PM, nkijak [EMAIL PROTECTED] wrote: Did you read the how to test location services section of the documentation? It's pretty easy to find. On Oct 23, 3:56 pm, Mayank Rana [EMAIL PROTECTED] wrote: Hi All, I have couple of things to clarify: 1. What are the GPS Applications currently part of Android ? 2. As on Emulator , I am not able to run maps applications as there is no GPS Driver and hardware connected. How can I use google maps on emulator ? 3. Providing GPS HAL interface gps_get_hardware_interface will be sufficient to connect GPS Drive with Application Framework and upper application in Android ? 4. Is there any basic test application for GPS on Android ? not necessary maps kind of application. Any more information related to GPS on Android is welcome. Thanks. Regards, _-_Mayank Rana_-_ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Enabling taps in ListView
Did you add focusable widgets inside your list item? If so, the list item cannot be tapped anymore. On Wed, Nov 26, 2008 at 9:55 AM, Christine [EMAIL PROTECTED] wrote: If clickable is not set, would clicking with the trackball or enter key work? I have noticed that the touch screen can behave weird when the clickable textview is small. It's hard to click in the right spot. On Nov 26, 6:36 pm, Mark Murphy [EMAIL PROTECTED] wrote: David Orme wrote: I got no answer to this query on Android-Beginner so I'm reposting it here: I have a ListView where I've supplied a custom row object. I can both tap and long-tap using the hardware track ball (or the Enter key in the emulator), but these same gestures do not work on the screen when I tap over the TextView in the row. Other interactive widgets in the row work the way I would expect. How do I enable this? Have you tried adding android:clickable and/or android:longClickable? I'm not sure if TextView necessarily responds to those events by default, so you might have to toggle them on yourself. -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! -- Romain Guy www.curious-creature.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: PLUGIN Eclipse
Did you type that url in the Eclipse software update window as a new update site? On Nov 24, 10:38 am, mimmolinox [EMAIL PROTECTED] wrote: This is the error: No repository found athttps://dl-ssl.google.com/android/eclipse/ Error reading update sitehttps://dl-ssl.google.com/android/eclipse/. Unconnected sockets not implemented On 21 Nov, 16:10, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: The URL of Eclipse plugin's is not aviable. how can I set the Eclipse IDE's??? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: PLUGIN Eclipse
Did you type that url in the Eclipse software update window as a new update site? On Nov 24, 10:38 am, mimmolinox [EMAIL PROTECTED] wrote: This is the error: No repository found athttps://dl-ssl.google.com/android/eclipse/ Error reading update sitehttps://dl-ssl.google.com/android/eclipse/. Unconnected sockets not implemented On 21 Nov, 16:10, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: The URL of Eclipse plugin's is not aviable. how can I set the Eclipse IDE's??? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 Camera Preview Filter Using Camera.PreviewCallback.onPreviewFrame
Hi David, I can't seem to make coexist: SurfaceHolder for the camera ImageView for the filtered Bitmap to display. ... Do you know why I can't make the Camera's Surface and an ImageView Bitmap simultaneous members of the same active ViewGroup? I do not use ImageView myself so I cannot really judge your problem. I draw my filtered Bitmap to a Canvas in a SurfaceView. No ImageView anywhere. Regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Push Notification Techniques: Discuss
So here's something to think about while stuffing your face with turkey. What are some techniques that could be used for push notifications to an app (service) in android? The simplest option I can think of is what Fusion's visual voicemail uses, which is to monitor incoming SMS messages. The problem with this method is that Android currently has no way to cancel the notification that is sent by the messaging app. So for every notification your app gets, the OS will also show a text message (which is totally lame btw). Another option would be having your service poll you server every few minutes to create the illusion of push notifications. That's what I'd call a cheap trick that would hurt battery life pretty badly after not too long. Another option I've considered is having your service create a persistent connection to your server. This would be pretty painful not only on the battery life of the phone, but also on your servers, if you had lots of users. So what are some other options? Or do we have to wait for Google to change their minds and let us clear sms notifications (with appropriate permissions of course)? Does TouchDown (the new exchange app) support push notifications (my exchange is 2003, so i cant test it)? If so, anyone know how they did it? Any ideas at all, please add them. Remember, there are no stupid ideas, even if they might not work right away. P.S. To to folks at Google, please help us out. By not giving devs the ability to push notifications to our apps from the internet, you've seriously gimped our ability to design lots of killer apps and thereby boost the popularity of android. This has got to be something you guys have thought about before, right? I know you wanted 3rd parties to handle the exchange compatibility, but you had to consider that we'd need some sort of Push to do that. Should we wait for the next SDK update or what? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: contextmenu getselectedtestid
@Override public boolean onContextItemSelected(MenuItem item) { // TODO Auto-generated method stub AdapterContextMenuInfo acmi = (AdapterContextMenuInfo) item.getMenuInfo(); long clickedId = acmi.id; } In the above case, clickedId is the id of the row that was long- pressed to bring up the context menu. You can also get a specific view in the row that was long pressed... TextView tv = (TextView)acmi.targetView.findViewById (R.id.some_view_inside_your_row_view) Take a look at the docs for AdapterContextMenuInfo for more info. On Nov 25, 1:15 pm, Protocol-X [EMAIL PROTECTED] wrote: How do u the row id or position of a listactiviy when using a context menu. It always seems to always select 0 for the row id. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Getting GPS Location in Android 1.0 SDK
hi there, I'm still trying to find out why does loc = locman.getLastKnownLocation(gps); always returns null value When I run this app, I telnet to the emulator and enter geo fix 25 25 while the emulator is with my app running. I still get null values. can anyone help?? below my app source code: package com.layout.test; import android.app.Activity; import android.content.Context; import android.location.Location; import android.location.LocationManager; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.widget.TextView; public class Pruebas extends Activity { LocationManager locman = null; Location loc = null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } private void initActivity() { this.locman = (LocationManager) getSystemService (Context.LOCATION_SERVICE); loc = locman.getLastKnownLocation(gps); String myString = loc.toString(); TextView text = (TextView) findViewById(R.id.lblTest); text.setText(myString); } @Override public boolean onCreateOptionsMenu(Menu menu) { super.onCreateOptionsMenu(menu); menu.add(0, 27, 0, GetLocation).setIcon( android.R.drawable.ic_menu_add); return true; } @Override public boolean onMenuItemSelected(int featureId, MenuItem item) { switch (item.getItemId()) { case 27: initActivity(); return true; } return super.onMenuItemSelected(featureId, item); } } On Nov 26, 11:33 am, crontabpy [EMAIL PROTECTED] wrote: anyone?having the same problem here On Oct 22, 12:29 pm, Matthias [EMAIL PROTECTED] wrote: Hi, no, it still doesn't work as expected. It only works when going through telnet and sending manual fixes using the geo command, but it never works via ADB and Eclipse GUI. Bummer. I run Linux though, and I have seen it working on my friend's Windows machine. Is that feature platform dependent by any chance? On Oct 16, 8:40 pm, Gautam [EMAIL PROTECTED] wrote: Thanks Ludwig for pointing me in the right direction :) I've got it working now and this is how it works for me: For getLastKnownLocation() to work, the best way is to telnet into the emulator geo fix command or DDMS controls using Eclipse. Without using one of these options above to set thelocation, the method will return null. A better way is to get the LocationAPISample and geo_sample_data fromhttp://groups.google.com/group/android-developers/files The LocationSample registers a LocationListener so we keep getting locationupdates instead of just onelocationvalue plus the .gpx file can be used to set locations or simulate a path (cool!) @Matthias Let me know if my pointers help you or we can continue working to get this working for you as well. Thanks everyone, Gautam On Oct 16, 1:36 pm, Ludwig [EMAIL PROTECTED] wrote: There has been a recent exchange over this:http://groups.google.com/group/android-developers/browse_thread/threa... Apologies if I missed a more specific problem in your question. Ludwig 2008/10/16 Matthias [EMAIL PROTECTED] anyone found a solution? I am still struggling over this... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Push Notification Techniques: Discuss
G wrote: What are some techniques that could be used for push notifications to an app (service) in android? SMS. Everything else remotely practical is some flavor of pull, in terms of who initiates the request for data (the device) and the timing of such requests (polling). The problem with this method is that Android currently has no way to cancel the notification that is sent by the messaging app. That's definitely a limitation. Ideally, SMS messages are handled by an Intent-style system, where messages corresponding to certain formats are handled by apps, and everything else falls through to the standard Messaging application and is treated as a message for human eyes. The bigger problem is that not all phone users have all-you-can-message plans, so you can't assume you can send SMSes to the device with impunity. So what are some other options? Invent a new phone signaling standard, beyond GSM. Or settle for an Internet-based polling system. Eventually, if somebody changes the SMS-handling behavior in the core OS, you might implement a two-tier solution, going with SMS messages to your app for users who request it, and falling back to polling otherwise. Or do we have to wait for Google to change their minds and let us clear sms notifications (with appropriate permissions of course)? Won't help you on the SMS message fee issue. P.S. By not giving devs the ability to push notifications to our apps from the internet, you've seriously gimped our ability to design lots of killer apps and thereby boost the popularity of android. With respect to beefing up the messaging subsystem to support messages-for-apps in additional to regular text messages, that could be addressed by the community, not necessarily Google. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] Working on a Map editor for Alien Blood Bath...
Its a java app for desktops, so far i got the main GUI. Loading the sprite files though is where im stuck. if anyone can figure out the problem with loading the sprites i would love you forever :P http://code.google.com/p/abbmapbuilder/ code and test sprite is in the downloads section. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] How to do a ScrollView in a LinearLayout correctly
How should we correctly use a ScrollView in a LinearLayout, where I want a static LinearLayout at the bottom of the main LinearLayout (let's call it layMain, the ScrollView just scroll and the bottom layBottom). An example (it's not a valid layout structure, only for demo): [syntax=xml]LinearLayout id=main ScrollView id=scroll/ LinearLayout id=layBottom orientation=vertical gravity=bottom Button / Button / /LinearLayout /LinearLayout [/syntax] The problem is, when the view inside scroll grows bigger than the screen, either, scroll obscures layBottom, or scroll goes under layBottom, rendering the lower Views in scroll unusable. Does anyone have an idea? I tried putting it in a FrameLayout, and scroll goes underneath layBottom. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Push Notification Techniques: Discuss
What about a IMAP IDLE style of pushing. It too is real pushing, except your phone needs to keep the tcp connection alive, sending a NOOP every minutes or so. You could also use xmpp. On 26 nov, 20:06, Mark Murphy [EMAIL PROTECTED] wrote: G wrote: What are some techniques that could be used for push notifications to an app (service) in android? SMS. Everything else remotely practical is some flavor of pull, in terms of who initiates the request for data (the device) and the timing of such requests (polling). The problem with this method is that Android currently has no way to cancel the notification that is sent by the messaging app. That's definitely a limitation. Ideally, SMS messages are handled by an Intent-style system, where messages corresponding to certain formats are handled by apps, and everything else falls through to the standard Messaging application and is treated as a message for human eyes. The bigger problem is that not all phone users have all-you-can-message plans, so you can't assume you can send SMSes to the device with impunity. So what are some other options? Invent a new phone signaling standard, beyond GSM. Or settle for an Internet-based polling system. Eventually, if somebody changes the SMS-handling behavior in the core OS, you might implement a two-tier solution, going with SMS messages to your app for users who request it, and falling back to polling otherwise. Or do we have to wait for Google to change their minds and let us clear sms notifications (with appropriate permissions of course)? Won't help you on the SMS message fee issue. P.S. By not giving devs the ability to push notifications to our apps from the internet, you've seriously gimped our ability to design lots of killer apps and thereby boost the popularity of android. With respect to beefing up the messaging subsystem to support messages-for-apps in additional to regular text messages, that could be addressed by the community, not necessarily Google. -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Getting GPS Location in Android 1.0 SDK
You always need a locationlistener in your app, otherwise the GPS updates seem not to be recorded. There have been quite a few previous posts on this which might be worth reading. Ludwig 2008/11/26 crontabpy [EMAIL PROTECTED] hi there, I'm still trying to find out why does loc = locman.getLastKnownLocation(gps); always returns null value When I run this app, I telnet to the emulator and enter geo fix 25 25 while the emulator is with my app running. I still get null values. can anyone help?? below my app source code: package com.layout.test; import android.app.Activity; import android.content.Context; import android.location.Location; import android.location.LocationManager; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.widget.TextView; public class Pruebas extends Activity { LocationManager locman = null; Location loc = null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } private void initActivity() { this.locman = (LocationManager) getSystemService (Context.LOCATION_SERVICE); loc = locman.getLastKnownLocation(gps); String myString = loc.toString(); TextView text = (TextView) findViewById(R.id.lblTest); text.setText(myString); } @Override public boolean onCreateOptionsMenu(Menu menu) { super.onCreateOptionsMenu(menu); menu.add(0, 27, 0, GetLocation).setIcon( android.R.drawable.ic_menu_add); return true; } @Override public boolean onMenuItemSelected(int featureId, MenuItem item) { switch (item.getItemId()) { case 27: initActivity(); return true; } return super.onMenuItemSelected(featureId, item); } } On Nov 26, 11:33 am, crontabpy [EMAIL PROTECTED] wrote: anyone?having the same problem here On Oct 22, 12:29 pm, Matthias [EMAIL PROTECTED] wrote: Hi, no, it still doesn't work as expected. It only works when going through telnet and sending manual fixes using the geo command, but it never works via ADB and Eclipse GUI. Bummer. I run Linux though, and I have seen it working on my friend's Windows machine. Is that feature platform dependent by any chance? On Oct 16, 8:40 pm, Gautam [EMAIL PROTECTED] wrote: Thanks Ludwig for pointing me in the right direction :) I've got it working now and this is how it works for me: For getLastKnownLocation() to work, the best way is to telnet into the emulator geo fix command or DDMS controls using Eclipse. Without using one of these options above to set thelocation, the method will return null. A better way is to get the LocationAPISample and geo_sample_data fromhttp://groups.google.com/group/android-developers/files The LocationSample registers a LocationListener so we keep getting locationupdates instead of just onelocationvalue plus the .gpx file can be used to set locations or simulate a path (cool!) @Matthias Let me know if my pointers help you or we can continue working to get this working for you as well. Thanks everyone, Gautam On Oct 16, 1:36 pm, Ludwig [EMAIL PROTECTED] wrote: There has been a recent exchange over this: http://groups.google.com/group/android-developers/browse_thread/threa... Apologies if I missed a more specific problem in your question. Ludwig 2008/10/16 Matthias [EMAIL PROTECTED] anyone found a solution? I am still struggling over this... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Push Notification Techniques: Discuss
MrSnowflake wrote: What about a IMAP IDLE style of pushing. It too is real pushing, except your phone needs to keep the tcp connection alive, sending a NOOP every minutes or so. This requires a constant Internet connection, which keeps the GSM radio alive all the time, which drains your battery in no time flat. You could also use xmpp. This requires a constant Internet connection, which keeps the GSM radio alive all the time, which drains your battery in no time flat. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Push Notification Techniques: Discuss
TCP/IP is packet based, so the CPU is not required until a packet arrives. And the radio is necessarily always on. So maintaining such a connection, though by no means free, is not as costly as one might at first think. My preference would be for an web service that allowed 3rd party apps to 'share' the update mechanism already used in Google's applications. There are lots of difficulties in terms of the scale of that service (something that Google can obviously accommodate already) but also issues like protecting against abuse of the service by buggy or malicious apps. It does however present an extremely phone-power efficient solution since 'push' system is already running on almost all phones (if not all). Tom. 2008/11/26 Mark Murphy [EMAIL PROTECTED] MrSnowflake wrote: What about a IMAP IDLE style of pushing. It too is real pushing, except your phone needs to keep the tcp connection alive, sending a NOOP every minutes or so. This requires a constant Internet connection, which keeps the GSM radio alive all the time, which drains your battery in no time flat. You could also use xmpp. This requires a constant Internet connection, which keeps the GSM radio alive all the time, which drains your battery in no time flat. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 query for my current location?
Running example: package com.layout.test; import android.app.Activity; import android.content.Context; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os.Bundle; import android.util.Log; import android.view.Menu; import android.view.MenuItem; import android.widget.TextView; import android.widget.Toast; public class Pruebas extends Activity { LocationManager lm = null; Location loc = null; public static final String TAG = LOQUERIO; private LocationListener locationListener; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE); locationListener = new MyLocationListener(); lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener); } private void initActivity() { loc = lm.getLastKnownLocation(gps); if (loc == null) { Log.e(mylocation, failed to determine my location); } else { Log.i(mylocation, loc.toString()); TextView text = (TextView) findViewById(R.id.lblTest); text.setText(loc.toString()); } } @Override public boolean onCreateOptionsMenu(Menu menu) { super.onCreateOptionsMenu(menu); menu.add(0, 27, 0, GetLocation).setIcon( android.R.drawable.ic_menu_add); return true; } @Override public boolean onMenuItemSelected(int featureId, MenuItem item) { switch (item.getItemId()) { case 27: initActivity(); return true; } return super.onMenuItemSelected(featureId, item); } private class MyLocationListener implements LocationListener { public void onLocationChanged(Location loc) { // Called when the location has changed. Log.d(TAG, === MinhaLocalizacaoListener onLocationChanged); if (loc != null) { Toast.makeText( getBaseContext(), Location changed : Lat: + loc.getLatitude() + Lng: + loc.getLongitude(), Toast.LENGTH_SHORT).show(); } } public void onProviderDisabled(String provider) { // Called when the provider is disabled by the user. Log.d(TAG, === MyLocationListener onProviderDisabled PROVIDER: + provider); // Mapa.ehPraAtualizar = false; } public void onProviderEnabled(String provider) { Log.d(TAG, === MyLocationListener onProviderEnabled PROVIDER: + provider); // Called when the provider is enabled by the user. } public void onStatusChanged(String provider, int status, Bundle extras) { Log.d(TAG, === MyLocationListener onStatusChanged STATUS: + status + PROVIDER: + provider); // Called when the provider status changes. } } } On Nov 21, 2:46 am, Shibbs [EMAIL PROTECTED] wrote: Use Geocoder, the newly class introduced in 1.0 SDK. Its helps in reverse geocodeing( i.e getting address from lat/lon) http://code.google.com/android/reference/android/location/Geocoder.html Thanks, Shibbs On Oct 17, 2:12 pm, Matthias [EMAIL PROTECTED] wrote: Well, in other words, this whole location manager thing is pretty broken in Android 1.0? From what I've read and experienced myself so far, it's pretty much like this: 1) LocationManager cannot be subclassed anymore, instead you use the debug bridge to send location fixes. Unfortunately, this thing is broken in two ways: Firstly, it only works on systems with a US locale (?? sounds odd, but I can definitely tell it does not work for me...), and secondly, the proclaimed geo command from the tools/ folder isn't even there...! 2) In order for LocationManager.getLastKnownLocation() to actually work, one has to register a listener, although this may not even what the programmer needs -- I surely don't want it, I want to poll for updates only
[android-developers] Re: Two applications respond to the same intent
Hi Dianne, This is my manifest : ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=www.mypackage.com android:versionCode=1 android:versionName=1.0.0 uses-permission android:name=android.permission.SET_PREFERRED_APPLICATIONS / application android:icon=@drawable/fleches android:label=@string/app_name android:process=www.dmailerMobile.com android:icon=@drawable/fleches android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / action android:name=com.android.contacts.action.LIST_DEFAULT / category android:name=android.intent.category.DEFAULT / /intent-filter /activity /application /manifest 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: Two applications respond to the same intent
Hi Dianne, This is my manifest : ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=www.mypackage.com android:versionCode=1 android:versionName=1.0.0 uses-permission android:name=android.permission.SET_PREFERRED_APPLICATIONS / application android:icon=@drawable/fleches android:label=@string/app_name android:process=www.dmailerMobile.com android:icon=@drawable/fleches android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / action android:name=com.android.contacts.action.LIST_DEFAULT / category android:name=android.intent.category.DEFAULT / /intent-filter /activity /application /manifest 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: Comment spam in android market :(
Googlers, please read! I recently posted my application and while overall the comments were very useful, there is abut 30% which are spam and one or two very offensive comments. If google can't/won't moderate the comments, WHY can't we as developers do that? Mystery to me... I'll tell you the truth, I'm really got disappointed with how the market is managed by Google. They are slow, irresponsive to developers and user needs etc... Does google become bloated can't do anything without going over 100 heads of management people kind of company... I'm really disappointed. We are required to pay money to prevent spam apps but google does nothing to prevent VERY offensive and irrelevant comments. How's that for good judgment? Googlers, please read! On Nov 11, 12:09 pm, Robert Green [EMAIL PROTECTED] wrote: Agreed. Something needs to be done. I think google could allocate one employee to scanning thecommentsfor now and perhaps banning/ warning users who made inappropriatecommentsfrom commenting? On Nov 11, 8:29 am, Al Sutton [EMAIL PROTECTED] wrote: Ratings are always a highly subjective thing which is why AndAppStore hasn't included them . My 2/5 might be your 3/5 for no other reason than I've seen better elsewhere that you haven't, your 4/5 may be my 2/5 just because you like a colour scheme that I don't. You can't say people can only rate lower than 3 if they type a long comment because you'll end up with junk commentsjust to pad the space, and if you're going to say 300 characters for below 3, why not 300 characters for above 3 so people have to justify high rating to avoid attempts to bump apps to the top of the popular list. Al. Protocol-X wrote: Yes it is rediculous, There is swearing, racial slurs,commentsabout body parts, all randomly out of nowhere. Google needs to kill thecommentsfrom being displayed so that only the app creator can see them and the rating system is defunk as well because people are ratting 1;'s because they dont understand apps or there is a german online book being rated ones because people are commenting its stupud because its in german... what do u expect even the descripion is German if u cannot see this was in German dont rate it poorly.. these are all situations and issue that need to be worked out. or require atleast a 300 character comment inorder to rate lower than a 3 so people are not just rated unfairly because of immature people. On Nov 11, 5:56 am, Al Sutton [EMAIL PROTECTED] wrote: I can see this as a good idea so I've comment ratings into AndAppStore.com, sorted the displayedcommentsby ranking, and show 5 at a time. It took me a couple of hours to put the code together, so I'd hope that the guys at google can do something similar for marketplace in the next few days. Al. plusminus wrote: Commentswith bad ratings get hidden and need to be expanded by the user -- Almost no one will see them anymore +1 for Comment-Rating-System On 11 Nov., 00:10, zl25drexel [EMAIL PROTECTED] wrote: well the ratings/commentsnow are just the same as the ratings/ commentson youtube. does any1 ever reads them? On Nov 10, 4:29 pm, Andrew Burgess [EMAIL PROTECTED] wrote: On Mon, Nov 10, 2008 at 4:18 PM, Disconnect [EMAIL PROTECTED] wrote: ..or just punt out users for ToS violations. On Sat, Nov 8, 2008 at 3:24 PM, ryaninc [EMAIL PROTECTED] wrote: I wholeheartedly agree. Thecommentsare invaluable for determining how well an application works, but it's almost to the point where the commentsare worthless because there's so much spam and completely off- topic discussion. While I don't like comment moderation as a whole, there should be automatic filtering at the very least. Maybe Google could implement a filter that would deletecommentswith swear words, or even just turn them into asterisks. There really needs to be a solution to this, it's really getting bad. :-( Perhaps an implementation similar to many online retailers where users can say whether a review was helpful. Commentsthat others found helpful in making their decision could be floated to the top (or at least supply a sorting option/preference) so that it's easier to find more useful information. Similarly, a comment with enough bad feedback could be put up for some sort of review, and if deemed acceptable, the offending user could have comment privileges banned for some period of time. -- Andrew Burgess -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries.- Hide quoted text - - Show quoted text -
[android-developers] Re: Two applications respond to the same intent
I don't see anything in that manifest that could possibly cause your app to run in the acore process, so I am very confused by that. Some other comments: On Wed, Nov 26, 2008 at 12:20 PM, Thao [EMAIL PROTECTED] wrote: manifest xmlns:android=http://schemas.android.com/apk/res/android; package=www.mypackage.com Please use your own package name here. This name is incorrect in two ways: - The package name follows the java style, where top-level domain appears first (i.e. com.android.foo). - The domain needs to be one you own to prevent conflicts with other packages. The name www.mypackage.com is definitely not good in this regard. Note that this name needs to be globally unique across all android applications ever written. application android:icon=@drawable/fleches android:label=@string/app_name android:process=www.dmailerMobile.com android:icon=@drawable/fleches android:label=@string/app_name There is no need to explicitly specify a process name, unless you are going to have multiple .apks running in the same process (and then you need to use sharedUserId so they can have the same uid). Also your XML is corrupt here, since there are attributes outside of the tag. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to do a ScrollView in a LinearLayout correctly
I've found it. In my case the ScrollView as actually inside a ViewAnimator. So, I set the layout_weight for this ViewAnimator to 1 and it was solved :D. On 26 nov, 20:44, MrSnowflake [EMAIL PROTECTED] wrote: How should we correctly use a ScrollView in a LinearLayout, where I want a static LinearLayout at the bottom of the main LinearLayout (let's call it layMain, the ScrollView just scroll and the bottom layBottom). An example (it's not a valid layout structure, only for demo): [syntax=xml]LinearLayout id=main ScrollView id=scroll/ LinearLayout id=layBottom orientation=vertical gravity=bottom Button / Button / /LinearLayout /LinearLayout [/syntax] The problem is, when the view inside scroll grows bigger than the screen, either, scroll obscures layBottom, or scroll goes under layBottom, rendering the lower Views in scroll unusable. Does anyone have an idea? I tried putting it in a FrameLayout, and scroll goes underneath layBottom. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Push Notification Techniques: Discuss
On Wed, Nov 26, 2008 at 10:33 AM, G [EMAIL PROTECTED] wrote: P.S. To to folks at Google, please help us out. By not giving devs the ability to push notifications to our apps from the internet, you've seriously gimped our ability to design lots of killer apps and thereby boost the popularity of android. This has got to be something you guys have thought about before, right? I know you wanted 3rd parties to handle the exchange compatibility, but you had to consider that we'd need some sort of Push to do that. Should we wait for the next SDK update or what? You can have a look through the list archives for discussion about this; it's probably not worth having again. Summary: there was a push mechanism in early SDKs, but we weren't able to get it production quality for 1.0. It's certainly something we want to do, though I don't know when except it won't be in the next SDK update. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Push Notification Techniques: Discuss
Mark, yeah, I missed that part in the OT, but Windows Mobile uses it for it's exchange push mail. And Google probably also uses it for the GMail and Calendar. And most I always have my connection open on my phone (a HTC Wizard for the record), probably like most people with an unlimited data plan. On 26 nov, 21:56, Dianne Hackborn [EMAIL PROTECTED] wrote: On Wed, Nov 26, 2008 at 10:33 AM, G [EMAIL PROTECTED] wrote: P.S. To to folks at Google, please help us out. By not giving devs the ability to push notifications to our apps from the internet, you've seriously gimped our ability to design lots of killer apps and thereby boost the popularity of android. This has got to be something you guys have thought about before, right? I know you wanted 3rd parties to handle the exchange compatibility, but you had to consider that we'd need some sort of Push to do that. Should we wait for the next SDK update or what? You can have a look through the list archives for discussion about this; it's probably not worth having again. Summary: there was a push mechanism in early SDKs, but we weren't able to get it production quality for 1.0. It's certainly something we want to do, though I don't know when except it won't be in the next SDK update. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Getting GPS Location in Android 1.0 SDK
you're right, finally I made it work. here's the code for who might be in the same issue as me: http://groups.google.com/group/android-developers/browse_thread/thread/ad6d7ddd57c51061/13f0b10817a2d440 But is there any way I decide to turn off or on the Gps? I just need to get current location based on an event. In my point of view, I cant let the listener running, that would mean GPS will be on all the time and therefor not a good power saving thing idea. How would be a good practice on this? where can I get good information about this? thanks in advance On Nov 26, 4:59 pm, Ludwig [EMAIL PROTECTED] wrote: You always need a locationlistener in your app, otherwise the GPS updates seem not to be recorded. There have been quite a few previous posts on this which might be worth reading. Ludwig 2008/11/26 crontabpy [EMAIL PROTECTED] hi there, I'm still trying to find out why does loc = locman.getLastKnownLocation(gps); always returns null value When I run this app, I telnet to the emulator and enter geo fix 25 25 while the emulator is with my app running. I still get null values. can anyone help?? below my app source code: package com.layout.test; import android.app.Activity; import android.content.Context; import android.location.Location; import android.location.LocationManager; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.widget.TextView; public class Pruebas extends Activity { LocationManager locman = null; Location loc = null; [EMAIL PROTECTED] public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } private void initActivity() { this.locman = (LocationManager) getSystemService (Context.LOCATION_SERVICE); loc = locman.getLastKnownLocation(gps); String myString = loc.toString(); TextView text = (TextView) findViewById(R.id.lblTest); text.setText(myString); } [EMAIL PROTECTED] public boolean onCreateOptionsMenu(Menu menu) { super.onCreateOptionsMenu(menu); menu.add(0, 27, 0, GetLocation).setIcon( android.R.drawable.ic_menu_add); return true; } [EMAIL PROTECTED] public boolean onMenuItemSelected(int featureId, MenuItem item) { switch (item.getItemId()) { case 27: initActivity(); return true; } return super.onMenuItemSelected(featureId, item); } } On Nov 26, 11:33 am, crontabpy [EMAIL PROTECTED] wrote: anyone?having the same problem here On Oct 22, 12:29 pm, Matthias [EMAIL PROTECTED] wrote: Hi, no, it still doesn't work as expected. It only works when going through telnet and sending manual fixes using the geo command, but it never works via ADB and Eclipse GUI. Bummer. I run Linux though, and I have seen it working on my friend's Windows machine. Is that feature platform dependent by any chance? On Oct 16, 8:40 pm, Gautam [EMAIL PROTECTED] wrote: Thanks Ludwig for pointing me in the right direction :) I've got it working now and this is how it works for me: For getLastKnownLocation() to work, the best way is to telnet into the emulator geo fix command or DDMS controls using Eclipse. Without using one of these options above to set thelocation, the method will return null. A better way is to get the LocationAPISample and geo_sample_data fromhttp://groups.google.com/group/android-developers/files The LocationSample registers a LocationListener so we keep getting locationupdates instead of just onelocationvalue plus the .gpx file can be used to set locations or simulate a path (cool!) @Matthias Let me know if my pointers help you or we can continue working to get this working for you as well. Thanks everyone, Gautam On Oct 16, 1:36 pm, Ludwig [EMAIL PROTECTED] wrote: There has been a recent exchange over this: http://groups.google.com/group/android-developers/browse_thread/threa... Apologies if I missed a more specific problem in your question. Ludwig 2008/10/16 Matthias [EMAIL PROTECTED] anyone found a solution? I am still struggling over this... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Push Notification Techniques: Discuss
On 26 nov, 21:10, Tom Gibara [EMAIL PROTECTED] wrote: ... My preference would be for an web service that allowed 3rd party apps to 'share' the update mechanism already used in Google's applications. There are lots of difficulties in terms of the scale of that service (something that Google can obviously accommodate already) but also issues like protecting against abuse of the service by buggy or malicious apps. It does however present an extremely phone-power efficient solution since 'push' system is already running on almost all phones (if not all). I was thinking about such a standardized system too: it requires the phone to only have 1 service running for possible dozens of tasks. Actually I was hoping (since this first SDK) we could use the xmpp (GoogleChat, or what was it called) for this purpose. Tom. 2008/11/26 Mark Murphy [EMAIL PROTECTED] MrSnowflake wrote: What about a IMAP IDLE style of pushing. It too is real pushing, except your phone needs to keep the tcp connection alive, sending a NOOP every minutes or so. This requires a constant Internet connection, which keeps the GSM radio alive all the time, which drains your battery in no time flat. You could also use xmpp. This requires a constant Internet connection, which keeps the GSM radio alive all the time, which drains your battery in no time flat. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Push Notification Techniques: Discuss
On Wed, Nov 26, 2008 at 1:01 PM, MrSnowflake [EMAIL PROTECTED] wrote: I was thinking about such a standardized system too: it requires the phone to only have 1 service running for possible dozens of tasks. Actually I was hoping (since this first SDK) we could use the xmpp (GoogleChat, or what was it called) for this purpose. http://android-developers.blogspot.com/2008/08/some-information-on-apis-removed-in.html -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Comment spam in android market :(
I'd just like to remind you that by supporting the other application directory sites you can give Google a commercial prod to make the changes you want. The carriers they have agreements with get a cut of sales made through market (when they start to happen), so if you want to hit them where it hurts start helping to publicize and support app directories which offer the services you want by listing your apps on them and keeping your listings up to date. Al. http://andappstore.com/ Max Binshtok wrote: Googlers, please read! I recently posted my application and while overall the comments were very useful, there is abut 30% which are spam and one or two very offensive comments. If google can't/won't moderate the comments, WHY can't we as developers do that? Mystery to me... I'll tell you the truth, I'm really got disappointed with how the market is managed by Google. They are slow, irresponsive to developers and user needs etc... Does google become bloated can't do anything without going over 100 heads of management people kind of company... I'm really disappointed. We are required to pay money to prevent spam apps but google does nothing to prevent VERY offensive and irrelevant comments. How's that for good judgment? Googlers, please read! On Nov 11, 12:09 pm, Robert Green [EMAIL PROTECTED] wrote: Agreed. Something needs to be done. I think google could allocate one employee to scanning thecommentsfor now and perhaps banning/ warning users who made inappropriatecommentsfrom commenting? On Nov 11, 8:29 am, Al Sutton [EMAIL PROTECTED] wrote: Ratings are always a highly subjective thing which is why AndAppStore hasn't included them . My 2/5 might be your 3/5 for no other reason than I've seen better elsewhere that you haven't, your 4/5 may be my 2/5 just because you like a colour scheme that I don't. You can't say people can only rate lower than 3 if they type a long comment because you'll end up with junk commentsjust to pad the space, and if you're going to say 300 characters for below 3, why not 300 characters for above 3 so people have to justify high rating to avoid attempts to bump apps to the top of the popular list. Al. Protocol-X wrote: Yes it is rediculous, There is swearing, racial slurs,commentsabout body parts, all randomly out of nowhere. Google needs to kill thecommentsfrom being displayed so that only the app creator can see them and the rating system is defunk as well because people are ratting 1;'s because they dont understand apps or there is a german online book being rated ones because people are commenting its stupud because its in german... what do u expect even the descripion is German if u cannot see this was in German dont rate it poorly.. these are all situations and issue that need to be worked out. or require atleast a 300 character comment inorder to rate lower than a 3 so people are not just rated unfairly because of immature people. On Nov 11, 5:56 am, Al Sutton [EMAIL PROTECTED] wrote: I can see this as a good idea so I've comment ratings into AndAppStore.com, sorted the displayedcommentsby ranking, and show 5 at a time. It took me a couple of hours to put the code together, so I'd hope that the guys at google can do something similar for marketplace in the next few days. Al. plusminus wrote: Commentswith bad ratings get hidden and need to be expanded by the user -- Almost no one will see them anymore +1 for Comment-Rating-System On 11 Nov., 00:10, zl25drexel [EMAIL PROTECTED] wrote: well the ratings/commentsnow are just the same as the ratings/ commentson youtube. does any1 ever reads them? On Nov 10, 4:29 pm, Andrew Burgess [EMAIL PROTECTED] wrote: On Mon, Nov 10, 2008 at 4:18 PM, Disconnect [EMAIL PROTECTED] wrote: ..or just punt out users for ToS violations. On Sat, Nov 8, 2008 at 3:24 PM, ryaninc [EMAIL PROTECTED] wrote: I wholeheartedly agree. Thecommentsare invaluable for determining how well an application works, but it's almost to the point where the commentsare worthless because there's so much spam and completely off- topic discussion. While I don't like comment moderation as a whole, there should be automatic filtering at the very least. Maybe Google could implement a filter that would deletecommentswith swear words, or even just turn them into asterisks. There really needs to be a solution to this, it's really getting bad. :-( Perhaps an implementation similar to many online retailers where users can say whether a review was helpful. Commentsthat others found helpful in making their decision could be floated to the top (or at least supply a sorting
[android-developers] Re: Getting GPS Location in Android 1.0 SDK
I don't think that having a locationlistener would switch on the GPS, but I may be mistaken. On Nov 26, 9:59 pm, crontabpy [EMAIL PROTECTED] wrote: you're right, finally I made it work. here's the code for who might be in the same issue as me:http://groups.google.com/group/android-developers/browse_thread/threa... But is there any way I decide to turn off or on the Gps? I just need to get current location based on an event. In my point of view, I cant let the listener running, that would mean GPS will be on all the time and therefor not a good power saving thing idea. How would be a good practice on this? where can I get good information about this? thanks in advance On Nov 26, 4:59 pm, Ludwig [EMAIL PROTECTED] wrote: You always need a locationlistener in your app, otherwise the GPS updates seem not to be recorded. There have been quite a few previous posts on this which might be worth reading. Ludwig 2008/11/26 crontabpy [EMAIL PROTECTED] hi there, I'm still trying to find out why does loc = locman.getLastKnownLocation(gps); always returns null value When I run this app, I telnet to the emulator and enter geo fix 25 25 while the emulator is with my app running. I still get null values. can anyone help?? below my app source code: package com.layout.test; import android.app.Activity; import android.content.Context; import android.location.Location; import android.location.LocationManager; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.widget.TextView; public class Pruebas extends Activity { LocationManager locman = null; Location loc = null; [EMAIL PROTECTED] public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } private void initActivity() { this.locman = (LocationManager) getSystemService (Context.LOCATION_SERVICE); loc = locman.getLastKnownLocation(gps); String myString = loc.toString(); TextView text = (TextView) findViewById(R.id.lblTest); text.setText(myString); } [EMAIL PROTECTED] public boolean onCreateOptionsMenu(Menu menu) { super.onCreateOptionsMenu(menu); menu.add(0, 27, 0, GetLocation).setIcon( android.R.drawable.ic_menu_add); return true; } [EMAIL PROTECTED] public boolean onMenuItemSelected(int featureId, MenuItem item) { switch (item.getItemId()) { case 27: initActivity(); return true; } return super.onMenuItemSelected(featureId, item); } } On Nov 26, 11:33 am, crontabpy [EMAIL PROTECTED] wrote: anyone?having the same problem here On Oct 22, 12:29 pm, Matthias [EMAIL PROTECTED] wrote: Hi, no, it still doesn't work as expected. It only works when going through telnet and sending manual fixes using the geo command, but it never works via ADB and Eclipse GUI. Bummer. I run Linux though, and I have seen it working on my friend's Windows machine. Is that feature platform dependent by any chance? On Oct 16, 8:40 pm, Gautam [EMAIL PROTECTED] wrote: Thanks Ludwig for pointing me in the right direction :) I've got it working now and this is how it works for me: For getLastKnownLocation() to work, the best way is to telnet into the emulator geo fix command or DDMS controls using Eclipse. Without using one of these options above to set thelocation, the method will return null. A better way is to get the LocationAPISample and geo_sample_data fromhttp://groups.google.com/group/android-developers/files The LocationSample registers a LocationListener so we keep getting locationupdates instead of just onelocationvalue plus the .gpx file can be used to set locations or simulate a path (cool!) @Matthias Let me know if my pointers help you or we can continue working to get this working for you as well. Thanks everyone, Gautam On Oct 16, 1:36 pm, Ludwig [EMAIL PROTECTED] wrote: There has been a recent exchange over this: http://groups.google.com/group/android-developers/browse_thread/threa... Apologies if I missed a more specific problem in your question. Ludwig 2008/10/16 Matthias [EMAIL PROTECTED] anyone found a solution? I am still struggling over this... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post
[android-developers] initializing chosen item for ListView.CHOICE_MODE_SINGLE
I would like to show previously chosen item in the List10 of APIDemo app. i.e. What method do I call to programmaticly choose a single item in a single choice (CHOICE_MODE_SINGLE) listview? Code from APIDemo: public class List10 extends ListActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setListAdapter(new ArrayAdapterString(this, android.R.layout.simple_list_item_single_choice, GENRES)); final ListView listView = getListView(); listView.setItemsCanFocus(false); listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE); } private static final String[] GENRES = new String[] { Action, Adventure, Animation, Children, Comedy, Documentary, Drama, Foreign, History, Independent, Romance, Sci-Fi, Television, Thriller }; } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Push Notification Techniques: Discuss
And the radio is necessarily always on. Yeah, but... I was under the impression that, in normal operating mode, the GSM radio is in a low-power state. That's why you have talk time versus standby time in mobile device battery life specs -- when a call begins, the radio stays in a high-power-draw state until the call ends. So, the question is: with an open-but-quiet Internet connection on a carrier data network, how much power draw is there from the GSM radio? There's also the scenario of the device being on WiFi instead of GSM, but that's probably not as frequent. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] MediaPlayer seek on startup
I'm trying to play streaming music. The user has previously requested that the stream start a certain way into the stream. How do I do this? What I'm finding is that if I do: mediaplayer.setDataSource(...); mediaplayer.prepare(); mediaplayer.seekTo(...); ...then the seek happens *after* the initial buffer is read, which of course is a waste [*]. But if I do: mediaplayer.setDataSource(...); mediaplayer.seekTo(...); mediaplayer.prepare(); ...then of course I get an IllegalStateException because the MediaPlayer hasn't been prepared yet! Has anyone managed to make anything like this work? [*] Actually, of course, I'm using prepareAsync(). In fact, what I'm observing is that calling seekTo() from the onPrepared() callback tends to confuse MediaPlayer and it hands me a -38 error and I have to reset and start again. It seems to only want to seek after the playback has had a chance to settle for a few moments. -- ┌─── dg@cowlark.com ─ http://www.cowlark.com ─ │ │ ⍎'⎕',∊N⍴⊂S←'←⎕←(3=T)⋎M⋏2=T←⊃+/(V⌽⊂M),(V⊝M),(V,⌽V)⌽(V,V←1⎺1)⊝⊂M)' │ --- Conway's Game Of Life, in one line of APL signature.asc Description: OpenPGP digital signature
[android-developers] Re: Push Notification Techniques: Discuss
If I open a datagram socket to listen on a particular UDP port and leave it open but don't send anything, does that keep the radio on? If a listening socket doesn't keep the radio on, then an application could send a couple packets to register it's IP and port and then shut up and wait for incoming requests. Thoughts? On Wed, Nov 26, 2008 at 5:43 PM, Mark Murphy [EMAIL PROTECTED] wrote: And the radio is necessarily always on. Yeah, but... I was under the impression that, in normal operating mode, the GSM radio is in a low-power state. That's why you have talk time versus standby time in mobile device battery life specs -- when a call begins, the radio stays in a high-power-draw state until the call ends. So, the question is: with an open-but-quiet Internet connection on a carrier data network, how much power draw is there from the GSM radio? There's also the scenario of the device being on WiFi instead of GSM, but that's probably not as frequent. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Push Notification Techniques: Discuss
If I open a datagram socket to listen on a particular UDP port and leave it open but don't send anything, does that keep the radio on? If a listening socket doesn't keep the radio on, then an application could send a couple packets to register it's IP and port and then shut up and wait for incoming requests. Thoughts? I doubt there's a unique IP address per phone on a carrier data network -- it feels like too many addresses would be needed. It's probably NATted or the equivalent. Hence, I'm not convinced a phone can serve as a server (TCP or UDP) without help, a la P2P NAT-traversal systems. But, then again, I've certainly been wrong before... -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Push Notification Techniques: Discuss
So, the question is: with an open-but-quiet Internet connection on a carrier data network, how much power draw is there from the GSM radio? I'm probably beyond the limits of my understanding here, and definitely well beyond the limits of my competency :) But that won't stop me from choosing to extrapolate from the repeated comments by Google engineers to the effect that phones are designed to conserve power at any opportunity. On that basis, I anticipate that radio will go into a lower power state any opportunity it can; including when a quiet network connection is present. This seems entirely plausible given the packet based nature of the network. Tom. 2008/11/26 Mark Murphy [EMAIL PROTECTED] And the radio is necessarily always on. Yeah, but... I was under the impression that, in normal operating mode, the GSM radio is in a low-power state. That's why you have talk time versus standby time in mobile device battery life specs -- when a call begins, the radio stays in a high-power-draw state until the call ends. So, the question is: with an open-but-quiet Internet connection on a carrier data network, how much power draw is there from the GSM radio? There's also the scenario of the device being on WiFi instead of GSM, but that's probably not as frequent. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: MediaPlayer seek on startup
You must always call prepare() before seekTo(). The player engine needs to read the first part of the stream to identify the stream type and required codecs and read the content index (if it exists). On Nov 26, 2:55 pm, David Given [EMAIL PROTECTED] wrote: I'm trying to play streaming music. The user has previously requested that the stream start a certain way into the stream. How do I do this? What I'm finding is that if I do: mediaplayer.setDataSource(...); mediaplayer.prepare(); mediaplayer.seekTo(...); ...then the seek happens *after* the initial buffer is read, which of course is a waste [*]. But if I do: mediaplayer.setDataSource(...); mediaplayer.seekTo(...); mediaplayer.prepare(); ...then of course I get an IllegalStateException because the MediaPlayer hasn't been prepared yet! Has anyone managed to make anything like this work? [*] Actually, of course, I'm using prepareAsync(). In fact, what I'm observing is that calling seekTo() from the onPrepared() callback tends to confuse MediaPlayer and it hands me a -38 error and I have to reset and start again. It seems to only want to seek after the playback has had a chance to settle for a few moments. -- ┌─── dg@cowlark.com ─http://www.cowlark.com─ │ │ ⍎'⎕',∊N⍴⊂S←'←⎕←(3=T)⋎M⋏2=T←⊃+/(V⌽⊂M),(V⊝M),(V,⌽V)⌽(V,V←1⎺1)⊝⊂M)' │ --- Conway's Game Of Life, in one line of APL signature.asc 1KViewDownload --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] 回复:[android-devel opers] Re: how to access file system
Thank you for your reply. Do you mean we can access whole file system (e.g. /root/, /, /usr/lib) without permission from user? In my understanding, the accessible file system should be the Java file system which is not the real file system, and it might be a part of real file system. Image we are going to implement a file browser which can add/del /copy any file in the real file system. (e.g. /) Is this possible? Correct me if my understanding was wrong. Thank you. - 原始邮件 - 发件人:Christinenbsp;[EMAIL PROTECTED] 收件人:Androidnbsp;Developersnbsp;android-developers@googlegroups.com 主题:[android-developers]nbsp;Re:nbsp;hownbsp;tonbsp;accessnbsp;filenbsp;system 日期:2008-11-27 02:18:41 Whatnbsp;donbsp;younbsp;meannbsp;bynbsp;accessnbsp;thenbsp;filenbsp;system?nbsp;Younbsp;cannbsp;readnbsp;andnbsp;write filesnbsp;asnbsp;younbsp;wouldnbsp;innbsp;anynbsp;Javanbsp;program. Onnbsp;Novnbsp;26,nbsp;6:58nbsp;am,nbsp;[EMAIL PROTECTED]nbsp;wrote: nbsp;Hi, nbsp;Dosenbsp;anybodynbsp;knownbsp;hownbsp;tonbsp;accessnbsp;filenbsp;system?nbsp;Whatnbsp;the nbsp;meaningnbsp;ofnbsp;thenbsp;permissionnbsp;tonbsp;accessnbsp;thenbsp;cachenbsp;filenbsp;system? nbsp;Isnbsp;thenbsp;cachenbsp;filenbsp;systemnbsp;anbsp;filenbsp;systemnbsp;ofnbsp;virtualnbsp;machine? nbsp;BW, nbsp;DK nbsp;2008.11.26 nbsp;--- nbsp;新浪空间与朋友开心分享网络新生活!(http://space.sina.com.cn/) --- 新浪空间——与朋友开心分享网络新生活!(http://space.sina.com.cn/ ) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: AIDL in same process
Yes, the request comes from Market, other company want to use our services, but for some devices, user may not install our application at all. On Nov 27, 1:49 am, Dave Sparks [EMAIL PROTECTED] wrote: IPC binder calls within the same process are treated as local C++ calls, i.e. they occur synchronously on the same thread. I'm not sure what you are asking in the second part of your question. Is this a request for dependencies in the Market, e.g. Application A requires Application B to be installed? On Nov 26, 4:06 am, Louis [EMAIL PROTECTED] wrote: Hi, All Our team want build some services which provided to 3rd party, and we are trying to design the interfaces which using the AIDL, and also, we want to build our own application base on this services also, and run in the same process, but is it still need using IPC to transfer the data info, that's sounds too heavy for one process, any suggestions for it? And also, if we want public to 3rd part, is there anyway to install our services and their application together? (Not public our codes to them). Welcome any help for that. Best regards, Louis. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 Camera Preview Filter Using Camera.PreviewCallback.onPreviewFrame
Hello Blindfold, Thanks for your help. I solved the user interface problems I was experiencing by using a separate thread to do my image processing. I'm still using an ImageView, and without problems. Perhaps I will try a Canvas in a SurfaceHolder later in this exercise to compare speeds. MORE ON THE CAMERA LIVE PREVIEW FILTERED DISPLAY CAPABILITY As you know, I want to display live camera data through a custom filter. I got most of the way through the YCbCr_422_SP data buffer returned to Android's Camera.PreviewCallback onCameraFrame() callback function, and now I am looking for help decyphering the U, V portion of the buffer. I verified that the first (width*height) bytes are simple Y luminance values that can be displayed (via Bitmap and ImageView) to make a viable gray-scale image. The total number of bytes are (width * height * 3 / 2). The remaining 1/2 image bytes are clearly used to store U, V (Cb, Cr) data. Therefore, there are 1/4 image bytes for each U, V component (i.e. each U, V component is used for 4 pixels of the image). This looks like 411 or 420 data, not 422, but we have bigger fish to fry. I cannot determine if the U V data is aligned adjacently, in alternating rows, or in squares as described in this Wikipedia graphical description: http://en.wikipedia.org/wiki/Image:Yuv420.svg. Once I finally determine the structure of the U, V data, I have several equations to convert from YUV to RGB and I have tried many ways of combining the UV data with the luminance data of the first 2/3 of the buffer to no avail. So far I can only display mono-chrome. If you or others on this list can decode the Android YCbCr_422_SP data, please post the solution as soon as possible. Your efforts and generosity are greatly appreciated. I am convinced that representatives from Google/Android and others monitoring this list know how to do this. Please share the information. It is crutial to our project. I do not care about the Emulator and it's different encoding. I realize that Google is probably waiting to implement a unified solution and share it through an API update, but we cannot wait. - Thank you, David Manpearl On Nov 26, 10:23 am, blindfold [EMAIL PROTECTED] wrote: Hi David, I can't seem to make coexist: SurfaceHolder for the camera ImageView for the filtered Bitmap to display. ... Do you know why I can't make the Camera's Surface and an ImageView Bitmap simultaneous members of the same active ViewGroup? I do not use ImageView myself so I cannot really judge your problem. I draw my filtered Bitmap to a Canvas in a SurfaceView. No ImageView anywhere. Regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Database storage
*bump* On 11 Nov., 08:28, g1ster [EMAIL PROTECTED] wrote: Is there a way to store a SQLitedatabaseinstance to an external storage like a SD card? Mydatabaseis growing and don't want it to take up all the internal storage. 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: Database storage
I receive an exception that says like Filename contains Pathseparators I'm using /sdcard/folder/file with SQLiteOpenHelper. Thanks in advance. Best Regards, plusminus On 26 Nov., 21:41, Dianne Hackborn [EMAIL PROTECTED] wrote: Uh, you can just create it with a path to a file on the SD card. On Wed, Nov 26, 2008 at 6:30 PM, plusminus [EMAIL PROTECTED] wrote: *bump* On 11 Nov., 08:28, g1ster [EMAIL PROTECTED] wrote: Is there a way to store a SQLitedatabaseinstance to an external storage like a SD card? Mydatabaseis growing and don't want it to take up all the internal storage. Thanks!!! -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: SQLiteDatabase on SDCard possible?
Got it, seems like SQLiteOpenHelper works only with dbs in the data- folder of the app. This does it: SQLiteDatabase.openDatabase(/sdcard/my.db, null, SQLiteDatabase.CREATE_IF_NECESSARY); On 26 Nov., 21:53, plusminus [EMAIL PROTECTED] wrote: Changed topic to expressive title. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] Trouble with BitmapFactory.decodeResource
I use this line: mIcon = BitmapFactory.decodeResource(context.getResources(), R.drawable.icon); after which mIcon is not null, but its width and height are both -1 and nothing is drawn. Is there something obvious that I'm missing? Here's my call to draw it: canvas.drawBitmap(mIcon, null, new Rect(loc.x-16, loc.y+16, loc.x+16, loc.y-16), mPaint); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] Problem with the sqlite database
Hi AndroidDev, 11-24 19:27:38.287: ERROR/Database(5891): Leak found 11-24 19:27:38.287: ERROR/Database(5891): java.lang.IllegalStateException: /data/data/com.vista.examples.List/databases/ev_data SQLiteDatabase created and never closed i got the above error .how to resolve the problem.? Also ,please check my code below to create the database and accessign the database. [/code]public void onCreate(Bundle icicle) { super.onCreate(icicle); initDB(this); //mOpenHelper=new DatabaseHelper(this); itla = new IconifiedTextListAdapter(this); showEventList(); } public void initDB(Context ctx) { db = ctx.openOrCreateDatabase(EVENT_DATA, Context.MODE_WORLD_WRITEABLE,null); db.execSQL(CREATE TABLE IF NOT EXISTS + EVENT_DATA + (EventType VARCHAR,Description VARCHAR, Image INTEGER,Msg_Template TEXT);); } public void showEventList() { SQLiteDatabase vDB=null; try{ vDB=SQLiteDatabase.openDatabase(getDatabasePath(EVENT_DATA).toString(), null,SQLiteDatabase.OPEN_READONLY ); }catch(SQLiteException sqe){ sqe.printStackTrace(); } Cursor cursor=vDB.query(EVENT_DATA, new String[]{EventType,Image,Description}, null, null, null, null, null); cursor.moveToFirst(); for(int position=0;(position!=cursor.getCount()) cursor.getCount()!=0;position++){ String text=cursor.getString(0); int im=cursor.getInt(1); itla.addItem(new IconifiedText(text, getResources().getDrawable(im))); cursor.moveToNext(); } setListAdapter(itla); [code] I am using getDatabasePath to connect to db Is this is the proper way to create as well as accessing the database? Please suggest... Regards Bharat. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] Problem with the sqlite database
Hi AndroidDev, Please let me know whether i can use SQLiteDatabase.openDatabase(getDatabasePath(EVENT_DATA).toString(), null,SQLiteDatabase.OPEN_READONLY ); to get the reference to the database Is this is the correct way to get reference to database? Please help guys its urgent. Regards Bharat. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 with ContentResolver
Any luck with this one? I realy need it to be an MP3 file On Nov 13, 12:53 am, Thustle [EMAIL PROTECTED] wrote: Thanks for the workaround Ernest. I'll try that for now and hope that a true solution presents itself soon. Dave On 12 Nov, 19:57, Ernesto [EMAIL PROTECTED] wrote: Hello Dave, I haven't found the solution yet, so I store the mp3s as video, using the MediaStore.Video URI. As I see the only difference, that the mp3s stored as 3gp, but works perfectly. Br, Ernest On Nov 11, 12:29 pm, Thustle [EMAIL PROTECTED] wrote: I am getting exactly the same problem. I've added TITLE,TRACK,MIME_TYPE,SIZE,ARTIST,DATE_ADDED and DISPLAY_NAME to the list of content values when trying to create the record, but it still returns null and I still get the android.database.sqlite.SQLiteConstraintException:errorcode19 error. Ernest: Did you manage to find out what was wrong? Can anyone out there help? Many thanks, Dave --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] SIM Application Toolkit functionality supported by Android Application
Hi All, We wish to know more about the SIM Application ToolKit functionality supported by Android Application in present and coming release. Present Release (1.0) has minimum implementation of Supplementary services, SMS, DTMF and event list proactive commands as per the Specification. We are interested to know to what level Android SIM Application ToolKit will support in in coming releases for these commands. Regards, Prabhu. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] OnScreen Keyboard
Hi, I implemented an OnScreen Keyboard in the Android framework. It works with all applications and it's possible to answer calls :) I already uploaded the changes to Android repository, here ( http://review.source.android.com/4801) and here ( http://review.source.android.com/3087). I've tried to upload all the changes at the same time, but something went wrong :) I don't expect the changes to be merged in the android official code because they are developing their own IMF and also because my implementation is very simplistic, it's just to be able to use Android until the IMF is ready. I uploaded some screenshots here http://picasaweb.google.pt/rui.castro/AndroidOnScreenKeyboard# Rui Castro --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] How to enable screen transition when launching Activity
This question was asked before http://groups.google.com/group/android-developers/browse_thread/thread/d5baa0831af53d80?q=android+G1+screen+transition#8cb9752ead82d2eb but I'll ask it again :-) On earlier Android SDK, when you are in home screen, and you launch an app (like Contacts), there's an iphone-like transition effect, where the new app is zoomed out. On G1 phone, this is disabled (probably due to poor performance). Is there anyway to turn it back on? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] Stock Ticker ?
Howdy all. I need the classic horizontal scrolling ticker for an app I am doing. I see the Ticker class was removed from the old SDK. Tried to use TextSwitcher and a TranslateAnimation. Almost works, but even though the TextViews inside the TextSwitcher hold some really long text just fine [1], when translated off stage by the animation, there is only enough bitmap beneath the view to cover the width of the view. So the long text is clipped to the view width. Is there a workaround? Or shall I drop down a few abstraction levels and roll my own class? Thanks -- Ward 1. The TextViews have elipsize=none, scrollHorizontally=true and singleLine=true set for this. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] Arabic ((( farsi ))) on android
hello everyone I need some help please!!! can any one make application to support and reading Arabic on android i really need to have Arabic or Farsi on my android ((( to use on my website and reading BBC , and send sms ))) if anyone can help please send this application to android market to we can download it thanks john --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] WAV (GSM 6.1) Support?
Is there anyway to get .wav(GSM 6.1) audio files to play on Android? Or is there anyway to get this feature added in later updates? I get my voicemails for work emailed to me in this format and cannot change the sending format. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] OSGi Felix Application in Android 1.0 SDK
Hello: I have some projects about porting OSGi in Android. I had found out some resource OSGiAndroid project in eclipsecon2008. Following is svn respository site: * http://eclipsesvn.cloudsmith.com/eclipsecon2008/com.cloudsmith.android/trunk/com.cloudsmith.android.felix/ *http://mail.google.com/mail/?account_id=skypu3%40gmail.com#inbox/11dda13e7876c56b The OSGiAndroid project can work well with m5-rc15 Android SDK, but I want to let this project to operate in T-Mobile G1 Phone. For this reason, I had surveyed Android API Differences site, and changing codes to Android 1.0 version. But I meeting some problems, I listed in following points: 1. When program performs activity.setContentView(getContentView()); statement in TitleBarTabView.java , the android emulator show some exceptions to me. 2. I dont know why the ApplicationListAdapter didnt show any view in Android emulator. 3. getPackagePath can be replaced with getPackageCodePath in dalvik.system.PathClassLoader API? In recently, the apache felix organization release felix 1.4 in Apache Felix and Google Android tutorial. http://felix.apache.org/site/apache-felix-and-google-android.html In addition, I can use this tutorial to start OSGi framework in adb command line. In last, following download site is my modified project, please help tell me what error codes in project. I will deeply appreciate your help!! http://134.208.2.131/data/*com.cloudsmith.android.felix_v2.rarhttp://134.208.2.131/data/com.cloudsmith.android.felix_v2.rar * ** Best Regards. Dick Chang --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] How to install APK file on Android handset
hi all, I just see a very promising app on androidfreeware.org which is call Xlive, it would be exactly what i need in order to use proper e-mail application on market place. But as this app can't be found on Android market, i downloaded it via the browser of my handset. But when i clicked on it, it doesn't install any application (it looks like it opened a compressed file with all sources codes inside). For information, i duly enabled the function allow install of non market application does anyone can tell me how to install an app downloaded outside Android Market? thanks for your help wizzz --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] Need Help
I a real noob to these things but if ne one can help me it will be appriciated if i have a phone with windows mobile or some other platform how do i upgrade [or ne thing to that effect] to androd can i just down load a installation file or something it reall import for me to know please help feel free to email me at [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] android.provider.CallLog.Calls
Hello, I'm in the planning stages of writing an application that will use the data stored in the CallLog.Calls class. I was wondering if anybody could tell me how much data it can store? I ask, because on the information page for said class (http://code.google.com/android/ reference/android/provider/CallLog.Calls.html) it says information on RECENT calls. So I assume that either means it will hold a certain amount of call information or hold call information up until a certain amount of time. Any help would be much appreciated, many thanks Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Streaming RTSP directly by suing MediaPlayer
Thanks for this precision. Does this issue on emulator planned to be solved soon? I am trying to develop an application around video streaming. On Nov 25, 10:58 pm, Dave Sparks [EMAIL PROTECTED] wrote: The media framework does support RTSP with RTP payloads. The OpenCore code includes an RTSP/RTP client built on sockets that will handle buffering and transport controls. It does not work in the emulator environment due to some firewall issues in the emulator network layer. On Nov 24, 12:30 pm, Jona [EMAIL PROTECTED] wrote: Question: Does MediaPlayer support the following code. mp.setDataSource(rtsp://someRTSPStremingSite.com); Does it take the path of the RTSP stream and the Media Player handles the connection etc...? how would this work? Thanks! Jona --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: WAV (GSM 6.1) Support?
There is no support for GSM 6.1 and no plans to support it at this time. On Nov 26, 9:14 am, Wiggles [EMAIL PROTECTED] wrote: Is there anyway to get .wav(GSM 6.1) audio files to play on Android? Or is there anyway to get this feature added in later updates? I get my voicemails for work emailed to me in this format and cannot change the sending format. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 -~--~~~~--~~--~--~---