[android-beginners] Re: Edit text change input type in code
Try to use these methods: http://developer.android.com/reference/android/widget/TextView.html#setRawInputType(int) http://developer.android.com/reference/android/widget/TextView.html#setInputType(int) Constants to use for these methods you find in the description column in this table: http://developer.android.com/reference/android/widget/TextView.html#attr_android :inputType I haven't tried it so I hope it works for you Am 23.08.2009 um 06:51 schrieb MMC2: Can anyone show me how to change the input type for a textedit to 1) numeric decimal and 2) to text using code please? --~--~-~--~~~---~--~~ 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: Invalid apk file
Which version of Eclipse are you both running? I've not come across this problem before, but its possible that your emulator needs resetting. Try running: emulator -wipe-data from the command line to reset the data image. Sean On Sun, Aug 23, 2009 at 2:57 PM, Ivanxhh...@gmail.com wrote: Does anybody has any idea about it ? I was blocked by this for a while, I even recreated my dev environment, including Eclipse and the ADT plugin. But I still got this error, it is just a HelloWorld Android application, I did no change to the codes. 08-23 13:50:44.851: DEBUG/AndroidRuntime(737): AndroidRuntime START 08-23 13:50:44.851: DEBUG/AndroidRuntime(737): CheckJNI is ON 08-23 13:50:45.071: INFO/jdwp(737): received file descriptor 19 from ADB 08-23 13:50:45.071: DEBUG/AndroidRuntime(737): --- registering native functions --- 08-23 13:50:45.672: INFO/zipro(574): Could not find end-of-central-directory in Zip 08-23 13:50:45.672: DEBUG/asset(574): failed to open Zip archive '/data/app/vmdl17627.tmp' 08-23 13:50:45.734: WARN/PackageParser(574): Unable to read AndroidManifest.xml of /data/app/vmdl17627.tmp 08-23 13:50:45.734: WARN/PackageParser(574): java.io.FileNotFoundException: AndroidManifest.xml 08-23 13:50:45.734: WARN/PackageParser(574): at android.content.res.AssetManager.openXmlAssetNative(Native Method) 08-23 13:50:45.734: WARN/PackageParser(574): at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:471) 08-23 13:50:45.734: WARN/PackageParser(574): at android.content.res.AssetManager.openXmlResourceParser(AssetManager.java:439) 08-23 13:50:45.734: WARN/PackageParser(574): at android.content.pm.PackageParser.parsePackageName(PackageParser.java:455) 08-23 13:50:45.734: WARN/PackageParser(574): at com.android.server.PackageManagerService.installPackageLI(PackageManagerService.java:3659) 08-23 13:50:45.734: WARN/PackageParser(574): at com.android.server.PackageManagerService.access$1500(PackageManagerService.java:104) 08-23 13:50:45.734: WARN/PackageParser(574): at com.android.server.PackageManagerService$5.run(PackageManagerService.java:3236) 08-23 13:50:45.734: WARN/PackageParser(574): at android.os.Handler.handleCallback(Handler.java:587) 08-23 13:50:45.734: WARN/PackageParser(574): at android.os.Handler.dispatchMessage(Handler.java:92) 08-23 13:50:45.734: WARN/PackageParser(574): at android.os.Looper.loop(Looper.java:123) 08-23 13:50:45.734: WARN/PackageParser(574): at android.os.HandlerThread.run(HandlerThread.java:60) 08-23 13:50:45.734: ERROR/PackageManager(574): Couldn't find a package name in : /data/app/vmdl17627.tmp Thanks very much for any comment ! 2009/8/20 Ivan xhh...@gmail.com I got this error, too, Could anyone help to give any comment ? Thanks ! On Aug 4, 10:02 pm, green charuj...@gmail.com wrote: Hello, I think I have read all threads related to this problem. So I have tried the locale stuff, deleted keystore file from .android directory etc...Please advise on getting rid of this problem: This is from my eclipse console on my Windows XP laptop. [2009-08-04 09:52:36 - Home] Uploading Home.apk onto device 'emulator-5554' [2009-08-04 09:52:36 - Home] Installing Home.apk... [2009-08-04 09:52:38 - Home] Installation failed due to invalid APK file! [2009-08-04 09:52:38 - Home] Please check logcat output for more details. [2009-08-04 09:52:38 - Home] Launch canceled! --- Here are the last few lines of adb logcat D/AndroidRuntime( 697): AndroidRuntime START D/AndroidRuntime( 697): CheckJNI is ON D/AndroidRuntime( 697): --- registering native functions --- I/jdwp ( 697): received file descriptor 20 from ADB I/zipro ( 568): Could not find end-of-central-directory in Zip D/asset ( 568): failed to open Zip archive '/data/app/ vmdl28216.tmp' W/PackageParser( 568): Unable to readAndroidManifest.xmlof /data/ app/vmdl28216.tmp W/PackageParser( 568):java.io.FileNotFoundException:AndroidManifest.xml W/PackageParser( 568): at android.content.res.AssetManager.openXmlAssetNative(Native Method) W/PackageParser( 568): at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java: 471) W/PackageParser( 568): at android.content.res.AssetManager.openXmlResourceParser (AssetManager.java:439) W/PackageParser( 568): at android.content.pm.PackageParser.parsePackageName(PackageParser.java: 455) W/PackageParser( 568): at com.android.server.PackageManagerService.installPackageLI (PackageManagerService.java:3659) W/PackageParser( 568): at com.android.server.PackageManagerService.access$1500 (PackageManagerService.java:104) W/PackageParser( 568): at com.android.server.PackageManagerService $5.run(PackageManagerService.java:3236) W/PackageParser( 568): at
[android-beginners]
I need education project in android. does anyone tell me from where I should access education project --~--~-~--~~~---~--~~ 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]
hello I am android developer had struck in route direction in mapview in android once it is not supported in latest sdk import com.google.googlenav.DrivingDirection; import com.google.googlenav.map.MapPoint; these 2 package are not found --~--~-~--~~~---~--~~ 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: Please help in creating simple text file
though I was using 'this' as context in onCreate event. I ran the same code after removing 'Context' as parameter, still same result. At last I uninstalled the application from Emulator and restarted everythingit worked with the same code :) Thanks for your valuable timebut I am still thinking does Emulator not refresh things properly? On Aug 22, 2:46 pm, Mark Murphy mmur...@commonsware.com wrote: nitin wrote: when i tried after changing the code like: catch (IOException ioe) { return ioe.toString(); } Giving error: java.io.FileNotFoundException: /data/data/hello.world/files/test.txt online samples are giving the same code...am i missing some setting/permission? pls help Where are you getting the Context from? If it is your Activity instance, this code should work. If you are somehow creating your own Context object, then that might be the source of your problem -- use a Context given to you by Android, such as an Activity or Service object. -- 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 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] Google Map API on pan or zoom
Hi, Which function should I override if I want to show a toast when the map is panned or zoomed? Thanks in advance! --~--~-~--~~~---~--~~ 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] create a costum key
Hi! Is possible to create a costum key on virtual keyboard?i want to change text of enter key.. thank you! --~--~-~--~~~---~--~~ 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] How to start android emulator in a different port
hi, I am beginner in Android ,how to start the emulator in a different port using eclipse Run Configuration Under 'Additional Emulator Command Line Options ' I tried with different options and failed emulator -port 5556 port 5556 emulator -5556 and so on ,but nothing worked out for me .I could appreciate if someone points me with the right command Thanks --~--~-~--~~~---~--~~ 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] Android P2P Options
Hello, I need to pass data between P2P mobile applications. I know that it is possible to use SMS, WAP, GTalk, etc, but it appears that there are very scanty materials about these topics. Can someone show me the steps that I need to take to get this done or direct me to the online source that can help me with the implementation using Android? Yours, Karl. --~--~-~--~~~---~--~~ 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 start android emulator in a different port
This works on my computer: ./emulator -port 4747 -avd MyPhone Can u tell if you get a error message or something, i supose on eclipse you must change it on preference 2009/8/24 guptha gjango...@gmail.com hi, I am beginner in Android ,how to start the emulator in a different port using eclipse Run Configuration Under 'Additional Emulator Command Line Options ' I tried with different options and failed emulator -port 5556 port 5556 emulator -5556 and so on ,but nothing worked out for me .I could appreciate if someone points me with the right command Thanks -- Atte [[Jose Luis Ayerdis Espinoza]] http://blognecronet.blogspot.com --~--~-~--~~~---~--~~ 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] App for Android beginners
Guys I wrote App for searchable reference of full Android API docs. It's free. Search for DroiDoc in Market on your phone --~--~-~--~~~---~--~~ 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] SQLite without Context?
I must access a SQLite Database from within a Service, but SQLiteOpenHelper requires an Activity Context object which won't be there when the Activity which spawned the Service is closed! Is there any way to open an Activity Context-Agnostic SQLite connection? --~--~-~--~~~---~--~~ 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] some questions about uninstalling the android software
Hey,everyone!! I want to add a function to my software,which allows the user to uninstall the software, yet they need to enter the password seted before!!Since I am a new student to android, so I'm not very sure if this kind of function can be created. And if the function can be added, then how? Thanks!! --~--~-~--~~~---~--~~ 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] T-Mobile USA Operator Billing?
I have seen a number of reports in the past week or two heralding the arrival of T-Mobile operator billing for Android Market, enabling users to pay for apps by means of their phone subscription rather than Google Checkout. Yet I can't see anything official from either Google or T-Mobile in this regard. Is this indeed happening? If so, when? --~--~-~--~~~---~--~~ 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: toggle background of an ImageView
From: http://developer.android.com/reference/android/widget/ImageView.html getDrawablehttp://developer.android.com/reference/android/widget/ImageView.html#getDrawable%28%29() Return the view's drawable, or null if no drawable has been assigned. Once you have that, compare it to whatever drawbles you know about, then change the course of your application based upon that. Most of the info you need is in the docs :) On Fri, Aug 21, 2009 at 1:16 PM, arin arinv1618b...@gmail.com wrote: Hi there, I want to determine if a particular background png is being used by an imageview at a particular time and want to execute some action based on the boolean result? How can I determine the current background resource? -- Donn http://blog.donnfelker.com/ --~--~-~--~~~---~--~~ 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] Strange behavior in Webview
I am developing an application based on Webview, and i get some strange behavior when touching links. If i touch with my finger a link as described above, the override method shouldOverrideUrlLoading gets a about:blank in the url parameter, instead, if i use the trackball for click the link, the url is correct and the onclick method is executed correctly. What is the difference between clicking links with trackball or touch?? should i set some parameter of the webview? javascript is enabled. /a/lilia id=tab_profile href=#m=Profileamp;func=index onclick=Request.IFRAME.send('? m=Profileamp;func=indexamp;ajax=1amp;store=1amp;ajax_target=canvas'); return false; title=Mi perfilPerfil/a Thanks! Alvaro. --~--~-~--~~~---~--~~ 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] Overlay Item collection?
Hi, I'm running into a snag on the last step (Step 4) of the Hello Map Views Tutorial. Where does this code go in HelloItemizedOverlay.java 4. All that's left is for us to add this OverlayItem to our collection in the HelloItemizedOverlay, and add this to the List of Overlay objects retrieved from the MapView: itemizedoverlay.addOverlay(overlayitem); mapOverlays.add(itemizedoverlay); Thanks in advance, I'm such a newb! John --~--~-~--~~~---~--~~ 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] installing the android sdk
In the instructions for installing Eclipse 3.4 ganymede and the android sdk , it is stated in step 6 that you need the WST plugin mentioned earlier in this page. Yet I have searched for an hour including all the links in this section and cannot find any reference regarding how to install the WST plugin. Help please, and thanks in advance. nmharleyrider --~--~-~--~~~---~--~~ 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] HelloMapView Tutorial Question.
Hi Everyone, I've been going down through the tutorials and am stuck here on the Maps Tutorial, Actually in this final step. 4.All that's left is for us to add this OverlayItem to our collection in the HelloItemizedOverlay, and add this to the List of Overlay objects retrieved from the MapView: itemizedoverlay.addOverlay(overlayitem); mapOverlays.add(itemizedoverlay); Specifically, My question is where is this List of Overlay objects in the HelloItemizedOverlay? I'm not sure where that bit of code goes. Thanks, John --~--~-~--~~~---~--~~ 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 do I implement onClick for a DialogPreference?
I dont have an IDE in front of me, but I think this exact example is available in the API Demos. Add it to your Eclipse workspace and poke around in the preference area. I advise you to install the ApiDemos on your emulator or test phone (or G1 if you have one). It makes life alot easier when you see what you want, then the task is just finding it in the demos (which is easy). On Fri, Aug 21, 2009 at 1:54 PM, Nick nick.vers...@gmail.com wrote: Looking around the source I think I found what I was looking for. I assume that I need to implement onDialogClosed from DialogPreference.java. But to do this do I need to create a new class say MyDialogPreference or is there a way to just implement that method in the class below? On Aug 20, 3:55 pm, Nick nick.vers...@gmail.com wrote: I have a DialogPreference in my Preference Activity and would like to know which button was pressed. I have implemented the OnSharedPreferenceChangeListener which does not seem to get triggered when the DialogPreference is selected. I have also tried OnPreferenceClickListener but this gets triggered as soon as the DialogPreference is clicked from the main screen and not when one of the actual dialog buttons was pressed. was. So I think I need to implement onClick for this dialog but I am not sure where to do this. public class Preferences extends PreferenceActivity implements OnSharedPreferenceChangeListener { private static final String LOG = test; private DialogPreference mfactory; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Load the preferences from an XML resource addPreferencesFromResource(R.xml.preferences); mfactory = (DialogPreference)findPreference(pref_factory); mfactory.setOnPreferenceClickListener(new DialogPreference.OnPreferenceClickListener() { @Override public boolean onPreferenceClick(Preference preference) { Log.i(LOG, onPreferenceClick1 entered); // TODO Auto-generated method stub return false; }}); } @Override protected void onResume() { super.onResume(); Log.i(LOG, onResume entered); // Add a Listener getPreferenceScreen().getSharedPreferences ().registerOnSharedPreferenceChangeListener(this); } @Override protected void onPause() { super.onPause(); Log.i(LOG, onPause entered); // Remove the Listener getPreferenceScreen().getSharedPreferences ().unregisterOnSharedPreferenceChangeListener(this); } public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { Log.i(LOG, onSharedPreferenceChanged entered); if (key.contains(seekbar)) { } } } } -- Donn http://blog.donnfelker.com/ --~--~-~--~~~---~--~~ 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] App just for Android beginners
Guys I wrote app for Android phones that is complete Android API searchable reference It's FREE Search for DroiDoc in Market on your phone --~--~-~--~~~---~--~~ 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] Icons showing up in the gallery folder
Greetings all, I've googled this topic and found some people with the exact same issue. It seems that Android is a bit too aggressive with amalgamation of pictures, media, etc and dumps everything it finds into the gallery folder. Which I guess is kinda reasonable from a process point of view, but it's absolutely unusable in a practical situation. Example, open the mail client and Add Attachment. It takes you to the gallery. If you want to add a picture, you potentially have to scroll through icons, videos, music, album art.. everything, until you find the particular jpg you would like to add. Android seems to have different types of folder for some type of management within the gallery, but you cannot define a more granular selection. You have to go to the main gallery folder, and that is unwieldy. Anyone out there have a solution to this? --~--~-~--~~~---~--~~ 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] Change color to another color in Drawable
I'm working on an android application, and I have a drawable that I'm loading up from a source image. On this image, I'd like to convert all of the white pixels to a different color, say blue, and then cache the resultant Drawable object so I can use it later. So for example say I have a 20x20 PNG file that has a white circle in the middle, and that everything outside the circle is transparent. What's the best way to turn that white circle blue and cache the results? Does the answer change if I want to use that source image to create several new Drawables (say blue, red, green, orange, etc)? I'm guessing that I'll want to use a ColorMatrix in some way, but I'm not sure how. Thanks Matt --~--~-~--~~~---~--~~ 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: Development Phone
If you just want to write applications and run them on your phone, any Android phone will do. If you want to modify the OS on the phone, then you need either an official development phone or hack a non-dev phone to be a dev phone. 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 24, 6:09 am, Ran dahan...@gmail.com wrote: Hi everyone, I'm new to Android and I want to start developing and deploying my apps to a real phone. My question is what is the big difference between the official ADP1 and other Android phones ? What is the benefit of working with ADP1 over the other Android phones ? I want to buy some Andriod phone, I thought of the new Samsung i7500 with Andriod OS or HTC Hero, will I be able to develop regularly or I will need to hack them in some manner to activate some features ? Thanks in advance Ran --~--~-~--~~~---~--~~ 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] How do I split up or separate large XML layout files
My example is using the Tab layout (just consider the HelloTab one) the main.xml contains the views for all the tabs. Is their a way to separate or reference another xml file so my main.xml doesn't look like spaghetti at the end? Below is the main.xml from the Hello TabWdiget... ?xml version=1.0 encoding=utf-8? TabHost xmlns:android=http://schemas.android.com/apk/res/android; android:id=@android:id/tabhost android:layout_width=fill_parent android:layout_height=fill_parent LinearLayout android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TabWidget android:id=@android:id/tabs android:layout_width=fill_parent android:layout_height=wrap_content / FrameLayout android:id=@android:id/tabcontent android:layout_width=fill_parent android:layout_height=fill_parent TextView android:id=@+id/textview1 android:layout_width=fill_parent android:layout_height=fill_parent android:text=this is a tab / TextView android:id=@+id/textview2 android:layout_width=fill_parent android:layout_height=fill_parent android:text=this is another tab / TextView android:id=@+id/textview3 android:layout_width=fill_parent android:layout_height=fill_parent android:text=this is a third tab / /FrameLayout /LinearLayout /TabHost I want to turn that into... ?xml version=1.0 encoding=utf-8? TabHost xmlns:android=http://schemas.android.com/apk/res/android; android:id=@android:id/tabhost android:layout_width=fill_parent android:layout_height=fill_parent LinearLayout android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TabWidget android:id=@android:id/tabs android:layout_width=fill_parent android:layout_height=wrap_content / FrameLayout android:id=@android:id/tabcontent android:layout_width=fill_parent android:layout_height=fill_parent Tab1.xml Tab2.xml Tab3.xml /FrameLayout /LinearLayout /TabHost --~--~-~--~~~---~--~~ 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] Development Phone
Hi everyone, I'm new to Android and I want to start developing and deploying my apps to a real phone. My question is what is the big difference between the official ADP1 and other Android phones ? What is the benefit of working with ADP1 over the other Android phones ? I want to buy some Andriod phone, I thought of the new Samsung i7500 with Andriod OS or HTC Hero, will I be able to develop regularly or I will need to hack them in some manner to activate some features ? Thanks in advance Ran --~--~-~--~~~---~--~~ 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 do I split up or separate large XML layout files
Hi, Simply use: include layout=@layout/mylayout / On Sun, Aug 23, 2009 at 7:53 PM, Litho23lith...@gmail.com wrote: My example is using the Tab layout (just consider the HelloTab one) the main.xml contains the views for all the tabs. Is their a way to separate or reference another xml file so my main.xml doesn't look like spaghetti at the end? Below is the main.xml from the Hello TabWdiget... ?xml version=1.0 encoding=utf-8? TabHost xmlns:android=http://schemas.android.com/apk/res/android; android:id=@android:id/tabhost android:layout_width=fill_parent android:layout_height=fill_parent LinearLayout android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TabWidget android:id=@android:id/tabs android:layout_width=fill_parent android:layout_height=wrap_content / FrameLayout android:id=@android:id/tabcontent android:layout_width=fill_parent android:layout_height=fill_parent TextView android:id=@+id/textview1 android:layout_width=fill_parent android:layout_height=fill_parent android:text=this is a tab / TextView android:id=@+id/textview2 android:layout_width=fill_parent android:layout_height=fill_parent android:text=this is another tab / TextView android:id=@+id/textview3 android:layout_width=fill_parent android:layout_height=fill_parent android:text=this is a third tab / /FrameLayout /LinearLayout /TabHost I want to turn that into... ?xml version=1.0 encoding=utf-8? TabHost xmlns:android=http://schemas.android.com/apk/res/android; android:id=@android:id/tabhost android:layout_width=fill_parent android:layout_height=fill_parent LinearLayout android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TabWidget android:id=@android:id/tabs android:layout_width=fill_parent android:layout_height=wrap_content / FrameLayout android:id=@android:id/tabcontent android:layout_width=fill_parent android:layout_height=fill_parent Tab1.xml Tab2.xml Tab3.xml /FrameLayout /LinearLayout /TabHost -- 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: [android-beginners]
sorry mate, i dont have. On 8/22/09, saurabh sinha saurso...@gmail.com wrote: Hello I am android beginner looking for restaurant finder ,driving direction in mapview if u have the source code plz mail me -- Pankaj Sharma Project Engineer Mobile-09911221752 --~--~-~--~~~---~--~~ 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 can I download a file from the internet?
Check out the Shelves app by Romain Guy here: http://www.curious-creature.org/2009/01/19/shelves-an-open-source-android-application/ He downloads information from the internet. This should get you going in the right direction. On Fri, Aug 21, 2009 at 10:07 AM, bennyb taw...@gmail.com wrote: I want my application to download an update file e.g. http://www.mysite.com/updates/data.txt Also, what do I need to add to the manifest? -- Donn http://blog.donnfelker.com/ --~--~-~--~~~---~--~~ 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] App just for Android beginners
Guys, I wrote app for Android phone that can help you to learn Android / plan your next App. It is FREE and searchable app for all Android API documentation. It works off-line, no need for connection. Give it a try. Search for DroiDoc on Market on your phone Thanks --~--~-~--~~~---~--~~ 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: [android-beginners]
and if i have 1 i wont give u okay On 8/22/09, pankaj sharma aka Cipher reliablepan...@gmail.com wrote: sorry mate, i dont have. On 8/22/09, saurabh sinha saurso...@gmail.com wrote: Hello I am android beginner looking for restaurant finder ,driving direction in mapview if u have the source code plz mail me -- Pankaj Sharma Project Engineer Mobile-09911221752 -- Pankaj Sharma Project Engineer Mobile-09911221752 --~--~-~--~~~---~--~~ 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] Contacts.ContactMethods.POSTAL_LOCATION_LATITUDE returns email address instead of physical address
Hello, I am learning about Content Providers and tried the following example from a tutorial. This example performs a Google Maps search based on the home address of a contact. First, the various contacts are presented in a ListView, and then when the user taps the entry of a particular contact, the application is supposed to present the user with the location of the address on the map. To access the latitude information, I used android.provider.Contacts.ContactMethods.POSTAL_LOCATION_LATITUDE in a DB query. However, Android is returning the email address of the contact instead of the Home Address! Can someone tell me, why this might be the case, and what I must change to obtain the correct address? Please see the code below (let me know if I should provide any more info): package com.msi.ibmtutorial; import android.os.Bundle; import android.app.ListActivity; import android.database.Cursor; import android.util.Log; import android.view.View; import android.widget.ListView; import android.widget.ListAdapter; import android.net.Uri; import android.content.Intent; import android.widget.SimpleCursorAdapter; import android.provider.BaseColumns; import android.provider.Contacts; import android.provider.Contacts.ContactMethods; import android.provider.Contacts.People; public class MobileServiceCallContacts extends ListActivity { final String tag = MSCC; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); //Cursor c = getContentResolver().query( People.CONTENT_URI, Cursor c = managedQuery( People.CONTENT_URI, null, null, null, null ); startManagingCursor( c ); Integer cols = new Integer( c.getColumnCount() ); Log.i( MSCC, Number of cols is: + cols.toString() ); String[] people_name = new String[] { People.NAME }; int[] text_id = new int[] { android.R.id.text1 }; ListAdapter la = new SimpleCursorAdapter( this, android.R.layout.simple_list_item_1, c, people_name, text_id ); setListAdapter( la ); } @Override protected void onListItemClick ( ListView lv, View v, int position, long dbId ) { super.onListItemClick( lv, v, position, dbId ); try { /* Obtain the details of this record by creating a Content Provider. * The WHERE clause used in the call to managedQuery below is for the Home address * and for the person record selected in the GUI. */ //String[] cols = new String[] { type, name }; //String query_string = type=1 and name= + dbId; String cols[]= new String[] { BaseColumns._ID, Contacts.ContactMethods.POSTAL_LOCATION_LATITUDE, People.NAME }; String query_string = type= + dbId; Log.d( MSCC, query_string = + query_string ); Cursor c = managedQuery( ContactMethods.CONTENT_URI, cols, null, //query_string, null, null ); startManagingCursor( c ); if ( c.isBeforeFirst() ) { c.move( 1 ); if ( !c.isFirst() ) { Throwable t = new Throwable(); showAlert( MSCC, No contacts methods available!, t ); return; } } Integer nCols = new Integer( c.getColumnCount() ); int i; for ( i=0; inCols; i++ ) { Log.d( MSCC, c.getString[ + i + ] = + c.getString( i ) ); } //String addr = c.getString( c.getColumnIndex( aux_data ) ); String addr = c.getString( c.getColumnIndex( ContactMethods.POSTAL_LOCATION_LATITUDE ) ); Log.d( MSCC, addr = + addr ); addr = addr.replace( \n, ); addr = addr.replace( ,, ); addr = addr.replace( , + ); Uri uriContent1 = Uri.parse( geo:0,0?q= + addr ); Intent geoIntent = new Intent( android.intent.action.VIEW, uriContent1 ); startActivity( geoIntent ); } catch ( Exception e ) { Log.i( tag, e.getMessage() ); } } void showAlert( String tag, String msg, Throwable t ) { Log.e( tag, msg, t ); } } This is the output in LogCat: 08-24
[android-beginners] Re: Need to implement Android for my website powered in PHP
Well before anyone can tell you what/how to do it, you need to find out what you need. Once you find that out, let us know. On Thu, Aug 20, 2009 at 6:16 AM, andyandroi...@gmail.com andyandroi...@gmail.com wrote: I'm guessing the op wants to make their site mobile friendly. Just a hunch. Aa01 On Aug 19, 2:04 am, kapil1728 kapilcpk1...@gmail.com wrote: Hi, I need to make mywebsite developed in PHP(Linux server, MySQL) in android. How can I do it? Can anyone tell me the steps for it? Thanks Kapil1728 -- Donn http://blog.donnfelker.com/ --~--~-~--~~~---~--~~ 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] Email File using content provider
I'm trying to email out a file using intents and content providers. I've hit a road block with the below code. It crashes gmail. I think it may have something to do the attachment having a size of 0 according to the gmail app. Yea I now I can save it to the sd card, but I'd like to do it without leaving files around the external drive. @Override public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException { //get string String text = new String(test); //save to disk ParcelFileDescriptor fd = openFile(Uri.parse (file://test.csv), r); FileOutputStream fos = new FileOutputStream(fd.getFileDescriptor ()); OutputStreamWriter out = null; try { out = new OutputStreamWriter(fos, UTF-8); } catch (UnsupportedEncodingException e) { // TODO Auto-generated catch block e.printStackTrace(); } try { //outputs start,stop,duration,apart out.write(text); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } try { out.flush(); out.close(); fos.flush(); fos.close(); fd.close(); } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } File file = new File(test.csv); ParcelFileDescriptor parcel = ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY); return parcel; } The code runs fine, except for gmail crashing on sync. It was a good lesson, just clear your cache to get it working again! :-) Thanks for any help! --~--~-~--~~~---~--~~ 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] can't get progressbar and drawing to work together
Hi develeopers, I tried really hard to get over this, but I found no solution. I want to fetch images from web and display them on the canvas of a view. While doing so I need to display a progressbar, so that the user has some idea what is going on. In the activity that owns the view I set requestWindowFeature(Window.FEATURE_PROGRESS) and then in the view I call first: activity.setProgressBarVisibility(true); and at every progress: activity.setProgress(prog); The problem is that I have to call the progress update whenever I fetch an image from inside the onDraw method and whatever I try (from the Handler to the Thread) the progress updates seem to be queued and triggered alltogether when the canvas has finished rendering, which is quite useless. I also tried to extract the image fetching logic out of the onDraw and show progress there (instead of in the onDraw), before calling invalidate, but nothing changes. The progressbar updates are always triggered at the end. Any help is very appreciated. Best regards, Andrea --~--~-~--~~~---~--~~ 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] Problem with Ecplise android plugin install
Hello, I'm running Eclipse Ganymede Version: 3.4.0 Build id: I20080617-2000, under Linux OpenSuse 11.1 (KDE). I've installed Eclipse with from OpenSuse Open source repository. To achieve Android SDK installation, I tried to follow the official tutorial: http://developer.android.com/sdk/1.5_r3/installing.html. 1 ) I've downloaded the android SDK : http://developer.android.com/sdk/download.html?v=android-sdk-linux_x86-1.5_r3.zip 2 ) I unzipped the Androis SDK in the directory: /home/username/workspace/android-sdk-linux_x86-1.5_r3 3 ) I've edited .bashrc : /home/username/.bashrc: Adding the PATH variable: test -s ~/.alias . ~/.alias || true export PATH=${PATH}:/home/username/workspace/android-sdk- linux_x86-1.5_r3/tools 4 ) After reboot, I try to use (under Eclipse) Help Software Updates: I got the error messsage Cannot launch the Update UI.This installation has not been configured properly for Software Updates., so after a bit of googling I follow edited the ecplise prefrences (under Window Preferences General Capabilities) and check the classic update box. New entry (also called Software Updates) appeared in my Help menu, giving access to sub-menus : - Find and install - Manage Configuration 5 ) I choosed Find and install Search for new features to install New remote site Name: Android SDK Plugin URL: https://dl-ssl.google.com/android/eclipse/ 6 ) After validation, The update showed features to install list : Android SDK Plugin -- Developer tools -- Android development Tools 0.9.1.v200905011822-1621 -- Android DDMS 0.9.1.v200905011822-1621 When I selected all features I got an error message : Current configuration contains errors that are not corrected by the requested operation and more errors would be introduced. See details for more information. - Current configuration problems - Resulting configuration does not contain the platform. - Configuration problems after the operation - Resulting configuration does not contain the platform. Android Development Tools (0.9.1.v200905011822-1621) requires plug- in org.eclipse.gef. I also tried the http link instead of https but the problem doesn't seem to be related to network connexion or protocol. Any Ideas ? Thanks --~--~-~--~~~---~--~~ 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: Android P2P Options
It partially depends on how much and what kind of data you pass. SMS may be the easiest way, in which case you need to programatically send and intercept SMS. One example is here: http://www.androidcompetencycenter.com/2008/12/android-api-sms-handling/ 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 24, 8:50 am, Persona mr.pers...@gmail.com wrote: Hello, I need to pass data between P2P mobile applications. I know that it is possible to use SMS, WAP, GTalk, etc, but it appears that there are very scanty materials about these topics. Can someone show me the steps that I need to take to get this done or direct me to the online source that can help me with the implementation using Android? Yours, Karl. --~--~-~--~~~---~--~~ 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] Change color to another color in Drawable
Sorry if this shows up twice, I sent it via email to the list a few days ago and it never showed up, so I'm trying from the web page. I'm working on an android application, and I have a drawable that I'm loading up from a source image. On this image, I'd like to convert all of the white pixels to a different color, say blue, and then cache the resultant Drawable object so I can use it later. So for example say I have a 20x20 PNG file that has a white circle in the middle, and that everything outside the circle is transparent. What's the best way to turn that white circle blue and cache the results? Does the answer change if I want to use that source image to create several new Drawables (say blue, red, green, orange, etc)? I'm guessing that I'll want to use a ColorMatrix in some way, but I'm not sure how, and I couldn't find anything from searching on the list. Thanks Matt --~--~-~--~~~---~--~~ 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: Please help in creating simple text file
Are you setting the SDCard permission properly in the manifest? On Mon, Aug 24, 2009 at 7:22 AM, nitin ni...@infocratsweb.com wrote: though I was using 'this' as context in onCreate event. I ran the same code after removing 'Context' as parameter, still same result. At last I uninstalled the application from Emulator and restarted everythingit worked with the same code :) Thanks for your valuable timebut I am still thinking does Emulator not refresh things properly? On Aug 22, 2:46 pm, Mark Murphy mmur...@commonsware.com wrote: nitin wrote: when i tried after changing the code like: catch (IOException ioe) { return ioe.toString(); } Giving error: java.io.FileNotFoundException: /data/data/hello.world/files/test.txt online samples are giving the same code...am i missing some setting/permission? pls help Where are you getting the Context from? If it is your Activity instance, this code should work. If you are somehow creating your own Context object, then that might be the source of your problem -- use a Context given to you by Android, such as an Activity or Service object. -- Mark Murphy (a Commons Guy)http://commonsware.com| http://twitter.com/commonsguy Android App Developer Training:http://commonsware.com/training.html -- Donn http://blog.donnfelker.com/ --~--~-~--~~~---~--~~ 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] Streaming Example?
Hi All, I'm looking for an example of how to play an MP3 stream as the ambient sound in my Android app. MediaPlayer doesn't seem to support playing MP3 streams (like a radio station) and from what I've found it's a two step process where you need to write the stream to a temporary location and then play that file or something. Can anyone point me to an example of how to do this? Thanks --~--~-~--~~~---~--~~ 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 can I download a file from the internet?
String urlStr = http://www.mysite.com/updates/data.txt;; URL fetchUrl = new URL(urlStr); InputStream tileInputStream = (InputStream) fetchUrl.getContent(); And then you use the stream. In the application add the permission: uses-permission android:name=android.permission.INTERNET/uses- permission Andrea On Aug 21, 5:07 pm, bennyb taw...@gmail.com wrote: I want my application to download an update file e.g.http://www.mysite.com/updates/data.txt Also, what do I need to add to the manifest? --~--~-~--~~~---~--~~ 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] MMS intent
Hi, I want to send an MMS using intent, conditions are below intent should carry sender number, subject, MMS msg, attachment, and activiating the intent should not populate the MMS application's UI is it possible in android... ? Thanks Stalee --~--~-~--~~~---~--~~ 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: [android-beginners]
2009/8/22 pankaj sharma aka Cipher reliablepan...@gmail.com and if i have 1 i wont give u okay why??? On 8/22/09, pankaj sharma aka Cipher reliablepan...@gmail.com wrote: sorry mate, i dont have. On 8/22/09, saurabh sinha saurso...@gmail.com wrote: Hello I am android beginner looking for restaurant finder ,driving direction in mapview if u have the source code plz mail me -- Pankaj Sharma Project Engineer Mobile-09911221752 -- Atte [[Jose Luis Ayerdis Espinoza]] http://blognecronet.blogspot.com --~--~-~--~~~---~--~~ 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] confusion about bluetooth
The current Android release offers: Stereo Bluetooth support (A2DP and AVCRP profiles) (http://developer.android.com/sdk/android-1.5-highlights.html) However, it has also been stated in the developers forum: There is no Bluetooth API in the SDK at this time. http://groups.google.com/group/android-developers/browse_thread/thread/b65f1a04ec7228b0/4aedd6927fb34a86#4aedd6927fb34a86 So how are the Bluetooth A2DP or AVCRP profiles used if there are no Bluetooth API's? thanks, JIm --~--~-~--~~~---~--~~ 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: confusion about bluetooth
Ah. Thank you. On Aug 24, 12:58 pm, Mark Murphy mmur...@commonsware.com wrote: The current Android release offers: Stereo Bluetooth support (A2DP and AVCRP profiles) (http://developer.android.com/sdk/android-1.5-highlights.html) However, it has also been stated in the developers forum: There is no Bluetooth API in the SDK at this time. http://groups.google.com/group/android-developers/browse_thread/threa... So how are the Bluetooth A2DP or AVCRP profiles used if there are no Bluetooth API's? There are no Bluetooth APIs available in the SDK for Java applications. Applications and features built into the firmware have access to bluez. -- Mark Murphy (a Commons Guy)http://commonsware.com Android App Developer Books:http://commonsware.com/books.html --~--~-~--~~~---~--~~ 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: confusion about bluetooth
The current Android release offers: Stereo Bluetooth support (A2DP and AVCRP profiles) (http://developer.android.com/sdk/android-1.5-highlights.html) However, it has also been stated in the developers forum: There is no Bluetooth API in the SDK at this time. http://groups.google.com/group/android-developers/browse_thread/thread/b65f1a04ec7228b0/4aedd6927fb34a86#4aedd6927fb34a86 So how are the Bluetooth A2DP or AVCRP profiles used if there are no Bluetooth API's? There are no Bluetooth APIs available in the SDK for Java applications. Applications and features built into the firmware have access to bluez. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ 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: installing the android sdk
The WST plugin should already be included in most Eclipse IDE packages. -- 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 22, 9:31 am, nmharleyrider nmharleyri...@gmail.com wrote: In the instructions for installing Eclipse 3.4 ganymede and the android sdk , it is stated in step 6 that you need the WST plugin mentioned earlier in this page. Yet I have searched for an hour including all the links in this section and cannot find any reference regarding how to install the WST plugin. Help please, and thanks in advance. nmharleyrider --~--~-~--~~~---~--~~ 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: MMS intent
This may help http://jtribe.blogspot.com/2008/12/sending-mms-with-android.html not sure what you mean On Aug 24, 7:17 am, stalee stalins...@gmail.com wrote: Hi, I want to send an MMS using intent, conditions are below intent should carry sender number, subject, MMS msg, attachment, and activiating the intent should not populate the MMS application's UI is it possible in android... ? Thanks Stalee --~--~-~--~~~---~--~~ 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: Problem with Ecplise android plugin install
Congrats for at least covering the likely SuSE specific issues and finally arriving at what might be a more generic problem with the Eclipse Plugin which ironically might be much easier to find the solution... If you're looking at what I think is your problem, the common solution is to download the plugin to the local machine, then install thereby bypassing whatever odd network connection quirk is widely reported. Tony - Original Message - From: yodaa yodaa...@gmail.com Sent: Sat, 8/22/2009 6:13am To: Android Beginners android-beginners@googlegroups.com Subject: [android-beginners] Problem with Ecplise android plugin install Hello, I'm running Eclipse Ganymede Version: 3.4.0 Build id: I20080617-2000, under Linux OpenSuse 11.1 (KDE). I've installed Eclipse with from OpenSuse Open source repository. To achieve Android SDK installation, I tried to follow the official tutorial: http://developer.android.com/sdk/1.5_r3/installing.html. 1 ) I've downloaded the android SDK : http://developer.android.com/sdk/download.html?v=android-sdk-linux_x86-1.5_r3.zip 2 ) I unzipped the Androis SDK in the directory: /home/username/workspace/android-sdk-linux_x86-1.5_r3 3 ) I've edited .bashrc : /home/username/.bashrc: Adding the PATH variable: test -s ~/.alias . ~/.alias || true export PATH=${PATH}:/home/username/workspace/android-sdk- linux_x86-1.5_r3/tools 4 ) After reboot, I try to use (under Eclipse) Help Software Updates: I got the error messsage Cannot launch the Update UI.This installation has not been configured properly for Software Updates., so after a bit of googling I follow edited the ecplise prefrences (under Window Preferences General Capabilities) and check the classic update box. New entry (also called Software Updates) appeared in my Help menu, giving access to sub-menus : - Find and install - Manage Configuration 5 ) I choosed Find and install Search for new features to install New remote site Name: Android SDK Plugin URL: https://dl-ssl.google.com/android/eclipse/ 6 ) After validation, The update showed features to install list : Android SDK Plugin -- Developer tools -- Android development Tools 0.9.1.v200905011822-1621 -- Android DDMS 0.9.1.v200905011822-1621 When I selected all features I got an error message : Current configuration contains errors that are not corrected by the requested operation and more errors would be introduced. See details for more information. - Current configuration problems - Resulting configuration does not contain the platform. - Configuration problems after the operation - Resulting configuration does not contain the platform. Android Development Tools (0.9.1.v200905011822-1621) requires plug- in org.eclipse.gef. I also tried the http link instead of https but the problem doesn't seem to be related to network connexion or protocol. Any Ideas ? Thanks --~--~-~--~~~---~--~~ 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] Using two spinners with same data
I'm currently learning Android Java. I am trying to understand the use of spinners. I would like to create two spinners that use the same data - select one responses for each spinner. In the book I purchased, it shows example code how to create a spinner. How could I add another spinner using example below.? I can see a new arrayAdapter called aa is bound to the list data, I can also see the methods for aa that select the data or leave it blank. I can see the textView label where data is stored from spinner, and I can see the spinner is called spin. If I create a new spinner called spin2, a new textView label called selection2, bind arrayAdapter aa2 to array items, the program does not work. I also tried putting a new textView and spinner into the main.xml file. The end result was not as expected. If anyone can point me in the right direction I would be most grateful. Many thanks. example code below: public class SpinnerDemo extends Activity implements AdapterView.OnItemSelectedListener { TextView selection; String[] items={lorem, ipsum, dolor, sit, amet,consectetuer, adipiscing, elit}; String[] items2 ={morbi, vel,ligula, vitae, arcu, aliquet, mollis}; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main); selection=(TextView)findViewById(R.id.selection); Spinner spin=(Spinner)findViewById(R.id.spinner); spin.setOnItemSelectedListener(this); ArrayAdapterString aa=new ArrayAdapterString(this, android.R.layout.simple_spinner_item,items); aa.setDropDownViewResource( android.R.layout.simple_spinner_dropdown_item); spin.setAdapter(aa); } public void onItemSelected(AdapterView? parent, View v, int position, long id) { selection.setText(items[position]); } public void onNothingSelected(AdapterView? parent) { selection.setText(); } --~--~-~--~~~---~--~~ 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] Cheapest way to acquire a development phone?
I need an actual Google phone with GPS to get some idea of what applications are out there. I already have a plan with a non-Google provider, so I only need a plan to try out the apps themselves. Any ideas on how to most efficiently achieve this? --~--~-~--~~~---~--~~ 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] Drawing w/ Finger, Button, External
Hello! Is it possible to draw dynamic shapes on the canvas with your finger, a control on a given phone, or an external device (anything that would allow free drawing). I've seen the classes for drawing vector shapes programatically, but this would be on-the-fly and user defined free drawing. Is this possible? If so, any classes you could reference would be appreciated! Thanks! --~--~-~--~~~---~--~~ 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 do I split up or separate large XML layout files
All the simple stuff always seems to slip by me! Thanks! --~--~-~--~~~---~--~~ 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: DTD Handler aren't supported
welll answering myelf First i have no idea why it gives this Warning Second i try it with XMLReader but did not got the result aperantly my Handler only overided the startElement and did not override the endElement startDocument endDocument Methods so it didn't parse anything (Dont know why)... so i just added and overrided and voila everything work magically thanks,. 2009/8/24 Jose Ayerdis joseayer...@gmail.com What does this mean i'm trying to parse a XML with this: SAXParserFactory factory = SAXParserFactory.newInstance(); factory.setValidating(false); // Create the builder and parse the file SAXParser saxParser=factory.newSAXParser(); MyParser handler=new MyParser(this); saxParser.parse(fileXML, handler); a got this meesage: w/ExpatReader DTD Handler aren't supported what does this mean. -- Atte [[Jose Luis Ayerdis Espinoza]] http://blognecronet.blogspot.com -- Atte [[Jose Luis Ayerdis Espinoza]] http://blognecronet.blogspot.com --~--~-~--~~~---~--~~ 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 start android emulator in a different port
hi Jose, I tired Run -Run Configuration(after entering project name) -target under 'Device Target Selection Mode', I selected it be Manual under 'Additional Emulator Command Line Option' ,I entered -port 5556 and now everything work fine Thanks for your reply,Jose On Aug 24, 8:51 pm, Jose Ayerdis joseayer...@gmail.com wrote: This works on my computer: ./emulator -port 4747 -avd MyPhone Can u tell if you get a error message or something, i supose on eclipse you must change it on preference 2009/8/24 guptha gjango...@gmail.com hi, I am beginner in Android ,how to start the emulator in a different port using eclipse Run Configuration Under 'Additional Emulator Command Line Options ' I tried with different options and failed emulator -port 5556 port 5556 emulator -5556 and so on ,but nothing worked out for me .I could appreciate if someone points me with the right command Thanks -- Atte [[Jose Luis Ayerdis Espinoza]]http://blognecronet.blogspot.com --~--~-~--~~~---~--~~ 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: ListView with addHeaderView Example?
Thanks, It Helps me a lotI tried to populate a listView by extending Activity, not ListActivity..The list also contains two icon,one Text,and one checkBox in each row...It was quite tough to implement this application, but finally I overcome it, and then the task was to detect which item or row is selected or clicked in the list view with a proper message..it works ok now..The sample is given below: import java.util.ArrayList; import android.app.Activity; import android.app.ListActivity; import android.content.Context; import android.database.Cursor; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Color; import android.os.Bundle; import android.util.Log; import android.util.SparseBooleanArray; import android.view.LayoutInflater; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import android.view.View.OnClickListener; import android.widget.AdapterView; import android.widget.BaseAdapter; import android.widget.Button; import android.widget.CheckBox; import android.widget.ImageView; import android.widget.ListView; import android.widget.TextView; import android.widget.Toast; import android.widget.AdapterView.OnItemClickListener; import android.widget.AdapterView.OnItemSelectedListener; public class IconListText extends Activity { /** Called when the activity is first created. */ ListView messageList; EfficientAdapter mAdapter; private TextView mPhone; private static class EfficientAdapter extends BaseAdapter { private LayoutInflater mInflater; private Bitmap mIcon1; private Bitmap mIcon2; private Bitmap mIcon3; private Bitmap mIcon4; private Integer[] mPhotoPool = { R.drawable.stat_sys_wifi_signal_4, R.drawable.stat_sys_data_out_g, R.drawable.stat_sys_wifi_signal_4, R.drawable.stat_sys_data_out_g }; private String[] GENRES = { Item1 , Item2 , Item3 , Item4 }; private ArrayListInteger mPhotos = new ArrayListInteger (); private ArrayListString mText = new ArrayListString(); public EfficientAdapter(Context context) { // Cache the LayoutInflate to avoid asking for a new one each time. mInflater = LayoutInflater.from(context); // Icons bound to the rows. mIcon1=BitmapFactory.decodeResource(context.getResources (), R.drawable.stat_sys_data_out_g); mIcon2=BitmapFactory.decodeResource(context.getResources (), R.drawable.stat_sys_wifi_signal_4); mIcon3=BitmapFactory.decodeResource(context.getResources (), R.drawable.ic_network_signal_4); mIcon4=BitmapFactory.decodeResource(context.getResources (), R.drawable.stat_signal_4); } public int getCount() { return DATA.length; } public Object getItem(int position) { return position; } public long getItemId(int position) { return position; } public View getView(int position, View convertView, ViewGroup parent) { // A ViewHolder keeps references to children views to avoid unneccessary calls // to findViewById() on each row. ViewHolder holder; // When convertView is not null, we can reuse it directly, there is no need // to reinflate it. We only inflate a new View when the convertView supplied // by ListView is null. if (convertView == null) { convertView = mInflater.inflate(R.layout.main,null); // Creates a ViewHolder and store references to the two children views // we want to bind data to. holder = new ViewHolder(); holder.icon = (ImageView) convertView.findViewById (R.id.icon); holder.icon2 = (ImageView) convertView.findViewById (R.id.icon2); holder.text = (TextView) convertView.findViewById (R.id.text); holder.cb=(CheckBox)convertView.findViewById (R.id.cb); convertView.setTag(holder); } else { // Get the ViewHolder back to get fast access to the TextView // and the ImageView. holder =