[android-developers] Re: " IWindowManager Not Available "
If I want to use those thing into my application. How can I use. Is there any way to do that. I want to create a object for the Iwindowmanager class. Ho can I do this... On Mar 19, 12:38 am, Dianne Hackborn wrote: > Those are not part of the SDK. > > On Wed, Mar 18, 2009 at 6:53 AM, Rajendrakumar C > wrote: > > > > > > > Hi All, > > > I downloaded the Android Source to my machine, I have seen the source > > code. In that I found Iwindowmanager, I activity manager and etc I > > managers... > > > But when I try to use those things in my application. Those classes > > and even the packages also not avaiable. > > > Can any one know how to import those classes into our > > applications. > > > Best Regards, > > > Rajendra > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support. All such questions should be posted on public > forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Hidden Contacts
To answer my own post... I looked at the Contacts source code, and this is essentially what they do: The main "My contacts" group is called Contacts.Groups.GROUP_MY_CONTACTS. To query all members in that group, simply use this URI: Uri uri = Uri.parse("content://contacts/groups/system_id/" + Contacts.Groups.GROUP_MY_CONTACTS + "/members"); Works like a charm for me. I can imagine that at least part of this URL is contained in the Contacts.Groups.CONTENT_* strings, so it would be cleaner to use those. -Mike On Mar 18, 11:39 pm, EboMike wrote: > I have the same problem, but I need a better solution. I'm doing a > managed query on thecontactsand am already filtering out entries > that do not have a DISPLAY_NAME, but I still get all the suggestedcontacts. I > need to deal withcontactsthat have a name but no phone > number or email address. > > I guess the proper way would be to check in which group a contact is, > but what's the quickest way to do that in a simple managed query? And > what group is the official "Contacts" group? > > I could look at the source for thecontactsapp, but maybe there is > "an official" solution that someone could post here real quick. > > On Feb 14, 1:51 pm, Chili wrote: > > > Hey Miguel, > > > I was having the same problem. It's not a perfect solution but you can > > check whether the contact has a name and/or phone number and if not > > add then don't add them to your list. Just loop through all the items > > and add items to a List<> and then use the List<> to populate you > > listview. > > > Chili > > > On Jan 27, 5:06 am, Miguel Paraz wrote: > > > > On Dec 9 2008, 8:22 am, Paul wrote: > > > > > bklik's question seemed to indicate that he was dumping the contact > > > > list programactically via his own activity. I was just wondering if > > > > thecontactsAPI was returning allcontactsand the activity needed to > > > > do the filtering. > > > > I have the same situation. > > > I use the contact list content provider to let the user select an > > > email address. > > > The SuggestedContactsare irrelevant to my application and just slow > > > down the loading process. > > > > I looked at the SQLite db using the sqlite command line, but couldn't > > > find how to differentiate thesecontacts. > > > Is there a way? > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] When another activity is called from main activity, The calling activity get destroyed?
When another activity is started from main activity, The main activity get destroyed and created when returned back from second Activity OR main activity remains in pause state till second activity finish (), onSart or onResume from when returned back from second activity? which one these case does happen in Android application? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how to implement scrolling text?
Set the focus on the buttons to make them scrolling. not selecting the text, but use the UP and Down navigator button of the simulator to change the focus ... On 3月10日, 下午1时55分, soniya wrote: > I am talking about this API Demo: API Demos -> Text -> Marquee > > I tried selecting the textbut it does not move...not even a > millimeter :( > > Am I missing something?? > > On Mar 4, 9:28 pm, Romain Guy wrote: > > > The marquee starts when a TextView gets focused/selected. It is used > > throughout the UI in 1.1, for instance in the list of all apps in > > Home. > > > On Tue, Mar 3, 2009 at 11:00 PM, soniya wrote: > > > > I have downloaded the latest SDK i.e. Android 1.1 but I am not able to > > > run the API demo for Marquee. > > > It does not work The text remain static. > > > Do I need to do any setting or something to view that? > > > > On Jan 31, 1:51 am, Romain Guy wrote: > > >> Note that cupcake will have themarqueefeature on TextView. > > > >> On Fri, Jan 30, 2009 at 12:31 PM, Zach Hobbs > > >> wrote: > > > >> > You can create a custom singleLine TextView and animate it by creating > > >> > a loop > > >> > and calling scrollBy(x,y) incrementing/decrementing the x value. > > > >> > -Zach > > > >> > On Thursday 29 January 2009 7:47:49 pm Rodrigo wrote: > > >> >> HI, > > > >> >> What is the best way to implement scrolling text (with behavior > > >> >> similar to that of HTML tag 'marquee')?? > > > >> >> I've been trying to do this using TextViews + Animations but I'm > > >> >> having troubles primarily because of sizing issues. If my text is long > > >> >> enough that it exceeds the screen width, it won't be drawn completely > > >> >> (it's size will be chopped at screen width). Thus, when I animate it > > >> >> from right to left, only a part of the text will be displayed. This > > >> >> happens if I allow a maximum of 1 line in my TextView, because > > >> >> otherwise it makes the TextView have multiple lines. If I make it > > >> >> horizontally scrollable, the same 'chopped-off' behavior is seen. > > > >> >> I think this happens because the TextView's parent imposes some > > >> >> restrictions on its size. Is there a way to bypass these restrictions > > >> >> so that the TextView is 'drawn' even if parts of it will be off- > > >> >> screen? > > > >> >> If that's not possible, what's an alternative way of implementing this > > >> >> behavior? > > > >> >> Thanks! > > > >> > -- > > > >> > Zach Hobbs > > >> > HelloAndroid.com > > >> > Android OS news, tutorials, downloads > > > >> -- > > >> Romain Guy > > >> Android framework engineer > > >> romain...@android.com > > > >> Note: please don't send private questions to me, as I don't have time > > >> to provide private support. All such questions should be posted on > > >> public forums, where I and others can see and answer them > > > -- > > Romain Guy > > Android framework engineer > > romain...@android.com > > > Note: please don't send private questions to me, as I don't have time > > to provide private support. All such questions should be posted on > > public forums, where I and others can see and answer them > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Android Developer Challenge II Cancelled?
This ( http://code.google.com/android/adc.html ) gives a 404 which is weird for a google site. Is this challenge cancelled? I hope not.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Hidden Contacts
I have the same problem, but I need a better solution. I'm doing a managed query on the contacts and am already filtering out entries that do not have a DISPLAY_NAME, but I still get all the suggested contacts. I need to deal with contacts that have a name but no phone number or email address. I guess the proper way would be to check in which group a contact is, but what's the quickest way to do that in a simple managed query? And what group is the official "Contacts" group? I could look at the source for the contacts app, but maybe there is "an official" solution that someone could post here real quick. On Feb 14, 1:51 pm, Chili wrote: > Hey Miguel, > > I was having the same problem. It's not a perfect solution but you can > check whether the contact has a name and/or phone number and if not > add then don't add them to your list. Just loop through all the items > and add items to a List<> and then use the List<> to populate you > listview. > > Chili > > On Jan 27, 5:06 am, Miguel Paraz wrote: > > > On Dec 9 2008, 8:22 am, Paul wrote: > > > > bklik's question seemed to indicate that he was dumping the contact > > > list programactically via his own activity. I was just wondering if > > > thecontactsAPI was returning allcontactsand the activity needed to > > > do the filtering. > > > I have the same situation. > > I use the contact list content provider to let the user select an > > email address. > > The SuggestedContactsare irrelevant to my application and just slow > > down the loading process. > > > I looked at the SQLite db using the sqlite command line, but couldn't > > find how to differentiate thesecontacts. > > Is there a way? > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to set color to String?
I have the String, how can I set color the text in String? For example: String S1; S1 ="Name: " + "\t" + this.Name1 + "\n" + "Country/Area: " + "\t" + this.Country1 + "\n" + "Department: " + "\t" + this.Department + "\n" + "Title: " + "\t" + this.Title + "\n"; I want set color: "Name, Country, ... " are RED. I don't know in Android can do it? Thanks, --Alex. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how to implement scrolling text?
The TextView doesn't have to be focused. You can also use setSelected(true). -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how to implement scrolling text?
I implemented a scrollable TextView, named ScrollTextView before Android 1.1R1 with the marquee feature for TextView. It used android.widget.Scroller and attached TextPaint. Here's the source code: http://bear-polka.blogspot.com/2009/01/scrolltextview-scrolling-textview-for.html It's glad to see that marquee is supported. However you could not make the TextView scrolling if you only set these 2 attributes, android:ellipsize and android:marqueeRepeatLimit. According to my testing, at least the following 3 attributes shall be set: android:ellipsize="marquee" android:focusable="true" android:singleLine="true" And the TextView shall be focused while running. Moreover, I found 2 limitations in current marquee implementation: 1. Never scroll if the TextView does not get the focuse; 2. The scrolling is odd because the round of scrolling begins from the left side while end at the right side. It looks like the animation is reset. So far, I think my implementation of ScrollTextView is better for the marquee feature. :) On 3月10日, 下午1时55分, soniya wrote: > I am talking about this API Demo: API Demos -> Text -> Marquee > > I tried selecting the textbut it does not move...not even a > millimeter :( > > Am I missing something?? > > On Mar 4, 9:28 pm, Romain Guy wrote: > > > The marquee starts when a TextView gets focused/selected. It is used > > throughout the UI in 1.1, for instance in the list of all apps in > > Home. > > > On Tue, Mar 3, 2009 at 11:00 PM, soniya wrote: > > > > I have downloaded the latest SDK i.e. Android 1.1 but I am not able to > > > run the API demo for Marquee. > > > It does not work The text remain static. > > > Do I need to do any setting or something to view that? > > > > On Jan 31, 1:51 am, Romain Guy wrote: > > >> Note that cupcake will have themarqueefeature on TextView. > > > >> On Fri, Jan 30, 2009 at 12:31 PM, Zach Hobbs > > >> wrote: > > > >> > You can create a custom singleLine TextView and animate it by creating > > >> > a loop > > >> > and calling scrollBy(x,y) incrementing/decrementing the x value. > > > >> > -Zach > > > >> > On Thursday 29 January 2009 7:47:49 pm Rodrigo wrote: > > >> >> HI, > > > >> >> What is the best way to implement scrolling text (with behavior > > >> >> similar to that of HTML tag 'marquee')?? > > > >> >> I've been trying to do this using TextViews + Animations but I'm > > >> >> having troubles primarily because of sizing issues. If my text is long > > >> >> enough that it exceeds the screen width, it won't be drawn completely > > >> >> (it's size will be chopped at screen width). Thus, when I animate it > > >> >> from right to left, only a part of the text will be displayed. This > > >> >> happens if I allow a maximum of 1 line in my TextView, because > > >> >> otherwise it makes the TextView have multiple lines. If I make it > > >> >> horizontally scrollable, the same 'chopped-off' behavior is seen. > > > >> >> I think this happens because the TextView's parent imposes some > > >> >> restrictions on its size. Is there a way to bypass these restrictions > > >> >> so that the TextView is 'drawn' even if parts of it will be off- > > >> >> screen? > > > >> >> If that's not possible, what's an alternative way of implementing this > > >> >> behavior? > > > >> >> Thanks! > > > >> > -- > > > >> > Zach Hobbs > > >> > HelloAndroid.com > > >> > Android OS news, tutorials, downloads > > > >> -- > > >> Romain Guy > > >> Android framework engineer > > >> romain...@android.com > > > >> Note: please don't send private questions to me, as I don't have time > > >> to provide private support. All such questions should be posted on > > >> public forums, where I and others can see and answer them > > > -- > > Romain Guy > > Android framework engineer > > romain...@android.com > > > Note: please don't send private questions to me, as I don't have time > > to provide private support. All such questions should be posted on > > public forums, where I and others can see and answer them > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] SimpleCursorAdapter and setListAdapter problems
I am trying to fill the data in two text views in a single row (see xml) and am trying to use SimpleCursorAdapter to do it. As I understand the function, it is allowed to take an array of strings and an array of ids which you see in the list below. When I run the application from the phone, it errors out at start (the client view is the default view to show which is where this function is executed from). Can anyone fill me in on what I am missing? XML http://schemas.android.com/apk/res/android"; android:layout_width="fill_parent" android:layout_height="60px"> private void fillData(){ Cursor c = mDbHelper.fetchAllClients(); startManagingCursor(c); // Set Client Row Title String[] from = new String[]{ FinanceDbAdapter.KEY_TITLE, FinanceDbAdapter.KEY_BODY }; int[] to = new int[] { R.id.client_row_title, R.id.client_row_body }; // Now create an array adapter and set it to display using our row SimpleCursorAdapter clients = new SimpleCursorAdapter(this, R.layout.client_row, c, from, to); setListAdapter(clients); } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Dynamically loading a .jar file at Runtime
Hi Dianne, Yes you are right, But Is there any way to store over .jar file in the app's data directory. Because I am working on emulator and I can store any file there. Please tell the way I can store in the data dir. And yes any alternate idea to call the .jar files dynamically at runtime?? I want to call a function from the .jar file, which will be decided at runtime. Thanks in advance. Regards, Asif Kadiwala On Mar 19, 11:02 am, Dianne Hackborn wrote: > On Wed, Mar 18, 2009 at 10:18 PM, Asif k wrote: > > Security will be one concern but , my plan is to load the > > required .jar files in the sdcard only when it is necessary and I will > > remove that .jar files from the /sdcard when my application execution > > completes. > > That doesn't fix the security hole, just makes it a little harder for people > to exploit. Not much, though, since they can easily monitor the directory > where you place them. > > Why not just put them in your app's data directory, which nobody else can > touch? > > > I want to do this because I wanna run different things, those will > > be decided at runtime. I think this is same concept as that of .dll > > ( Dynamic link Lib) in the .net framework. > > And dlls also have serious security issues if you put them in a place where > others can modify them. It's not as much of a concern on Windows, though, > because its security is much looser and all of the apps tend to run as the > same user, anyway. > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support. All such questions should be posted on public > forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Set Screen Orientation of a Tab
Just set it to what you want in the top-level activity and make sure not to change it to something else until the user explicitly changes tabs. On Wed, Mar 18, 2009 at 11:01 PM, Uri.Kanonov wrote: > > I see. Is there any way you can think of that will enable me to set > the orientation per displayed tab (without wrecking havoc)? > Thanks again for all the help! > > On Mar 19, 7:59 am, Dianne Hackborn wrote: > > When you call setRequestedOrientation(), your activity will be restarted > in > > the new orientation. During that time you could very well end up calling > it > > with a different value while initializing. You might try putting > > breakpoints wherever you call it and seeing why it is being called. > > > > > > > > On Wed, Mar 18, 2009 at 10:30 PM, Uri.Kanonov > wrote: > > > > > Thank you for the quick response. > > > > > If that's not possible then is it possible to merely change > > > orientation when switching to a Tab and to switch back to another > > > orientation when leaving that tab? > > > I tried to implement that behavior by using the > > > "setRequestedOrientation" method of Activity in the onCreate method of > > > the activities displayed in my tabs but I seem to have gotten the > > > device stuck in an infinite loop of orientation switches. I'm not sure > > > why that happened as after all only one onCreate method should've been > > > called when accessing a single tab. > > > > > On Mar 19, 2:49 am, Dianne Hackborn wrote: > > > > No it is not, sorry. The orientation applies to the entire display, > and > > > > tabs are not considered at all. > > > > > > On Wed, Mar 18, 2009 at 3:19 PM, Uri.Kanonov > > > wrote: > > > > > > > Anyone? > > > > > > -- > > > > Dianne Hackborn > > > > Android framework engineer > > > > hack...@android.com > > > > > > Note: please don't send private questions to me, as I don't have time > to > > > > provide private support. All such questions should be posted on > public > > > > forums, where I and others can see and answer them. > > > > -- > > Dianne Hackborn > > Android framework engineer > > hack...@android.com > > > > Note: please don't send private questions to me, as I don't have time to > > provide private support. All such questions should be posted on public > > forums, where I and others can see and answer them. > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Dynamically loading a .jar file at Runtime
On Wed, Mar 18, 2009 at 10:18 PM, Asif k wrote: > Security will be one concern but , my plan is to load the > required .jar files in the sdcard only when it is necessary and I will > remove that .jar files from the /sdcard when my application execution > completes. That doesn't fix the security hole, just makes it a little harder for people to exploit. Not much, though, since they can easily monitor the directory where you place them. Why not just put them in your app's data directory, which nobody else can touch? > I want to do this because I wanna run different things, those will > be decided at runtime. I think this is same concept as that of .dll > ( Dynamic link Lib) in the .net framework. And dlls also have serious security issues if you put them in a place where others can modify them. It's not as much of a concern on Windows, though, because its security is much looser and all of the apps tend to run as the same user, anyway. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Set Screen Orientation of a Tab
I see. Is there any way you can think of that will enable me to set the orientation per displayed tab (without wrecking havoc)? Thanks again for all the help! On Mar 19, 7:59 am, Dianne Hackborn wrote: > When you call setRequestedOrientation(), your activity will be restarted in > the new orientation. During that time you could very well end up calling it > with a different value while initializing. You might try putting > breakpoints wherever you call it and seeing why it is being called. > > > > On Wed, Mar 18, 2009 at 10:30 PM, Uri.Kanonov wrote: > > > Thank you for the quick response. > > > If that's not possible then is it possible to merely change > > orientation when switching to a Tab and to switch back to another > > orientation when leaving that tab? > > I tried to implement that behavior by using the > > "setRequestedOrientation" method of Activity in the onCreate method of > > the activities displayed in my tabs but I seem to have gotten the > > device stuck in an infinite loop of orientation switches. I'm not sure > > why that happened as after all only one onCreate method should've been > > called when accessing a single tab. > > > On Mar 19, 2:49 am, Dianne Hackborn wrote: > > > No it is not, sorry. The orientation applies to the entire display, and > > > tabs are not considered at all. > > > > On Wed, Mar 18, 2009 at 3:19 PM, Uri.Kanonov > > wrote: > > > > > Anyone? > > > > -- > > > Dianne Hackborn > > > Android framework engineer > > > hack...@android.com > > > > Note: please don't send private questions to me, as I don't have time to > > > provide private support. All such questions should be posted on public > > > forums, where I and others can see and answer them. > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support. All such questions should be posted on public > forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Set Screen Orientation of a Tab
When you call setRequestedOrientation(), your activity will be restarted in the new orientation. During that time you could very well end up calling it with a different value while initializing. You might try putting breakpoints wherever you call it and seeing why it is being called. On Wed, Mar 18, 2009 at 10:30 PM, Uri.Kanonov wrote: > > Thank you for the quick response. > > If that's not possible then is it possible to merely change > orientation when switching to a Tab and to switch back to another > orientation when leaving that tab? > I tried to implement that behavior by using the > "setRequestedOrientation" method of Activity in the onCreate method of > the activities displayed in my tabs but I seem to have gotten the > device stuck in an infinite loop of orientation switches. I'm not sure > why that happened as after all only one onCreate method should've been > called when accessing a single tab. > > On Mar 19, 2:49 am, Dianne Hackborn wrote: > > No it is not, sorry. The orientation applies to the entire display, and > > tabs are not considered at all. > > > > On Wed, Mar 18, 2009 at 3:19 PM, Uri.Kanonov > wrote: > > > > > Anyone? > > > > -- > > Dianne Hackborn > > Android framework engineer > > hack...@android.com > > > > Note: please don't send private questions to me, as I don't have time to > > provide private support. All such questions should be posted on public > > forums, where I and others can see and answer them. > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Set Screen Orientation of a Tab
Thank you for the quick response. If that's not possible then is it possible to merely change orientation when switching to a Tab and to switch back to another orientation when leaving that tab? I tried to implement that behavior by using the "setRequestedOrientation" method of Activity in the onCreate method of the activities displayed in my tabs but I seem to have gotten the device stuck in an infinite loop of orientation switches. I'm not sure why that happened as after all only one onCreate method should've been called when accessing a single tab. On Mar 19, 2:49 am, Dianne Hackborn wrote: > No it is not, sorry. The orientation applies to the entire display, and > tabs are not considered at all. > > On Wed, Mar 18, 2009 at 3:19 PM, Uri.Kanonov wrote: > > > Anyone? > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support. All such questions should be posted on public > forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Mp3 file read problem in Real device (G1)
Hello andrioders, After working for few hours, i over come problem of not getting mp3 file from SDCARD of G1 device. instead of passing Path as static String as /sdcard, i pass android.os.Environment.getExternalStorageDirectory().getPath(); above line will give a "/sdcard", but make sure that ur Sdcard has same path, with no directories in it, At present my Sdcard as "Music" Folder, that the real cause of problem, it was not been able to find a mp3 file in root directory of / sdcard, Hence in end i pass android.os.Environment.getExternalStorageDirectory ().getPath() + File.seperator + "Music"; And now it is working.. Keep d Spirit Up, Jayesh On Mar 18, 3:36 pm, Dave Sparks wrote: > Just in case there is any confusion, your APK is not going to contain > the MP3 files that were loaded on the virtual SD card in the emulator. > > If you want to play MP3's on the device's SD card, you need to install > them there, either by copying them from your workstation, downloading > them from the Internet, or by creating them within your program. > > On Mar 17, 10:49 pm, "jayesh.thadani" > wrote: > > > Hello friends, > > > I have demo music player which reads mp3 files from virtual memory > > card of emulator > > > I pass path something like this "/sdcard" and its working fine, at a > > time of reading MP3 from virtual memory card of emulator. > > > But when this .apk is installed on real device G1, application is not > > been able to find any MP3 files from memory card of G1 device, > > > Can any one suggest for this issue on real device G1, or can provide a > > code on how to read files from Memory card of G1. > > > Thanks, > >Jayesh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Dynamically loading a .jar file at Runtime
Hi all, Thanks for your reply. Security will be one concern but , my plan is to load the required .jar files in the sdcard only when it is necessary and I will remove that .jar files from the /sdcard when my application execution completes. I want to do this because I wanna run different things, those will be decided at runtime. I think this is same concept as that of .dll ( Dynamic link Lib) in the .net framework. On Mar 19, 8:03 am, Dianne Hackborn wrote: > Also keep in mind that doing this kind of thing is completely insecure. Any > app can go and modify your files on the sd card to insert their own code > into your app and run under your identity. Then any malicious things they > do with your app's permissions are the fault of your app. > > > > > > On Wed, Mar 18, 2009 at 4:39 PM, fadden wrote: > > > On Mar 18, 7:29 am, Asif k wrote: > > > I am storing the required test.jar file in the /sdcard. I want to > > > load it dynamically at runtime and want to execute a function xyz() > > > resides in that. For this purpose > > > > I had written following code , > > > This doesn't work -- in 1.0 you can't load jar/apk files that aren't > > part of your application. The problem is that it wants to pull > > classes.dex out of the jar/apk and put it in /data/dalvik-cache, but > > it doesn't have permission to do so. > > > The "cupcake" release is expected to include the DexClassLoader class, > > which allows you to specify a location other than /data/dalvik-cache > > for your output files. > > > > But got ClassCastException : dalvik.system.PathClassLoader > > > URLClassLoader systemLoader = (URLClassLoader) ClassLoader > > .getSystemClassLoader(); > > > Assuming that the system class loader is a URLClassLoader is unwise > > and unnecessary. Just use ClassLoader. > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support. All such questions should be posted on public > forums, where I and others can see and answer them.- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Scheduling a repeating task and being notified
Sorry, my fault. I was reading PendingIntent.send(). It was what I meant. http://groups.google.com/group/android-developers/browse_thread/thread/e5431d6a90b91646/a0892f62e2b42495#a0892f62e2b42495 is my concern. Dalvik process is a zygoted JVM instance within a Linux process. It's my understanding. Feel free to correct me please. Kenny On Mar 17, 1:00 am, BoD wrote: > They are in the same application. The Service is started by the > AlarmManager, so I'm not sure about what you mean by the same 'Dalvik > process'. > I'm also not sure of what you mean by sent(d?)Intent? > > Thanks a lot! > > BoD > > On Mar 16, 2:49 pm, Kenny wrote: > > > > > Besides sendBroadcast( ), how about sentIntent( )? Are your service > > and receiver in the same Dalvik JVM process? > > > Kenny > > > On Mar 16, 6:16 pm, BoD wrote: > > > > Replying myself, for future reference. > > > For theschedulingpart I used AlarmManager and a Service as mentioned > > > before. > > > For the "notification back" part I ended up using sendBroadcast from > > > the service and a BroadcastReceiver on my Activity (registering/ > > > unregistering it in onResume/onPause). It works fine. > > > > BoD > > > > On Mar 15, 7:22 pm, BoD wrote: > > > > > Hi! > > > > > I'm trying to find the "correct" way to do the following: > > > > > . I have an activity with a button that starts arepeatingtaskin the > > > > background. That is, if the user goes away from my activity, I want my > > > >taskto still be scheduled and executed every x minutes. > > > > > . I want a status TextView to be displayed on the activity, and if the > > > >taskhappens to start executing while my activity is showing, the > > > > TextView should be updated so the user can be aware of what's going > > > > on. > > > > > So basically, is there a way to start a scheduled backgroundrepeating > > > >taskand be notified when it is executed? > > > > > From what I saw in the sample applications, I understand I'm supposed > > > > to use AlarmManager and a Service but I'm not sure about the > > > > notification part. > > > > > Thanks a lot for your help. > > > > > BoD- Hide quoted text - > > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: A simple question regarding inter-process communication.
Thanks Dianne, a colleague was telling me basically this too. Does it matter that the activities are running on different processes? On Mar 19, 3:50 pm, Dianne Hackborn wrote: > If you are communicating between activities, you wouldn't use interfaces at > all -- all of the communication with be by sending Intents between them in > various ways, and you can use Intent.putExtra() to put strings and other > data in them. > > If you are communicating via a Service, you can use Messenger as the > interface returned by onBind(), and you can stuff fairly arbitrary data in > the Message with message.setData(). > > > > On Wed, Mar 18, 2009 at 9:22 PM, me tun wrote: > > > Just say I have two applications, each with one activity running on > > separate processes and I want to send a simple string between them. > > For the purposes of this example, let us say I have a button that > > sends whatever is typed into an EditText view to the other application > > where it is then displayed. > > > Do I have to expose a remote interface via a service that co-resides > > between the two applications? > > > Or can I do something simpler (is there a way to pass data between > > processes without defining your interface using AIDL)? > > > Thanks for clearing this up for me, as I seem to be struggling with > > performing IPC at the moment. I'm pretty sure I have to use the > > Android IPC path and generate a remote interface using AIDL. I'm just > > not sure about the binding to service part. > > > Cheers! > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support. All such questions should be posted on public > forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Putting Android on Par with the iPhone Software
Sorry, correction, we had in fact been suggested three times to move to the Android Discuss group. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: A simple question regarding inter-process communication.
If you are communicating between activities, you wouldn't use interfaces at all -- all of the communication with be by sending Intents between them in various ways, and you can use Intent.putExtra() to put strings and other data in them. If you are communicating via a Service, you can use Messenger as the interface returned by onBind(), and you can stuff fairly arbitrary data in the Message with message.setData(). On Wed, Mar 18, 2009 at 9:22 PM, me tun wrote: > > Just say I have two applications, each with one activity running on > separate processes and I want to send a simple string between them. > For the purposes of this example, let us say I have a button that > sends whatever is typed into an EditText view to the other application > where it is then displayed. > > Do I have to expose a remote interface via a service that co-resides > between the two applications? > > Or can I do something simpler (is there a way to pass data between > processes without defining your interface using AIDL)? > > Thanks for clearing this up for me, as I seem to be struggling with > performing IPC at the moment. I'm pretty sure I have to use the > Android IPC path and generate a remote interface using AIDL. I'm just > not sure about the binding to service part. > > Cheers! > > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Black areas during alpha animation on transparent PNGs.. Help !
No. It is not opaque as it doesn't give a completely black background it is just that when the animation of fading out starts I start seeing highly translucent black color. I will get some screenshots to make you understand better. On Mar 18, 10:13 pm, Michael MacDonald wrote: > I think the system might be assuming the ImageView is opaque and so not > drawing what's behind it. > > Try using a custom Drawable in the image view and return the correct > value from getOpacity() > > quakeboy wrote: > > I am currently at the verge of releasing a game for android. While > > creating menu view animations, for which I use ImageViews in > > AbsoluteLayout and while changing screen, I have used a custom Alpha > > animation (I tried built in fadeout also) > > > When I startAnimation on the ImageView, Instead of reducing alpha > > property, It shows a black area, in the areas where transparency is > > between 0 to 100. Of course it does fade out but it shows a black area > > in the semi transparent areas of the PNG while fading away. > > > It looks soo bad. Does it have something to do with display mode ? > > Should I set 32 bpp mode explicitly ?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] A simple question regarding inter-process communication.
Just say I have two applications, each with one activity running on separate processes and I want to send a simple string between them. For the purposes of this example, let us say I have a button that sends whatever is typed into an EditText view to the other application where it is then displayed. Do I have to expose a remote interface via a service that co-resides between the two applications? Or can I do something simpler (is there a way to pass data between processes without defining your interface using AIDL)? Thanks for clearing this up for me, as I seem to be struggling with performing IPC at the moment. I'm pretty sure I have to use the Android IPC path and generate a remote interface using AIDL. I'm just not sure about the binding to service part. Cheers! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Permission of SystemClock.setCurrentTimeMillis()
> Not funny. --- I wonder that system time can be set only in phone or system process??? On Mar 18, 9:52 pm, Stoyan Damov wrote: > > > mwuahah ;) > > On Wed, Mar 18, 2009 at 3:12 PM, elvisw wrote: > > > Hi everyone, > > > The document says: > > SystemClock.setCurrentTimeMillis() > > Sets the current wall time, in milliseconds. Requires the calling > > process to have appropriate permissions. > > --- > > > What is the appropriate permission I should declare in > permission>??? > > Thanks your help... > > > Elvis. > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: When the system launches a ResolverActivity or ChooserActivity it doesn't present...
On Wed, Mar 18, 2009 at 8:09 PM, Hans wrote: > Thanks, I only asked because a cursory glance through > ChooserActivity.java and ResolverActivity.java didn't provide me with > anything I could see as discrimination between activities and > services. Confirmed with testing tonight. Appreciated. They use queryIntentActivities(), which only returns activities. In the package manager, the four component types are completely disjoint, and there is simply no call you can make that will give you a mix of them. > BTW, does this mean that services will tend to only get 'sticky' > broadcast intents, intents intended explicitly for them from a given > activity or service, and the occasional intent that isn't handle by > any activity currently registered for it? Services are just completely different from receivers, which are different from activities. They don't receive any broadcasts at all. Neither do activities. Only receivers do. (One exception is that you can dynamically create a BroadcastReceiver and register it at runtime, but in that case it is not the component itself receiving the broadcast.) In other words: - You launch activities with startActivity(). - You send to receivers with sendBroadcast(). - You bind to services with bindService() (and make them run with startService(), but semantically this is not the same at all as starting an activity; we probably should have found a different verb to use here). -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: When the system launches a ResolverActivity or ChooserActivity it doesn't present...
On Mar 18, 3:39 pm, Dianne Hackborn wrote: > No, it only shows activities. These are displayed to resolve the launching > of an activity. It wouldn't make sense to show services. Thanks, I only asked because a cursory glance through ChooserActivity.java and ResolverActivity.java didn't provide me with anything I could see as discrimination between activities and services. Confirmed with testing tonight. Appreciated. I don't think it makes much sense to display services either, but I certainly wasn't going to ASSume anything for certain ;). BTW, does this mean that services will tend to only get 'sticky' broadcast intents, intents intended explicitly for them from a given activity or service, and the occasional intent that isn't handle by any activity currently registered for it? Hans --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Putting Android on Par with the iPhone Software
Hello all, george_c went ahead and followed Dianne Hackborn's suggestion and reposted this in Android Discuss. However, unfortunately, it seems to be posted in a different language version of Google Groups, where as everyone posting on this thread speaks English. Thus, I've followed his lead and reposted this discussion in Android Discuss myself, under the following link: http://groups.google.com/group/android-discuss/browse_thread/thread/fcbbfbcf398687a/389d17f1e683f095?lnk=gst&q=putting+android+on+par+with+the+iphone#389d17f1e683f095 Please, for the sake of Dianne Hackborn's sanity, post all further discussion on the new Android Discuss thread. P.S. - Dianne, you had actually only asked us once before, not, as you said "three times". And there's no need to become harsh, we're all here as a community only trying to better the Android platform, which, last time i checked, is the true pulse of open source. Also, this is the Android Developers discussion group, and the thread and post was aimed and intended for Android developers, so, not so outrageous. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Dynamically loading a .jar file at Runtime
Also keep in mind that doing this kind of thing is completely insecure. Any app can go and modify your files on the sd card to insert their own code into your app and run under your identity. Then any malicious things they do with your app's permissions are the fault of your app. On Wed, Mar 18, 2009 at 4:39 PM, fadden wrote: > > On Mar 18, 7:29 am, Asif k wrote: > > I am storing the required test.jar file in the /sdcard. I want to > > load it dynamically at runtime and want to execute a function xyz() > > resides in that. For this purpose > > > > I had written following code , > > This doesn't work -- in 1.0 you can't load jar/apk files that aren't > part of your application. The problem is that it wants to pull > classes.dex out of the jar/apk and put it in /data/dalvik-cache, but > it doesn't have permission to do so. > > The "cupcake" release is expected to include the DexClassLoader class, > which allows you to specify a location other than /data/dalvik-cache > for your output files. > > > > But got ClassCastException : dalvik.system.PathClassLoader > > URLClassLoader systemLoader = (URLClassLoader) ClassLoader >.getSystemClassLoader(); > > Assuming that the system class loader is a URLClassLoader is unwise > and unnecessary. Just use ClassLoader. > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to modify properties of a list in a ListActivity
Take a look at List14.java in the API Demos sample code. It does something similar to what you are wanting to do. On Mar 18, 10:49 am, xinit wrote: > Hello > > I have a simple ListActivity midlet. It populates the list using a > String array which is passed to the setListAdapter method. > > i.e.: > > String[] directoryListing = {"\etc","\dev", "writetext.txt"}; > > setListAdapter(new ArrayAdapter(this, > R.layout.main, R.id.selection, > directoryListing)); > > However my question is, how is it possible to modify the properties of > the list so if I know "\etc" and "\dev" are directories and I want to > change the text colour to reflect that it is a directory how can I do > this ? > > Can anyone point me to any API's ? > > Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Is it possible to set focus to a component programmatically?
DO NOT set buttons focusable in touch mode. Just don't. On Wed, Mar 18, 2009 at 6:54 PM, MJB wrote: > > The above should work. However, keep in mind that the request will > fail if you are in touch mode and the button is not focusable in touch > mode. To set whether or not a button is focusable in touch mode, call > button.setFocusableInTouchMode(true/false). > > > > > On Mar 16, 10:40 pm, me tun wrote: >> Yes, you should be able to use button.requestFocus(); >> >> On Mar 17, 1:19 pm, Zia wrote: >> >> >> >> > Wondering if we have few buttons on a LinearLayout, is it possible to >> > set focus to a button programmatically? >> >> > Please advice. >> >> > Thanks,- Hide quoted text - >> >> - Show quoted text - > > > -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Is it possible to set focus to a component programmatically?
The above should work. However, keep in mind that the request will fail if you are in touch mode and the button is not focusable in touch mode. To set whether or not a button is focusable in touch mode, call button.setFocusableInTouchMode(true/false). On Mar 16, 10:40 pm, me tun wrote: > Yes, you should be able to use button.requestFocus(); > > On Mar 17, 1:19 pm, Zia wrote: > > > > > Wondering if we have few buttons on a LinearLayout, is it possible to > > set focus to a button programmatically? > > > Please advice. > > > Thanks,- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How To Control Android To Restart
Hi all, As the title, how can I control/ask Android to restart or power off in code? Thanks in advance. AntiL --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Data Synchronization Option is missing from the Settings
Hi, I find the "data synchronization" option is missing from the Settings on the last version android source code. Is this issue a bug ? How to add the "data synchronization " option to Settings, thanks !! Paul -- Best 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Set Screen Orientation of a Tab
No it is not, sorry. The orientation applies to the entire display, and tabs are not considered at all. On Wed, Mar 18, 2009 at 3:19 PM, Uri.Kanonov wrote: > > Anyone? > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Data Synchronization Option is missing from the Settings!!!
I find the "data synchronization" option is missing from the Settings on the last version android source code. Is this issue a bug ? How to add the "data synchronization " option to Settings, thanks !! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how to run sample application in real harware
All You need to know is how developing on a device. Essentially before debug/run you app you must install the driver fot the android G1: - Connect your G1 to your PC with the USB cable - Into G1 go to Menu->Setup->Applications->Development, turn on the USB debugging. - When your g1 is detected, your system ask for a driver, select as destination folder your 'ANDROID SDK DIR' /usb_driver If all goes fine you are ready to debug/run - in your eclipse run the android project and TADA now you will se a list of the installed device, the emulator and the device. Now ... Use the emulator lol. have a nice day man. Dr.Luiji On 28 Gen, 19:01, Xavier Ducrohet wrote: > apk files are NOT executable. > > to install an apk on your device, just execture 'adb install you apk>'. Your application should then appear in the Home screen. > This is what ADT is doing when dealing with emulators or devices. > > Xav > > On Wed, Jan 28, 2009 at 7:04 AM, sumit > wrote: > > > hi > > > i build an application in android SdK(HelloAndroid) > > i took the hole source code and put in syatem/bin/HelloAndroid > > > and tried to excute HelloAndroid.apk but it's giving error > > i tried witout ./dalvikvm and with dalvikvm > > > without dalvikvm---> > > > [r...@linux bin]$ ./HelloAndroid.apk > > ./HelloAndroid.apk: line 1: PK : command not found > > : command not found line 2: > > : No such file or directoryNG > > ./HelloAndroid.apk: line 3: : command not found > > ./HelloAndroid.apk: line 5: syntax error near unexpected token `(' > > ½uËgk:Ž,Y– *–,J ÉCR‡¤Ió<»à9G‡´œª M[`/ðê|ð|¼ çù Ÿçyß#EDøen>~ÉÛ > > øy7ÅÙùÆŸüiBQ"§ H > > ‹Èy ù Ϧ á <õ÷ p¤ /<](c)TôjµÚv ˆ¤ $p H= MþB ø·ï¼–>vNT«Uò¹<ù\Ž > > \>GµRÝè¾ H ¸(B' > > ./HelloAndroid.apk: line 2: : VÜ : No such file or directory > > > i dont know whether dalvik virtual machine is runngg or not > > > i tried with dalvik machine > > > ./dalvikvm -classpath /system/bin/HelloAndroid/bin/HelloAndroid.apk > > > right now i dont know how to run a build application in real hardware > > correct me if i am wrong. > > > regards > > Abhishek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Tutorial ( Programming Network Engineering Mobile and ...moooore )
FREE Books & Tutorials http://ebook44free.blogspot.com/ CCNA CCNP MCSE C# MCAD C++ Engineering Technology Mobile and mre Thanks.., --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Manipulate setting "send caller id"
Hi, With which variable or method can I manipulate if and when the phone number is sent (and shown to called person) when making an outgoing call? GreenRob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] decompilar .dex
how to decompile a. dex for instructions in machine language anyone know of a disassembler. Dalvík in dex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to modify properties of a list in a ListActivity
Hello I have a simple ListActivity midlet. It populates the list using a String array which is passed to the setListAdapter method. i.e.: String[] directoryListing = {"\etc","\dev", "writetext.txt"}; setListAdapter(new ArrayAdapter(this, R.layout.main, R.id.selection, directoryListing)); However my question is, how is it possible to modify the properties of the list so if I know "\etc" and "\dev" are directories and I want to change the text colour to reflect that it is a directory how can I do this ? Can anyone point me to any API's ? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Data Synchronization Option is missing from the Settings!!!
I find the "data synchronization" option is missing from the Settings on the last version android source code. Is this issue a bug ? How to add the "data synchronization " option to Settings, thanks !! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] problem with HelloMapView
I think , have correct Md5 Fingerprint for Map Service but i not see the map in the google exemple HelloMapView AnyOne help me about the main problem about it ??? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how to take small picture
> When we use camera, is there any parameters we can config about the > picture resolution? Thanks! The camera parameters are called Camera.Parameters and include setters for preview and picture size. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how to take small picture
When we use camera, is there any parameters we can config about the picture resolution? Thanks! April On Mar 18, 10:57 am, Streets Of Boston wrote: > Take a look at the Bitmap and BitmapFactory classes in the Android SDK > > On Mar 18, 1:52 pm, cindy wrote: > > > Hi, > > > Is there anyway to reduce the resolution of picture taken using > > camera? It takes long time to upload the image to server. Does anyone > > use any compression software for image ? > > > Thanks! > > > Cindy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to map resource name to R.member constant?
I figured. Resources.getIdentifier() does the trick. -Videoguy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: read cookie value which is set by website browsed in emulator browser
> somebody plese help me! You cannot read cookies out of the Browser application. You can read cookies out of a WebView which you embed in your own application. > > On Mar 17, 1:46 pm, Komal wrote: >> Hi, >> In my app i want to use thecookievaluewhich issetwhen user open >> mywebsitein android phonebrowser. >> Is it possible toreadvalueofcookiewhich issetbybrowserof my >> android phone?? -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: read cookie value which is set by website browsed in emulator browser
somebody plese help me! On Mar 17, 1:46 pm, Komal wrote: > Hi, > In my app i want to use thecookievaluewhich issetwhen user open > mywebsitein android phonebrowser. > Is it possible toreadvalueofcookiewhich issetbybrowserof my > android phone?? > > Thnx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Re-register AlarmManager events on upgrades
On 18 Mrz., 16:56, StefanK wrote: > Often when you use AlarmManager, you have to also register to for > TIME_ZONE_CHANGED event to account for cases when the phone moves to a > different time zone. As it turns out it appears that those are sent > every time the phone updates its time form the cell tower (several > times a day) so if you register for TIME_ZONE_CHANGED you can use it > to reschedule your tasks automatically on next event. It is not > perfect but it works. (This is what we use in BeyondPod podcatcher) I did this too The problem is that it may never be called if a user doesn't use automatic time updates. Until cupcake is available i fixed it by storing the version string as a preference and told my users to start the app once after updating it. In case the stored version doesn't match the current version i do re- register. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Dynamically loading a .jar file at Runtime
On Mar 18, 7:29 am, Asif k wrote: > I am storing the required test.jar file in the /sdcard. I want to > load it dynamically at runtime and want to execute a function xyz() > resides in that. For this purpose > > I had written following code , This doesn't work -- in 1.0 you can't load jar/apk files that aren't part of your application. The problem is that it wants to pull classes.dex out of the jar/apk and put it in /data/dalvik-cache, but it doesn't have permission to do so. The "cupcake" release is expected to include the DexClassLoader class, which allows you to specify a location other than /data/dalvik-cache for your output files. > But got ClassCastException : dalvik.system.PathClassLoader URLClassLoader systemLoader = (URLClassLoader) ClassLoader .getSystemClassLoader(); Assuming that the system class loader is a URLClassLoader is unwise and unnecessary. Just use ClassLoader. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Getting Raw Data from AMR-NB 3GP file
I've figured out how to extract the AMR audio from the 3GP file: http://www.benmccann.com/dev-blog/extracting-amr-audio-from-android-3gp-files/ On Mar 14, 9:16 pm, benmccann wrote: > I played with ISO parser a bit more today, and made some progress. I > made a single 3gp audio recording on my Android device and ISO parser > seems to be telling me that it is 5 boxes and 3 tracks, which I don't > really understand. > > When I print the results of IsoFile.getBoxes() : > File Type Box: 3gp4 > Media Data Box (length: 1968) > Media Data Box (length: 18) > Media Data Box (length: 16) > Movie Box (length: 1676) > > When I print IsoFile.getTrack(long trackId) for trackId 1 and onwards > until NullPointerException occurs; > Track 1: 1 samples > Track 2: 1 samples > Track 3: 140 samples > > Also, the following is printed to standard error when I parse the > file: > Mar 14, 2009 9:08:16 PM com.coremedia.iso.BoxFactory createBox > INFO: Unknown box found: iods 0x696f6473 parent is: moov > Mar 14, 2009 9:08:16 PM com.coremedia.iso.BoxFactory createBox > INFO: Unknown box found: nmhd 0x6e6d6864 parent is: minf > Mar 14, 2009 9:08:16 PM com.coremedia.iso.BoxFactory createBox > INFO: Unknown box found: mp4s 0x6d703473 parent is: stsd > Mar 14, 2009 9:08:16 PM com.coremedia.iso.BoxFactory createBox > INFO: Unknown box found: mpod 0x6d706f64 parent is: tref > Mar 14, 2009 9:08:16 PM com.coremedia.iso.BoxFactory createBox > INFO: Unknown box found: nmhd 0x6e6d6864 parent is: minf > Mar 14, 2009 9:08:16 PM com.coremedia.iso.BoxFactory createBox > INFO: Unknown box found: mp4s 0x6d703473 parent is: stsd > > On Mar 13, 10:39 pm, benmccann wrote: > > > Thanks Warwick. That's basically what I got from Wikipedia, though > > I'm still not sure the advantage a media container provides. It > > enables streaming or has some other advantage? > > I checked out and built the IsoParser, but can't figure out what to > > pass to getTrack(long trackId). I'm not familiar with ISO 14496-13 > > and don't see the spec online. I've tried passing 0 or 1 and just get > > an empty list back. > > > -Ben > > > On Mar 13, 7:15 pm, warwickhunter wrote: > > > > Ben, > > > > I found some Java code that can parse an mp4 or 3gp file. I am using > > > it to extract an AMR audio stream from the file. > > > >https://contributions.coremedia.com/isobox4j/wiki/IsoParser > > > > Look at IsoFile.getTrack to get the raw AMR samples and then stick an > > > AMR header on the front of the data. > > > > 3gp is a media container file format. It is a simplified version of > > > the mp4 media container file format. The AMR is just a sample stream > > > within the 3gp or mp4 container file. > > > > Warwick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Set Screen Orientation of a Tab
Anyone? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Obtaining IP address when on 3G (MOBILE) connection
I was able to get the IP address using the following code: public String getLocalIpAddress() { try { for (Enumeration en = NetworkInterface.getNetworkInterfaces(); en .hasMoreElements();) { NetworkInterface intf = en.nextElement(); for (Enumeration enumIpAddr = intf.getInetAddresses(); enumIpAddr .hasMoreElements();) { InetAddress inetAddress = enumIpAddr.nextElement (); if (!inetAddress.isLoopbackAddress()) { return inetAddress.getHostAddress().toString (); } } } } catch (SocketException ex) { Log.e(S.TAG, ex.toString()); } return null; } Regards, Regina On Mar 15, 10:39 pm, Joseph Teo wrote: > Hi Folks, > > I have a small question. When i'm connected to WIFI, I could use the > following code to obtain the IP address of the Android phone > > WifiManager wifiManager = (WifiManager) getSystemService(WIFI_SERVICE); > WifiInfo wifiInfo = wifiManager.getConnectionInfo(); > int ipAddress = wifiInfo.getIpAddress(); > > However, when i'm on the MOBILE (3G) connection, is it still possible to > obtain the IP address of the Android phone? and if so, can someone post the > code snippet (e.g. like above) for getting the IP address when on 3G > Connection? > > Thanks a million! > > Rgds, > Joseph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Putting Android on Par with the iPhone Software
Continued here: http://groups.google.gr/group/android-discuss/browse_thread/thread/23adb39aea456da4 On Wed, Mar 18, 2009 at 10:22 PM, Dianne Hackborn wrote: > On Wed, Mar 18, 2009 at 12:40 PM, Ivan Soto wrote: > >> I've been reading all but I don't have the time right now to write a full >> analysis. Although, I would LOVE to see someone from Google that is not a >> software engineer saying that they are reading this and considering what >> people talk in these groups. > > > You won't find those people on this list. > > First, Android is an open-source project. You don't need to rely on Google > to work on it. People working on the platform are on the android-platform > list. > > HOWEVER, you also shouldn't post there, because that list is for people to > actually talk about the concrete work they are doing, not to post > competitive analysis and discuss Android in the market in relation to other > platforms. > > That kind of discussion should be on android-discuss, which is where you > should have posted this originally, and now have been asked three times to > move it to. Please do so. > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support. All such questions should be posted on public > forums, where I and others can see and answer them. > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] File Upload Question
I have included my code below. I have the code working for image uploads, but was wondering how to get it to work with audio and video files? Please let me know if you have any suggestions/tutorials. // WORKS WITH JPEG FILE -- String existingFileName = "/sdcard/dcim/ Camera/1225231027592.jpg"; String existingFileName = "/sdcard/Music/kryptonite.mp3"; // DOES NOT WORK WITH MP3 FILE File uploadFile = new File(existingFileName); FileInputStream fileInputStream = new FileInputStream(uploadFile); String lineEnd = "\r\n"; String twoHyphens = "--"; String boundary = "*"; try { URL connectURL = new URL("http://www.mysite.com/uploads.php";); // connectURL is a URL object HttpURLConnection conn = (HttpURLConnection) connectURL.openConnection(); // allow inputs conn.setDoInput(true); // allow outputs conn.setDoOutput(true); // don't use a cached copy conn.setUseCaches(false); // use a post method conn.setRequestMethod("POST"); // set post headers conn.setRequestProperty("Connection","Keep-Alive"); conn.setRequestProperty("Content-Type","multipart/form- data;boundary="+boundary); // open data output stream DataOutputStream dos = new DataOutputStream(conn.getOutputStream ()); dos.writeBytes(twoHyphens + boundary + lineEnd); dos.writeBytes("Content-Disposition: form-data; name=\"uploadedfile \";filename=\""+existingFileName +"\"" + lineEnd); dos.writeBytes(lineEnd); // create a buffer of maximum size int bytesAvailable = fileInputStream.available(); int maxBufferSize = 1024; int bufferSize = Math.min(bytesAvailable, maxBufferSize); byte[] buffer = new byte[bufferSize]; // read file and write it into form... int bytesRead = fileInputStream.read(buffer, 0, bufferSize); while (bytesRead > 0) { dos.write(buffer, 0, bufferSize); bytesAvailable = fileInputStream.available(); bufferSize = Math.min(bytesAvailable, maxBufferSize); bytesRead = fileInputStream.read(buffer, 0, bufferSize); } // send multipart form data necesssary after file data... dos.writeBytes(lineEnd); dos.writeBytes(twoHyphens + boundary + twoHyphens + lineEnd); // close streams fileInputStream.close(); dos.flush(); InputStream is = conn.getInputStream(); int ch; StringBuffer b =new StringBuffer(); while( ( ch = is.read() ) != -1 ) { b.append( (char)ch ); } String s=b.toString(); dos.close(); } catch (MalformedURLException ex) { // Log.e(Tag, "error: " + ex.getMessage(), ex); } catch (IOException ioe) { // Log.e(Tag, "error: " + ioe.getMessage(), ioe); } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Putting Android on Par with the iPhone Software
On Wed, Mar 18, 2009 at 12:40 PM, Ivan Soto wrote: > I've been reading all but I don't have the time right now to write a full > analysis. Although, I would LOVE to see someone from Google that is not a > software engineer saying that they are reading this and considering what > people talk in these groups. You won't find those people on this list. First, Android is an open-source project. You don't need to rely on Google to work on it. People working on the platform are on the android-platform list. HOWEVER, you also shouldn't post there, because that list is for people to actually talk about the concrete work they are doing, not to post competitive analysis and discuss Android in the market in relation to other platforms. That kind of discussion should be on android-discuss, which is where you should have posted this originally, and now have been asked three times to move it to. Please do so. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Access scanlife app ala zxing?
My app currently uses intents with zxing and Barcode Scanner to grab barcode data and pull it back to the app. I have had some users request similar functionality with Scanlife, which reads a different set of barcodes. Does anyone know how to do the same thing, spin up scanlife, have it scan and collect data, then send the data back to my app? I've emailed them, but there's no telling if I'll hear back. I thought I'd ask here as well. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Accessing the internet.
I'm a little bit of a beginner with Android. Just finding it hard to suit what I'm doing. What I want my application to do is show a menu when it executes, when one of the buttons on the menu is clicked I want the application to go online to get the data which will populate the textviews/scrollviews on the new screen. I can get info from folders on my own computer but retrieving it online is proving too complex for me. On Mar 18, 10:26 am, Carl Whalley wrote: > I'm sorry if this info is too basic for you but you didn't say what > symptoms you are getting. > Ensure you have android:name="android.permission.INTERNET"> in your > AndroidManifest.xml > > -- > Android Academy:http://www.androidacademy.com > Linked In? Join the Google Android > group:http://www.linkedin.com/groupInvitation?gid=76373 > > On Mar 18, 10:05 am, murphy wrote: > > > Thanks for the help guys. I'm still having problems reading from the > > internet and also displaying the retreived content on a text file. Do > > you think it's a code problem or a firewall problem or am i missing > > some bit of code in the manifest to access the internet? > > > On Mar 11, 7:19 am, ku fu panda wrote: > > > > public static InputStream getInputStreamWithHttpClient( String > > > resourceURL ) > > > throws IOException > > > { > > > // Create an instance of HttpClient. > > > HttpClient client = new DefaultHttpClient(); > > > // Create a method instance. > > > HttpGet method = new HttpGet( resourceURL ); > > > method.getParams().setIntParameter( > > > CoreConnectionPNames.CONNECTION_TIMEOUT, > > > CONNECTION_TINEOUT ); > > > method.getParams().setIntParameter > > > ( CoreConnectionPNames.SO_TIMEOUT, > > > CONNECTION_TINEOUT ); > > > method.getParams().setIntParameter( > > > CoreConnectionPNames.SOCKET_BUFFER_SIZE, IO_BUFFER_SIZE ); > > > method.getParams().setIntParameter( > > > ConnManagerPNames.MAX_CONNECTIONS_PER_ROUTE, 5 ); > > > method.getParams().setIntParameter( > > > ConnManagerPNames.MAX_TOTAL_CONNECTIONS, 10 ); > > > HttpResponse response = null; > > > InputStream input = null; > > > try > > > { > > > response = client.execute( method ); > > > HttpEntity entity = response.getEntity(); > > > input = entity.getContent(); > > > } > > > catch ( IOException e ) > > > { > > > Log.d( TAG, "Can not connect to the target server!" ); > > > throw new IOException(); > > > } > > > finally > > > { > > > Log.d( TAG, "close Expired Connections!" ); > > > client.getConnectionManager().closeExpiredConnections(); > > > } > > > return input; > > > } > > > > On Mar 10, 12:21 pm, dillirao malipeddi > > > wrote: > > > > > public String get_DAtaFromWeb(String url_toconnect)//throws Exception > > > > { > > > > int connection_Timeout = 1;// 10sec > > > > HttpParams my_httpParams = new BasicHttpParams();; > > > > HttpConnectionParams.setConnectionTimeout(my_httpParams,connection_Timeout) > > > > ; > > > > > > > > HttpConnectionParams.setSoTimeout(my_httpParams,connection_Timeout); > > > > > HttpClient httpclient = new DefaultHttpClient(my_httpParams); > > > > //get > > > > http client with given params > > > > String responseBody = null; > > > > > try > > > > { > > > > > HttpGet httpget = new HttpGet(url_Pls); > > > > > if(myDebug.debug_Log)Log.i("CONTENT GET","executing request " + > > > > httpget.getURI()); > > > > > // Create a response handler > > > > ResponseHandler responseHandler = new > > > > BasicResponseHandler(); > > > > > responseBody = httpclient.execute(httpget, responseHandler); > > > > } > > > > catch(Exception e) > > > > { > > > > if(myDebug.debug_Log)Log.i("Exception","Http > > > > Connection"+e.toString()); > > > > } > > > > > String Content = responseBody; > > > > > if(myDebug.debug_Log)Log.i("","-START-- > > > > -"); > > > > if(myDebug.debug_Log)Log.i("Response",""+Content); > > > > > if(myDebug.debug_Log)Log.i("","---END-" > > > > ); > > > > > return Content; > > > > > } > > > > > On Mon, Mar 9, 2009 at 4:53 PM, murphy wrote: > > > > > > Hi all, > > > > > > Was just wondering if anyone had any code samples about writing and > > > > > retrieving data from a website? I am currently creating an application > > > > > which populates its textviews by accessing information from an online > > > > > source. > > > > > > Thanks, Murphy. > > > > > -- > > > > Dilli Rao. M- Hide quoted text - > > > > - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed t
[android-developers] Re: How to detect Fling action in my widget
Thanks. I have setup breakpoints for all OnGestureDetector methods. It did call onDown and I return true for the method. But onFling still did not get called. Any other idea? Thank you. On Wed, Mar 18, 2009 at 12:17 PM, Streets Of Boston wrote: > > Make sure you return the correct boolean-values in the other methods > of your OnGestureDetector (onDown, onScroll, etc). > > On Mar 18, 2:51 pm, Meryl Silverburgh > wrote: >> Hi, >> >> Can you please tell me how can I detect Fling action in my own widget? >> I have implemented my widget as OnGestureListener. >> >> And like in Gallery, I have a >> "GestureDetector mGestureDetector = new GestureDetector(this);" >> >> For my onTouchEvent(), I have >> @Override >> public boolean onTouchEvent(MotionEvent event) { >> >> // Give everything to the gesture detector >> boolean retValue = mGestureDetector.onTouchEvent(event); >> return retValue; >> } >> >> But my public boolean onFling(MotionEvent e1, MotionEvent e2, float >> velocityX, float velocityY) is never get claeed. >> >> CAn you please tell me why? >> >> Thank you. > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Putting Android on Par with the iPhone Software
I've been reading all but I don't have the time right now to write a full analysis. Although, I would LOVE to see someone from Google that is not a software engineer saying that they are reading this and considering what people talk in these groups. Thanks. On Wed, Mar 18, 2009 at 1:28 PM, Dianne Hackborn wrote: > Move this to android-discuss. Please. > > > On Wed, Mar 18, 2009 at 11:37 AM, Schiffres wrote: > >> >> Hey Guys, >> First, I want to apologize for the lack of coherence, or paragraphs >> (sorry Al), I've had a pretty minimal amount of sleep this week :P. >> To Carl, I fully acknowledge the iPhone shortcomings and the grant >> potential for Android, it's why I'm, perhaps blindly, an uber Android >> supporter. However, what I was actually trying to get at, which >> thankfully has been addressed by Paper and Bradley are the >> shortcomings, the specific features, functions, and usability that >> Android lacks. Even if you feel it is fully functional in your >> opinion, what is the next big feature, the next step in Android >> development, what you would love to see in Android, its next wild >> feature that may not even be supported by today's technology. >> >> It seems to me that Google, which has in my opinion the ability to >> create an OS three times as good as Apple's, has been dropping the >> ball a bit on Android, which in turn ruins its reputation, regardless >> of it's actual functionality. I can't begin to postulate the cause of >> this lackluster performance, however, personally I think it's that >> Google has no incentive to make it the best it can be because it makes >> no direct source of revenue (Al, the 30% isn't supposed to be for >> profit at all, but rather to clear up the costs of the transaction and >> corollary costs, so that Google breaks even). A view of a Google >> search on an iPhone equally profits Google as a Google search on an >> Android powered device. However, it could be argued that Google wants >> to be able to control the means that its users and customers access >> its product (an explanation that also gives reason as to why they >> developed Chrome). >> >> While I'd love to discuss Google's economic incentives and overall >> financial plan, that must be saved for a different thread. It was my >> intention that this thread would be a source where people invested in >> Android could list what features, functions they wish to see in >> Android, along with all other ideas as to what Google should do. If >> you were the Android project manager, what would you do, what ideas >> would you push, what issues would you resolve. Furthermore, it was >> meant as an area that Android developers could collaborate, >> critiquing, contributing to, and refining others' ideas. Healthy >> debate is good, and eventually if it becomes a large enough source of >> ideas for Android, it'll be noticed (or I'll send them the thread) by >> Google engineers working on Android and make it much simpler to >> implement the ideas. As Android developers, you know more about this >> than the average luddite, and in the spirit of open source, we must >> come together to work with Google and make Android everything we can >> imagine it to be. >> >> Thanks for all the activity, >> Schiffres >> >> > > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support. All such questions should be posted on public > forums, where I and others can see and answer them. > > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: When the system launches a ResolverActivity or ChooserActivity it doesn't present...
No, it only shows activities. These are displayed to resolve the launching of an activity. It wouldn't make sense to show services. On Wed, Mar 18, 2009 at 6:59 AM, Hans wrote: > > ...services which are registered for a particular intent does it? > > What I mean, and I'll test this later when I get a chance, is that if > I create a service that registers for ACTION_SEND, and a user, in the > photo viewer, clicks 'Share' and the system launches a chooser > activity for ACTION_SEND, the service won't show up in that chooser > will it? > > I presume that only activities would show up, but I can't check just > now. > > Thanks, > >Hans :) > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: " IWindowManager Not Available "
Those are not part of the SDK. On Wed, Mar 18, 2009 at 6:53 AM, Rajendrakumar C wrote: > > Hi All, > > > I downloaded the Android Source to my machine, I have seen the source > code. In that I found Iwindowmanager, I activity manager and etc I > managers... > > But when I try to use those things in my application. Those classes > and even the packages also not avaiable. > > Can any one know how to import those classes into our > applications. > > > Best Regards, > > Rajendra > > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem with setTheme() method
You need to do this first thing, before setting the content view or otherwise touching the window. But you really really should be setting this in the manifest. The system uses this information to improve how it launches your activity based on some information in the theme. On Wed, Feb 4, 2009 at 8:21 AM, orbit wrote: > > I am trying to create a simple dialog activity. > > If i add: android:theme="@android:style/Theme.Dialog" to my > tag in my AndroidManifest.xml everything works as it is supposed to. I > get a frame around my text and the background gets dimmed. > > If i however instead if setting the theme in my manifest call setTheme > (android.R.style.Theme_Dialog); from my activities onCreate method > things get strange. I get the frame alright but the background in > black! not dimmed as it should be. > > Can anyone help me out? > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Putting Android on Par with the iPhone Software
Move this to android-discuss. Please. On Wed, Mar 18, 2009 at 11:37 AM, Schiffres wrote: > > Hey Guys, > First, I want to apologize for the lack of coherence, or paragraphs > (sorry Al), I've had a pretty minimal amount of sleep this week :P. > To Carl, I fully acknowledge the iPhone shortcomings and the grant > potential for Android, it's why I'm, perhaps blindly, an uber Android > supporter. However, what I was actually trying to get at, which > thankfully has been addressed by Paper and Bradley are the > shortcomings, the specific features, functions, and usability that > Android lacks. Even if you feel it is fully functional in your > opinion, what is the next big feature, the next step in Android > development, what you would love to see in Android, its next wild > feature that may not even be supported by today's technology. > > It seems to me that Google, which has in my opinion the ability to > create an OS three times as good as Apple's, has been dropping the > ball a bit on Android, which in turn ruins its reputation, regardless > of it's actual functionality. I can't begin to postulate the cause of > this lackluster performance, however, personally I think it's that > Google has no incentive to make it the best it can be because it makes > no direct source of revenue (Al, the 30% isn't supposed to be for > profit at all, but rather to clear up the costs of the transaction and > corollary costs, so that Google breaks even). A view of a Google > search on an iPhone equally profits Google as a Google search on an > Android powered device. However, it could be argued that Google wants > to be able to control the means that its users and customers access > its product (an explanation that also gives reason as to why they > developed Chrome). > > While I'd love to discuss Google's economic incentives and overall > financial plan, that must be saved for a different thread. It was my > intention that this thread would be a source where people invested in > Android could list what features, functions they wish to see in > Android, along with all other ideas as to what Google should do. If > you were the Android project manager, what would you do, what ideas > would you push, what issues would you resolve. Furthermore, it was > meant as an area that Android developers could collaborate, > critiquing, contributing to, and refining others' ideas. Healthy > debate is good, and eventually if it becomes a large enough source of > ideas for Android, it'll be noticed (or I'll send them the thread) by > Google engineers working on Android and make it much simpler to > implement the ideas. As Android developers, you know more about this > than the average luddite, and in the spirit of open source, we must > come together to work with Google and make Android everything we can > imagine it to be. > > Thanks for all the activity, > Schiffres > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to config G1 to make both browser and MMS work?
when you want to use different APNs for both data and MMS, you need to set the "apn type" field for the system to make a difference between them and use them both. use "apn type=default" for the data APN. and "apn type=mms" for the MMS one. Hope this helps On Wed, Mar 18, 2009 at 12:38 AM, FayGU wrote: > > I have a G1 phone and use it in mainland China. > But I can't config it to work with browser and MMS at the same time. > However with different APN, the browser and MMS can work seperately. > For browser, I use following APN config: > --- > name:cmnet > apn: cmnet > proxy:blank > port:blank > username:blank > password:blank > server:blank > mmsc:blank > mms proxy:blank > mms port:blank > mcc:460 > mnc:00 > apn type:blank > -- > > For MMS, I use following APN config: > -- > name:cmwap > apn: cmwap > proxy:blank > port:blank > username:blank > password:blank > server:blank > mmsc:http://mmsc.monternet.com > mms proxy:010.000.000.172 > mms port:80 > mcc:460 > mnc:00 > apn type:blank > --- > > When above two APNs both exists, only browser can work. MMS doesn't > work any more. > > Does any google export know that how to config G1 to make both browser > and MMS work? > If it's a known issue, is there any roadmap to fix it? > Thanks! > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to detect Fling action in my widget
Make sure you return the correct boolean-values in the other methods of your OnGestureDetector (onDown, onScroll, etc). On Mar 18, 2:51 pm, Meryl Silverburgh wrote: > Hi, > > Can you please tell me how can I detect Fling action in my own widget? > I have implemented my widget as OnGestureListener. > > And like in Gallery, I have a > "GestureDetector mGestureDetector = new GestureDetector(this);" > > For my onTouchEvent(), I have > @Override > public boolean onTouchEvent(MotionEvent event) { > > // Give everything to the gesture detector > boolean retValue = mGestureDetector.onTouchEvent(event); > return retValue; > } > > But my public boolean onFling(MotionEvent e1, MotionEvent e2, float > velocityX, float velocityY) is never get claeed. > > CAn you please tell me why? > > Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Do ProximityAlerts actually work?
I think I may be onto something...I can get PAs to work "in the field" if I send one *and only one* PA to the LocationManager. I'm now thinking that the last PA is the only one "active". If that's true, then I'll have to write my own routine to figure out which landmark is closest to me which kind of defeats the purpose of PAs, in my mind. On Wed, Mar 18, 2009 at 11:59 AM, Faber Fedor wrote: > Sorry about that. My browser was acting weird. Anyway... > > I'm coming to the conclusion that ProximityAlerts (PAs) don't actually work > at least in v 1.0. > > Here is why I think PAs don't work (reliably): > 1. my code sends ProximityAlerts which show up in the log > 2. when my code does a sendBrodcast(new Intent(TYW_PROXIMITY_ALERT)) the > phone vibrates and I receive a notification, so I know my BroadcastReceiver > is working fine. > 3. Once out of a n attempts or so (n > 25), the phone acts like it received > a PA but I can't replicate it. > 4. I've set the LocationUpdates to be as fast as possible and the > ProximtyRadius to a reasonable amount then I walk up towards a landmark > that I've sent a PA for. I can see my position changing, I see the landmark > enter the ProximityRadius zone, I hang out there for up to 30 minutes, and I > move away, watching the landmark leave the ProximityRadius. Nada. > 5. I haven't come across an discussion of PAs using verion 1.0 of the SDK, > which I find suspicious. > > So, either I'm violating some undocumented feature of the PA (like, you can > only send one at a time and then only during a full moon) or these things > don't work. > > What do you think? > > > -- > > Faber Fedor > Linux New Jersey > http://linuxnj.com > faberfedor.blogspot.com > -- Faber Fedor Linux New Jersey http://linuxnj.com faberfedor.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to detect Fling action in my widget
Hi, Can you please tell me how can I detect Fling action in my own widget? I have implemented my widget as OnGestureListener. And like in Gallery, I have a "GestureDetector mGestureDetector = new GestureDetector(this);" For my onTouchEvent(), I have @Override public boolean onTouchEvent(MotionEvent event) { // Give everything to the gesture detector boolean retValue = mGestureDetector.onTouchEvent(event); return retValue; } But my public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) is never get claeed. CAn you please tell me why? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: MediaPlayer and onRetainNonConfigurationInstance()
You will have to handle the orientation change yourself, since otherwise the surface that the video is displayed on goes away. On Wed, Mar 18, 2009 at 11:30 AM, Andres Calvete wrote: > > I know this question has been asked previously because I have read the > other postings over a hundred times but yet I cannot come up with an > answer on how to use keep a MediaPlayer object playing over an > orientation change. I've read that you can use > onRetainNonConfigurationInstance() to pass an object to your future > self when the activity is destroyed/recreated, but I can't keep a > video playing in this circumstances. Does anybody have an example or > an advice/guide on how to do this? or rather what do I pass on > onRetainNonConfigurationInstance() to keep the video playing after an > orientation change? > > Thanks > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Putting Android on Par with the iPhone Software
Hey Guys, First, I want to apologize for the lack of coherence, or paragraphs (sorry Al), I've had a pretty minimal amount of sleep this week :P. To Carl, I fully acknowledge the iPhone shortcomings and the grant potential for Android, it's why I'm, perhaps blindly, an uber Android supporter. However, what I was actually trying to get at, which thankfully has been addressed by Paper and Bradley are the shortcomings, the specific features, functions, and usability that Android lacks. Even if you feel it is fully functional in your opinion, what is the next big feature, the next step in Android development, what you would love to see in Android, its next wild feature that may not even be supported by today's technology. It seems to me that Google, which has in my opinion the ability to create an OS three times as good as Apple's, has been dropping the ball a bit on Android, which in turn ruins its reputation, regardless of it's actual functionality. I can't begin to postulate the cause of this lackluster performance, however, personally I think it's that Google has no incentive to make it the best it can be because it makes no direct source of revenue (Al, the 30% isn't supposed to be for profit at all, but rather to clear up the costs of the transaction and corollary costs, so that Google breaks even). A view of a Google search on an iPhone equally profits Google as a Google search on an Android powered device. However, it could be argued that Google wants to be able to control the means that its users and customers access its product (an explanation that also gives reason as to why they developed Chrome). While I'd love to discuss Google's economic incentives and overall financial plan, that must be saved for a different thread. It was my intention that this thread would be a source where people invested in Android could list what features, functions they wish to see in Android, along with all other ideas as to what Google should do. If you were the Android project manager, what would you do, what ideas would you push, what issues would you resolve. Furthermore, it was meant as an area that Android developers could collaborate, critiquing, contributing to, and refining others' ideas. Healthy debate is good, and eventually if it becomes a large enough source of ideas for Android, it'll be noticed (or I'll send them the thread) by Google engineers working on Android and make it much simpler to implement the ideas. As Android developers, you know more about this than the average luddite, and in the spirit of open source, we must come together to work with Google and make Android everything we can imagine it to be. Thanks for all the activity, Schiffres --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] MediaPlayer and onRetainNonConfigurationInstance()
I know this question has been asked previously because I have read the other postings over a hundred times but yet I cannot come up with an answer on how to use keep a MediaPlayer object playing over an orientation change. I've read that you can use onRetainNonConfigurationInstance() to pass an object to your future self when the activity is destroyed/recreated, but I can't keep a video playing in this circumstances. Does anybody have an example or an advice/guide on how to do this? or rather what do I pass on onRetainNonConfigurationInstance() to keep the video playing after an orientation change? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to move file from sdcard to private location
Michael, thanks for the explanation. When you mean copy, does that mean I have to read from one file and write to another one? Or Java provide a way to do the copy? Also, is there a way to mark a file in the sdcard to be private so no other app can see it? That way, I won't need to copy the file anymore. :) On Wed, Mar 18, 2009 at 10:43 AM, Michael MacDonald < googlec...@antlersoft.com> wrote: > > Rename won't work because they are on different file system. You'll > have to physically copy from one to the other. > > yves...@gmail.com wrote: > > I want to move some files from sdcard to /data/data/myapp/files > > folder, I can use OpenInputFile and OpenOutputFile and write to it, > > then delete the original one. But it is slow, so, I tried to use > > oldFile.Rename(newFile), but it always return false. Any idea? The > > reason I am doing this is to hide some files from my sdcard, so, > > nobody can see them. > > > > > > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how to take small picture
Take a look at the Bitmap and BitmapFactory classes in the Android SDK On Mar 18, 1:52 pm, cindy wrote: > Hi, > > Is there anyway to reduce the resolution of picture taken using > camera? It takes long time to upload the image to server. Does anyone > use any compression software for image ? > > Thanks! > > Cindy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] how to take small picture
Hi, Is there anyway to reduce the resolution of picture taken using camera? It takes long time to upload the image to server. Does anyone use any compression software for image ? Thanks! Cindy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Putting Android on Par with the iPhone Software
An excellent comparison of interfaces. Although the iPhone doesn't sem to have the capabilities the Android OS has, the Android interface is, as already mentioned in other posts, lacking. It would be nice to see a set of standards that all apps should attempt to adhere to. So far I only see bits and pieces of the 'suggested' standard placed randomly throughout the developer site. There should be a dedicated page where all expected standards are listed, at a minimum the user interface specifications. If this clearly written specification has already been made, please indicate the location with a link. On Wed, Mar 18, 2009 at 10:54 PM, Bradley S. O'Hearne < brad.ohea...@gmail.com> wrote: > > Pat, > > I don't wish to get into a religious debate here, but for the purposes > of constructive, concrete criticism/suggestion, I'd like to mention > something here. I have / use / develop on both the iPhone and Google > Android. It is very interesting to set both devices side by side, and > attempt to do the same exact thing, whether it is make a phone call, > run an app, change settings, etc. Even if the performance were exactly > the same, the ease of use and user experience is significantly > different, tilted heavily in favor of the iPhone. > > Android suffers from a lack of consistency in the user experience. > Sometimes typing is required on the hardware keyboard, sometimes on > the phone. Sometime navigation is by the hardware menu and back > buttons, sometimes there are navigation buttons on the touch screen. > Sometimes menus can be dragged from the title bar or the bottom of the > screen, sometimes the hardware buttons are required. And the fact that > typing which requires the hardware keyboard also requires sliding the > keyboard out and a change of screen orientation isn't user friendly > either. > > Apple has taken a lot of criticism from those who do not appreciate > App Store submissions being rejected because of misuse of user > interface standards. I personally appreciate it, because the > protection of user interface metaphors are what give consistency to > the iPhone across apps, and make apps on the iPhone which use standard > interface metaphors intuitive by default. If I see a navigation bar or > a tab bar or a disclosure button on a table, I know exactly what those > will do in *any* application. > > IMHO, Google would really benefit from a critical analysis of Android > from a user standpoint, and a real focus on establishment of widely > adopted user interface standards on apps. At this point, Android > really has the feel of an environment that has been oriented primarily > towards developers, not towards users. Don't get me wrong, Android has > done some great things -- things I really appreciate as a developer. > But at the end of the day, it is all about the users. > > Just my 2 cents... > > Brad > > On Mar 18, 2009, at 7:45 AM, patg wrote: > > > > > Google needs to realize that smart phones are the next wave > > of personal computers and start treating Android phones as a computer > > with a phone attached rather than a phone with fairly impressive > > compute power. > > > > The outcome of this line of thought is understanding that google > > does not know what the next killer app will be and what resources > > it will need to accomplish its task. Probabily users will need more > > control over the phone to install potentially root privleged programs > > and device driver, developers will need access to all the hardware > > perpherials (USB, Bluetooth...) Think of it a a Linux computer with > > a phone attached. > > > > Additionally the Dalvik VM is very slow which is jeopardizing > > the platforms viability for anything more than simple image > > manapilation via GL. Java did not take off for Sun until sun > > got JIT working well. The same will need to happen for Dalvik. > > > > > > > > On Mar 17, 6:31 pm, Schiffres wrote: > >> This is a message to all other Android Developers, bloggers, or > >> interest groups. Unfortunately, it is rather evident that, for a > >> myriad of reasons, Android as an OS simply isn't on the same level as > >> the iPhone in what it offers, what it can do, how it runs, etc. etc. > >> As a full supporter of most everything Google endeavors to take on, I > >> am gleeful to see Android, an open source competitor challenging the > >> iPhone. Google has brilliant engineers, a plethora of resources, and > >> the flexibility to test and experiment wacky ideas that become the > >> technological standard of tomorrow. So why isn't Android > >> commensurate > >> to the iPhone? My opinion is that it's because Google doesn't make > >> any, even a small stream, of revenue from Android, which is a major > >> disincentive and makes it economically infeasible and to pour > >> resources into it to make it the best and most competitive possible > >> OS > >> it can be. While I hope Google addresses this issue in the future, > >> we > >> need to make it easy fo
[android-developers] Re: How to move file from sdcard to private location
Rename won't work because they are on different file system. You'll have to physically copy from one to the other. yves...@gmail.com wrote: > I want to move some files from sdcard to /data/data/myapp/files > folder, I can use OpenInputFile and OpenOutputFile and write to it, > then delete the original one. But it is slow, so, I tried to use > oldFile.Rename(newFile), but it always return false. Any idea? The > reason I am doing this is to hide some files from my sdcard, so, > nobody can see them. > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] @drawable/logo is not showing the icon in Emulator
Hi I am not able to show the icon at the startup time in my emulator This is the code what i have in manifest.xml and I have logo.png in drawble folder. But still i am not getting that icon it is diaplying simply blank block image. Can any one help me in 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problems with NotificationManager
I can't believe I've made this mistake, Cheers. On Mar 18, 4:58 pm, Marco Nelissen wrote: > Just use a different Intent for each of your notifications. > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problems with ksoap2 and BasicAuth
Sorry for the double post. please ignore this post ;) On 18 Mrz., 18:24, sumdroid wrote: > hi, > > at the moment i have the following problem. I try to establish a > connect to a SOAP-service. Therefore i need basicauth via http. I use > ksoap2 and HttpTransportBasicAuth. > The problem is, I do not know how i can start a call when i use > HttpTransportBasicAuth becouse the function "call" is not available. > > private static final String SOAP_ACTION = "getVessels"; > private static final String METHOD_NAME = "getVessels"; > private static final String NAMESPACE = "http://xxx.com/";; > private static final String URL = "http://xxx.com/soap/ > android.wsdl"; > > void test() { > try { > HttpTransportBasicAuth(URL,"foo","bar"); > > HttpTransportSE androidHttpTransport = new HttpTransportSE > (URL); > androidHttpTransport.debug = true; > > SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); > request.addProperty("query", "aida"); > > SoapSerializationEnvelope envelope = new > SoapSerializationEnvelope(SoapEnvelope.VER11); > envelope.setOutputSoapObject(request); > > androidHttpTransport.call(SOAP_ACTION, envelope); > > Object result = envelope.getResponse(); > > //handle result here > > //myExampleHandler.getResults(); > } catch (Exception e) { > e.printStackTrace(); > } > } > > i hope someone can help me. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] SOAP with ksoap2: BasicAuth-Problems
hi, i try to establish a connection to a SOAP-Service. Therefore i use ksoap2. I need Authentification so i tryed the class HttpTransportBasicAuth. The Problem is, that i do not know how i should use this class the make a call. The class HttpTransportBasicAuth do not know the function call. here are some examplecode: private static final String SOAP_ACTION = "getVessels"; private static final String METHOD_NAME = "getVessels"; private static final String NAMESPACE = "http://xxx.com/";; private static final String URL = "http://xxx.com/soap/android.wsdl";; void test() { try { HttpTransportBasicAuth androidHttpTransport = new HttpTransportBasicAuth(URL,"xxx","xxx"); androidHttpTransport.debug = true; SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); request.addProperty("query", "aida"); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.setOutputSoapObject(request); HttpTransportBasicAuth.call(SOAP_ACTION, envelope); Object result = envelope.getResponse(); //handle result here //myExampleHandler.getResults(); } catch (Exception e) { e.printStackTrace(); } } i hope, someone can help me. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Problems with ksoap2 and BasicAuth
hi, at the moment i have the following problem. I try to establish a connect to a SOAP-service. Therefore i need basicauth via http. I use ksoap2 and HttpTransportBasicAuth. The problem is, I do not know how i can start a call when i use HttpTransportBasicAuth becouse the function "call" is not available. private static final String SOAP_ACTION = "getVessels"; private static final String METHOD_NAME = "getVessels"; private static final String NAMESPACE = "http://xxx.com/";; private static final String URL = "http://xxx.com/soap/ android.wsdl"; void test() { try { HttpTransportBasicAuth(URL,"foo","bar"); HttpTransportSE androidHttpTransport = new HttpTransportSE (URL); androidHttpTransport.debug = true; SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); request.addProperty("query", "aida"); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.setOutputSoapObject(request); androidHttpTransport.call(SOAP_ACTION, envelope); Object result = envelope.getResponse(); //handle result here //myExampleHandler.getResults(); } catch (Exception e) { e.printStackTrace(); } } i hope someone can help me. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to Show One tab at a time on the screen.
Hi i developed five tabs and i want to display only one tab on the screen at a time. when i press emulator keys the controle change from one tab to another tab. Tell me how to write the code (not in XML) for the above Question. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Android developer Needed urgently
Hi, Please reply me with Maching profile on shv...@tulsana.com; Please do not send resume without "Android" experiance. I am looking for “ Android developer”. Job Description: Title: Android Developer Location: Houston, San Jose, Rate : Market Job summary: The ideal candidate will design, code, test, deliver and maintain Java, Android based applications. Key skill sets: Core Java 4 years Six months of Android ex. OOP skill. Experience of social networking is a plus. Regards, Shveta Jain Sr. Resource Manager shv...@tulsana.com; www.tulsana.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Spinner Selector Help
Hello i'm trying to change the design of the selector on a spinner as the big circular button looks very ugly. I've been trying to follow this guide http://www.gersic.com/blog.php?id=57. However, i'm having problems using the following two xml attributes as they are unknown and i'm getting the following error message "error: no resource identifier found for attribute in package 'android' " : android:drawSelectorOnTop="true" ( 'false' also doesn't remove the selector from my spinner) android:spinnerSelector="@drawable/ myCustomSelector" (myCustomSelector is my own .png picture for the spinner) I am using Eclipse 3.4 and Android SDK v1.0 r2. If i can not change the design of them i'd like to remove them completely from the spinner. Have these attributes been removed and if so what have they been replaced with? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Fails to connect to AP(which didn't support DHCP Service)
The 169.254.x.x IP is a Windows convention - and usually causes more trouble than it's worth. It doesn't appear that this version of the system (or the configuration UI at least) supports a static IP address for the WiFi interface. The underlying Linux does, of course. But without the proper UI, an ordinary G1 can't configure it. On Mar 11, 6:40 pm, joseph wrote: > I tried connect to AP(DHCP componet is disabled) with Google dev phone > 1. > It fails to connect to that AP. Can't get a ip address from AP. > I hoped the dev phone succefully connect to the AP, and assign own > auto-ip by itself(169.254.xx.xx). But It didn't happend. I think it > must be abnormal case. > > Is there any special way to get an Auto IP address? > (ex. change WiFi Driver...) > > Thanks > -joe- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] system notification while app is running
Hello, After I install an apk and run it immediately, it seems the system notification (app installed) is pushed only when I exit the app. Any possible way to detect this whilst app is running? Thanks Robert --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Putting Android on Par with the iPhone Software
Pat, I don't wish to get into a religious debate here, but for the purposes of constructive, concrete criticism/suggestion, I'd like to mention something here. I have / use / develop on both the iPhone and Google Android. It is very interesting to set both devices side by side, and attempt to do the same exact thing, whether it is make a phone call, run an app, change settings, etc. Even if the performance were exactly the same, the ease of use and user experience is significantly different, tilted heavily in favor of the iPhone. Android suffers from a lack of consistency in the user experience. Sometimes typing is required on the hardware keyboard, sometimes on the phone. Sometime navigation is by the hardware menu and back buttons, sometimes there are navigation buttons on the touch screen. Sometimes menus can be dragged from the title bar or the bottom of the screen, sometimes the hardware buttons are required. And the fact that typing which requires the hardware keyboard also requires sliding the keyboard out and a change of screen orientation isn't user friendly either. Apple has taken a lot of criticism from those who do not appreciate App Store submissions being rejected because of misuse of user interface standards. I personally appreciate it, because the protection of user interface metaphors are what give consistency to the iPhone across apps, and make apps on the iPhone which use standard interface metaphors intuitive by default. If I see a navigation bar or a tab bar or a disclosure button on a table, I know exactly what those will do in *any* application. IMHO, Google would really benefit from a critical analysis of Android from a user standpoint, and a real focus on establishment of widely adopted user interface standards on apps. At this point, Android really has the feel of an environment that has been oriented primarily towards developers, not towards users. Don't get me wrong, Android has done some great things -- things I really appreciate as a developer. But at the end of the day, it is all about the users. Just my 2 cents... Brad On Mar 18, 2009, at 7:45 AM, patg wrote: > > Google needs to realize that smart phones are the next wave > of personal computers and start treating Android phones as a computer > with a phone attached rather than a phone with fairly impressive > compute power. > > The outcome of this line of thought is understanding that google > does not know what the next killer app will be and what resources > it will need to accomplish its task. Probabily users will need more > control over the phone to install potentially root privleged programs > and device driver, developers will need access to all the hardware > perpherials (USB, Bluetooth...) Think of it a a Linux computer with > a phone attached. > > Additionally the Dalvik VM is very slow which is jeopardizing > the platforms viability for anything more than simple image > manapilation via GL. Java did not take off for Sun until sun > got JIT working well. The same will need to happen for Dalvik. > > > > On Mar 17, 6:31 pm, Schiffres wrote: >> This is a message to all other Android Developers, bloggers, or >> interest groups. Unfortunately, it is rather evident that, for a >> myriad of reasons, Android as an OS simply isn't on the same level as >> the iPhone in what it offers, what it can do, how it runs, etc. etc. >> As a full supporter of most everything Google endeavors to take on, I >> am gleeful to see Android, an open source competitor challenging the >> iPhone. Google has brilliant engineers, a plethora of resources, and >> the flexibility to test and experiment wacky ideas that become the >> technological standard of tomorrow. So why isn't Android >> commensurate >> to the iPhone? My opinion is that it's because Google doesn't make >> any, even a small stream, of revenue from Android, which is a major >> disincentive and makes it economically infeasible and to pour >> resources into it to make it the best and most competitive possible >> OS >> it can be. While I hope Google addresses this issue in the future, >> we >> need to make it easy for the current Google engineers to create a >> competitive project, and that means, in the true spirit of open >> source, we must contribute. So developers, educated Android savvy >> technological wizards, come together, and below post everything you >> would want to see in an Android update to both put Android on par >> with >> the iPhone, and push it beyond. Put ideas that well up on the brink >> of your imagination below, think up the next big idea, the brilliant >> feature that'll make Android the unparalleled smart phone champion. >> Once Android is more popular, better phones will be made for it, >> it'll >> have more developers, and Google will invest more money in it, but we >> need to give it that first push. Below, use our collective wisdom >> and >> create a single thread t
[android-developers] Android email client hyperlinks and uri schemes
Hi, What url schemes does the Android email client recognise and highlight (e.g. make clickable) and are they extensible? e.g. can ayou register new schemes with it - i.e. a proprietary scheme like myshceme:// so that we can send a link to launch our app with data in an email) ? ATB Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to config G1 to make both browser and MMS work?
I have posted this topic before. But I can't find it in the topic list. I have a G1 phone and use it in mainland China. But I can't config it to work with browser and MMS at the same time. However with different APN, the browser and MMS can work seperately. For browser, I use following APN config: --- name:cmnet apn: cmnet proxy:blank port:blank username:blank password:blank server:blank mmsc:blank mms proxy:blank mms port:blank mcc:460 mnc:00 apn type:blank -- For MMS, I use following APN config: -- name:cmwap apn: cmwap proxy:blank port:blank username:blank password:blank server:blank mmsc:http://mmsc.monternet.com mms proxy:010.000.000.172 mms port:80 mcc:460 mnc:00 apn type:blank --- When above two APNs both exists, only browser can work. MMS doesn't work any more. Does any google export know that how to config G1 to make both browser and MMS work? If it's a known issue, is there any roadmap to fix it? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] New developer - general question
Hi all, I'm a new Android developer and, as well as working through the available tutorials (lots of material there, very helpful), I'm trying to understand how the standard applications (and others installed later) relate to each other and to new applications. For example, does the standard Calendar application make any interface available to other applications so that the other apps can (say) read calendar entries or create new ones? More generally, do applications make APIs available, or is all inter-application communications made by Intents? Julian Luttrell --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to develop Bluetooth on Android App
How to develop Bluetooth on Android App? I try to find it, but i can't to miss it. Do you have idea for develop it? Thank --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Why does eclipse need internet access to work?
Usually eclipse consider this emulator to be an external device connected to a port... so it will try to make connection through your system port. So allow the connection so that the debugger can attach to app in the emulator. -David On Mar 18, 7:25 am, Faber Fedor wrote: > On Tue, Mar 17, 2009 at 9:47 PM, amiz wrote: > > > Anyone knows why is network access required for eclipse to work? > > It doesn't. I just turned off Airport on my MB, fired up Eclipse, and > successfully started up my app in emulator mode. > > Must be something special in your setup. Have you tried sniffing the > wire(less)? > > -- > > Faber Fedor > Linux New Jerseyhttp://linuxnj.com > faberfedor.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Automatic site login
Hi Can i automatically login to a site in webview using available login credentials ? i.e when user clicks connect, i need to open that page in webview, and show it in logged in state i want to try that for orkut... 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] a wrapper script for /usr/bin/find to accelerate building of Android code
Hi all, I find the current building system of Android uses /usr/bin/find heavily, iotop[1] shows /usr/bin/find consumes 98% disk I/O bandwidth, the heavy I/O load makes virtual terminal hang frequently (We login a central Ubuntu server with ssh), it's very very annoying, so I write this little wrapper script to cache output of /usr/bin/find. Simple usage is shown below, see the script itself for detailed description. ...save the attachment as $HOME/bin/find... chmod u+x $HOME/bin/find cd top-dir-of-android-code export PATH=$HOME/bin:$PATH . build/envsetup.sh lunch 1 make Below is output of `time make` that just checks all targets: cached find: real0m13.958s user0m10.749s sys 0m4.124s original /usr/bin/find: real1m14.578s user0m8.773s sys 0m2.368s I hope this script is useful for you. [1] iotop: http://guichaz.free.fr/iotop/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~--- #!/bin/sh # # Purpose: # cache result of find command to avoid heavy load on the disk I/O. # # Usage: # change your PATH temporarily to use find instead of /usr/bin/find, # delete corresponding file under $CACHE if you add or delete some # files. # # You can change REAL_COMMAND below to cache output of other commands, # this script is generalized like Perl's Memoize module: # http://search.cpan.org/~mjd/Memoize-1.01/Memoize.pm # # Author: # yubao@gmail.com # # License: # BSDL # # Version: # 0.3 # # ChangeLog: # 2009-03-17 Liu Yubao # * initial version, v0.1 # * don't cache output of find if it goes wrong # * use ed instead of sed, suggested by inva...@newsmth # * record return value, keep cache (conflict with second change above), # v0.2 # # 2009-03-18 Liu Yubao # * separate output, command and return value into two files # * take $0 into account when calculate MD5 digest, v0.3 REAL_COMMAND=/usr/bin/find CACHE="$HOME/.find-cache" cwd="$PWD" args="$*" md5sum=`echo "$cwd $0 $args" | md5sum | cut -c -32` file="$CACHE/$md5sum" [ -e "$CACHE" ] || mkdir -p "$CACHE" if [ -f "$file" ]; then cat "$file" read < "$file.cmd" exit $REPLY else # { $REAL_COMMAND "$@" || rm "$file"; } | tee "$file" { $REAL_COMMAND "$@" ; retval=$?; } | tee "$file" { echo $retval echo "CWD=$cwd CMD=$0 $args" } > "$file.cmd" fi
[android-developers] how to use WebView.setHttpAuthUsernamePassword() ?
I am trying to use WebView.setHttpAuthUsernamePassword() to handle basic HTTP authentication on displaying a web page. I wouldn't think it's anything complicated but I cannot find any documentation on how to use it, an example, etc. I've tried what I would guess is the usage: webview = (WebView) findViewById(R.id.webview); webview.getSettings().setJavaScriptEnabled(true); webview.setHttpAuthUsernamePassword("www.foo.com","realm text","joe","xyz123"); webview.loadUrl("http://www.foo.com/index.html";); but I can see from the web server logs that the authentication information is not being sent. The client side (in the emulator) shows only a blank (black) view. The same url loaded in the emulators browser loads fine. Any suggestions or pointers to examples on how to use this? Or an alternative to handle the authentication information? Thanks --brian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to provide image file as an sd card
In Run Configuration, > target set the Additional emulator command line options type this parameter -sdcard "exactpath of image file in your PC" so this image will be added as SDcard for your emulator. -David On Mar 18, 11:08 am, Chetan wrote: > Hello , > I am using camera to capture snapshots. > But i am unable to view taken pictures location. > I am also unable to browse sdcard directory using DDMS in eclipse. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Accessing contact' email addresses
Posted: Tue Mar 17, 2009 11:47 amPost subject: Accessing contact' email addresses Hi! I'm developing an application in which I need to display user a list of contacts and their email addresses so that user can choose one of them. I've got some help from Internet and I'm able to display a list of contacts and their number by the following code: --- JAVA CODE --- public class ShowContacts extends ExpandableListActivity implements OnChildClickListener { private int mGroupIdColumnIndex; private String mPhoneNumberProjection[] = new String[] { People.Phones._ID, People.NUMBER // CHANGE HERE }; private ExpandableListAdapter mAdapter; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Query for people Cursor groupCursor = managedQuery(People.CONTENT_URI, new String[] {People._ID, People.NAME}, null, null, null); // Cache the ID column index mGroupIdColumnIndex = groupCursor.getColumnIndexOrThrow (People._ID); // Set up our adapter mAdapter = new MyExpandableListAdapter(groupCursor, this, android.R.layout.simple_expandable_list_item_1, android.R.layout.simple_expandable_list_item_1, new String[] {People.NAME}, // Name for group layouts new int[] {android.R.id.text1}, new String[] {People.NUMBER}, // AND CHANGE HERE new int[] {android.R.id.text1}); setListAdapter(mAdapter); } public class MyExpandableListAdapter extends SimpleCursorTreeAdapter { public MyExpandableListAdapter(Cursor cursor, Context context, int groupLayout, int childLayout, String[] groupFrom, int[] groupTo, String[] childrenFrom, int[] childrenTo) { super(context, cursor, groupLayout, groupFrom, groupTo, childLayout, childrenFrom, childrenTo); } @Override protected Cursor getChildrenCursor(Cursor groupCursor) { // Given the group, we return a cursor for all the children within that group // Return a cursor that points to this contact's phone numbers Uri.Builder builder = People.CONTENT_URI.buildUpon(); ContentUris.appendId(builder, groupCursor.getLong (mGroupIdColumnIndex)); builder.appendEncodedPath (People.Phones.CONTENT_DIRECTORY); Uri phoneNumbersUri = builder.build(); return managedQuery(phoneNumbersUri, mPhoneNumberProjection, null, null, null); } } @Override public boolean onChildClick(android.widget.ExpandableListView parent, View v, int groupPosition, int childPosition, long id) { AlertDialog dialog = new AlertDialog.Builder (ShowContacts.this) .setMessage(((TextView) v).getText().toString()) .setPositiveButton("OK", null).create(); dialog.show(); return true; } } --- What I need now is how to replace numbers by email addresses. What I need to change is People.NUMBER at a couple of places but I'm not able to find any replacement. There is a field called People.PRIMARY_EMAIL_ID but that returns the ID of the email rather than the actuall email. Kindly guide me what am I missing. Big thanks in advance!!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Automatic site login
Hi i have user credential, with that can i automatically login to a site like orkut, facebook etc using webview when user clicks a button. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to move file from sdcard to private location
I want to move some files from sdcard to /data/data/myapp/files folder, I can use OpenInputFile and OpenOutputFile and write to it, then delete the original one. But it is slow, so, I tried to use oldFile.Rename(newFile), but it always return false. Any idea? The reason I am doing this is to hide some files from my sdcard, so, nobody can see them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to config G1 to make both browser and MMS work?
I have a G1 phone and use it in mainland China. But I can't config it to work with browser and MMS at the same time. However with different APN, the browser and MMS can work seperately. For browser, I use following APN config: --- name:cmnet apn: cmnet proxy:blank port:blank username:blank password:blank server:blank mmsc:blank mms proxy:blank mms port:blank mcc:460 mnc:00 apn type:blank -- For MMS, I use following APN config: -- name:cmwap apn: cmwap proxy:blank port:blank username:blank password:blank server:blank mmsc:http://mmsc.monternet.com mms proxy:010.000.000.172 mms port:80 mcc:460 mnc:00 apn type:blank --- When above two APNs both exists, only browser can work. MMS doesn't work any more. Does any google export know that how to config G1 to make both browser and MMS work? If it's a known issue, is there any roadmap to fix it? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---