[android-beginners] Re: Which phone to use for developer?
Do all phones have the Google Maps API add-on library? How to find out which phones have that? On Oct 16, 12:50 pm, RichardC richard.crit...@googlemail.com wrote: Best advice I can give is to make sure any phone you want to buy has: a) The Google Market Place Application (and also the other Google Apps) and b) From the font menu button you can get to: [Menu] Settings Applications Development USB Debugging Stay awake Allow mock locations Making sure the above are are all present will give you a phone suitable for development of Android applicatons. -- RichardC On Oct 15, 8:56 am, kengheng kengh...@mysql.cc wrote: Hi All, I would like to check which phone to use for the android development ? Thanks. -- Best regards, KengHeng. Chan Mobile : +6-016-717-0273 SQL Technology Sdn Bhdhttp://www.mysql.cc c...@mysql.cc --~--~-~--~~~---~--~~ 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 add external jar without Eclipse?
use android create project to create the build script and directory tree and put your jar files in the libs directory that is created. The ant script will package the classes in your jars with the application. One thing to watch out for is whether any of your jared classes have dependencies (such as J2SE classes that are not part of the Android runtime). On Oct 13, 3:01 am, kitfox m...@kitfox.com wrote: I'm trying to port an application in J2SE to Andriod (which I am just learning). My application is broken into several jars. I'm using the NetBeans Andriod API, not Eclipse, so I will probably have to do any jar wranging the hard way. I have access to all the sources I need and right now have build scripts for all of them that produce J2SE code. What would I need to do to make Android jars? How would I include them in my Android application when I build it? Do they become part of the apk, or do I need to ship them separately? --~--~-~--~~~---~--~~ 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: Problems with DX
It does seem like the dx command help may be out of date and it is impossible to decipher anyway. I had more luck with using dexdump directly (see the platforms/.../ tools directory). The ant dex target creates the classes.dex file (the functionality is hidden inside ant tasks so no luck just reading the ant script). On Oct 11, 3:56 am, ssfss nakhaie.1...@gmail.com wrote: Hi. I cant convert my .class files to .dx file. I dont undrestant dx –help it is very Confusing= ” dx –dex [--debug] [--verbose] [--positions=] [--no-locals] [--no-optimize] [--statistics] [--[no-]optimize-list=] [--no-strict] [--keep-classes] [--output=] [--dump-to=] [--dump-width=] [--dump-method=[*]] [--verbose-dump] [--no-files] [--core-library] [.class | .{zip,jar,apk} | ] … Convert a set of classfiles into a dex file, optionally embedded in a jar/zip. Output name must end with one of: .dex .jar .zip .apk. Positions options: none, important, lines. ” what’s “debug” “verbose”…what I Write Instead? I write your command line in cmd : dx –dex –output=classes.dex –locals=full –positions=lines jsdt.jar but it says : unknown option: –locals=full and again i tried to this cmd : dx –verbose-dump –dex –dump-to=myclass.dump MainApplet.class but says java.lang.RuntimeException: MainApplet.class: file not found While there Are you can explain about the detailes parameters that I know how to use dx? thanks -- fatemeh nakhaie --~--~-~--~~~---~--~~ 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: Is there a Java API Spec for Android
Thanks for filling in some gaps. Harmony is Java SE 5 JDK compliant and includes awt, swing, and all the rest that isn't part of the Android SDK. So the Android Java API looks like a new Java-lite branch unless there is ongoing syncing with Harmony updates. --~--~-~--~~~---~--~~ 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: HelloMapView coming up with empty tiles
Too bad you did not get a SecurityException instead of just empty map tiles. And too bad there is no xml schema to validate the manifest (AFIK). On Oct 5, 5:25 pm, Clayton gehbaue...@gmail.com wrote: I figured it out. I had the uses-permission as a child of application rather than a child of the manifest, it's working now. Thanks for your help! On Oct 5, 4:27 pm, Clayton gehbaue...@gmail.com wrote: I pulled the apikey by submitting the fingerprint I got from the debug.keystore for the androiddebugkey which was what it said to do on the dev site. I copied that api key off of the webpage and pasted it directlyMapViewandroid:apikey element in the main.xml (and I've repeated and verified this several times). Since I doubt the api key I'm retrieving from the site is invalid, is there any other reasons I could be getting empty tiles back that anyone is aware of? This is really frustrating as the app I'm writing needs maps so I can't really proceed until I get this working. If I download a new SDK will my androiddebugkey change? I suppose I could try this. On Oct 1, 12:50 pm,jotobjectsjotobje...@gmail.com wrote: What you are doing looks right. The empty tiles view with cross hatches is a symptom of an invalid apiKey, but possibly it is something else. On Sep 26, 8:47 am, Clayton gehbaue...@gmail.com wrote: I'm having trouble getting the HelloMapView to work. I have the Maps API key that I got from, submitting the androiddebugkey, in the main.xml but my HelloMapView comes up in the emulator with empty tiles, no map. The GoogleMaps app works on the emulator but my app doesn't work. What am I missing? Here's my manifest ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.example android:versionCode=1 android:versionName=1.0 application android:icon=@drawable/icon android:label=@string/ app_name uses-library android:name=com.google.android.maps / uses-permission android:name=android.permission.INTERNET / activity android:name=.HelloMapView android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application uses-sdk android:minSdkVersion=4 / /manifest My main.xml ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:id=@+id/mainlayout android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent com.google.android.maps.MapView android:id=@+id/mapview android:layout_width=fill_parent android:layout_height=fill_parent android:clickable=true android:apiKey=my-key-is-here / /RelativeLayout Here's my HelloMapView class: package com.example; import com.google.android.maps.MapActivity; import com.google.android.maps.MapView; import android.app.Activity; import android.os.Bundle; import android.widget.LinearLayout; import android.widget.RelativeLayout; import android.widget.ZoomControls; public class HelloMapView extends MapActivity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } @Override protected boolean isRouteDisplayed() { // TODO Auto-generated method stub return false; } } Thanks in advance, Clayton --~--~-~--~~~---~--~~ 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: HelloMapView coming up with empty tiles
What you are doing looks right. The empty tiles view with cross hatches is a symptom of an invalid apiKey, but possibly it is something else. On Sep 26, 8:47 am, Clayton gehbaue...@gmail.com wrote: I'm having trouble getting the HelloMapView to work. I have the Maps API key that I got from, submitting the androiddebugkey, in the main.xml but my HelloMapView comes up in the emulator with empty tiles, no map. The GoogleMaps app works on the emulator but my app doesn't work. What am I missing? Here's my manifest ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.example android:versionCode=1 android:versionName=1.0 application android:icon=@drawable/icon android:label=@string/ app_name uses-library android:name=com.google.android.maps / uses-permission android:name=android.permission.INTERNET / activity android:name=.HelloMapView android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application uses-sdk android:minSdkVersion=4 / /manifest My main.xml ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:id=@+id/mainlayout android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent com.google.android.maps.MapView android:id=@+id/mapview android:layout_width=fill_parent android:layout_height=fill_parent android:clickable=true android:apiKey=my-key-is-here / /RelativeLayout Here's my HelloMapView class: package com.example; import com.google.android.maps.MapActivity; import com.google.android.maps.MapView; import android.app.Activity; import android.os.Bundle; import android.widget.LinearLayout; import android.widget.RelativeLayout; import android.widget.ZoomControls; public class HelloMapView extends MapActivity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } @Override protected boolean isRouteDisplayed() { // TODO Auto-generated method stub return false; } } Thanks in advance, Clayton --~--~-~--~~~---~--~~ 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 launch android emulator
At the command line you can start the emulator like this - emulator -avd android1.5_maps -logcat v:* In this case, I first created an AVD named android1.5_maps. Read how to create an AVD in the Dev Guide. --~--~-~--~~~---~--~~ 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] coarse versus fine location provider
The MapView demo application sets the ACCESS_COARSE_LOCATION permission for wifi or cell location. Should a MapView activity also set the ACCESS_FINE_LOCATION permission to enable GPS location providers or is that permission also implied by setting ACCESS_COARSE_LOCATION? If both permissions are set and both settings are enabled will MapView prefer the fine (over the coarse) location provider? And will MapView sense a change in the availability of GPS? In typical devices are the two settings enabled or disabled by default (factory setting)? --~--~-~--~~~---~--~~ 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: auto-enable GPS
Thanks - more details inline below... One other question is how to detect if the device even has a GPS unit? On Sep 21, 11:12 pm, Lance Nanek lna...@gmail.com wrote: On Sep 21, 2:54 pm, jotobjects jotobje...@gmail.com wrote: Is there a way to detect if GPS is turned on? http://developer.android.com/reference/android/location/LocationManag...) LocationManager locMgr = (LocationManager)getSystemService (Context.LOCATION_SERVICE); boolean isGPSEnabled = locMgr.isProviderEnabled (LocationManager.GPS_PROVIDER); if (!isGPSEnabled) showDialog(DIALOG_ENABLE_GPS) and then ask the user if they want to turn it on? http://developer.android.com/guide/topics/ui/dialogs.html new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { Intent locationSettingsIntent = new Intent (Settings.ACTION_LOCATION_SOURCE_SETTINGS); startActivity(locationSettingsIntent); dialog.dismiss(); } and then send them to the settings application to turn it on if they want to? http://developer.android.com/reference/android/provider/Settings.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: Can we use static class that holds all the constants for the applications?
The static import feature in Java 5 might be useful. http://java.sun.com/javase/7/docs/technotes/guides/language/static-import.html This FAQ discusses various approaches you might consider for Anroid. http://developer.android.com/guide/appendix/faq/framework.html#3 On Sep 19, 3:31 pm, DroidAddict varun.vontimi...@gmail.com wrote: Hello Everyone, I just started using android yesterday and started with a small application. I was planning to have static class that holds all the constants of the application so that it can be used across all the classes of the application. I was getting an error asking me to remove the static modifier for the class. Is there something really important about the way static classes has to be used in android? Hope someone replies to my query. Thanks in advance guys. Regards Varun --~--~-~--~~~---~--~~ 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: auto-enable GPS
Is there a way to detect if GPS is turned on? and then ask the user if they want to turn it on? and then send them to the settings application to turn it on if they want to? --~--~-~--~~~---~--~~ 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] SecurityException for Browser activity in TabWidget
Here is a SecurityException I don't understand. The following code is in onCreate() for a TabActivity object. There is a TabWidget in the layout file. The code works for tabs with Views and ViewGroups, but when I put an Intent as the content in a tab I get this error. The same intent works find if I call startActivity() directly. I do have android.permission.INTERNET set in AndroidManifest. Are there limitations on the kind of activity intent that can be used in a tab? Code from onCreate(): TabHost tabHost = getTabHost(); Uri uri = Uri.parse(http://www.jotobjects.net/jotdemo/ JotDemoMenu.html); Intent briogeoContentIntent = new Intent(Intent.ACTION_VIEW, uri); tabHost.addTab(tabHost.newTabSpec(tab_briogeocontent) .setIndicator(BrioGeo Content) .setContent(briogeoContentIntent)); Exception when clicking on that tab: D/AndroidRuntime( 1095): Shutting down VM W/dalvikvm( 1095): threadid=3: thread exiting with uncaught exception (group=0x4000fe70) E/AndroidRuntime( 1095): Uncaught handler: thread main exiting due to uncaught exception E/AndroidRuntime( 1095): java.lang.SecurityException: Requesting code from com.android.browser (with uid 10020) to be run in process com.briogeo.ex2 (with uid 10031) E/AndroidRuntime( 1095):at android.app.ActivityThread.getPackageInfo(ActivityThread.java:1932) E/AndroidRuntime( 1095):at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2167) E/AndroidRuntime( 1095):at android.app.ActivityThread.startActivityNow(ActivityThread.java:2112) E/AndroidRuntime( 1095):at android.app.LocalActivityManager.moveToState(LocalActivityManager.java: 127) E/AndroidRuntime( 1095):at android.app.LocalActivityManager.startActivity (LocalActivityManager.java:339) E/AndroidRuntime( 1095):at android.widget.TabHost $IntentContentStrategy.getContentView(TabHost.java:600) E/AndroidRuntime( 1095):at android.widget.TabHost.setCurrentTab (TabHost.java:310) E/AndroidRuntime( 1095):at android.widget.TabHost $2.onTabSelectionChanged(TabHost.java:126) E/AndroidRuntime( 1095):at android.widget.TabWidget $TabClickListener.onClick(TabWidget.java:268) ... --~--~-~--~~~---~--~~ 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: SecurityException for Browser activity in TabWidget
Not sure how the system knows who wrote an activity :-) In another experiment I tried invoking another activity (that I did write) that is in a different application (that I did write) and got the same exception. I also tried setting android:multiprocess=true on the second activity and still got the same exception. So it appears that in a tab widget perhaps(?) you cannot invoke activities in another application even if you can invoke those activities directly with startActivity(). That is an observation - not sure if that is documented. What is the principle (about tasks or permissions) about why that is the case? --~--~-~--~~~---~--~~ 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: Unable to stop Emulator from commandline in linux
ctrl z will probably (depending on the shell) suspend (not kill) the job. That might not do what your want. On Sep 18, 9:19 am, Earl Wilson earl...@gmail.com wrote: Smruti, Do you configure your emulator on the first run? The instructions said to run tools/emulator -avd your_avd. I noticed in your post you did not have -avd your_avd. I run mandriva and with the terminal in the foreground I can type ctrl c and my emulator stops. If ctrl c does not kill it you can try the ctrl z. If a kill -9 command does not kill a process a kill -15 usually will. Hope this helps Earl On Sep 15, 6:25 am, Smruti smruti...@gmail.com wrote: Hi, I am unable to stop the emulator from command prompt.Can anyone please help me in this. I am using Linux Fedora 9.0 version and Adroid SDK Version is 1.1, Ant 1.6.5. To start the emulator I have used following steps. Open a terminal and go to android-sdk-linux_x86-1.1_r1/tools and type emulator .after typing emulator ,press ENTER key. It will launch a Android Emulator in port 5554. Now my concern is to stop the Emulator which is running.I have tried with opening another terminal and run kill -9 (process Id for emulator running) which is not working. On click of cross symbol to close emulator is hanging the system and Keyboard is not responding at all.Please help me to avoid forceful shutdown of the system everytime just to stop an emulator. Thanks, Smruti --~--~-~--~~~---~--~~ 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: SecurityException for Browser activity in TabWidget
Thanks, this is helpful. What I thought I was trying to accomplish was to get some other activity to display in the frame under the tabs. Is there a way to do that? I'm kind of hacking around to see what works and may be missing some fundamental point if that is not possible. If that is not possible, would it be possible to at least call startActivity() when the tab is pressed? Apparently tab widget is doing something besides startActivity() with that Intent. What can you do with an Intent other than call startActivity()? TIA --~--~-~--~~~---~--~~ 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: SecurityException for Browser activity in TabWidget
On Sep 18, 11:11 am, Mark Murphy mmur...@commonsware.com wrote: jotobjects wrote: If that is not possible, would it be possible to at least call startActivity() when the tab is pressed? Sure, but that will start the activity, which will then use the screen. It will not put that activity in a tab, and it will result in a rather strange user experience. If the tab navigates to another activity with a new window that might not be too strange. In any case, starting another Activity is not one of the built-in content choices for TabActivity tabs (either views or intents). It would take some kind of trick to call startActivity() when the tab is clicked. Something like starting an internal Activity that just starts the external Activity? I'm not suggesting that's a good idea :-) --~--~-~--~~~---~--~~ 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: SecurityException for Browser activity in TabWidget
On Sep 18, 12:03 pm, Mark Murphy mmur...@commonsware.com wrote: Try setOnTabChangedListener() on TabHost. That works. It is not a great UI design as you indicated. Further, the tab widget requires some valid content which it displays while the other Activity is starting and again after the user goes back from the other Activity. You can use a blank TextView for instance. Anyway it was just experimental. Thanks for the tips. --~--~-~--~~~---~--~~ 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: Running the android emulator, easiest way?
Hi Izzy - Android SDK works fine at the command line - just install Ant and Java (see http://developer.android.com/sdk/1.5_r3/requirements.html). Sounds like you don't have Java installed correctly. Make sure Java is installed by typing this at the command line - java -version Then create an AVD on the command like this - create avd -t 3 -n my_avd And run the emulator on the command like this - emulator -logcat *:v -avd my_avd --~--~-~--~~~---~--~~ 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: findViewById bug or documentation problem
Thanks Xavier - Correcting the documentation mostly resolves it. But I was wondering also about the other question - Why does the build generate the R.id.foobarid value when the android prefix is missing? What is the purpose of the generated value if it can't be used with findViewById()? One would find the problem earlier with a compile error if the value was not generated. id=@+id/foobarid -- THIS IS WRONG this will NOT work with findViewById method. You have to do it this way android:id=@+id/foobarid -- CORRECT --~--~-~--~~~---~--~~ 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] findViewById bug or documentation problem
Here is a tip on how to use generated layout id's. If your layout has id=@+id/foobarid -- THIS IS WRONG this will NOT work with findViewById method. You have to do it this way android:id=@+id/foogarid -- CORRECT In both cases, the build will generate R.id.foobarid, but findViewById (R.id.foobarid) will not find it unless you use the android: namespace in the layout file. That seems to be inconsistent and should be considered an Android bug because it is really, really hard to discover what is wrong. In addition the SDK documentation actually shows the WRONG way to do it. So at the very least that is a bug in the documentation. ERROR IN DOCUMENTATION - see http://developer.android.com/guide/topics/resources/available-resources.html --- quote -- When declaring an ID value for an XML tag, use this syntax. Example: TextView id=@+id/nameTextbox/, and refer to it this way in Java: findViewById(R.id.nameTextbox) -- end quote -- The above example is WRONG. It should be this way -- TextView android:id=@+id/nameTextbox/ --~--~-~--~~~---~--~~ 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] Ant build for android-1.5/samples
What is the cookbook way to build the sample apps in the android-1.5/ samples SDK directory. There are not any ant build.xml scripts. I tried android create project using the samples directory but that gave me an error saying the directory already existed and then proceeded to overwrite things strings.xml. So that was clearly NOT the right thing to do. I thought it would be nice to build the samples and play with them. How do I do that? I'm looking for the non-Eclipse way using ant - but I don't see how to do it with Eclipse either. Thanks - Paul Copeland --~--~-~--~~~---~--~~ 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: Ant build for android-1.5/samples
I figured this out on my own. android update project does the right thing if and only if AndroidManifest.xml exists in the target directory (it does for the samples). Example (first start emulator for install) cd platfrom/android-1.5/ApiDemos android update project -t 2 -p . ant debug adb install bin/ApiDemos-debug.apk A readme file in the samples directory with the steps for building the samples would be helpful for newbies. It seems I encountered a bug in android create project as it destructively over wrote files like strings.xml in an existing project - maybe the tool should not allow you to shoot yourself in the foot so easily :-). On Sep 1, 12:46 pm, jotobjects jotobje...@gmail.com wrote: What is the cookbook way to build the sample apps in the android-1.5/ samples SDK directory. There are not any ant build.xml scripts. I tried android create project using the samples directory but that gave me an error saying the directory already existed and then proceeded to overwrite things strings.xml. So that was clearly NOT the right thing to do. I thought it would be nice to build the samples and play with them. How do I do that? I'm looking for the non-Eclipse way using ant - but I don't see how to do it with Eclipse either. Thanks - Paul Copeland --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---