[android-developers] Re: Layout problem with ListView
Thanks Mark!! I'm going to have 1 of my favorite beers while coding just for you :) On Aug 14, 6:35 pm, Mark Murphy wrote: > Boxy wrote: > > > It looks like underestimated the difficulty of this question. > > > I tried to post a much simpler version of the question in the beginner > > group but its been hours and it still has not showed up. I think they > > have a problem with new topics over there. > > > I'll post the question here. I apologize for the spam :( > > > -- > > > I want to center a TextView inside of a layout. I've been playing > > with the XML code below and can't get it to work? > > Please help! > > > > > http://schemas.android.com/apk/res/ > > android" > > android:orientation="horizontal" > > android:gravity="center" > > android:layout_width="fill_parent" > > android:layout_height="fill_parent" > > > > > android:id="@+id/txtMessage" > > android:layout_width="fill_parent" > > android:layout_height="fill_parent" > > android:gravity="center" /> > > > > > Step #1: Use RelativeLayout. > > Step #2: Give the TextView the android:layout_centerInParent="true" > attribute. > > Step #3: Have a beer. Possibly preceded by "root" or "birch", if that's > your preference. ;-) > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > Android Training in Germany, 18-22 January 2010:http://bignerdranch.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] Timer not available
Hello, I came to know about Timer in android. I read http://android-developers.blogspot.com/2007/11/stitch-in-time.html that Timer is not available at Runtime. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Is touch screen a mandatory requirement for Android phone?
Currently you must have a touch screen to be an android compatible phone. You can certainly take the code and use it with a phone without a touch screen, but at this point the market will not be available for such a device (since third party applications are written with the assumption that there is a touch screen). On Fri, Aug 14, 2009 at 7:08 PM, Mike wrote: > > Dear sirs, > > I saw almost all Android devices supported touch screen.Is touch > screen an mandatory requirement for Android phone?Any risk if an > Android phone got physical keypad only? > > BRs, > Mike > > > > -- 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, and so won't reply to such e-mails. 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: Connect Device to PC through USB
hi, how do connect SQLite with Android Application? Thanks and Regards Ravisankar S On Sat, Aug 15, 2009 at 10:22 AM, Zeeshan Khan wrote: > Thanks for reply, > > Ok so i think there is no way to develop an application with feature which > can connect to PC(without any individual configuration with PC as it would > not be feasible) . > > On 8/15/09, Roman ( T-Mobile USA) wrote: >> >> >> If you want to use the USB as a ethernet network interface then it is >> not supported. >> >> You have to port the USB network support. >> >> -- >> Roman Baumgaertner >> Sr. SW Engineer-OSDC >> ·T· · ·Mobile· stick together >> The views, opinions and statements in this email are those of the >> author solely in their individual capacity, and do not necessarily >> represent those of T-Mobile USA, Inc. >> >> On Aug 14, 10:05 am, Chris Stratton wrote: >> > On Aug 14, 8:23 am, Zeeshan Khan wrote: >> > >> > > Hi, >> > >Is it possible to connect to PC through USB from android >> application. >> > >> > >Or is it possible by any other way. >> > >I want to connect to it to transfer data(video) >> > >> > If you have USB debugging turned on, you can use the ADB program on >> > the PC to push or pull files, install applications... and you can also >> > forward a tcp port from the pc to the device, and send arbitrary data >> > between applications over that. Look in the SDK docs about ADB. >> > Presumably the relevant functionality from the ADB tool could be >> > duplicated in some other PC application. >> > >> > I don't know if android supports means of using the USB when debugging >> > is not enabled, other than enabling USB mass storage which is find for >> > dumping files onto the device but not really usable by applications >> > themselves. >> >> --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Sharing data between activities
Hello Olli, what is the size of byte[] data? may be problem with the heap size. In logcat output, is something like grow heap? if yes, try with increasing heap size. pb On Aug 14, 2:22 pm, Elias wrote: > I have tried to share betweeb two simpleactivities: > > On "parent" activity, I'll start ImageCapture Activity: > > Intent cameraIntent = new Intent(); > cameraIntent.setClass(this, ImageCapture.class); > cameraIntent.putExtra("cameraData", "null"); //not sure > why > this is here? > startActivityForResult(cameraIntent, 1); > > @Override > protected void onActivityResult(int requestCode, int resultCode, > Intent data) { > CharSequence text = "onActivityResult requestCode " + > requestCode + " resultCode " + resultCode + " data " + data; > int duration = Toast.LENGTH_LONG; > Toast toast = Toast.makeText(this, text, duration); > toast.show(); > } > > And on camera Activity (I have inner class which implements > PictureCallback): > > �...@override > public void onPictureTaken(byte[] data, Camera camera) { > try { > Intent resultIntent = new Intent(); > resultIntent.putExtra("cameraData", data); > setResult(Activity.RESULT_OK,resultIntent); > finish(); > } catch (Exception ex) { > setResult(Activity.RESULT_CANCELED); > finish(); > } > } > > It seems that onActivityResult method is never called, what am I > missing here? Camera activity is closed and first activity is shown > again but onActivityResult is not called. > It works perfectly fine (onActivityResult is called and toast is > displayed) if do following on camera intent: > > @Override > public void onPictureTaken(byte[] data, Camera camera) { > try { > //Intent resultIntent = new Intent(); > //resultIntent.putExtra("cameraData", data); > setResult(Activity.RESULT_OK); > finish(); > } catch (Exception ex) { > setResult(Activity.RESULT_CANCELED); > finish(); > } > > With code above Activity.RESULT_OK (-1) is returned to > onActivityResult method. > I'm testing with HTC Hero. > > Cheers > Olli > > On 7 elo, 17:48, elpix1 wrote: > > > > > Another way to share data betweenactivitiesin the same process > > is to use the Application class: > > >http://developer.android.com/reference/android/app/Application.html > > > You have to specify the name of your Application class in the > > manifest and the framework will create only an instance of this > > class, which will live while the application process is running. > > > In any activity, you can get the reference for your application > > instance using: > > > Application a = getApplication(); > > > On Jul 22, 10:49 am, Per Sandström wrote: > > > > So far I have been using SharedPreferences to share data between > > >activities. But I would very much like to find a better way. I would > > > simply like both Activity1 and Activity2 to share Object1. Activity1 > > > will create Object1 and then start Activity2. What is the smartest way > > > to give Activity2 a pointer to Object1? > > > > To summarize:Activitiesdon't have constructors! How do I send data > > > to them from their parent activity??? > > > > Regards, > > > Per Sandström- 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: Connect Device to PC through USB
Thanks for reply, Ok so i think there is no way to develop an application with feature which can connect to PC(without any individual configuration with PC as it would not be feasible) . On 8/15/09, Roman ( T-Mobile USA) wrote: > > > If you want to use the USB as a ethernet network interface then it is > not supported. > > You have to port the USB network support. > > -- > Roman Baumgaertner > Sr. SW Engineer-OSDC > ·T· · ·Mobile· stick together > The views, opinions and statements in this email are those of the > author solely in their individual capacity, and do not necessarily > represent those of T-Mobile USA, Inc. > > On Aug 14, 10:05 am, Chris Stratton wrote: > > On Aug 14, 8:23 am, Zeeshan Khan wrote: > > > > > Hi, > > >Is it possible to connect to PC through USB from android > application. > > > > >Or is it possible by any other way. > > >I want to connect to it to transfer data(video) > > > > If you have USB debugging turned on, you can use the ADB program on > > the PC to push or pull files, install applications... and you can also > > forward a tcp port from the pc to the device, and send arbitrary data > > between applications over that. Look in the SDK docs about ADB. > > Presumably the relevant functionality from the ADB tool could be > > duplicated in some other PC application. > > > > I don't know if android supports means of using the USB when debugging > > is not enabled, other than enabling USB mass storage which is find for > > dumping files onto the device but not really usable by applications > > themselves. > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Google Dev Phone unavavailable! will they extend ADC II deadline..who to ask?!
Considering there's been information regarding ADC2 for a few months now, I imagine the response would be something like "You probably should have purchased a phone more than two weeks before the deadline". I mean, including shipping (imagine 3-5 days), you're cutting it pretty close there... - Dan On Sat, Aug 15, 2009 at 12:22 AM, -v- wrote: > > Hi, > I wanted to test my app that I plan to submit for ADC II. But the dev > phone from google is unavailable till sept first week! How are we > suppose to test it?! I dont want to sign a contract with T Mobile just > to test my app. > There is no contact email on ADC II !! > Will they extend ADC II deadline? > This contest is very poorly managed by Google standards if u ask me! > -v- > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 touch screen a mandatory requirement for Android phone?
Joystick, or a clickable trackball. On Aug 15, 6:32 am, Chris Stratton wrote: > The emulator would seem to demonstrate that a mouse works fine, but > not sure you would do well with no pointing device since so many apps > draw software defined buttons for major functionality. > > On Aug 14, 10:08 pm, Mike wrote: > > > > > Dear sirs, > > > I saw almost all Android devices supported touch screen.Is touch > > screen an mandatory requirement for Android phone?Any risk if an > > Android phone got physical keypad only? > > > BRs, > > Mike --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: ScrollView not resizing when a a child ListView is populated
Thanks Diane and Mark, I suppose I'll just have to add children to a LinearLayout programmatically. Thanks S On Aug 15, 4:29 am, Dianne Hackborn wrote: > Hi, that is the whole point of a scroll view -- its children are put in a > virtual scrollable container that doesn't impact the size of the scroll view > itself. > > You should never put a list view inside of a scroll view. > > > > On Fri, Aug 14, 2009 at 2:47 PM, Sena wrote: > > > Hi, > > > I have a ListView which is embedded in a ScrollView. I populate the > > rest of the Views in the ScrollView, then populate the ListView. > > Unfortunately yhe ScrollView doesn't size itself to accomodate the > > items in the ListView. Am I missing something? Is there a way to get > > the View to resize itself to accomodate the contents of the ListView? > > > Thanks > > S > > > Here is the View in question : > > > > > > http://schemas.android.com/apk/res/ > > android" > > xmlns:admob="http://schemas.android.com/apk/res/ > > com.imkon.android.jiradroid" > > android:layout_width="wrap_content" > > android:layout_height="wrap_content" > > android:orientation="vertical"> > > > > android:layout_width="fill_parent" > > android:layout_height="wrap_content" > > admob:backgroundColor="#00" admob:textColor="#FF" > > admob:keywords="Android application" > > admob:refreshInterval="60"/> > > > http://schemas.android.com/apk/res/ > > android" > > android:layout_width="fill_parent" > > android:layout_height="wrap_content" android:paddingLeft="1mm"> > > > http://schemas.android.com/apk/res/ > > android" > > android:layout_width="wrap_content" > > android:layout_height="wrap_content" > > android:orientation="vertical"> > > > http://schemas.android.com/apk/res/ > > android" > > android:layout_width="wrap_content" > > android:layout_height="wrap_content" > > android:orientation="vertical"> > > > > android:layout_width="wrap_content" > > android:layout_height="wrap_content" > > android:text="@string/ > > project_label" /> > > > > android:layout_width="wrap_content" > > android:layout_height="wrap_content" > > android:textSize="20.0sp" /> > > > > > > http://schemas.android.com/apk/res/ > > android" > > android:layout_width="wrap_content" > > android:layout_height="wrap_content" > > android:orientation="vertical"> > > > > android:layout_width="wrap_content" > > android:layout_height="wrap_content" > > android:text="@string/ > > key_label" /> > > > > android:layout_width="wrap_content" > > android:layout_height="wrap_content" > > android:textSize="20.0sp" /> > > > > > > http://schemas.android.com/apk/res/ > > android" > > android:layout_width="wrap_content" > > android:layout_height="wrap_content" > > android:orientation="vertical"> > > > > android:layout_width="wrap_content" > > android:layout_height="wrap_content" > > android:text="@string/ > > priority_label" /> > > > > android:layout_width="wrap_content" > > android:layout_height="wrap_content" > > android:textSize="20.0sp" /> > > > > > > http://schemas.android.com/apk/res/ > > android" > > android:layout_width="wrap_content" > > android:layout_height="wrap_content" > > android:orientation="vertical"> > > > > android:layout_width="wrap_content" > > android:layout_height="wrap_content" > > android:text="@string/ > > status_label" /> > > > > android:layout_width="wrap_content" > > android:layout_height="wrap_content" > > android:textSize="20.0sp" /> > > > > > > http://schemas.android.com/apk/res/ > > android" > > android:layout_width="wrap_content" > > android:layout_height="wrap_content" > > android:orientation="vertical"> > > > > android:layout_width="wrap_content" > > android:layout_height="
[android-developers] adc2 submission site
Hi, i've just purchased to be an android developer when i visit http://market.android.com/publish, i don't see anything about publish for adc 2 how to submit app for adc 2 ? 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: Is touch screen a mandatory requirement for Android phone?
The emulator would seem to demonstrate that a mouse works fine, but not sure you would do well with no pointing device since so many apps draw software defined buttons for major functionality. On Aug 14, 10:08 pm, Mike wrote: > Dear sirs, > > I saw almost all Android devices supported touch screen.Is touch > screen an mandatory requirement for Android phone?Any risk if an > Android phone got physical keypad only? > > BRs, > Mike --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] Google Dev Phone unavavailable! will they extend ADC II deadline..who to ask?!
Hi, I wanted to test my app that I plan to submit for ADC II. But the dev phone from google is unavailable till sept first week! How are we suppose to test it?! I dont want to sign a contract with T Mobile just to test my app. There is no contact email on ADC II !! Will they extend ADC II deadline? This contest is very poorly managed by Google standards if u ask me! -v- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 touch screen a mandatory requirement for Android phone?
It is my understanding that a touch screen is not 'mandatory'. n Aug 14, 7:08 pm, Mike wrote: > Dear sirs, > > I saw almost all Android devices supported touch screen.Is touch > screen an mandatory requirement for Android phone?Any risk if an > Android phone got physical keypad only? > > BRs, > Mike --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] oh my. Refusing connections to localhost?
I recently (a week or so ago) updated with a google security patch (the one about applications sharing namespaces; our provider pushed it out late I guess). Anyway, I've found the browser application no longer opens connections to localhost. To test I: - Bound a new socket to 8080 - Wait and log any connection attempts. - Attempted to connect to localhost:8080 with connectbot (telnet) => Logs connection attempt. - Attempted to connect to http://localhost:8080 with browser application => No connection. - Attempted to connect to http://localhost:8080 with application running webview => Logs connection attempt. This worked last time I tried it, but perhaps I've got some odd network permissions application installed which is messing things up. I'm going to try a factory reset and see how we go with that... Anyway, anyone else noticed this problem with their applications? ~ Doug. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] Application could not be installed on this phone?
I just rebuilt an application to use some new assets, and now I get this message on my phone when I try to install it: "Application not installed" "UnitTests could not be installed on this phone" Anyone know what's going on? I've checked and I've definitely got "Unknown sources" ticked on the application settings. This is just a self signed application to run my unit tests on an actual phone (the emulator doesn't cut it for real testing). I tried creating a new keystore, and they didn't help. What on earth? The only thing I can think of that I've done recently is accept a google security update... >_< If they've silently done some other updates that prevent self signed applications running, I'm severely upset. Anyone seen this? ~ Doug. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] Creating new directory under out\target\product\*\data
I'm trying to write a makefile for the Android system that copies files from my local filesystem to out/target/product*/data. Is there anyway to create new directories from within the makefile? What I'm doing right now is: file := $(TARGET_OUT_DATA)/media/audio/wolf.mp3 $(file) : $(LOCAL_PATH)/media/audio/wolf.mp3 However, this doesn't create /data/media (and /data/media/audio). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] Is touch screen a mandatory requirement for Android phone?
Dear sirs, I saw almost all Android devices supported touch screen.Is touch screen an mandatory requirement for Android phone?Any risk if an Android phone got physical keypad only? BRs, Mike --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: ScrollView not resizing when a a child ListView is populated
Hi, that is the whole point of a scroll view -- its children are put in a virtual scrollable container that doesn't impact the size of the scroll view itself. You should never put a list view inside of a scroll view. On Fri, Aug 14, 2009 at 2:47 PM, Sena wrote: > > Hi, > > I have a ListView which is embedded in a ScrollView. I populate the > rest of the Views in the ScrollView, then populate the ListView. > Unfortunately yhe ScrollView doesn't size itself to accomodate the > items in the ListView. Am I missing something? Is there a way to get > the View to resize itself to accomodate the contents of the ListView? > > Thanks > S > > Here is the View in question : > > > > http://schemas.android.com/apk/res/ > android" >xmlns:admob="http://schemas.android.com/apk/res/ > com.imkon.android.jiradroid" >android:layout_width="wrap_content" > android:layout_height="wrap_content" >android:orientation="vertical"> > >android:layout_width="fill_parent" > android:layout_height="wrap_content" >admob:backgroundColor="#00" admob:textColor="#FF" >admob:keywords="Android application" > admob:refreshInterval="60"/> > >http://schemas.android.com/apk/res/ > android" >android:layout_width="fill_parent" > android:layout_height="wrap_content" android:paddingLeft="1mm"> > >http://schemas.android.com/apk/res/ > android" >android:layout_width="wrap_content" > android:layout_height="wrap_content" >android:orientation="vertical"> > >http://schemas.android.com/apk/res/ > android" >android:layout_width="wrap_content" > android:layout_height="wrap_content" >android:orientation="vertical"> > > android:layout_width="wrap_content" >android:layout_height="wrap_content" > android:text="@string/ > project_label" /> > > android:layout_width="wrap_content" >android:layout_height="wrap_content" > android:textSize="20.0sp" /> > > > > > >http://schemas.android.com/apk/res/ > android" >android:layout_width="wrap_content" > android:layout_height="wrap_content" >android:orientation="vertical"> > > android:layout_width="wrap_content" >android:layout_height="wrap_content" > android:text="@string/ > key_label" /> > > android:layout_width="wrap_content" >android:layout_height="wrap_content" > android:textSize="20.0sp" /> > > > >http://schemas.android.com/apk/res/ > android" >android:layout_width="wrap_content" > android:layout_height="wrap_content" >android:orientation="vertical"> > > android:layout_width="wrap_content" >android:layout_height="wrap_content" > android:text="@string/ > priority_label" /> > >android:layout_width="wrap_content" > android:layout_height="wrap_content" >android:textSize="20.0sp" /> > > > >http://schemas.android.com/apk/res/ > android" >android:layout_width="wrap_content" > android:layout_height="wrap_content" >android:orientation="vertical"> > > android:layout_width="wrap_content" >android:layout_height="wrap_content" > android:text="@string/ > status_label" /> > > android:layout_width="wrap_content" >android:layout_height="wrap_content" > android:textSize="20.0sp" /> > > > >http://schemas.android.com/apk/res/ > android" >android:layout_width="wrap_content" > android:layout_height="wrap_content" >android:orientation="vertical"> > >android:layout_width="wrap_content" > android:layout_height="wrap_content" > > android:text="@string/resolution_label" /> > >android:layout_width="wrap_content" > android:layout_height="wrap_content" >android:textSize="20.0sp" /> > > > >http://schemas.android.com/apk/
[android-developers] Re: Layout problem with ListView
Boxy wrote: > > It looks like underestimated the difficulty of this question. > > I tried to post a much simpler version of the question in the beginner > group but its been hours and it still has not showed up. I think they > have a problem with new topics over there. > > I'll post the question here. I apologize for the spam :( > > -- > > I want to center a TextView inside of a layout. I've been playing > with the XML code below and can't get it to work? > Please help! > > > > http://schemas.android.com/apk/res/ > android" > android:orientation="horizontal" > android:gravity="center" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > > > android:id="@+id/txtMessage" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > android:gravity="center" /> > > Step #1: Use RelativeLayout. Step #2: Give the TextView the android:layout_centerInParent="true" attribute. Step #3: Have a beer. Possibly preceded by "root" or "birch", if that's your preference. ;-) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010: http://bignerdranch.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Layout problem with ListView
It looks like underestimated the difficulty of this question. I tried to post a much simpler version of the question in the beginner group but its been hours and it still has not showed up. I think they have a problem with new topics over there. I'll post the question here. I apologize for the spam :( -- I want to center a TextView inside of a layout. I've been playing with the XML code below and can't get it to work? Please help! http://schemas.android.com/apk/res/ android" android:orientation="horizontal" android:gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: which is a true Android phone?
I think G1 should be ok if you update to v1.5 On Sat, Aug 15, 2009 at 4:28 AM, jhoffman wrote: > > The G1s, as far as I know, got an Over-The-Air upgrade to v1.5 when it > came out. The only thing that the older hardware precludes you from is > testing your app on the newer hardware. The SDK is the same (unless > somebody simply did not update their Android version on the phone). > > On Aug 14, 2:23 am, -v- wrote: > > Hi, > > I am planning to a buy an android phone to test my app for ADC II. But > > the ones sold by google is a lil too expensive for me so I am thinking > > of buying one off of Craigslist...but am confused which one to buy... > > some of them say - Non Android OS..what does that mean? Does it mean > > my app may not run on it? > > Also I see there are some HTC G1 for sale..I am presuming that these > > are an year old...can I use them and upgrade them to latest android? > > how is the adroid SDK 1.5 related to the Actual Android OS version? > > Please help. > > Thanks in advance. > > -v- > > > -- Regards, Michael Leung http://www.itblogs.info http://www.michaelleung.info --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 redraw only a part of my custom View
Sena wrote: > Will a view resize itself if I invalidate it? I have a ScrollView that > doesn't take the ListView size into account after its been populated. You are probably better served not putting a ListView in a ScrollView, if possible. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010: http://bignerdranch.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to redraw only a part of my custom View
Hi, Will a view resize itself if I invalidate it? I have a ScrollView that doesn't take the ListView size into account after its been populated. Thanks S On Aug 14, 11:06 pm, Romain Guy wrote: > invalidate(Rect) or invalidate(int left, int top, int right, int bottom) > > On Fri, Aug 14, 2009 at 11:43 AM, fhucho wrote: > > > I have a custom view, that overrides the onDraw() method. For better > > performance I want to redraw only a small part of Canvas in onDraw(), > > how can I do that? > > -- > 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: A way to get all apps and their activities?
Yeah GET_INTENT_FILTERS hasn't been implemented. The only way to do this is to parse the manifest yourself. On a computer, you can use "aapt dump xmltree AndroidManifest.xml" to look at the manifest of an existing .apk. On Fri, Aug 14, 2009 at 4:51 PM, EboMike wrote: > > Could you elaborate on how exactly to do this? GET_INTENT_FILTERS > doesn't really seem to do anything. > > The closest thing I got was to get the PackageInfo, query through its > ActivityInfo objects, and then create an Intent out of each one > (Intent intent = new Intent(); intent.setClassName(pi.packageName, > activityInfo.name); ) and then call queryIntentActivities() on that, > but none of that gives me the actual intent filter information. > > -Mike > > > On Jul 31, 9:31 am, Marco Nelissen wrote: > > The package manager has APIs to do this. > > > > On Fri, Jul 31, 2009 at 8:52 AM, EboMike wrote: > > > > > Is there a way to get a list of all apps and their activities and > > > intent filters? Basically, I'd like to know what another app is > > > "listening to" so I can provide an Intent that matches. (I suppose > > > that this will require an ADP, which is fine). > > > > > I tried grabbing the AndroidManifest.xml from an .apk file in /data/ > > > app, but that didn't seem to work - I ran jar -xf on the apk, but the > > > xml wasn't plain ASCII. > > > > > -Mike > > > -- 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, and so won't reply to such e-mails. 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: android activity crashing after waking up from sleep
The lock screen forces the device into portrait mode. Lock at the exception in the logcat output to see where your app is crashing. On Fri, Aug 14, 2009 at 4:07 PM, jonathan wrote: > > i have an activity that crashes randomly after the device resume from > a long period of sleep, the activity is forced to be landscape mode > only. When the device resumes from sleep, the activity seems to be > redrawing itself in portrait mode, occupying half the horizontal view, > then have to force close it. > any idea? > thanks > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. 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] how to remove spacing from a bunch of buttons.
I want buttons flush against each other with no space in between - I do this: http://schemas.android.com/apk/res/ android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="53px" android:padding="0px" android:horizontalSpacing="0px"> but there is still spacing! -phil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 way to get all apps and their activities?
Could you elaborate on how exactly to do this? GET_INTENT_FILTERS doesn't really seem to do anything. The closest thing I got was to get the PackageInfo, query through its ActivityInfo objects, and then create an Intent out of each one (Intent intent = new Intent(); intent.setClassName(pi.packageName, activityInfo.name); ) and then call queryIntentActivities() on that, but none of that gives me the actual intent filter information. -Mike On Jul 31, 9:31 am, Marco Nelissen wrote: > The package manager has APIs to do this. > > On Fri, Jul 31, 2009 at 8:52 AM, EboMike wrote: > > > Is there a way to get a list of all apps and their activities and > > intent filters? Basically, I'd like to know what another app is > > "listening to" so I can provide an Intent that matches. (I suppose > > that this will require an ADP, which is fine). > > > I tried grabbing the AndroidManifest.xml from an .apk file in /data/ > > app, but that didn't seem to work - I ran jar -xf on the apk, but the > > xml wasn't plain ASCII. > > > -Mike --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 activity crashing after waking up from sleep
i have an activity that crashes randomly after the device resume from a long period of sleep, the activity is forced to be landscape mode only. When the device resumes from sleep, the activity seems to be redrawing itself in portrait mode, occupying half the horizontal view, then have to force close it. any idea? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How can I know the calling time of an active call?
I agree that the telephony support in Android is very limited. I also noticed that it is not trivial to extend the platform code, because also the rild is very limited. As long as needed state information are not exposed from the baseband level it is very difficult to implement more complex TAPI functionality on higher level. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 14, 2:39 am, Prem wrote: > Hi all, > I am trying to develop an automated test application which can > initiate a voice call and terminate the same on a user-defined time. I > would need to know the current call's time details so that I can end > the call after the time mentioned by the user. > It would have been quite simple for me had android provided a separate > telephony state indicating an active call state. > Android currently provides the CALL_STATE_OFFHOOK for active, dialling > and hold states of the call. So it is difficult to use the above > approach. > Can anyone suggest a solution to my requirement? > > Thanks in advance, > Prem --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Simply touching screen reduces fps
On a touch screen it is basically impossible to not move your finger. On Fri, Aug 14, 2009 at 1:14 PM, Dmitry.Skiba wrote: > > Thank you all for replying. > > Sleeping in onTouchEvent is an interesting idea, I will try that. > But results in my first post where obtained while *not moving* finger > at all. Well, maybe there are fluctuations in determining my finger's > position, and events were arriving nevertheless. I will check that > tomorrow. > > > Dmitry > > On 10 авг, 23:38, sahn0 wrote: > > Yes, it is. > > > > Try SpriteMethodTest, set 100 sprites, select OpenGL / Use VBO, let > > it run for a while. You will get something around 20ms / 50 fps. Now > > run it second time, and simply touch screen while test is running. You > > will get something around 35ms / 29 fps. So it is 15 ms difference. > > > > As I understand, the answer is simple - it is that dispatcher thread > > running with THREAD_PRIORITY_URGENT_DISPLAY priority. > > > > Setting THREAD_PRIORITY_URGENT_DISPLAY priority (will it work on non- > > ADP firmware?) on renderer thread yields 30 ms / 33 fps. > > > > Are there any other workarounds? > > > -- 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, and so won't reply to such e-mails. 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 improve gps accuracy
Perhaps different map projections? If you are interested in measuring GPS receiver accuracy, there are better approaches than using maps. On Aug 14, 3:54 pm, YoFrankie wrote: > Here you can see some of my gps points displaying on google maps. I > think with a better accuracy those points would be on the street, i > was driving on, wouldn't they? > > http://steadysolutions.de/Unbenannt.jpg --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] ScrollView not resizing when a a child ListView is populated
Hi, I have a ListView which is embedded in a ScrollView. I populate the rest of the Views in the ScrollView, then populate the ListView. Unfortunately yhe ScrollView doesn't size itself to accomodate the items in the ListView. Am I missing something? Is there a way to get the View to resize itself to accomodate the contents of the ListView? Thanks S Here is the View in question : http://schemas.android.com/apk/res/ android" xmlns:admob="http://schemas.android.com/apk/res/ com.imkon.android.jiradroid" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical"> http://schemas.android.com/apk/res/ android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:paddingLeft="1mm"> http://schemas.android.com/apk/res/ android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical"> http://schemas.android.com/apk/res/ android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical"> http://schemas.android.com/apk/res/ android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical"> http://schemas.android.com/apk/res/ android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical"> http://schemas.android.com/apk/res/ android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical"> http://schemas.android.com/apk/res/ android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical"> http://schemas.android.com/apk/res/ android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical"> http://schemas.android.com/apk/res/ android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical"> http://schemas.android.com/apk/res/ android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical"> http://schemas.android.com/apk/res/ android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical"> http://schemas.android.com/apk/res/ android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical"> http://schemas.android.com/apk/res/ android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical"> --- Here is the element view used to render the items in the list : http://schemas.android.com/apk/res/android"; > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G
[android-developers] Re: AdSense & Android - A Disappointed Developer's Rant
Hi Mark, This happened in March / April of 2009. I'm not sure if the mobile ads were ready yet. I'm thinking that I wouldn't be able to use them now. Should I apply for the beta if my AdSense account has been closed? (I'm thinking that the answer is no.) I'm not sure mobile apps would work for my php/mysql based MMORPG, but it certainly would be awesome for some of my other project ideas. (See how this is frustrating?) I used the JavaScript AdSense code on my web pages and I used the Webview to display those pages on Android devices. At least, I'm happy with the response from the Android team! :-) I was contacted by someone from Google, who requested additional information. I replied and I am waiting for a response. Maybe this story will have a good ending. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: AlphaAnimation not working! Help!?
Solved! There is a bug. If I use a theme on my manifest file that contains no background, a custom theme, animation alpha fails. Any input on this? thanks... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: AlphaAnimation not working! Help!?
I'm currently trying to animate a particular view for testing. When I press a button I'm triggering the alpha animation and it's not working... It seems very weird to me that it doesn't I know I'm doing it the right way... I'm guessing there is a bug? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 redraw only a part of my custom View
invalidate(Rect) or invalidate(int left, int top, int right, int bottom) On Fri, Aug 14, 2009 at 11:43 AM, fhucho wrote: > > I have a custom view, that overrides the onDraw() method. For better > performance I want to redraw only a small part of Canvas in onDraw(), > how can I do that? > > > -- 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] AlphaAnimation not working! Help!?
i think it's something to do with animating out of your activity to a window you don't control. i recently asked a simple question about whether this was possible and the answer was no. you might be running into that. >And >alphaAnimOUT.setDuration(1000); > > -- jason.software.particle --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Register Receiver for events in separate thread
D.Garcia wrote: > Hi, > I don't know if I'm trying to do something that is wrong: > > I want a separate thread from a service to register a receiver for wifi > events. However as I need a context for doing that (and I'm using > service one) > I'm receiving the intents on the main thread. > Is there any possibility to register a receiver for executing in other > thread than main? No, but you can then have the receiver start an AsyncTask, add an event to a LinkedBlockingQueue, or otherwise pass responsibility off to a background thread, then return. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now 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: ListActivity vs Activity what are the advantages?
ListActivity is a convenience class for people who need an Activity that specifically just has a ListView as its content. If that's all you need, ListActivity saves you the trouble of implementing it yourself. If you need more flexibility, then Activity is the general class. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 14, 10:39 am, Moto wrote: > Hi, > I was reading on ListActivity and Activity and wanted to know which is > better? I only need to display one listview. Would I see great > improvements? Does ListActivity handle screen rotation better or it's > the same? > > Thanks! > Moto! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: AlphaAnimation not working! Help!?
And alphaAnimOUT.setDuration(1000); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] Register Receiver for events in separate thread
Hi,I don't know if I'm trying to do something that is wrong: I want a separate thread from a service to register a receiver for wifi events. However as I need a context for doing that (and I'm using service one) I'm receiving the intents on the main thread. Is there any possibility to register a receiver for executing in other thread than main? Thank you Darío García --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Select a specific InputMethod by program
Is there any way to get a list of keyboards available? Many thanks in advance CHEERS> SAM On Jul 13, 7:09 am, Dianne Hackborn wrote: > If you just want a custom keyboard, you can use the same keyboard class to > implement a keyboard within your app. Currently that is the only thing that > is really supported. > > > > On Mon, Jul 13, 2009 at 10:00 AM, condor <25apr1...@gmail.com> wrote: > > > Hi Dannie thanks for the answer. > > > If is not possible to change the IME by program how can I extend the > > standard one to mange number in a custom way? > > > Actually, I need a keyboard that show only the 10 digits and the + - > > * / operators for a view that contains multiple EditText where the > > user can only input numbers. > > > Regards > > > On 13 juil, 18:12, Dianne Hackborn wrote: > > > Sorry, the application can't change the global IME. > > > > On Mon, Jul 13, 2009 at 5:41 AM, condor <25apr1...@gmail.com> wrote: > > > > > I compiled the example SoftKeyboard in the SDK successfully, but to > > > > use it, user has to select it as default IME or select it by the > > > > context menu. > > > > How to select it by program and use it in an EditText? > > > > -- > > > 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, and so won't reply to such e-mails. 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, and so won't reply to such e-mails. 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] How to register for SMS receiver action
Hi, Can you please tell me how to register SMS received ACTION? I tried the following, but when I set up a breakpoint in onReceive() never get called. Please help if you have any idea. import android.provider.Telephony.Sms.Intents; registerReceiver(new MyReceiver, new IntentFilter(Intents.SMS_RECEIVED_ACTION)); private class MyReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { } } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Stack traces from users in the field?
Excellent - just what I was looking for - many thanks. Would also be great to be able to upload log files of user activity to see how users are using an app, but I guess there might be ethical issues with that ... CHEERS> SAM On Aug 12, 2:38 pm, Dan Sherman wrote: > We've been using:http://code.google.com/p/android-remote-stacktrace/ > And have been happy with it. It doesn't provide exactly what you're looking > for, but its open source and could easily be extended. > > - Dan > > On Wed, Aug 12, 2009 at 7:37 PM, tansaku wrote: > > > Hi All, > > > Does anyone know if there is standard way to get error reports from > > android applications running on other people's android devices? > > > E.g. I release an android app and it goes out there. I'd love for any > > error to trigger an apology screen that invited the user to input a > > description of what happened, and then have that data along with > > program state and stack trace sent back to me. > > > Any ideas? > > > Many thanks in advance > > CHEERS> SAM --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: AlphaAnimation not working! Help!?
Sorry for lack info, yes I do that: AlphaAnimation alphaAnimOUT = new AlphaAnimation(1.0f, 0.0f); I tried doing a TranslateAnimation and that works all the time... On Aug 14, 4:37 pm, Jason Proctor wrote: > do you set a duration for the animation? > > >Little more detail: > > >I have attached an animation listener and I can see that on start and > >on end animation are being triggered properly but still nothing > >happens visually except that I see the screen barely flickering... > > -- > jason.software.particle --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] AlphaAnimation not working! Help!?
do you set a duration for the animation? >Little more detail: > >I have attached an animation listener and I can see that on start and >on end animation are being triggered properly but still nothing >happens visually except that I see the screen barely flickering... > -- jason.software.particle --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Simply touching screen reduces fps
Thank you all for replying. Sleeping in onTouchEvent is an interesting idea, I will try that. But results in my first post where obtained while *not moving* finger at all. Well, maybe there are fluctuations in determining my finger's position, and events were arriving nevertheless. I will check that tomorrow. Dmitry On 10 авг, 23:38, sahn0 wrote: > Yes, it is. > > Try SpriteMethodTest, set 100 sprites, select OpenGL / Use VBO, let > it run for a while. You will get something around 20ms / 50 fps. Now > run it second time, and simply touch screen while test is running. You > will get something around 35ms / 29 fps. So it is 15 ms difference. > > As I understand, the answer is simple - it is that dispatcher thread > running with THREAD_PRIORITY_URGENT_DISPLAY priority. > > Setting THREAD_PRIORITY_URGENT_DISPLAY priority (will it work on non- > ADP firmware?) on renderer thread yields 30 ms / 33 fps. > > Are there any other workarounds? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: AlphaAnimation not working! Help!?
Little more detail: I have attached an animation listener and I can see that on start and on end animation are being triggered properly but still nothing happens visually except that I see the screen barely flickering... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] AlphaAnimation not working! Help!?
I got my activity which extends ListActivity and I'm doing alpha animation on create and when activity is closed. The issue is that only at the onCreate is when my animation works... Anywhere else it doesn't! help please! alphaAnimOUT = new AlphaAnimation(1.0f, 0.0f); * mMenuBar.startAnimation(alphaAnimOUT); 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 improve gps accuracy
Here you can see some of my gps points displaying on google maps. I think with a better accuracy those points would be on the street, i was driving on, wouldn't they? http://steadysolutions.de/Unbenannt.jpg --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] Regarding the Java Version
on the Mac, it's more than an environment variable. you have to select the Java preference order in the control panel. ISTR that the version can be requested on an individual application basis, though i'm not sure that's possible for command line stuff like ant etc. on a Linux machine, setting JAVA_HOME is sufficient. but you have to set it to the root directory of the distribution, *not* the path of the Java executable itself. >You can install java 1.5 and java 1.6 on your system. Setup an >environment variable which supports the selection of the Java version >which you want to use. If you do development on the SDK/platform >switch to 1.5, for app development switch to 1.6. > >For example on my MAC I find the 1.6 bin in > > /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/ > >and 1.5 in > > /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/ > >Make sure that you also set your build path accordingly! > >-- >Roman Baumgaertner >Sr. SW Engineer-OSDC >·T· · ·Mobile· stick together >The views, opinions and statements in this email are those of the >author solely in their individual capacity, and do not necessarily >represent those of T-Mobile USA, Inc. > >On Aug 14, 8:07 am, Anand wrote: >> Hi All, >> >> I also faced the same issue, however below command worked for me. My >> box is Ubuntu 8.04. >> >> $ sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf >> libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl >> libncurses5-dev zlib1g-dev >> >> $ sudo update-java-alternatives -s java-1.5.0-sun >> >> Thanks >> Anand >> >> On Aug 12, 11:09 pm, "Yusuf Saib (T-Mobile USA)" > >> Mobile.com> wrote: >> > As you probably already know, you don't need to build the Android >> > source to develop apps, you just need to install the prebuilt SDK. You >> > should post Android platform building questions to the android- >> > platform mailing list. And I should not answer them here either, but >> > here goes anyway: >> >> > You may be attempting to build Android platform source from within >> > Eclipse; I would recommend building it from the command line. If (as >> > Fred suggested) your java version is not 1.5 even though you installed >> > it, then you need to set the path to point to the right version. >> >> > Yusuf Saib >> > Android >> > ·T· · ·Mobile· stick together >> > The views, opinions and statements in this email are those of the >> > author solely in their individual capacity, and do not necessarily >> > represent those of T-Mobile USA, Inc. >> >> > On Aug 12, 8:18 am, "Fred Grott(shareme)" >> > wrote: >> >> > > n command line what does java -version command produce? >> >> > > On Aug 12, 8:07 am, Vinu wrote: >> >> > > > Hello, >> >> > > > I am trying to compile the Latest android & i got the below errors, >> >> > > > >> > > > You are attempting to build with the incorrect version >> > > > of java. >> >> > > > Your version is: java version "1.6.0_10". >> > > > The correct version is: 1.5. >> >> > > > Please follow the machine setup instructions at >> > > >http://source.android.com/download >> > > > >> > > > build/core/main.mk:105: *** stop. Stop. >> > > > --- >> >> > > > then i upgraded to java Version 1.5. >> >> > > > After this upgradation ,When i tried building, i got the below error, >> >> > > > >> > > > You are attempting to build with the incorrect version >> > > > of javac. >> >> > > > Your version is: Eclipse Java Compiler v_774_R33x, 3.3.1, Copyright >> > > > IBM Corp 2000, 2007. All rights reserved.. >> > > > The correct version is: 1.5. >> >> > > > Please follow the machine setup instructions at >> > > >http://source.android.com/download >> > > > > > > > > build/core/main.mk:121: *** stop. Stop. >> > > > --- >> >> > > > Please let me know which javac version or Eclipse Java Compiler , i >> > > > need to install . >> >> > > > Thanks in Advance >> > > > Vinay- Hide quoted text - >> >> > - Show quoted text - >> >> > -- jason.software.particle --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Regarding the Java Version
You can install java 1.5 and java 1.6 on your system. Setup an environment variable which supports the selection of the Java version which you want to use. If you do development on the SDK/platform switch to 1.5, for app development switch to 1.6. For example on my MAC I find the 1.6 bin in /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/ and 1.5 in /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/ Make sure that you also set your build path accordingly! -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 14, 8:07 am, Anand wrote: > Hi All, > > I also faced the same issue, however below command worked for me. My > box is Ubuntu 8.04. > > $ sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf > libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl > libncurses5-dev zlib1g-dev > > $ sudo update-java-alternatives -s java-1.5.0-sun > > Thanks > Anand > > On Aug 12, 11:09 pm, "Yusuf Saib (T-Mobile USA)" > Mobile.com> wrote: > > As you probably already know, you don't need to build the Android > > source to develop apps, you just need to install the prebuilt SDK. You > > should post Android platform building questions to the android- > > platform mailing list. And I should not answer them here either, but > > here goes anyway: > > > You may be attempting to build Android platform source from within > > Eclipse; I would recommend building it from the command line. If (as > > Fred suggested) your java version is not 1.5 even though you installed > > it, then you need to set the path to point to the right version. > > > Yusuf Saib > > Android > > ·T· · ·Mobile· stick together > > The views, opinions and statements in this email are those of the > > author solely in their individual capacity, and do not necessarily > > represent those of T-Mobile USA, Inc. > > > On Aug 12, 8:18 am, "Fred Grott(shareme)" > > wrote: > > > > n command line what does java -version command produce? > > > > On Aug 12, 8:07 am, Vinu wrote: > > > > > Hello, > > > > > I am trying to compile the Latest android & i got the below errors, > > > > > > > > > You are attempting to build with the incorrect version > > > > of java. > > > > > Your version is: java version "1.6.0_10". > > > > The correct version is: 1.5. > > > > > Please follow the machine setup instructions at > > > > http://source.android.com/download > > > > > > > > build/core/main.mk:105: *** stop. Stop. > > > > --- > > > > > then i upgraded to java Version 1.5. > > > > > After this upgradation ,When i tried building, i got the below error, > > > > > > > > > You are attempting to build with the incorrect version > > > > of javac. > > > > > Your version is: Eclipse Java Compiler v_774_R33x, 3.3.1, Copyright > > > > IBM Corp 2000, 2007. All rights reserved.. > > > > The correct version is: 1.5. > > > > > Please follow the machine setup instructions at > > > > http://source.android.com/download > > > > > > > > build/core/main.mk:121: *** stop. Stop. > > > > --- > > > > > Please let me know which javac version or Eclipse Java Compiler , i > > > > need to install . > > > > > Thanks in Advance > > > > Vinay- 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: Connect Device to PC through USB
If you want to use the USB as a ethernet network interface then it is not supported. You have to port the USB network support. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 14, 10:05 am, Chris Stratton wrote: > On Aug 14, 8:23 am, Zeeshan Khan wrote: > > > Hi, > > Is it possible to connect to PC through USB from android application. > > > Or is it possible by any other way. > > I want to connect to it to transfer data(video) > > If you have USB debugging turned on, you can use the ADB program on > the PC to push or pull files, install applications... and you can also > forward a tcp port from the pc to the device, and send arbitrary data > between applications over that. Look in the SDK docs about ADB. > Presumably the relevant functionality from the ADB tool could be > duplicated in some other PC application. > > I don't know if android supports means of using the USB when debugging > is not enabled, other than enabling USB mass storage which is find for > dumping files onto the device but not really usable by applications > themselves. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] custom view like login form
Hi, i m new to android. I am trying to create custom component. developer wil use this component just like any other component like textview or editText in his layout.xml file. I want this component to be created and rendered by java file only. No layout xml is used. i am not sure whether to extend my class to View or ViewGroup or some layout and then add say textview and/or edittext. i tried by extending to View class but faced many problems in adding simple textVIew to it. I am pasting following code. Problem with it is. I can see red square (which i think is a viewgroup) on emulator but not able to see textView added to it. Please help me. i have expressed my intentions above, to create forms or a form like reusable component. //My form impletation java file public class Form extends ViewGroup { AttributeSet attrSet; LinearLayout.LayoutParams layParams; Context moContext; public Form(Context context) { super(context); this.moContext = context; initForm(); } public Form(Context context, AttributeSet attributeSet) { super(context,attributeSet); this.attrSet = attributeSet; this.moContext = context; initForm(); } @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); setVisibility(VISIBLE); initForm(); } public void initForm() { setVisibility(VISIBLE); layParams = new LinearLayout.LayoutParams (LayoutParams.WRAP_CONTENT, LayoutParams.FILL_PARENT); layParams.gravity = LinearLayout.HORIZONTAL; layParams.setMargins(5, 5, 5, 5); setLayoutParams(layParams); setBackgroundColor(Color.RED); TextView textView = new TextView(getContext(), attrSet); textView.setText("A"); textView.setBackgroundColor(Color.YELLOW); textView.bringToFront(); invalidate(); } @Override protected void onLayout(boolean changed, int l, int t, int r, int b) { } } //layout.xml which will be used by some activity http://schemas.android.com/apk/res/ android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > Please guide me through. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Connect Device to PC through USB
On Aug 14, 8:23 am, Zeeshan Khan wrote: > Hi, > Is it possible to connect to PC through USB from android application. > > Or is it possible by any other way. > I want to connect to it to transfer data(video) If you have USB debugging turned on, you can use the ADB program on the PC to push or pull files, install applications... and you can also forward a tcp port from the pc to the device, and send arbitrary data between applications over that. Look in the SDK docs about ADB. Presumably the relevant functionality from the ADB tool could be duplicated in some other PC application. I don't know if android supports means of using the USB when debugging is not enabled, other than enabling USB mass storage which is find for dumping files onto the device but not really usable by applications themselves. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Regarding the Java Version
Hi All, I also faced the same issue, however below command worked for me. My box is Ubuntu 8.04. $ sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev $ sudo update-java-alternatives -s java-1.5.0-sun Thanks Anand On Aug 12, 11:09 pm, "Yusuf Saib (T-Mobile USA)" wrote: > As you probably already know, you don't need to build the Android > source to develop apps, you just need to install the prebuilt SDK. You > should post Android platform building questions to the android- > platform mailing list. And I should not answer them here either, but > here goes anyway: > > You may be attempting to build Android platform source from within > Eclipse; I would recommend building it from the command line. If (as > Fred suggested) your java version is not 1.5 even though you installed > it, then you need to set the path to point to the right version. > > Yusuf Saib > Android > ·T· · ·Mobile· stick together > The views, opinions and statements in this email are those of the > author solely in their individual capacity, and do not necessarily > represent those of T-Mobile USA, Inc. > > On Aug 12, 8:18 am, "Fred Grott(shareme)" > wrote: > > > > > n command line what does java -version command produce? > > > On Aug 12, 8:07 am, Vinu wrote: > > > > Hello, > > > > I am trying to compile the Latest android & i got the below errors, > > > > > > > You are attempting to build with the incorrect version > > > of java. > > > > Your version is: java version "1.6.0_10". > > > The correct version is: 1.5. > > > > Please follow the machine setup instructions at > > > http://source.android.com/download > > > > > > build/core/main.mk:105: *** stop. Stop. > > > --- > > > > then i upgraded to java Version 1.5. > > > > After this upgradation ,When i tried building, i got the below error, > > > > > > > You are attempting to build with the incorrect version > > > of javac. > > > > Your version is: Eclipse Java Compiler v_774_R33x, 3.3.1, Copyright > > > IBM Corp 2000, 2007. All rights reserved.. > > > The correct version is: 1.5. > > > > Please follow the machine setup instructions at > > > http://source.android.com/download > > > > > > build/core/main.mk:121: *** stop. Stop. > > > --- > > > > Please let me know which javac version or Eclipse Java Compiler , i > > > need to install . > > > > Thanks in Advance > > > Vinay- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how to improve gps accuracy
Typically, there is some variant of long term averaging involved when measuring the accuracy of a GPS receiver. I wouldn't trust a map or a getAccuracy() method (at least without knowing the details of what it is measuring). - Greg On Aug 14, 1:20 pm, YoFrankie wrote: > The Location class has a getAccuracy() method and displaying the gps > coordinates on google maps shows that 30m accuracy often really means > that you are 30 away of the point you really stood at. > > Accuracy doesn't improve, even when not moving. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 redraw only a part of my custom View
I have a custom view, that overrides the onDraw() method. For better performance I want to redraw only a small part of Canvas in onDraw(), how can I do that? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] AndroidAPI App
I wrote my first "Hello World" App for Android: AndroidAPI It should be useful for Android developers Actually it provides full Android Java API on your Android phone and does not require connection Search for AndroidAPI in Market --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Displaying virtual keyboard
Thanks! You have a gift to wake me up from stupidity :). I actually implemented everything correctly, except that I've made the uber obvious mistake to call the IM in the onCreate() function of the activity. I guess I should have used at least onWindowFocusChanged(). Sorry for wasting your time. On Fri, Aug 14, 2009 at 7:55 PM, Dianne Hackborn wrote: > Do the same thing TextView does. > > On Fri, Aug 14, 2009 at 8:33 AM, Andrei Bucur wrote: > >> Hello! >> AbsListView implements onCreateInputConnection using an EditText, subclass >> of TextView :). My question is how should a custom View implement those >> methods so one can display the virtual keyboard. >> Andrei. >> >> On Fri, Aug 14, 2009 at 6:23 PM, greg wrote: >> >>> >>> I put the following menu option in my application to display the >>> keyboard: >>> >>>case R.id.keyboard: >>>Toast.makeText(this, "Back button removes keyboard.", >>> Toast.LENGTH_SHORT).show(); >>>InputMethodManager imm = >>> (InputMethodManager)getSystemService >>> (Context.INPUT_METHOD_SERVICE); >>>imm.showSoftInput(mListView, >>> InputMethodManager.SHOW_FORCED); >>>return true; >>> >>> - - - >>> >>> I hope that helps. >>> >>> - Greg >>> >>> >>> On Aug 14, 8:58 am, loctarar wrote: >>> > Hello! >>> > >>> > I need help with showing the integrated virtual keyboard on-screen. I >>> > extended a View class and I implemented these two methods (most of it >>> > is just stub code; for now I only want to display the keyboard): >>> > @Override >>> > public InputConnection onCreateInputConnection (EditorInfo >>> outAttrs) >>> > { >>> > BaseInputConnection fic = new BaseInputConnection(this, >>> true); >>> > >>> > outAttrs.actionLabel = null; >>> > outAttrs.hintText = "Insert the test text"; >>> > outAttrs.initialCapsMode = 0; >>> > outAttrs.initialSelEnd = outAttrs.initialSelStart = -1; >>> > outAttrs.label = "Test text"; >>> > outAttrs.inputType = InputType.TYPE_CLASS_NUMBER | >>> > InputType.TYPE_NUMBER_FLAG_DECIMAL; >>> > outAttrs.imeOptions = EditorInfo.IME_ACTION_DONE; >>> > >>> > return fic; >>> > } >>> > >>> > @Override >>> > public boolean onCheckIsTextEditor() { >>> > return true; >>> > } >>> > >>> > In the onCreate method of my activity I have : >>> > >>> > InputMethodManager imm = >>> (InputMethodManager)this.getSystemService >>> > (Context.INPUT_METHOD_SERVICE); >>> > imm.showInputMethodPicker(); >>> > >>> > imm.showSoftInput(editor, InputMethodManager.SHOW_FORCED); >>> > >>> > Where editor is an instance of my View. I noticed in the debugger that >>> > my onCreateInputConnection() is executed but after that the keyboard >>> > is not displayed on the screen. >>> > Using the TextView widtget and it's subclasses is not an option. >>> > >>> > Thank you! >>> >>> >> >> >> > > > -- > 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, and so won't reply to such e-mails. 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: which is a true Android phone?
The G1s, as far as I know, got an Over-The-Air upgrade to v1.5 when it came out. The only thing that the older hardware precludes you from is testing your app on the newer hardware. The SDK is the same (unless somebody simply did not update their Android version on the phone). On Aug 14, 2:23 am, -v- wrote: > Hi, > I am planning to a buy an android phone to test my app for ADC II. But > the ones sold by google is a lil too expensive for me so I am thinking > of buying one off of Craigslist...but am confused which one to buy... > some of them say - Non Android OS..what does that mean? Does it mean > my app may not run on it? > Also I see there are some HTC G1 for sale..I am presuming that these > are an year old...can I use them and upgrade them to latest android? > how is the adroid SDK 1.5 related to the Actual Android OS version? > Please help. > Thanks in advance. > -v- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Listing Console does not update applicaitons statistics
I have been watching my Developer Console also. They seem to update a couple times a day. So if yours hasn't updated in a couple days something might be wrong. Or there might just be fluctuations in the number of applications to process vs the computer power available to process them. On Aug 6, 5:04 am, DKIT wrote: > Still no update. > > On Aug 4, 7:40 pm, DKIT wrote: > > > Anyone? > > > On Aug 4, 4:18 pm, DKIT wrote: > > > > My Android Market listing console (developer console) has not updatet > > > applicaiton statistics for several days. > > > > Why? > > > > Does it hurt my popularity ratings that my statistics are not updated? > > > > When will this be fixed? It is very annoying! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] 2 weeks left and still no submission site available
There's roughly 2 weeks left and still no update on the ADC site to allow application submission. When can we expect an update ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android sensors - Correct when held vertically, incorrect in the horizontal
Sorry about that poorly spelt question - I was in a hurry earlier. ;) Basically is there a way to tell the sensors what orientation your activity is in, so if the phone is held horizontally the compass works correctly? On Aug 14, 5:51 pm, mscwd01 wrote: > Forgive me if I am missing the obvious here but is there an easy way > to get the coorect azimuth/roll/pitch values when the phone is > oriented to the horizontal position? > > When you hold a device certically, the compass and roll/pitch values > are correct but if you hold the phobe horizontally the compass values > get screwed up and the roll/pitch values "seem" to swap and im not > sure if they are correct. > > Can someone maybe explain how to solve 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] ListActivity vs Activity what are the advantages?
Hi, I was reading on ListActivity and Activity and wanted to know which is better? I only need to display one listview. Would I see great improvements? Does ListActivity handle screen rotation better or it's the same? Thanks! Moto! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Automated Call answer
You can listen to the event of an incoming Call by using the PhoneStateListener onCallStateChanged, but I don't believe it is possible to intercept an Incoming Call (Outgoing call is a different matter). For what it is worth, there is an old but interesting read on the topic http://groups.google.com/group/android-developers/browse_thread/thread/483b5fbd8d0dc0f9 Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 14, 12:17 am, swapnil wrote: > Hi all, > > Can we accept call through the code after specific time of ringing is > over? > > If yes then how should I do it? > > Thnaking you in advance. > > Regards; > > Swapnil Dalal. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 improve gps accuracy
The Location class has a getAccuracy() method and displaying the gps coordinates on google maps shows that 30m accuracy often really means that you are 30 away of the point you really stood at. Accuracy doesn't improve, even when not moving. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Arbitrary shape ImageView
You can do that by setting the appropriate listeners. ImageView iv = (ImageView)findViewById(R.id.ImageView01); iv.setBackgroundResource(android.R.drawable.ic_delete); // You can set your arbitrary image here. iv.setOnTouchListener(new OnTouchListener(){ public boolean onTouch(View v, MotionEvent event){ //... } }); iv.setOnClickListener(new OnClickListener () { public void onClick(View v){ // } }); Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 14, 1:56 am, Long wrote: > Hi guys, > I need some arbitrary shape imageView that can respond events. > How can I do that? > > Thanks. > Cheers. > Long --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 improve gps accuracy
I haven't yet experimented with the GPS accuracy on Android devices, but I plan to. How did you measure your 30-100 meter accuracy? Did the accuracy improve as you stayed at the same location in the open field? - Greg On Aug 14, 10:10 am, YoFrankie wrote: > with my locationlistener i get accuracy values about 30-100 m (being > on an open field without annoying houses around me disturbing the gps > signal). Why is that so bad? I thought you could get an accuracy about > 3m with gps. And the google maps applet for example has a much better > accuracy. How can i improve the accuracy? I'm using the default gps > provider. I saw you can create a Criteria object to get the best > provider, but there are only the gps and the mobilephone net providers > anyway - so it's some kind of senseless to get the location provider > that way > > is there no way to define the needed accuracy?! > > Trank you in advance > YoFrankie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Turn on light of trackball on HTC magic
There is no direct API, the light is controlled indirectly by posting a notification that requests the lights flash. On Fri, Aug 14, 2009 at 3:43 AM, Anton Pirker wrote: > > Hey list! > > I have a HTC Magic and just love the glowing trackball if you have > missed a call. > > So i wanted to use the trackball light in my own android apps, but i > can not find anything on how to make it glow. > Does anyone know how to turn the light of the trackball on and of? > > Thanks in advance, > Anton > > > > -- 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, and so won't reply to such e-mails. 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: Process.setThreadPriority() & high priorities
Being in the foreground doesn't mean you have exclusive access to the device -- it still needs to be able to respond to incoming calls, etc. There is nothing intrinsically wrong with an application working at audio priority for doing audio work... there is something extremely wrong with it running the CPU nearly 100% at that priority, since it would starve very important parts of the system. So right now we've left this open, because we didn't have any time or good ideas how best to better control apps in this regard. But if we start seeing issues with the platform because of apps starving it, we'll probably need to figure out what to do. For an illustration of how this works, which we are currently in the process of dealing with: since 1.0 we have had the Service.setForeground() API for things "the user is aware of" like background music playback. We have now started to see this abused by apps, and actually have gone through a lot of churn on stabilizing Donut because of some new apps abusing this and causing the system to seem like it has regressed due to them running. So it's too late to do anything for donut except tell our testers, "don't run that app." However in Ecalair I am probably going to deprecate that API and make it a no-op, introducing a new API that requires the app have an ongoing notification associated with its foreground state, to basically require that the user be aware of the app running in this state (and ensure they have a way to get it out of this state). On Fri, Aug 14, 2009 at 8:41 AM, niko20 wrote: > > Well actually the other thing too is my program is designed so that if > it loses focus (OnPause), it stops the audio creation thread. So even > though it's priority is set high, it only runs the high thread while > the program is in the foreground, so it shouldn't be too detrimental > to the entire system :) Thankfully. > > I just hope that if you guys decide to try to lock this feature down > in the future it will still be allowed somehow. Maybe if the program > access audio APIS it should be allowed...etc...'cause I am really into > writing music generating programs, and this thread priority settings > definitely helps make them run their best. > > > -niko > > > -- 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, and so won't reply to such e-mails. 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: MediaPlayer and memory buffers.
it would be cool if AudioTrack could do this, but it looks like that only accepts PCM. :( On Aug 13, 9:41 pm, phil wrote: > I have looked at the documentation for MediaPlayer and it doesn't seem > to do what I need. I need to be able to feed a personalized stream to > the media player. For example, I have an AAC stream that has some > header information in it, so I can't simply feed the HTTP URL to the > media player because it will choked on the header information. > > What I would like to be able to do is feed it a stream of data, and I > provide the parsing of the header, and feed it straight raw AAC data, > tell the media player that's the format and have it play it > (preferably with an existing decoder). > > Is that possible and I'm just missing it? > > Do I need to write a native (C code) decoder create my own specialized > format? > > Thanks in advance, > > -phil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: AdSense & Android - A Disappointed Developer's Rant
Photics wrote: > To keep things more on-topic, here's what I would try differently if I > was to use AdSense in my app again. Make sure that the Adsense spiders > can grab your content. I was using htaccess to block all but android/ > iphone traffic. I wanted a more safe and secure playground for my > game. However, that was bad for AdSense. Open up the IPs for the > AdSense spiders. Also, if you have passworded content, you can create > a login for Google... allowing the spiders to log in. That may not > work for all games, but my games were using webview and customized web > pages. Were you using: http://www.google.com/ads/mobileapps/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Does Android support detecting right/left click on the mouse
The Android platform currently doesn't support mouse input at all. Some people may have hacked it to allow for mouse input, but this is very much not supported because none of the UI has actually been designed to work well with a mouse. On Fri, Aug 14, 2009 at 2:38 AM, Nguyen Dinh Minh wrote: > > Hi guys, > > I want to write an Android application using a mouse (like the way > that Windows detects the actions of clicking on a right button and a > left button of the mouse). However, I cannot find any library of > Android OS detecting these actions. > > Please tell me whether I can do it with the support of Android OS or > anything else. > > Thanks for your attention! > > Best regards, > Minh > > > > -- 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, and so won't reply to such e-mails. 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: Displaying virtual keyboard
Do the same thing TextView does. On Fri, Aug 14, 2009 at 8:33 AM, Andrei Bucur wrote: > Hello! > AbsListView implements onCreateInputConnection using an EditText, subclass > of TextView :). My question is how should a custom View implement those > methods so one can display the virtual keyboard. > Andrei. > > On Fri, Aug 14, 2009 at 6:23 PM, greg wrote: > >> >> I put the following menu option in my application to display the >> keyboard: >> >>case R.id.keyboard: >>Toast.makeText(this, "Back button removes keyboard.", >> Toast.LENGTH_SHORT).show(); >>InputMethodManager imm = >> (InputMethodManager)getSystemService >> (Context.INPUT_METHOD_SERVICE); >>imm.showSoftInput(mListView, >> InputMethodManager.SHOW_FORCED); >>return true; >> >> - - - >> >> I hope that helps. >> >> - Greg >> >> >> On Aug 14, 8:58 am, loctarar wrote: >> > Hello! >> > >> > I need help with showing the integrated virtual keyboard on-screen. I >> > extended a View class and I implemented these two methods (most of it >> > is just stub code; for now I only want to display the keyboard): >> > @Override >> > public InputConnection onCreateInputConnection (EditorInfo >> outAttrs) >> > { >> > BaseInputConnection fic = new BaseInputConnection(this, >> true); >> > >> > outAttrs.actionLabel = null; >> > outAttrs.hintText = "Insert the test text"; >> > outAttrs.initialCapsMode = 0; >> > outAttrs.initialSelEnd = outAttrs.initialSelStart = -1; >> > outAttrs.label = "Test text"; >> > outAttrs.inputType = InputType.TYPE_CLASS_NUMBER | >> > InputType.TYPE_NUMBER_FLAG_DECIMAL; >> > outAttrs.imeOptions = EditorInfo.IME_ACTION_DONE; >> > >> > return fic; >> > } >> > >> > @Override >> > public boolean onCheckIsTextEditor() { >> > return true; >> > } >> > >> > In the onCreate method of my activity I have : >> > >> > InputMethodManager imm = >> (InputMethodManager)this.getSystemService >> > (Context.INPUT_METHOD_SERVICE); >> > imm.showInputMethodPicker(); >> > >> > imm.showSoftInput(editor, InputMethodManager.SHOW_FORCED); >> > >> > Where editor is an instance of my View. I noticed in the debugger that >> > my onCreateInputConnection() is executed but after that the keyboard >> > is not displayed on the screen. >> > Using the TextView widtget and it's subclasses is not an option. >> > >> > Thank you! >> >> > > > > -- 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, and so won't reply to such e-mails. 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: AdSense & Android - A Disappointed Developer's Rant
Hello Romain, Your response is encouraging. I'm working on a new app and I'm trying to fight the discouraging feeling. Android is lots of fun to work with, but I'm still annoyed at how the AdSense issue was handled. Would I get burned again by Google if I continued work on Android? Seeing the responses here made me feel a little better. I'm still grumpy with AdSense, but that shouldn't stop the Android fun! If AdSense and Android worked better together, it could help developers make money. That would encourage more developers and likely lead to better content on the Android Market. To keep things more on-topic, here's what I would try differently if I was to use AdSense in my app again. Make sure that the Adsense spiders can grab your content. I was using htaccess to block all but android/ iphone traffic. I wanted a more safe and secure playground for my game. However, that was bad for AdSense. Open up the IPs for the AdSense spiders. Also, if you have passworded content, you can create a login for Google... allowing the spiders to log in. That may not work for all games, but my games were using webview and customized web pages. Well... that's just my idea. I didn't get to try it. If my account wasn't shut down, that's what I would have done to make AdSense and my Android game work better. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 sensors - Correct when held vertically, incorrect in the horizontal
Forgive me if I am missing the obvious here but is there an easy way to get the coorect azimuth/roll/pitch values when the phone is oriented to the horizontal position? When you hold a device certically, the compass and roll/pitch values are correct but if you hold the phobe horizontally the compass values get screwed up and the roll/pitch values "seem" to swap and im not sure if they are correct. Can someone maybe explain how to solve 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: Android : Data Traffic switing between Radio and Wifi link
This is not yet supported. You would need to change the platform code to support this correctly. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 14, 3:10 am, debashis wrote: > Hi, > In my Android dev phone I have a requirement to implement - On power > up Radio interface (GSM in my case) is up and any data traffic (e.g. > ping, http, etc) goes through radio interface. When I turned on Wifi I > need to shift all data traffic (except voice/voip) into WiFi channel. > Does Cupcake/Donut support this kind of handoff? > > Regards, > debashis --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android : Data Traffic switing between Radio and Wifi link
I haven't tried switching data connections but I plan to and I took note that data connection handoff issues are discussed in the 'Coding for Life ... Battery Life' video (starting around the 17 minute mark) at http://www.youtube.com/watch?v=OUemfrKe65c I hope that helps. - Greg On Aug 14, 6:10 am, debashis wrote: > Hi, > In my Android dev phone I have a requirement to implement - On power > up Radio interface (GSM in my case) is up and any data traffic (e.g. > ping, http, etc) goes through radio interface. When I turned on Wifi I > need to shift all data traffic (except voice/voip) into WiFi channel. > Does Cupcake/Donut support this kind of handoff? > > Regards, > debashis --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Scope issue - newby question
you are right. Cheers! Jiri Mark Murphy wrote: > Jiri wrote: >> I think it is a scoping issue, but I cant seem to find how to solve it. >> I would appreciate some help. >> >> >> public class SliderTest extends Activity { >> >> private HorizontalSlider slider; >> >> public TextView pView; >> >> >> @Override >> public void onCreate(Bundle icicle) { >> >> super.onCreate(icicle); >> >> setContentView(R.layout.main); >> >> slider = (HorizontalSlider) this.findViewById(R.id.slider); >> >> pView = (TextView) findViewById(R.id.label); >> >> slider.setOnChangeListener( new OnProgressChangeListener() { >> >> public void onProgressChanged(View v, int progress) { >> /// CRASHES HERE , it seems pView is not know here!! >> /// tried this SliderTest.this.pView >> String myString = Integer.toString(progress); >> pView.setText( myString ); >> } >> }); >> >> } >> >> } > > If it compiles, you do not have a scope problem. > > More likely, pView is null. You can determine this by checking the Java > stack trace, available from adb logcat, DDMS, or the DDMS perspective 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] Re: which is a true Android phone?
If you use features from the 1.5 SDK that are new (not present in previous versions) then you need to run it on an Android device running 1.5. However, you develop a 1.1 compatible app using the 1.5 SDK. But I would recommend that you should test your entry on a 1.5 device since the folks who would be judging it probably have those devices rather an old device. Good Luck ! Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 14, 3:00 am, Anton Pirker wrote: > Hi! > > You can buy one of these: > > HTC G1 > the first one, with keyboard, quite old but good enough to test your > apps. you can update the android version to the newest one > > HTC Magichttp://www.htc.com/de/product/magic/overview.html > successor of G1, only on-screen keyboard. i have that one and i am very > happy with it. > > HTC Herohttp://www.htc.com/de/product/hero/overview.html > The new kid on the blog, very cool Android GUI > > Samsung > I7500http://www.engadget.com/2009/04/27/samsung-i7500-oled-handset-powered... > The first android hand set from Samsung. Can not say if it is good, > never have seen it live but it looks promising. > > All of the above should be fine. If they have a old version of Android, > you can update it to the newest versions. > > Hope this helps a little > > Cheers, > Anton > > ** > > -v- wrote: > > Hi, > > I am planning to a buy an android phone to test my app for ADC II. But > > the ones sold by google is a lil too expensive for me so I am thinking > > of buying one off of Craigslist...but am confused which one to buy... > > some of them say - Non Android OS..what does that mean? Does it mean > > my app may not run on it? > > Also I see there are some HTC G1 for sale..I am presuming that these > > are an year old...can I use them and upgrade them to latest android? > > how is the adroid SDK 1.5 related to the Actual Android OS version? > > Please help. > > Thanks in advance. > > -v- > > -- > DI(FH) Anton Pirker > > --- > ignaz software services > burggasse 123/53 > a-1070 wien > tel: +43 699 1234 0 456 > skype: antonpirker > > http://anton-pirker.athttp://shnitzl.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Scope issue - newby question
Jiri wrote: > I think it is a scoping issue, but I cant seem to find how to solve it. > I would appreciate some help. > > > public class SliderTest extends Activity { > > private HorizontalSlider slider; > > public TextView pView; > > > @Override > public void onCreate(Bundle icicle) { > > super.onCreate(icicle); > > setContentView(R.layout.main); > > slider = (HorizontalSlider) this.findViewById(R.id.slider); > > pView = (TextView) findViewById(R.id.label); > > slider.setOnChangeListener( new OnProgressChangeListener() { > > public void onProgressChanged(View v, int progress) { > /// CRASHES HERE , it seems pView is not know here!! > /// tried this SliderTest.this.pView > String myString = Integer.toString(progress); > pView.setText( myString ); > } > }); > > } > > } If it compiles, you do not have a scope problem. More likely, pView is null. You can determine this by checking the Java stack trace, available from adb logcat, DDMS, or the DDMS perspective in Eclipse. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: canvas.save() / restore() , what is this?
Ok, i see I think coming from flash I think to much in timelines and frames. In Java there is offcourse no such thing, so i understand ( i think ) why one needs to sometimes revert back to previous canvas state. Thnx for clearing that up. Jiri Streets Of Boston wrote: > Before you call save() on the canvas, your canvas is in a certain > state (clip region/transformation matrix/etc). > Then you call save() and all this info is saved away somewhere. > > Then other code (e.g. paints of child-views) can modify this canvas > anyway they like. > > Then when control is returned back to your code, just call restore > (level) on the canvas to get your old saved state back. > > // do some drawing/clipping/scaling/etc on my canvas > ... > ... > int level = canvas.save(); > letSomeOtherCodeDoSomeDrawing(canvas); > // after this, the canvas could be in any (unknown) state > > // restore to my known state, as it was just before > // calling letSomeOtherCodeDoSomeDrawing > canvas.restoreToCount(level); > > // do some more drawing/clipping/scaling etc on the canvas > ... > > > On Aug 14, 10:55 am, Jiri wrote: >> Thanks Jeff, >> >> not sure if i understand it correctly. I come from an AS3 background and >>tf matrixes i understand. >> So if i would scale the canvas via a matrix and then draw stuff on it, >> this stuff is then scaled when drawn. >> if i then after the scaling do a restore() all is 100% scaled again? >> >> Or is that the matrix is resetted but the drawn stuff remains how it was >> before calling the restore()? >> >> jiri >> >> >> >> Jeff Sharkey wrote: >>> Think of it as checkpointing the transformation matrix and clip >>> rectangle of your Canvas at a known place in time. This is useful >>> when rendering children views that may leave them in an unknown state. >>> (You can restore back to the checkpointed state when children are >>> done drawing.) Here's an example from ViewGroup: >>> final int restoreTo = canvas.save(); >>> [perform some drawing that might change the transformation matrix or >>> clip rectangle] >>> canvas.restoreToCount(restoreTo); >>> j >>> On Thu, Aug 13, 2009 at 3:04 AM, Jiri wrote: Could someone explain to me the canvas.save() and restore(). I come from a flash background, and this is a new concept for me. Reading the documentation is not helpfull. Jiri- 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] Scope issue - newby question
I think it is a scoping issue, but I cant seem to find how to solve it. I would appreciate some help. public class SliderTest extends Activity { private HorizontalSlider slider; public TextView pView; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main); slider = (HorizontalSlider) this.findViewById(R.id.slider); pView = (TextView) findViewById(R.id.label); slider.setOnChangeListener( new OnProgressChangeListener() { public void onProgressChanged(View v, int progress) { /// CRASHES HERE , it seems pView is not know here!! /// tried this SliderTest.this.pView String myString = Integer.toString(progress); pView.setText( myString ); } }); } } Thnx Jiri --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: any development book for new guy?
Whoa, please don't put words in my mouth. I know you've answered my question regarding the subject since. It doesn't really have much to do with the book review but I will go ahead and update my entry anyway. Peace. :) /Casper --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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] StateListDrawable issue
hi, say i have white-only-with-alpha NinePatchDrawable and depending on state i'd like to colorify it and finally to setBackgroundDrawable for some Views. i thought i could use StateListDrawable: sld = new StateListDrawable() // repeat this for every color/state drawable = res.getDrawable(resId) drawable.setColoFilter(colorN, Mode.SRC_ATOP) sld.addState(stateN, drawable) // set drawable view.setBackgroundDrawable(sld) but, i see my drawable in different states but it seems that ColirFilter is not used. what am i missing? thanks pskink --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: AdSense & Android - A Disappointed Developer's Rant
http://adsenseaccountdisabled.org/ might help too. (And Romain, there are tons of examples out there of legitimate sites that get banned without any specified reason, automated appeal rejections, and lack of payment. Frequently the first month they hit a single-month payment. http://eyeonsoaps.net/wp/?p=1804 has a good standard example. Unless you want to publish numbers or percentages on number of adsense accounts closed vs successful appeals - with spotchecks on legit vs fraudulent sites, etc - anecdotal evidence is all that is available to anyone outside google.) On Fri, Aug 14, 2009 at 11:33 AM, Romain Guy wrote: > > @Mike: I have forwarded your email to some people to see if we can > help you. However you should really contact the AdSense support teams, > not the Android team. > > @Disconnect: Please do not use anecdotal evidence as a generalized truth. > > On Fri, Aug 14, 2009 at 8:22 AM, Disconnect wrote: > > Um... history and basic research says "No". Adsense has a habit of dropping > > users rather than paying them, and the appeals process is a joke. > > > > Also, off-topic -- try #android-discuss or (better) an adsense support > > forum... > > > > On Fri, Aug 14, 2009 at 8:00 AM, Photics wrote: > >> > >> I made an app called Guild Wars: Conquest. I was very careful about > >> the rules and regulations about AdSense and Android. I released my app > >> and I started making a lot of money. My web traffic went way up, like > >> 218,000+ visits in one month. > >> > >> When it was time to get paid, AdSense shut down my account. I don't > >> feel that they properly explained why and they didn't want to pay me. > >> I appealed, and I was willing to work with Google to make things > >> better, but I was denied and told not to email AdSense again. > >> > >> This is wrong and it makes me an unhappy Android developer. My apps, > >> Photics: Revisions and Photics: Conquest are highly rated. I thought > >> that Google wanted to encourage talented developers. Instead, I'm left > >> feeling disappointed. > >> > >> Is Google going to make this right? > >> > >> > > > > > > > > > > > > > -- > 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: any development book for new guy?
Casper, "It's my humble opinion that all the above books favors XML layout a bit too much, as it makes examples harder to read/type - and lets face it, it's limited how complex a layout will be on such a small screen anyway." They do and rightly so. We already told you why. The XML layouts are stored as resources and can therefore be adapted to the configuration of the device, which is much more complicated to do with code. XML also gives you much easier way to use different types of units (sp, dip, pt, in, mm, etc.) I understand you dislike XML but the point is not about XML, it's about easily supporting various devices and configurations. I come from 10+ years of coding GUIs by hand and I was also repelled by the XML layouts at first but after realizing the flexibility they offer I quickly changed my mind. I certainly would not go back to writing all the GUI code by hand. That said, feel free to write you GUIs without using the XML layouts. Just don't go on a war against them just because it's XML. On Fri, Aug 14, 2009 at 9:00 AM, Casper Bang wrote: > > I second the recommendation for Mark Murphy's books. I wish I had > known about these before investing in other ones. Small mini-review to > explain why on my blog: > http://coffeecokeandcode.blogspot.com/2009/08/android-books-review.html > > /Casper > > On 14 Aug., 08:42, Barry Wei wrote: >> could anyone send me some e-book about develop android application? >> >> thanks a lot. > > > -- 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: Overlaying text on a bitmap
Code snippet for drawing text on a bitmap: Canvas mCanvas = new Canvas(mBitmap); mCanvas.drawText(...); -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 14, 12:37 am, aniket wrote: > Hi, > > I'd like to know if there is a way to get bitmaps corresponding to a > glyph of a font. I have a bitmap and was looking for an API that would > let me overlay some text on top of it and give me the output bitmap. I > could not find any such API so was thinking of doing a custom > implementation. > > The issue is that I couldn't find a way to get the bitmaps > corresponding to the glyphs either. > > Is there API that I may have overlooked or some round about way to > achieve this? > > Thanks, > aniket --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: any development book for new guy?
I second the recommendation for Mark Murphy's books. I wish I had known about these before investing in other ones. Small mini-review to explain why on my blog: http://coffeecokeandcode.blogspot.com/2009/08/android-books-review.html /Casper On 14 Aug., 08:42, Barry Wei wrote: > could anyone send me some e-book about develop android application? > > thanks a lot. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: any development book for new guy?
Streets Of Boston wrote: > Mark Murhpy's (regular here on these forums) e-books are highly > regarded: > http://commonsware.com/mmurphy.html > http://commonsware.com/books.html Thanks! More generally, watch for books that are being kept up to date for new Android releases. Mine are continuously updated, as is Ed Burnette's _Hello, Android_. Reto Meier has a new edition of _Professional Android Application Development_ slated for early 2009. Android is a fast-moving target, so getting an older book may become frustrating, as you try to figure out the new ways of doing things where the book describes older approaches. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: Process.setThreadPriority() & high priorities
Well actually the other thing too is my program is designed so that if it loses focus (OnPause), it stops the audio creation thread. So even though it's priority is set high, it only runs the high thread while the program is in the foreground, so it shouldn't be too detrimental to the entire system :) Thankfully. I just hope that if you guys decide to try to lock this feature down in the future it will still be allowed somehow. Maybe if the program access audio APIS it should be allowed...etc...'cause I am really into writing music generating programs, and this thread priority settings definitely helps make them run their best. -niko --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: canvas.save() / restore() , what is this?
Before you call save() on the canvas, your canvas is in a certain state (clip region/transformation matrix/etc). Then you call save() and all this info is saved away somewhere. Then other code (e.g. paints of child-views) can modify this canvas anyway they like. Then when control is returned back to your code, just call restore (level) on the canvas to get your old saved state back. // do some drawing/clipping/scaling/etc on my canvas ... ... int level = canvas.save(); letSomeOtherCodeDoSomeDrawing(canvas); // after this, the canvas could be in any (unknown) state // restore to my known state, as it was just before // calling letSomeOtherCodeDoSomeDrawing canvas.restoreToCount(level); // do some more drawing/clipping/scaling etc on the canvas ... On Aug 14, 10:55 am, Jiri wrote: > Thanks Jeff, > > not sure if i understand it correctly. I come from an AS3 background and > tf matrixes i understand. > So if i would scale the canvas via a matrix and then draw stuff on it, > this stuff is then scaled when drawn. > if i then after the scaling do a restore() all is 100% scaled again? > > Or is that the matrix is resetted but the drawn stuff remains how it was > before calling the restore()? > > jiri > > > > Jeff Sharkey wrote: > > Think of it as checkpointing the transformation matrix and clip > > rectangle of your Canvas at a known place in time. This is useful > > when rendering children views that may leave them in an unknown state. > > (You can restore back to the checkpointed state when children are > > done drawing.) Here's an example from ViewGroup: > > > final int restoreTo = canvas.save(); > > > [perform some drawing that might change the transformation matrix or > > clip rectangle] > > > canvas.restoreToCount(restoreTo); > > > j > > > On Thu, Aug 13, 2009 at 3:04 AM, Jiri wrote: > >> Could someone explain to me the canvas.save() and restore(). I come from > >> a flash background, and this is a new concept for me. Reading the > >> documentation is not helpfull. > > >> Jiri- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: any development book for new guy?
http://www.amazon.com/Android-Programming-Books/lm/R3IDV45VDVAY3M One beginner book is sufficient, because most of the books are covering the same topics over and over -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 13, 11:42 pm, Barry Wei wrote: > could anyone send me some e-book about develop android application? > > thanks a lot. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how to get notified(or Listen) for the changes in SD card
try FileObserver, it may help u --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Displaying virtual keyboard
Hello! AbsListView implements onCreateInputConnection using an EditText, subclass of TextView :). My question is how should a custom View implement those methods so one can display the virtual keyboard. Andrei. On Fri, Aug 14, 2009 at 6:23 PM, greg wrote: > > I put the following menu option in my application to display the > keyboard: > >case R.id.keyboard: >Toast.makeText(this, "Back button removes keyboard.", > Toast.LENGTH_SHORT).show(); >InputMethodManager imm = > (InputMethodManager)getSystemService > (Context.INPUT_METHOD_SERVICE); >imm.showSoftInput(mListView, > InputMethodManager.SHOW_FORCED); >return true; > > - - - > > I hope that helps. > > - Greg > > > On Aug 14, 8:58 am, loctarar wrote: > > Hello! > > > > I need help with showing the integrated virtual keyboard on-screen. I > > extended a View class and I implemented these two methods (most of it > > is just stub code; for now I only want to display the keyboard): > > @Override > > public InputConnection onCreateInputConnection (EditorInfo > outAttrs) > > { > > BaseInputConnection fic = new BaseInputConnection(this, > true); > > > > outAttrs.actionLabel = null; > > outAttrs.hintText = "Insert the test text"; > > outAttrs.initialCapsMode = 0; > > outAttrs.initialSelEnd = outAttrs.initialSelStart = -1; > > outAttrs.label = "Test text"; > > outAttrs.inputType = InputType.TYPE_CLASS_NUMBER | > > InputType.TYPE_NUMBER_FLAG_DECIMAL; > > outAttrs.imeOptions = EditorInfo.IME_ACTION_DONE; > > > > return fic; > > } > > > > @Override > > public boolean onCheckIsTextEditor() { > > return true; > > } > > > > In the onCreate method of my activity I have : > > > > InputMethodManager imm = > (InputMethodManager)this.getSystemService > > (Context.INPUT_METHOD_SERVICE); > > imm.showInputMethodPicker(); > > > > imm.showSoftInput(editor, InputMethodManager.SHOW_FORCED); > > > > Where editor is an instance of my View. I noticed in the debugger that > > my onCreateInputConnection() is executed but after that the keyboard > > is not displayed on the screen. > > Using the TextView widtget and it's subclasses is not an option. > > > > 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: AdSense & Android - A Disappointed Developer's Rant
@Mike: I have forwarded your email to some people to see if we can help you. However you should really contact the AdSense support teams, not the Android team. @Disconnect: Please do not use anecdotal evidence as a generalized truth. On Fri, Aug 14, 2009 at 8:22 AM, Disconnect wrote: > Um... history and basic research says "No". Adsense has a habit of dropping > users rather than paying them, and the appeals process is a joke. > > Also, off-topic -- try #android-discuss or (better) an adsense support > forum... > > On Fri, Aug 14, 2009 at 8:00 AM, Photics wrote: >> >> I made an app called Guild Wars: Conquest. I was very careful about >> the rules and regulations about AdSense and Android. I released my app >> and I started making a lot of money. My web traffic went way up, like >> 218,000+ visits in one month. >> >> When it was time to get paid, AdSense shut down my account. I don't >> feel that they properly explained why and they didn't want to pay me. >> I appealed, and I was willing to work with Google to make things >> better, but I was denied and told not to email AdSense again. >> >> This is wrong and it makes me an unhappy Android developer. My apps, >> Photics: Revisions and Photics: Conquest are highly rated. I thought >> that Google wanted to encourage talented developers. Instead, I'm left >> feeling disappointed. >> >> Is Google going to make this right? >> >> > > > > > -- 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 add the character '&' intto the tag?
Use & On Aug 14, 7:49 am, tomispig wrote: > How to add the character '&' intto the tag? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: any development book for new guy?
Mark Murhpy's (regular here on these forums) e-books are highly regarded: http://commonsware.com/mmurphy.html http://commonsware.com/books.html On Aug 14, 2:42 am, Barry Wei wrote: > could anyone send me some e-book about develop android application? > > thanks a lot. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: GPRS attach and detach/Wifi connection
I am assuming that your device detaches from the network. When you are attached the following is possible - the network is capable of tracking the MS (via subsequent location updates) - network is aware of the services and networks that the user may have access to. Location updates are impacting the battery lifetime which should be avoided with detaching from the network. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 13, 7:44 pm, Gabriel Tessarolli wrote: > Hi, > > In cupcake release, it is known that only one network interface can be > active at a time. That is, if you turn Wifi ON and connect to a network, the > GPRS/UMTS interface will be dropped. > > Does that mean that handset will perform GPRS detach? It deactivates the PDP > context, but what about GPRS attach? > > Also, by turning the device ON and having a WiFi network available and > correctly configured on handset, will it perform GPRS attach at all? > > Thanks in advance! > > Gabriel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 -~--~~~~--~~--~--~---