[android-beginners] Re: SampleSoftKeyboard
Ive overriden the onTouch method and tryed to start the ime service, but it dont worked. how do i set it in the settings? On 23 Mai, 04:10, Rotem Or rote...@gmail.com wrote: youhave to set the keyboard in the settings as your used keyboard when you clikc the text view it will open the one you set by default 2009/5/22 Mr.No f.hi...@arcor.de Hello, im trying to understand the SoftKeyboard example in the SDK 1.5. I've opened the project and added a activity with a EditText in center. How do i set the example IME to the EditText field? -- Thanks Rotem Or --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: how to run sdk sample activities?
Kent Loobey wrote: What is the URL to instructions on how to run the sample activities included in the Android 1.5 SDK? They are in the ApiDemos icon in your emulator's Launcher, usually. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Simplistic instructions from Spinner Selection to a Linear Image View?
I know there are multiple snippets of information about multiple Spinner activities, but I hope mines will be a bit more simplistic in nature. What I am trying to do is give a user a selection of planets by means of a Spinner interface. When user chooses said planet, they will be directed to a linear layout embedded with the planet's image. [Spinner - Spinner Array - Spinner Selection - Image] Here's my java: package com.test.screen; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.Spinner; public class screen2 extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.screen2); //Begin Spinner Function Spinner s = (Spinner) findViewById(R.id.spinner1); ArrayAdapterCharSequence adapter = ArrayAdapter.createFromResource( this, R.array.planets, android.R.layout.simple_spinner_item); adapter.setDropDownViewResource (android.R.layout.simple_spinner_dropdown_item); s.setAdapter(adapter); //New Stuff: Put activity to do when something is selected. s.setOnItemSelectedListener( new OnItemSelectedListener() {--- I'm currently researching how to implement this flow public void onItemSelected ( AdapterView parent, View view, int position, long id) { //How to refer to selected item. String selectedItemString = parent.getSelectedItem(); } ** And here's my Array.xml resources string-array name=states itemJupiter/item itemPluto/item itemMars/item itemNeptune/item itemEarth/item /string-array /resources * I appreciate any help that can be offered. It goes without saying I am new, but I humbly ask upon the help of the java/Android gurus. ~M~ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Docs: AsyncTask
AsyncTask is Genius programming but in the docs appears to have incomplete information. There's not enough to understand how it works. -- onPreExecute(), invoked on the UI thread immediately after the task is executed. (I think this should be Before the task is executed.) Not all types are always used by am asynchronous task. To mark a type as unused, simply use the type Void: (then it has this as an example - which has nothing to do with Void.) private class MyTask extends AsyncTask AsyncTask http://developer.android.com/reference/android/os/AsyncTask.html + Juan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] microSDHC?
Does the G1 support microSDHC chips? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Speech recognizing in final 1.5 cupcake
Hi, In the 1.5 pre SDK there was a speech-recognizing feature in the google search widget, but in the final 1.5 I cannot see the icon beside the normal search button. There only is one icon. Does the 1.5 not have this function, or is it my avd there has the wrong target? I'm developing an application that should recognize speech, but it throws an ActivityNotFoundExeption. Is it not possible to develop using this feature? Thank you very much, //Kaloer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Corner-centric window backgrounds
I'm not sure if this is exactly a beginner question or not, but I'll ask here anyway. What I'm trying to add to my app is a simple background for the common windows. That part is easy enough either through themes or defining a background attribute to the toplevel layouts, but what I'm specifically trying for is a background with a drawing in the lower- right of the window. Now, this is also easy to implement in a sort of brute-force method. That is, make a background the size of the screen that is mostly white and leave it at that. But, that seems sort of a waste of storage space (ignoring the fact that PNG compresses big empty spaces well) and would not scale well if used on a device that doesn't have the 320x480 screen of the G1. Plus, it requires two backgrounds for the G1 regardless, one for portrait and one for landscape. And I can't easily define it in a theme without checking the orientation on each layout and reassigning the theme then based on it (else it scales to the new orientation). So my question is, how hard would it be to make a background I can attach to a theme with a single image in the corner that does not scale with the rest of the single-color background? Would this be a job for a NinePatch (albeit not the job it was meant for)? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] An important thing to know about live folders..
This should really be posted as a comment to Romain's blog post about Live folders: http://android-developers.blogspot.com/2009/04/live-folders.html But, since comments are disabled (Oh, why?!), I'll have to do it this way. An important thing: If you create a new activity, just for your live folder, lets say BookShelfLiveFolder (check it out in Romain's blog post) than it's onCreate() method will be called only when you create that live folder, and not every time you start your live folder. Sure this seems logical when you say it like this, but for someone learning the stuff, it's not! And btw, checking wipe user data in your run configuration does NOT wipe any live folders you might have created earlier. So, fellow beginners, you do have to remove, and create live folder manually, so that it's onCreate() method gets called, and any code change be applied - in case you're debugging, which I'm sure you do occasionally. Pardon my irony. Hope this saves you an hour, a day, a ... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: An important thing to know about live folders..
Hi, You do not have to delete a live folder to have the onCreate() be called again. You just need to create another live folder on your home screen. You can have as many as you want. On Sat, May 23, 2009 at 3:58 PM, n5r11 nikolaradosavlje...@gmail.com wrote: This should really be posted as a comment to Romain's blog post about Live folders: http://android-developers.blogspot.com/2009/04/live-folders.html But, since comments are disabled (Oh, why?!), I'll have to do it this way. An important thing: If you create a new activity, just for your live folder, lets say BookShelfLiveFolder (check it out in Romain's blog post) than it's onCreate() method will be called only when you create that live folder, and not every time you start your live folder. Sure this seems logical when you say it like this, but for someone learning the stuff, it's not! And btw, checking wipe user data in your run configuration does NOT wipe any live folders you might have created earlier. So, fellow beginners, you do have to remove, and create live folder manually, so that it's onCreate() method gets called, and any code change be applied - in case you're debugging, which I'm sure you do occasionally. Pardon my irony. Hope this saves you an hour, a day, a ... -- 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 Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Error when setting the android preferences in eclipse.
On Thu, May 21, 2009 at 4:04 AM, byroneekh...@gmail.com byroneekh...@gmail.com wrote: Hi, I have the same problem, I work with: Eclipse Platform Version: 3.4.2 I have downloaded android-sdk-windows-1.5_r1 but when I set the location to: D:\Android\android-sdk-windows-1.1_r1 If you downloaded android-sdk-windows-1.5_r1, why would you set android-sdk-windows-1.1_r1 in the Eclipse preferences? In case you missed the memo: if you can *only* use android-sdk-windows-1.5_r1 with ADT 0.9, not the old sdk-1.1 HTH R/ I get the same error: Error loading the SDK Error: Error parsing the SDK. D:\Android\android-sdk-windows-1.1_r1/plartforms is missing While using 1.5 SDK! please help... :), thnx Byron On May 14, 5:59 pm, Raphael r...@android.com wrote: The structure of the SDK has changed to be able to handle multiple platforms. You must use the Android SDK 1.5 with ADT 0.9x. Note that this SDK includes an android 1.1 image which is *exactly* the same as the one you had in the SDK 1.1_r1. R/ On Tue, May 12, 2009 at 12:52 AM, andersg anders.gjett...@gmail.com wrote: Hi, I can't get the android sdk working in eclipse. I followed the installation guide, but when I point android preferences to my android sdk lib under Window preferences android I get the following error. Error loading the SDK Error: Error parsing the SDK. /home/anders/opt/android-sdk-linux_x86-1.1_r1/plartformsismissing --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: SDK USB driver for Vista SP1 won't install - Solution?
What driver do you want to install? 1- For transfering files from the SD Card, you do not need any driver. 2- For using ADB to debug, you need the driver that comes with the SDK. If you have trouble with that one please read this thread first: http://groups.google.com/group/android-beginners/browse_thread/thread/ff713181959c48ee/98dbfe1887d671c0 R/ On Thu, May 21, 2009 at 1:39 PM, Tony Su ton...@su-networking.com wrote: Howdy, When I connect a G1 to Vista SP1, the phone is automatically recognized and Vista's own USB driver (WpdFs.dll and WUDFRd.sys) is installed, but that driver doesn't work. Nothing I try seems to update or change the USB driver to the one supplied by the SDK... Have tried uninstalling the device and re-scanning Updating the driver in the Device Properties When I try to force updating by manually pointing to the SDK driver, Vista says it's not even a driver. Of course, with Vista's improved security I can't disable/rename the Microsoft driver (permissions even an Admin can't touch). Any ideas? TIA, Tony Full deatils on the Vista SP1 driver... Provider: Microsoft Corporation File Version: 6.0.60001.18000(longhorn_rtm.080118-1840 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] gridview column size
I am having trouble controlling the size of the columns in my GridView. The first column is only 3-4 chars and the other 4 columns are 5-8 chars. For some reason, all the columns are the same width, leaving a huge amount of spacing after the first column and wrapping the text inside the others. Is there a way, I can set the width of individual columns in the grid view? In an ideal world, gridview would work like an html table, where the smaller columns are shrunk to fit the data and larger columns expand as necessary. Any ideas would be helpful. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: gridview column size
All columns in a GridView have the same size. On Sat, May 23, 2009 at 9:25 PM, solid young...@gmail.com wrote: I am having trouble controlling the size of the columns in my GridView. The first column is only 3-4 chars and the other 4 columns are 5-8 chars. For some reason, all the columns are the same width, leaving a huge amount of spacing after the first column and wrapping the text inside the others. Is there a way, I can set the width of individual columns in the grid view? In an ideal world, gridview would work like an html table, where the smaller columns are shrunk to fit the data and larger columns expand as necessary. Any ideas would be helpful. -- 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 Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---