[android-beginners] Re: setBuiltInZoomControls - android tutorial
Hi, I am also doing the same thing and for me its working fine. mapView = (MapView) findViewById(R.id.maps); mapView.setBuiltInZoomControls(true); What error are you getting ? Check Logcat... Thanks On Nov 29, 2:43 am, powersil wrote: > hi, > new in android - and starting to play with the tutorial's. > i tried the helloMap - and the map is going up nicely - but when im > adding this: > > mapView.setBuiltInZoomControls(true); > where mapView is a findViewbyId(R.id.mapview); > > it doesn't work. -- i get an error STOPPED UNEXPECTEDLY... > > any suggestions? > > im coping the code 1by1 from the toturial , including the layout file > and manifest > (as i said - without the zoom cntrol - it works fine) -- 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: Permission denied: connect
Hi Mark, Try with http://dl-ssl.google.com/android/repository/repository.xml Thanks On Nov 29, 9:21 am, Mark wrote: > In using the Android SDK and AVD Manager, I'm not able to access the > repository.xml file and consequently don't see any packages. > > https://dl-ssl.google.com/android/repository/repository.xml > > I can access this URL via the web from the system via a browser, but > when I attempt from the Manager I get this error. > > Failed to fetch > URLhttps://dl-ssl.google.com/android/repository/repository.xml, > reason: Permission denied: connect > > I've turned down the Micosoft firewall and still get the same error. I > did look at the FAQs and ran a search on the error - but nothing came > back - I feel like I must be missing something obvious. There does not > seem to be any other way of updating packages except through this > "fast and easy" method. If you know what the problem is or have some > quick general direction on this I'd appreciate it. 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: Load Imageview from Internet in Background
Hi, Use AsyncTask for your scenario. For downloading image use doInBackground() in AsyncTask. Check, http://developer.android.com/reference/android/os/AsyncTask.html Thanks On Nov 30, 4:24 am, Nb wrote: > This is a basic question, but frustrating me. > > I have an imageview that I want to populate with a gif loaded from the > internet. > > However, I don't want the UI thread to be tied up waiting for the gif > to load. > > If I create a separate thread and call the setBitMapImage method on > the View, I get an exception that I am not calling from the owning > thread (which, presumably, is the UI thread). > > So... what do I do? -- 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: Clear difference between local and remote service?
Local service runs in the same process (actually even in the same thread), remote process runs in the separate process. Try playing with services look @ DDMS in processes and threads to see what's really going on. On Nov 26, 4:31 pm, Chris wrote: > Can anyone explain the difference between a local and remote service? > My understanding is that they both run in a new process, but a local > service dies when the invoking activity is destroyed - surely this is > simply a more complicated version of Thread? -- 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] Load Imageview from Internet in Background
This is a basic question, but frustrating me. I have an imageview that I want to populate with a gif loaded from the internet. However, I don't want the UI thread to be tied up waiting for the gif to load. If I create a separate thread and call the setBitMapImage method on the View, I get an exception that I am not calling from the owning thread (which, presumably, is the UI thread). So... what do I do? -- 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: on click listener application has stopped unexpectedly
When you see the stopped unexpectedly message then you can check the Logcat view in Eclipse or use the "adb logcat" command line tool from the SDK to see the error. Although in this case it looks like you didn't implement the onCreateDialog method. In order to use the showDialog method you also need to implement onCreateDialog such that it creates and returns the requested dialog. See step 4 in the URL you linked. On Nov 27, 11:26 am, broomie wrote: > Folks > > Android sdk 1.6 / eclipse > > I am sure I have been a clot but just using teh android examples > > http://developer.android.com/guide/tutorials/views/hello-datepicker.html > > I've checked again and again but cannot find the issue. > > Error msg is "the application HelloDatePicker (process > helloDatePicker.localhost) has stopped unexpectedly" this happend when > I click on the "change teh date " button. > > Here's my code.. > > package helloDatePicker.localhost; > > import java.util.Calendar; > > import android.app.Activity; > import android.app.DatePickerDialog; > import android.os.Bundle; > import android.view.View; > import android.widget.Button; > import android.widget.DatePicker; > import android.widget.TextView; > > public class HelloDatePicker extends Activity { > /** Called when the activity is first created. */ > // @Override > // public void onCreate(Bundle savedInstanceState) { > // super.onCreate(savedInstanceState); > // setContentView(R.layout.main); > > private TextView mDateDisplay; > private Button mPickDate; > private int mYear; > private int mMonth; > private int mDay; > > static final int DATE_DIALOG_ID = 0; > > @Override > protected void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState); > setContentView(R.layout.main); > > // capture our View elements > mDateDisplay = (TextView) findViewById(R.id.dateDisplay); > mPickDate = (Button) findViewById(R.id.pickDate); > > // add a click listener to the button > mPickDate.setOnClickListener(new View.OnClickListener() { > public void onClick(View v) { > showDialog(DATE_DIALOG_ID); > } > }); > > // get the current date > final Calendar c = Calendar.getInstance(); > mYear = c.get(Calendar.YEAR); > mMonth = c.get(Calendar.MONTH); > mDay = c.get(Calendar.DAY_OF_MONTH); > > // display the current date > updateDisplay();} > > // updates the date we display in the TextView > private void updateDisplay() { > mDateDisplay.setText( > new StringBuilder() > // Month is 0 based so add 1 > .append(mMonth + 1).append("-") > .append(mDay).append("-") > .append(mYear).append(" "));} > > // the callback received when the user "sets" the date in the dialog > private DatePickerDialog.OnDateSetListener mDateSetListener = > new DatePickerDialog.OnDateSetListener() { > > public void onDateSet(DatePicker view, int year, > int monthOfYear, int dayOfMonth) { > mYear = year; > mMonth = monthOfYear; > mDay = dayOfMonth; > updateDisplay(); > } > }; > > } > > XML: > > > http://schemas.android.com/apk/res/ > android" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:orientation="vertical"> > > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text=""/> > > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text="Change the date"/> > > > > Probably something daft - pls help! > > Broomie -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: How to run Android Market in simulator
Officially there's no way to use android market from emulator, however, there are solutions. Try googling it, as I can't reference such things in Android groups ;) On Nov 27, 5:05 pm, david2 wrote: > As an Android developer, it seems essential to be able to access the > market. Its important to see how other listing appear, to search for > competitors, etc. > Many developers do not have an actual phone with its ensuing 2 year > plan commitment because they also develop for other phone platforms. > > It is therefore essential to be able to access the android market > without an android phone. The website surprisingly doesn't let you > access from a browser. > > Is there a way to run the market on the simulator? > > 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@googlegroups.com
google is your friend. it seems that for whatever reason, there is no "instant" unlock. honestly i have no idea about the actual process under the covers but all of the services ask you to wait between 1-24 hours for the code, depending on the phone. yes, as far as i know this the only way ... i've also heard the t-mo tech support will give you the unlock code if you've been a good customer, after 3 months. use your own judgement. i am sure there are at least some websites scamming people. On Nov 24, 3:15 am, Akra Bato wrote: > Hello. Tell me, please, how to unlock my motorola cliq phone from T- > Mobile USA. > Can I do my unlock distantly by internet? > Is it the only way to pay money to a shady company and get the unlock > code? -- 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 installing Android SDK - "no target available"
Have you tried installing some platforms in the Android SDK and AVD Manager? Here's another thread where I just described that process: http://groups.google.com/group/android-beginners/msg/ab392010286fe2c6 On Nov 26, 10:17 am, ak08820 wrote: > Well, to make an Android Virtual Device, one needs a Target also, > which is absent. > I have the same issue as the original poster. > > On Nov 16, 1:54 pm, rexowner wrote: > > > You need to make an emulator aka AVD aka Android Vitrual device > > > Go to Window/Android SDK and AVD Manager and click the "New" button to > > make a new AVD-Android Virtual Device. You can find more detailed > > instructions > > on searching. -- 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: getting my current location
If you use the Logcat view in Eclipse or the "adb logcat" command from the SDK on the command line you can see why your app is crashing. In this case it is probably that getLastKnownLocation is returning null, which it can as per the documentation: http://developer.android.com/intl/zh-CN/reference/android/location/LocationManager.html#getLastKnownLocation%28java.lang.String%29 You can't call methods like getLatitude on null. Look at the requestLocationUpdates methods for a way to get locations that actually starts up the location provider. I remember in earlier SDKs you could add mock locations by putting a file somewhere on the phone. I don't think that is supported any more. See the note above the "Providing Mock Location Data" heading here: http://developer.android.com/intl/zh-CN/guide/topics/location/index.html On Nov 28, 12:03 pm, redants1972 wrote: > Thanks for the advice. I am still having trouble however. > > When I add the debug line as advised, the app falls over and as far as > I can tell, 'location' is coming out as null. > > If I comment out the log.i code then it works ok. So it seems to me > that there is something wrong with the way I am trying to get my > coordinates. > I'm not sure what I should be expecting when I load the KML file, as > nothing appears in the panel. It's not clear to me how the loading > of the KML file or manual coordinates actually link to the line - > > Location location = locationManager.getLastKnownLocation("gps"); > > I thought the "gps" part referred to the folder location under "C: > \Program Files\android-sdk-windows-1.6_r1\tools\data\misc\location", > but I could have got that wrong. > > Any further advice would be greatly appreciated. I think one of the > issues here is my inexperience in using the IDE and the way in which > run time errors can be viewed and trapped. > > Cheers, > > On Nov 27, 4:55 pm, Neilz wrote: > > > Hi. As you are using Eclipse, you can use the Android plug in, and the > > build in Emulator Control, to load up your KML file and manually send > > location updates to the emulator. You find it at Window->Show View- > > > >Other->Android->Emulator Control. That should get you going. > > > To debug: > > > import android.util.Log; > > > Log.i("MyCLassName", "Lat: " + location.getLatitude() + " Long: " + > > location.getLongitude()); > > > Hope this helps. > > > On Nov 24, 9:38 pm, redants1972 wrote: > > > > I am trying to produce a mock location provider by using an example > > > kml file grabbed from somewhere (where I cannot remember now). Anyway > > > I think I also need a properties file but I'm not sure where this goes > > > and what it is called. > > > > The code I am using is - > > > > locationManager = (LocationManager)getSystemService > > > (Context.LOCATION_SERVICE); > > > Location location = locationManager.getLastKnownLocation("gps"); > > > > double lat = location.getLatitude(); > > > double lng = location.getLongitude(); > > > > It seems that I am not getting anything back from the kml file, but as > > > a beginner to Android and Java I am struggling to debug the problem. I > > > am using eclipse Ganymede. > > > > What I need really is some pointers on the following: > > > > 1. How do I debug so that I can see the values of Location.getLatitude > > > () and location.getLongitude(); ? > > > 2. I am referencing "gps" as my provider and have a kml file located > > > at C:\Program Files\android-sdk-windows-1.6_r1\tools\data\misc\location > > > \gps . Is this correct? > > > 3. How do I create the properties file? > > > 4. Any other advice would be greatly appreciated. > > > > I have scoured the net for answers but nothing seems to fit what I am > > > after. I have also tried to go to > > > URLhttp://code.google.com/android/toolbox/apis/lbs.html > > > but it redirects me tohttp://developer.android.com/guide/index.html > > > > 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] Re: Long boot for emulator.. avoid restart?
Just leaving it running and starting apps from Eclipse seems to work fine for me. Provided I don't have my phone plugged in anyway, which is the default target on my machine. On Nov 28, 5:28 pm, Donovan Walker wrote: > Hello all! New to this group, and to Android. > > It takes a while to restart the emulator (using eclipse). I test > frequently. > > Is there a way to re-deploy an application to a running emulator? -- 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: New Android Project in Eclipse - Build Target Section Not Selectable
Eclipse 3.5.1 and Ubuntu 9.10 are working for me. Maybe one thing to check is to make sure that you have some build targets installed. After installing the SDK and setting it up in Eclipse go to the Window menu, then choose Android SDK and AVD Manager, then choose Available Packages. Check to see if there are any SDK platform packages you can install there like "SDK Platform Android 2.0, API 5, revision 1". That will add the build target for Android 2.0, for example. On Nov 29, 9:51 am, ak08820 wrote: > I have the same issue, Vista home 32bit, Eclipse Ganemede. > It is sad that the Android dev process fails so early in the startup > for a newbie and no help from Android keepers. > > On Nov 6, 7:13 pm, Luis Vivero wrote: > > > I'm experiencing the same issue. I'm working on Eclipse 3.5.1 > > (Galileo) and Ubuntu 9.10 (Karmic Koala) > > > Any help would be appreciated since I could not create a new Android > > 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] Re: Noob Question
That's what Android looks like while it is starting up. You'll see that when the emulator starts no matter what program you run. The emulator can take a long time to start up. I've also occasionally seen it get stuck while starting up. In those cases I've just closed it and tried again and it worked. On Nov 28, 7:18 pm, Mike Clark wrote: > I am following the directions to create the Hello, Android application > shown in the tutorial (http://developer.android.com/guide/tutorials/ > hello-world.html), but instead of the expected Hello, Android text > appearing, all I see are, first of all, the letters A N D R O I D > onscreen for a few seconds, followed by a logo-like ANDROID word next > to an iimage (of a stylized android). Anyone know what I am doing > wrong? Everything I've done seems exactly according to directions. Of > course, I probably screwed up somewhere, but I'll be darned if I can > see where. -- 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
Re: [android-beginners] Re: This class was probably produced by a broken compiler.
I've fixed by rebuilding the project, but the error is still there on the other project. Greetings from Romania CiprianU wrote: > Hi Guys, > > Have you fixed this issue? I'm having the exact same thing, I have > seen on android dev groups other posts with this kind of error but > their solution didn't worked for me, so I'm still searching. Please > help me out with this. > > Best Regards, > Ciprian. > > -- 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 I update my Motoblur firmware 1.5 to the 2.0?
I want to know, i want to be updated. -- 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] Welcome
Hi, I am a new member in this group, Hi to Every body -- 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
Re: [android-beginners]
For me it was a combination of a few things. 1) First class IDE. Android allows development and debugging in Eclipse. That is hands down better than any other mobile development environment I have seen, including iPhone. 2) Growing Market. Unlike most of the other mobile platforms (iPhone and Palm being the biggest ones in my mind) Android does not run on a proprietary device. I was excited about Android when the G1 was the only option in town, but I didn't really start putting a lot of time and energy into it until I saw that more companies were getting ready to adopt it. For the last three months I've been telling everyone to pay attention to how many Android devices were going to be out by Christmas. 3) Open Source. I love working with open source technologies, largely because if I ever need to figure something out that is not well documented (or not documented at all) I can open up the source code and see exactly what is happening. 4) Fun. I get excited working with new technology and seeing more capabilities on a phone screen than my desktop PC had when I was a kid. Just amazing technology that is a lot of fun to work with. Sheridan http://www.learn-android.com On Fri, Nov 27, 2009 at 4:33 AM, saurabh sinha wrote: > someone tell why you choose android platform? > > > -- > 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 -- 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] Permission denied: connect
In using the Android SDK and AVD Manager, I'm not able to access the repository.xml file and consequently don't see any packages. https://dl-ssl.google.com/android/repository/repository.xml I can access this URL via the web from the system via a browser, but when I attempt from the Manager I get this error. Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml, reason: Permission denied: connect I've turned down the Micosoft firewall and still get the same error. I did look at the FAQs and ran a search on the error - but nothing came back - I feel like I must be missing something obvious. There does not seem to be any other way of updating packages except through this "fast and easy" method. If you know what the problem is or have some quick general direction on this I'd appreciate it. 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] setBuiltInZoomControls - android tutorial
hi, new in android - and starting to play with the tutorial's. i tried the helloMap - and the map is going up nicely - but when im adding this: mapView.setBuiltInZoomControls(true); where mapView is a findViewbyId(R.id.mapview); it doesn't work. -- i get an error STOPPED UNEXPECTEDLY... any suggestions? im coping the code 1by1 from the toturial , including the layout file and manifest (as i said - without the zoom cntrol - it works fine) -- 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] Noob Question
I am following the directions to create the Hello, Android application shown in the tutorial (http://developer.android.com/guide/tutorials/ hello-world.html), but instead of the expected Hello, Android text appearing, all I see are, first of all, the letters A N D R O I D onscreen for a few seconds, followed by a logo-like ANDROID word next to an iimage (of a stylized android). Anyone know what I am doing wrong? Everything I've done seems exactly according to directions. Of course, I probably screwed up somewhere, but I'll be darned if I can see where. -- 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] Trackball panning on Google Maps
Hi Group, Having just delved into the Android Maps stuff, and have run into something I can't figure out yet. I have set up a basic mapping application, and it works fine. EXCEPT--I cannot pan using the trackball. Panning works fine using the touch screen, and I have overridden the ontrackballevent to see if the events are being fired, and they are. (This is all on an G1 dev phone, flashed to current software, and a target of Google API v1.5 in Eclipse (im using the ADT). Is there some magic to getting the trackball to pan? code posted below: package com.nbt.android.cbibs; import android.os.Bundle; import com.google.android.maps.GeoPoint; import com.google.android.maps.MapActivity; import com.google.android.maps.MapController; import com.google.android.maps.MapView; import android.view.KeyEvent; import android.view.MotionEvent; public class NBTAndroid extends MapActivity { private MapView myMapView; private MapController mc; @Override protected boolean isRouteDisplayed() { return false; } @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); myMapView = new MapView(this, "009hGQjnGAb9hRp7uEGWKQNm5bGf1bUNYkiLK4w"); GeoPoint p = new GeoPoint((int) (40.689213 * 100), (int) (-74.044558 * 100)); // Get the controller, that is used for translation and zooming mc = myMapView.getController(); mc.animateTo(p); mc.setZoom(5); // Make myMapView the view of this app setContentView(myMapView); myMapView.setSatellite(true); myMapView.setEnabled(true); myMapView.setClickable(true); myMapView.setBuiltInZoomControls(true); } } -- 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: New Android Project in Eclipse - Build Target Section Not Selectable
I have the same issue, Vista home 32bit, Eclipse Ganemede. It is sad that the Android dev process fails so early in the startup for a newbie and no help from Android keepers. On Nov 6, 7:13 pm, Luis Vivero wrote: > I'm experiencing the same issue. I'm working on Eclipse 3.5.1 > (Galileo) and Ubuntu 9.10 (Karmic Koala) > > Any help would be appreciated since I could not create a new Android > 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] how do you post to this group
I'm sorry. I asked a question about buttons containing only text a few days ago and it has yet to show up in the group. How do you post a question? Joe -- 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: Possible in emulator? Querrying google map? Unlocking Anrdoid Example
That's right. I ran into the same issue. The way I resolved it was that I set up my project in eclipse to target Android platform 1.5 (Level 3). Then I set up the Android Virtual Device (avd) to use Google API Level 3. That provides an android profile platform of 1.5 with the Google API level that matches. I then changed my run configuration in eclipse to use the new avd and that solved it. On Nov 20, 9:18 am, Esmail wrote: > bacchus wrote: > > I'm trying to run the sameexample, but I was not able to figure out > > which AVD is the correct one. > > > Could you please tell which AVD should I use? > > I don't recall the exact level/target (I find this a bit confusing) > but you have to pick the one that includes theGoogleAPI (I guess > that makes sense since you are trying to accessGooglemaps). > > Hope that helps. -- 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: This class was probably produced by a broken compiler.
Hi Guys, Have you fixed this issue? I'm having the exact same thing, I have seen on android dev groups other posts with this kind of error but their solution didn't worked for me, so I'm still searching. Please help me out with this. Best Regards, Ciprian. -- 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] Trying to Call a webservice on host from ADB
Hello all! In the emulator I can make a Http request to the host 10.0.2.2 and my local webserver will catch it. Is there anyway to accomplish this same thing while debugging on an ADB (Motorala Droid)? Thanks, Josh -- 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] Long boot for emulator.. avoid restart?
Hello all! New to this group, and to Android. It takes a while to restart the emulator (using eclipse). I test frequently. Is there a way to re-deploy an application to a running emulator? -- 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 SDK and AVD Manager Failed to fetch URL:HTTPS SSL error
Adding the line: sdkman.force.http=true to androidtool.cfg fixed the problem for me. I noticed that some other buttons don't respond to being clicked in the Android SDK manager, this might be the source of the problem. Pressing the space bar after tabbing to the button works fine. I'm running Ubuntu 9.10 32-bit > 1. I added the last line to ~/.android/androidtool.cfg > > $ cat ~/.android/androidtool.cfg > ### Settings for Android Tool > #Thu Nov 19 10:52:14 PST 2009 > sdkman.show.update.only=false > sdkman.force.http=true > -- 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] No devices listed in "adb devices"
Hi, When I started the emulator with Eclipse or with command line it don't show in adb. Step (cmd): 1) C:\Android\android-sdk-windows\tools>emulator.exe -avd Android2.0 (waiting for about 2 minutes to 15 minutes) 2) C:\Android\android-sdk-windows\tools>adb devices List of devices attached Step (eclipse): [2009-11-28 15:11:45 - Activite]-- [2009-11-28 15:11:45 - Activite]Android Launch! [2009-11-28 15:11:45 - Activite]adb is running normally. [2009-11-28 15:11:45 - Activite]Performing com.formation.activite.Main activity launch [2009-11-28 15:11:45 - Activite]Automatic Target Mode: launching new emulator with compatible AVD 'Android2.0' [2009-11-28 15:11:45 - Activite]Launching a new emulator with Virtual Device 'Android2.0' The emulator is starting but the application is not. The Emulator is still running but adb can't see it. No application are starting on the emulator either. Config: Windows 7 x64 Pro (Xeon X3360, 4Gb ram). I tried to install everything (Eclipse and SDK Setup) as an administrator. I've even tryed to put "Emulator.exe" in compatibility mode (Windows XP Sp3). I don't know what do do... -- 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: getting my current location
Thanks for the advice. I am still having trouble however. When I add the debug line as advised, the app falls over and as far as I can tell, 'location' is coming out as null. If I comment out the log.i code then it works ok. So it seems to me that there is something wrong with the way I am trying to get my coordinates. I'm not sure what I should be expecting when I load the KML file, as nothing appears in the panel. It's not clear to me how the loading of the KML file or manual coordinates actually link to the line - Location location = locationManager.getLastKnownLocation("gps"); I thought the "gps" part referred to the folder location under "C: \Program Files\android-sdk-windows-1.6_r1\tools\data\misc\location", but I could have got that wrong. Any further advice would be greatly appreciated. I think one of the issues here is my inexperience in using the IDE and the way in which run time errors can be viewed and trapped. Cheers, On Nov 27, 4:55 pm, Neilz wrote: > Hi. As you are using Eclipse, you can use the Android plug in, and the > build in Emulator Control, to load up your KML file and manually send > location updates to the emulator. You find it at Window->Show View- > > >Other->Android->Emulator Control. That should get you going. > > To debug: > > import android.util.Log; > > Log.i("MyCLassName", "Lat: " + location.getLatitude() + " Long: " + > location.getLongitude()); > > Hope this helps. > > On Nov 24, 9:38 pm, redants1972 wrote: > > > > > I am trying to produce a mock location provider by using an example > > kml file grabbed from somewhere (where I cannot remember now). Anyway > > I think I also need a properties file but I'm not sure where this goes > > and what it is called. > > > The code I am using is - > > > locationManager = (LocationManager)getSystemService > > (Context.LOCATION_SERVICE); > > Location location = locationManager.getLastKnownLocation("gps"); > > > double lat = location.getLatitude(); > > double lng = location.getLongitude(); > > > It seems that I am not getting anything back from the kml file, but as > > a beginner to Android and Java I am struggling to debug the problem. I > > am using eclipse Ganymede. > > > What I need really is some pointers on the following: > > > 1. How do I debug so that I can see the values of Location.getLatitude > > () and location.getLongitude(); ? > > 2. I am referencing "gps" as my provider and have a kml file located > > at C:\Program Files\android-sdk-windows-1.6_r1\tools\data\misc\location > > \gps . Is this correct? > > 3. How do I create the properties file? > > 4. Any other advice would be greatly appreciated. > > > I have scoured the net for answers but nothing seems to fit what I am > > after. I have also tried to go to > > URLhttp://code.google.com/android/toolbox/apis/lbs.html > > but it redirects me tohttp://developer.android.com/guide/index.html > > > 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] TimePicker newbe Q...what am I missing
Good day, ...first post. I am learning android coding after not programming for a while(I once...long ago...coded in c+ making DOS graphical apps, I script for MS Server support, but I don't count that) and I have a question about my IDE setup: I work on a Vista32 laptop with: Current Android SDK (r3) Eclipse Java EE IDE for Web Developers, Build id: 20090920-1017 (3.5 sr1) JDK1.6.0_17 I tried the TimeSetter lesson and could not compile until I changed "public void onTimeSet()" call from: // the callback received when the user "sets" the time in the dialog private TimePickerDialog.OnTimeSetListener mTimeSetListener = new TimePickerDialog.OnTimeSetListener() { public void onTimeSet(TimePicker view, int hourOfDay, int minute) { mHour = hourOfDay; mMinute = minute; updateDisplay(); } }; to: // the callback received when the user "sets" the time in the dialog private TimePickerDialog.OnTimeSetListener mTimeSetListener = new TimePickerDialog.OnTimeSetListener() { public void onTimeSet(android.widget.TimePicker view, int hourOfDay, int minute) { mHour = hourOfDay; mMinute = minute; updateDisplay(); } }; I got this error message: "The type new TimePickerDialog.OnTimeSetListener(){} must implement the inherited abstract method TimePickerDialog.OnTimeSetListener.onTimeSet(TimePicker, int, int)" Once I specified "android.widgit.Time.Picker()", the function was resolved and no more errors. Do I have something missing from my path or in my Eclipse setup, or is this an error in the lesson or am I just plain missing something? This is my the last section of my PATH: ...;C:\Program Files\Java\jdk1.6.0_17\bin;C:\Program Files\android-sdk- windows\tools Thanks, Michael -- 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: Trouble installing SDK
On my system, Norton Internet Security was causing the problem with the updater not being able to rename a file. Temporarily disabling Norton allowed the update to succeed. On Nov 17, 10:20 pm, rnoel1962 wrote: > - I have downloaded and unzipped android-sdk_r3-windows.zip onto my > system. > - I installed the ADT Plugin for Eclipse > - I ran the the Android SDK and AVD Manager. It fails to connect > using https so I checked the "Force https://... to be fetched using > http://..."; and that appeared to work. > - I chose "SDK Platform Android 2.0, API 5, revision 1" and "Google > APIs by Google Inc., Android API 5, revision 1" > - After the download I get the following error message: > > "Downloading SDK Platform Android 2.0, API 5, revision 1 > Installing SDK Platform Android 2.0, API 5, revision 1Failedto rename > directory C:\Documents and Settings\rick\android-sdk- > windows\temp\PlatformPackage.new01 to C:\Documents and Settings\rick > \android-sdk-windows\platforms\android-2.0 > -= Warning ! =- > Afolderfailedto berenamedormoved. On Windows this typically > means that a program is using thatfolder(for example Windows > Explorer.) Please close all running programs that may be locking the > directory 'C:\Documents and Settings\rick\android-sdk-windows\temp > \PlatformPackage.new01' and try again. > Skipping 'Google APIs by Google Inc., Android API 5, revision 1'; it > depends on 'SDK Platform Android 2.0, API 5, revision 1' which was not > installed. > Downloading Google APIs by Google Inc., Android API 5, revision 1 > Installing Google APIs by Google Inc., Android API 5, revision 1 > Installed Google APIs by Google Inc., Android API 5, revision 1 > Updated ADB to support the USB devices declared in the SDK add-ons." > > Before starting the manager the temp directory is empty so I'm fairly > certain no other process is locking the directory. Any ideas what > might be preventing the installation from succeeding? > > -Rick -- 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] Newbie needs help Updating my ADP1
How do I update my phone to the current 2.0? My current program is running on the 1.6. Any help would do. I've done downloaded the current sdk and all the other proper programs needed. Just need help to run the program. roland -- 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 run Android Market in simulator
As an Android developer, it seems essential to be able to access the market. Its important to see how other listing appear, to search for competitors, etc. Many developers do not have an actual phone with its ensuing 2 year plan commitment because they also develop for other phone platforms. It is therefore essential to be able to access the android market without an android phone. The website surprisingly doesn't let you access from a browser. Is there a way to run the market on the simulator? 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] Can't dispatch DDM chunk 46454154 or 4d505251
Hi, I have seen the above problem covered in previous posts. However no one seems to have suggested a method of fixing this issue. I have found that my app will upload onto the emulator, however it always stops unexpectedly. I've seen in previous threads that it could be down to a file system problem. Does anyway know why this is happening? It seems to happen with any sample tutorials that I execute as well? Any help would be appreicated. Thanks, Carly -- 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 in running very first app
Hello anyone can help me in running my very first application. however Emulator is launched but nothing happened .. On the console following msgs came [2009-11-27 13:58:23 - MyFirstProject]-- [2009-11-27 13:58:23 - MyFirstProject]Android Launch! [2009-11-27 13:58:23 - MyFirstProject]adb is running normally. [2009-11-27 13:58:23 - MyFirstProject]Performing myFirstProject.com.example.Hie activity launch [2009-11-27 13:58:23 - MyFirstProject]Automatic Target Mode: launching new emulator with compatible AVD 'my_avd1' [2009-11-27 13:58:24 - MyFirstProject]Launching a new emulator with Virtual Device 'my_avd1' [2009-11-27 13:58:38 - MyFirstProject]New emulator found: emulator-5554 [2009-11-27 13:58:38 - MyFirstProject]Waiting for HOME ('android.process.acore') to be launched... [2009-11-27 14:00:00 - MyFirstProject]emulator-5554 disconnected! Cancelling 'myFirstProject.com.example.Hie activity launch'! -- 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: Custom inputType
Thanks for quick answer, And for useful way for setting the InputType in code, My problem is once the InputType is set, along with selecting the keyboard view, the text formatting is also controlled. Is it possible to hide the data formating using TYPE_MASK_CLASS or TYPE_MASK_FLAGS? I have tried several variations but to no avail. I plan to enter numeric data first, with an optional text suffix into one editBox, without having to pressing tye '?123' key on text keyboard to enter the inital numeric data. Any ideas? On Nov 23, 2:52 pm, Nithin wrote: > Hi Leigh, > > try this, > editText.setInputType(InputType.TYPE_CLASS_NUMBER); > this is for numbers. > > InputType contains lot of constants like TYPE_CLASS_DATETIME, > TYPE_CLASS_PHONE etc. You choose according to your requirement. > > Thanks > > On Nov 22, 7:41 pm, "Leigh" wrote: > > > > > I have editText which accepts numeric details with an optional text suffix, > > (ie. 90.895t). > > I am using addTextChangedListeners and pattern/match to ensure correct data > > entry. > > > Planning to call text soft keyboard in number/symbol view initally, with > > text view obtainable from this keyboard. > > > I have tried inputType variations, with the only suitable view being > > datetime, > > this however only allows enrty text entry in the datetime format. > > > As the pre-existing attributes are ignored if inputType has been defined, > > there is no way of tweaking inputType attributes? > > > Or is there a simpler way of calling up specific soft keyboards (numeric, > > symbol, text)?- Hide quoted text - > > - Show quoted text - -- 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 TextView Dynamically
can i change a TextView dynamically -- 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
Re: [android-beginners]
you know about android but don't know about google, thats strange! On Thu, Nov 26, 2009 at 5:07 PM, saurabh sinha wrote: > hello any body send their cv who are working on android I need a make a > good cv for android beginner > so I can apply in company > > -- > 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 > -- 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] customizing the emulator
HI folks, I'm just starting with Android. I'm wondering how I could modify/customize the Android emulator. By that I mean how to take the actual display and put it into another context (for example a TV frame). I would also need to add a few custom functions like "Create a Screenshot" etc. Can you give me basic advice on where to start looking? Somewhere in the SDK I guess? PS: Could I just "embed" the Android emulator without having to publish my source code (license issue)? Cheers, Stephan -- 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] on click listener application has stopped unexpectedly
Folks Android sdk 1.6 / eclipse I am sure I have been a clot but just using teh android examples http://developer.android.com/guide/tutorials/views/hello-datepicker.html I've checked again and again but cannot find the issue. Error msg is "the application HelloDatePicker (process helloDatePicker.localhost) has stopped unexpectedly" this happend when I click on the "change teh date " button. Here's my code.. package helloDatePicker.localhost; import java.util.Calendar; import android.app.Activity; import android.app.DatePickerDialog; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.DatePicker; import android.widget.TextView; public class HelloDatePicker extends Activity { /** Called when the activity is first created. */ // @Override // public void onCreate(Bundle savedInstanceState) { // super.onCreate(savedInstanceState); // setContentView(R.layout.main); private TextView mDateDisplay; private Button mPickDate; private int mYear; private int mMonth; private int mDay; static final int DATE_DIALOG_ID = 0; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); // capture our View elements mDateDisplay = (TextView) findViewById(R.id.dateDisplay); mPickDate = (Button) findViewById(R.id.pickDate); // add a click listener to the button mPickDate.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { showDialog(DATE_DIALOG_ID); } }); // get the current date final Calendar c = Calendar.getInstance(); mYear = c.get(Calendar.YEAR); mMonth = c.get(Calendar.MONTH); mDay = c.get(Calendar.DAY_OF_MONTH); // display the current date updateDisplay(); } // updates the date we display in the TextView private void updateDisplay() { mDateDisplay.setText( new StringBuilder() // Month is 0 based so add 1 .append(mMonth + 1).append("-") .append(mDay).append("-") .append(mYear).append(" ")); } // the callback received when the user "sets" the date in the dialog private DatePickerDialog.OnDateSetListener mDateSetListener = new DatePickerDialog.OnDateSetListener() { public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) { mYear = year; mMonth = monthOfYear; mDay = dayOfMonth; updateDisplay(); } }; } XML: http://schemas.android.com/apk/res/ android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical"> Probably something daft - pls help! Broomie -- 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] Recommended resources/books/websites/etc. for getting up to speed on all I need for Android development
Hi folks, Please excuse me if this information has already been covered somewhere. I didn't see this addressed anywhere in the FAQ. I'm interested in getting started with Android software development, and am looking for some recommendations as to resources (books, websites, etc.) on things I should know/that would help me in getting started with Android development (aside from the Android SDK documentation of course). I'm fairly fluent in several programming and scripting languages (C, a little C++, Perl, etc.) and understand the basic principles of object oriented programming. I am somewhat familiar with Java having taken an introductory level course many years ago. So the resources I'm looking at don't need to be of the "This is a FOR loop. This is what it does..." type basic level. Any suggestions greatly appreciated. Thanks! Donald Burr -- 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 invoke a direction in Google Maps App
Hello, I'm trying to learn the Android SDK but I have a problem, and no issue found on this group. In fact: I have an object "Store" with the properties "Latitude" and "Longitude". I want put a button which launch the google maps app and which prepare the direction, like that : Start : My position End : Lat, Long of the object Excepted how to invoke Google maps, I found no docs about this subject... Thanks all. NB : the french are often loosers in english. I am one of 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] please help me to do this task
hai all i am a new bie of this android... can any one please help me to get over this task my task is simple that 1) i hav the database of some questions and i retrieved and shown in emulator when i clicked that page it should read the data (means hears the pronounciation of the words which are present there on the emulator screen). 2) can any one provide the login screen code with out the xml file that means i dont want the UI frm the xml file i would like to go with the java code so can any one provided this would be appreciable and Thanks the login validation should be these words the username : google password : google -- 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] connecting to remote database
Hi, I am new in android as well as java programming. I need to develop an application which will be able to get the information from a webpage (php page) and use the information in the android app. I write a simple android app but it doesnt work. Can anyone help me with this? or give me some guidance? php part is just echo a string "This is my string"; android part: public class HelloAndroid extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { String a; a = callWebPage( "http://www.uploadhub.com/mobile9/gallery/gallery_android/";, "?str=helloWorld"); super.onCreate(savedInstanceState); TextView tv = new TextView(this); tv.setText(a); setContentView(tv); } public String callWebPage(String URLstring, String parameters) { try { URL url = new URL(URLstring + parameters); URLConnection conn = url.openConnection(); // Get the response BufferedReader rd = new BufferedReader(new InputStreamReader(conn .getInputStream())); while ((s = rd.readLine()) != null) { return s; } } catch (Exception e) { Log.e("SettingsDialog", "exception in callWebPage"); } return "error"; } } *it always return "error"; -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: SDK Installation: A folder failed to be renamed or moved
On my system, temporarily disabling Norton Internet Security fixed this problem. -- 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] Eclipse ADT problems
Hi Everyone, I'm new to android development, but have been programming in Java for a few years. I'm having some trouble installing the ADT in eclipse. I got the command line stuff to work with my PATH, and the ADT installed successfully in Eclipse, but when I get to the step where you go into Eclipse Preferences and choose the location of the SDK, I browse and find my SDK location, and when I hit apply, it doesn't show up in my list of Targets. I can't create an Android project because there is no target for the SDK. What should I do, Thanks, Eric -- 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] Andoid connect to datastore Google App Engine
Do I need an integration with the Android app with the app GAE, to be able to obtain information from data storage,until the moment you still can not have an understanding of how to do this without breaking the paradigm of architecture. Has anyone done this integration? -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: SDK Installation: A folder failed to be renamed or moved
On my system, Norton Internet Security caused this problem. What was even more frustrating is that Norton didn't give me a warning or a chance to approve the action. All I got was the same warning from the Android SDK updater. So try temporarily disabling your internet security or add some kind of exception for Android and see if that resolves the problem. -- 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 installing Android SDK - "no target available"
Well, to make an Android Virtual Device, one needs a Target also, which is absent. I have the same issue as the original poster. On Nov 16, 1:54 pm, rexowner wrote: > You need to make an emulator aka AVD aka Android Vitrual device > > Go to Window/Android SDK and AVD Manager and click the "New" button to > make a new AVD-Android Virtual Device. You can find more detailed > instructions > on searching. -- 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: ActivityManager: - exec '/system/bin/sh' failed: Bad address (14) -
On Nov 19, 12:52 pm, Marton Kodok wrote: [...] > [2009-11-19 19:45:20 - facebooktest2]ActivityManager: - exec > '/system/bin/sh' failed: Bad address (14) - > > and waiting waiting, but the app didn't show up > what's wrong? > > -- > Márton I had the same error message when I tried to run on a AVD created without specifying the SD mem. card size (in eclipse 3.5.*). A new AVD with a card size specified worked as expected. -A. -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Clear difference between local and remote service?
Can anyone explain the difference between a local and remote service? My understanding is that they both run in a new process, but a local service dies when the invoking activity is destroyed - surely this is simply a more complicated version of Thread? -- 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 Manifest Error, and SMS Sending Program.
Hey guys, I'm getting the following errors [2009-11-26 21:16:42 - SmsFlood]ActivityManager: Starting: Intent { cmp=com.hwrdprkns/.SmsFlood } [2009-11-26 21:16:42 - SmsFlood]ActivityManager: java.lang.SecurityException: Permission Denial: starting Intent { flg=0x1000 cmp=com.hwrdprkns/.SmsFlood } from null (pid=-1, uid=-1) requires com.hwrdprkns.ACCESS_CHECKIN_PROPERTIES with the following code http://schemas.android.com/apk/res/android"; package="com.hwrdprkns" android:versionCode="1" android:versionName="1.0"> and for my main program class package com.hwrdprkns; import android.app.Activity; import android.os.Bundle; import android.widget.*; import android.telephony.*; import android.view.*; import android.view.View.OnClickListener; public class SmsFlood extends Activity implements OnClickListener { TextView phone_number; TextView number_messages; TextView message; TextView sent_confirmed; Button Send; Button Clear; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); //get all my vars ready phone_number = (TextView)this.findViewById(R.id.phone_number); number_messages = (TextView)this.findViewById (R.id.number_messages); message = (TextView)this.findViewById(R.id.message); sent_confirmed = (TextView)this .findViewById (R.id.sent_confirmed); Send = (Button)this.findViewById(R.id.send); Clear = (Button)this.findViewById(R.id.clear); //Add event handler here Send.setOnClickListener((OnClickListener) this); //Clear.setOnClickListener(this.ClearForm());//Seems not to like this call to ClearForm() } public void ClearForm(){ phone_number.setText(""); number_messages.setText(""); message.setText(""); } public void onClick(View v){ sendMessages(); } protected void sendMessages() { int number = Integer.parseInt(number_messages.getText().toString ()); int confirmed_amount = Integer.parseInt(sent_confirmed.getText ().toString()); for (int x=0;xhttp://groups.google.com/group/android-beginners?hl=en
[android-beginners] How to make Big button (text)
I using eclipse to develop an app. In eclipse I set the text size for a button and in the emulator they look as I expect much bigger than default. But when I create the apk and load it into my Motorola Droid the text size looks like the default, no matter what I set it to in the project they are the same size. I'd appreciate any help in tracking down what I'm doing wrong. Joe -- 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-writing TCP-client code to Android
Hey guys, I have a server/client application that I want to re-write to accept a message from an Android phone. Originally it was a program that could send an object from the client to the server(and vice versa), but now I want the client to run on Android and send a message to the server once a button is pushed. The code for the original server can be seen here: http://filmside.dk/Code/SocketServer.txt The original client can be seen here: http://filmside.dk/Code/SocketClient.txt Can anyone help me with what I need to change to get it up and running on an Android? 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] Re: How to save Setings
This might help you out: http://developer.android.com/guide/topics/data/data-storage.html#pref On Nov 24, 5:59 pm, Justin Anderson wrote: > Have a look at SharedPreferences and PreferenceActivity > > -- > There are only 10 types of people in the world... > Those who know binary and those who don't. > -- > > On Tue, Nov 24, 2009 at 6:36 PM, Batuka wrote: > > help me pls > > > -- > > 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 -- 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] Why R,java file is missing from Android open source apps
I am trying to Import open source Android app using Google and SVN plugin for Eclipse but it seems all of them are missing the R.Java file. I couldn't figure out how to generate R.java file or why is it missing? I have tried Importing the project as Android Project and eclipse seems to create the gen folder but it remains empty. Any help will 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] Android Emulator runs very slow
Hello, My PC Specs: Athlon x2, 3GB Ram, Nvidia Graphics card. Running the new virtual emulator for android. It is really slow. Any way I can speed it up? -- 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: Help! My simple app works in Eclipse Emulator but not on droid
Thanks... I didn't get it for so long until I finally learned that my default values on my preferences view didn't make the stored preference persist so the way I had read the preferences actually meant that on first run of app, an endless loopn was created... Now I have a different problem... trying to read preferences from other classes outside of the main ... I will have to research that. On Nov 23, 2:06 pm, ertemplin wrote: > Maybe there's a permission the apparently has on the emulator that it > doesn't have on the device > > > > andrewandroidwrote: > > My simple app - with no fancy stuff - just one preferences screen and > > simple while loop logic keeps crashing on my droid though it works > > fine in the emulator ... I've tried everything I could find online for > > possible answers, I think... is there something very basic I'm > > missing? > > > I get a blank screen showing the app title and nothing else! It hangs > > forever before crashing! > > > Thank you so much for helping! Anyone? -- 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
Re: [android-beginners]
Hi, Saurabha, See basically intent is an Intent object that holds the content of the message. Intent object explicitly name a target component. Android finds that component (based on the declarations in the manifest file) and activates it. But if a target is not explicitly named, Android must locate the best component to respond to the intent. It does so by comparing the Intent object to the intent filters of potential targets. A component's intent filters inform Android of the kinds of intents the component is able to handle. Like other essential information about the component, they're declared in the manifest file... On 11/26/09, saurabh sinha wrote: > hello any body send their cv who are working on android I need a make a good > cv for android beginner > so I can apply in company > > -- > 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 -- 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] RingtoneManager, why doesn't it do its job?
Hi, i'm having a problem setting the ringtone for a call. I have an mp3 file stored on /sdcard/media/audio/ringtones/Horse.mp3 and this is how I'm trying to set it as a ringtone: [CODE] RingtoneManager.setActualDefaultRingtoneUri(RingtoneOfTheDay.this, RingtoneManager.TYPE_RINGTONE, Uri.parse("/sdcard/media/audio/ ringtones/Horse.mp3")); [/CODE] If I go to Settings -> Audio/Ringtones, I find that NO ringtone is selected and no ringtone is played if I get called. But (and this is strange), if I get the selected ringtone with: [CODE Uri myRingtone = RingtoneManager.getActualDefaultRingtoneUri (RingtoneOfTheDay.this, RingtoneManager.TYPE_RINGTONE); [/CODE] ... then I get the correct url of the ringtone (/sdcard/media/audio/ ringtones/Horse.mp3). This is really strange. Do you know how can I get this solved? 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] error
Im getting an error on Hello World. "Description ResourcePath LocationType Project 'HelloAndroid2' is missing required source folder: 'gen' HelloAndroid2 Build path Build Path Problem " -- 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: ActivityManager: - exec '/system/bin/sh' failed: Bad address (14) -
On Nov 19, 12:52 pm, Marton Kodok wrote: [...] > '/system/bin/sh' failed: Bad address (14) - > > and waiting waiting, but the app didn't show up > what's wrong? > > -- > Márton I encountered this problem when I created an AVD without specifying the SD card size in the AVD manager "Create New AVD" dialog. Creating a new device with an SD card size specified resolved the issue for me. - A -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Possible in emulator? Querrying google map? Unlocking Anrdoid Example
I'm having this problem with this example too. Seems like it must be something simple, or a problem with my expectations. I have an AVD with Google APIs as the target, platform/API as 2.0/5. It's the only AVD running :-) The project build target is for the same settings. I added a debug statement to print the exception message and in LogCat I see: 11-25 18:44:37.532: INFO/ActivityManager(56): Starting activity: Intent { act=android.intent.action.VIEW dat=geo:0,0? q=kjhgkjhgkjhgkjgh } 11-25 18:44:37.691: ERROR/ch1(297): No Activity found to handle Intent { act=android.intent.action.VIEW dat=geo:0,0?q=kjhgkjhgkjhgkjgh } There's no Google Maps app in the application listing or any other way to fire up Maps that I can see. I'm wondering if I need to install something? Create an app that includes a Mapper? What's the deal? -- 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 Target Missing
Hello I installed the Android plugin for Eclipse Ganemede on Windows Vista Home 32 bit. When I try to create a new project, I don't see any available "Build Target"s to select from, in the New Android project dialog. I can't find the steps to create targets, if there are any. How do i resolve this? The installed software window in Eclipse does show Adroid DDMS and Development tools, version 0.9.4.v20091022...4 Thanks ak08820 -- 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't select uses any Android platform in New Android Project dailog
I remember being at the same point you are and I think I did this: "Now, you just need to modify your Eclipse preferences to point to the Android SDK directory: 1. Select Window > Preferences... to open the Preferences panel. (Mac OS X: Eclipse > Preferences) 2. Select Android from the left panel. 3. For the SDK Location in the main panel, click Browse... and locate the SDK directory. 4. Click Apply, then OK." http://developer.android.com/sdk/1.1_r1/installing.html I hope that helps. On Nov 20, 6:51 am, 孫行得 wrote: > Dear First, > > Nice to meet you. I am a new developer for Android in Taiwan. > > I am creating an Android development environment . > > That question is that I am in creating an Android Project , please refer to > attached file. > > Please look the "Build Target" field that I can't select uses any Android > platform in New Android Project dailog . > > Would you give me a hand for this problem. > > Thank you very much. > > Best Regards. > > David Sun > suen0...@gmail.com > > 01.jpg > 135KViewDownload -- 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: New Activity or new Layout?
I am also a beginner and from what I understand: Activity objects are used to pass Intent objects to and from other Activity objects. Each Activity would have it's own View object associated with it. A layout is simply a list of UI element parameters for each Activity. A Layout, as in android.text.Layout, is a class for setting text in the UI elements. http://developer.android.com/reference/android/text/Layout.html I guess if you had multiple layout screens for a single Activity, you would still need to create the window and according to the documentation: "Almost all activities interact with the user, so the Activity class takes care of creating a window for you in which you can place your UI with setContentView(View)." http://developer.android.com/reference/android/app/Activity.html I have not looked to see the other ways in which you could create a window without using setContentView(View), unless you subclassed android.app.Activity. I hope this helps. On Nov 23, 5:25 am, Huckey wrote: > Hi all, > I am new to Android. > > One of the questions to which I still haven't been able to get a > good answer has with Activities and Layouts to do. > > I think I understand the basic concepts of Activity and Layout. I > have however a problem determining whether I should use a new Activity > or a new Layout in certain cases. > > I mean in my application I can have only one Activity but many > layouts and switch between the layouts within this Activity. > Alternatively I can have many Activities, each with its separate > Layout, and switch between Activities. > > Apart from making the code look nicer and being better organized > with Activities are there any other arguments (e.g. performance) which > should make me create new Activities instead of new Layouts in one > Activity? > > Thanks! > > Best regards > > Huckey -- 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
Re: [android-beginners] duplicate XML attribute
You're right. That did the trick :)) Thank you, Shirley On Tue, Nov 24, 2009 at 10:56 AM, Justin Anderson wrote: > I think it is like this: "textPostalAddress|textAutoCorrect" > > -- > There are only 10 types of people in the world... > Those who know binary and those who don't. > -- > > > On Mon, Nov 23, 2009 at 1:18 PM, Shirley Cohen > wrote: >> >> Hi, >> >> I want to specify two different values for a single XML attribute as >> in the following example: >> >> > android:id="@+id/addressfieldEdit" >> android:layout_width="fill_parent" >> android:layout_height="wrap_content" >> android:minWidth="1.3in" >> android:inputType="textPostalAddress" >> android:inputType="textAutoCorrect" >> /> >> >> >> This method doesn't work because the XML parser doesn't like duplicate >> attributes. So, how do I set the attribute android:inputType to be >> both "textPostalAddress" and "textAutoCorrect" in the above example? >> >> Thanks in advance, >> >> Shirley >> >> -- >> 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 > > -- > 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 -- 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
Re: [android-beginners] list view
Thank you for your reply. finally i got it. On Tue, Nov 24, 2009 at 10:25 PM, Justin Anderson wrote: > if(str == "First") --> BAD > if(str.equals("Second")) ---> GOOD > > That being said, the typical android way would be to create another > activity and launch it when you click the item in the list view. Have you > tried doing that instead? > > -- > There are only 10 types of people in the world... > Those who know binary and those who don't. > -- > > > On Mon, Nov 23, 2009 at 8:15 AM, sabs wrote: > >> Hi >> I created the list successfully but my problem is when ever i select >> an item in the list it is not moving to another layout. In that layout >> i created a button and text view. can any one help me >> below iam placing my code. >> >> //In this code wheneven i select the second option from the list it >> has to go to another layout where one text view will be there. >> >> >> public class SList extends ListActivity implements >> OnItemClickListener >> { >> >>final String[] items = new String[]{ >>"First","Second" >>}; >>ListView lv = null; >>public void onCreate(Bundle savedInstanceState) >>{ >>super.onCreate(savedInstanceState); >> setListAdapter(new ArrayAdapter(this, >>android.R.layout.simple_list_item_1,items)); >> lv = getListView(); >> lv.setChoiceMode(lv.CHOICE_MODE_SINGLE); >>lv.setTextFilterEnabled(true); >>lv.setOnItemClickListener(this); >> >>} >> >>/*protected void onListItemClick(ListView l, View v, int position, >> long id) >>{ >> >>super.onListItemClick(l, v, position, id); >>int pos = position; >>String str = (String) lv.getItemAtPosition(pos); >>if(str == "First") >>{ >>setContentView(R.layout.second); >> >>} >> >>}*/ >> >> public void onItemClick(AdapterView parent, View v, int postion, long >> id) throws NullPointerException >>{ >>int pos = postion; >>String str = (String)lv.getItemAtPosition(pos); >>if(str.equals("Second")) >>{ >>setContentView(R.layout.main); >>TextView tv = null; >>tv = (TextView)findViewById(R.id.TextView01); >>tv.setText("Hello"); >>setContentView(tv); >> >>} >> } >> >> //In this code wheneven i select the second option it has to go to >> another layout where one text view will be there. >> >> please help me >> >> -- >> 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 > > > -- > 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 -- 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: proxy not working in SDK setup??
Problem solved, but i have no idea why. I tried starting with android.bat, i tried force HTTP and now it seems to work also with SDK Setup.exe executable. -- 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] ListView rendering issue
During my development I wanted to fill a ListView in my Android app (Android 1.5 compatible) with info I retreive from he internet (some xml file which provides me the info I want). Now retreiving this info is no problem but displaying it in a ListView is. My ListView activity code can be found here: http://pastebin.com/f53a0df It doesn’t entirly work! I get enough rows generated in my listview, but only the first row contains my text from the last element I add to it. All other rows for all other elements are empty (Example of what I mean: http://img35.imageshack.us/img35/2862/device003.png). When debugging I found that eveytime in the getView(..) method the convertView is null (is this normal?) and that the first time my TextView objects are also null. Also when debugging (with a bigger list than in the example image) I found that when scrolling up and down and sometimes clicking in the ListView some of the rows get filled but with the wrong list-element according to the order. So does anyone see what I am doing wrong? BTW: my layoutfiles are provided here: watchlist.xml => http://pastebin.com/f738bc9d6 episode_row.xml => http://pastebin.com/f27442ce7 -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: SDK Installation: A folder failed to be renamed or moved
Ok, just searched a few forums. You have to completely disable your Antivirus program and it works fine. I am running Norton Internet Security and disabling it totally fixed the problem. People on other sites reported same results with several other programs as well. Dave On Nov 24, 3:24 pm, DaveW wrote: > I'm having the same problems and have tried the same things as you but > am still stuck. Any progress? > > On Nov 14, 6:11 pm, NoVa David wrote: > > > > > Windows XP Professional SP3 > > JDK 1.6.0_14 > > site:https://dl-ssl.google.com/android/repository/repository.xml(i > > have "force https:// to be fetched as http://...";) > > Android SDK Updater Revision 3 > > > i run the "Android SDK and AVD Manager", goto "Available Packages", > > choose *anything* (but i'm concentrating on v2 stuff) i get the > > following... > > > Downloading SDK Platform Android 2.0, API 5, revision 1 > > Installing SDK Platform Android 2.0, API 5, revision 1 > > Failed to rename directory C:\work\android-sdk-windows\temp > > \PlatformPackage.new01 to C:\work\android-sdk-windows\platforms > > \android-2.0 > > -= Warning ! =- > > A folder failed to be renamed or moved. On Windows this typically > > means that a program is using that folder (for example Windows > > Explorer.) Please close all running programs that may be locking the > > directory 'C:\work\android-sdk-windows\temp\PlatformPackage.new01' and > > try again. > > > no other applications are running. i've rebooted, verified that the > > directory is NOT read-only. yet i still get similar results. i have > > ADMINISTRATOR privileges on this machine. > > > any ideas?? -- 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: Droid BT Voice Dial - Hardware/Software Limitation?
Laurence, have you found out the answer to your question yet? I am trying to do the same exact thing you are and I am hung up on finding out how to capture when the call button is pressed. Jim On Nov 24, 2:46 am, rahulp wrote: > Hi all, > Can anyone please post some guidelines to usebluetoothapis on sdk > 2.0. > also i need to know whether one can test these on the emulator. I mean > atleast the basic functionalties > Thanks > > On Nov 18, 11:15 pm, Laurence MacNeill wrote: > > > > > Yeah, that's basically what I'm trying to figure out. Seems to me, > > that if you cancapturethe button press(es) on yourBluetooth > > headset, that's really all you need to get this working. If that's > > what the limitation is, then there's no point in pursuing this. But > > if you CANcapturethe button press(es) on the BT headset, then it's > > just a simple matter of starting the voice dialer once that button > > press is captured. > > > So, if anyone knows the actual answer to that question, and exactly > > how to do it if it can be done, I'd really appreciate a pointer to > > some code that would help me get this underway... > > > Thanks a bunch, > > L. > > > On Nov 16, 8:20 pm, Carl Barton wrote: > > > > Does anyone know if the lack of voice dialing viabluetoothheadset on the > > > Droid is a limitation of the OS or a limitation of the phone hardware > > > itself. > > > > I find this a huge issue that really needs to be resolved but if it's > > > hardware then that makes it much more difficult.- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Android 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 installing the Android SDK
did you find this yet? http://groups.google.com/group/android-developers/browse_thread/thread/63a44163a8d07cd9 I hope this helps. On Nov 23, 12:03 pm, grml wrote: > Hi, > > I need some help with getting my environment set up. I've downloaded > the android sdk and avd manager as well as the eclipse plugin for > android. In a next step I want to download sdk a through the android > sdk and avd manager. If I execute the android sdk manager the manager > always fails to fetch the repository from the given ssl url. In a next > step I add another repository to the list (it is the same url but with > a http instead of a https). Fetching the list works, but I only get > "Google API" in several versions and a "USB driver package". The list > misses something like "SDK Platform API ...". > > Has anybody an idea what I'm doing wrong? Thanks in advance! > > P.S.: I've tested it on a 64 bit Linux as well as on a 32 Bit Windows. -- 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] MediaController for an mp3 file?
I'm having trouble finding examples of displaying a media controller (play, stop, rewind, ff) for an mp3 file. Is this possible. Seems to be only implemented for VideoView. -- 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: connecting to a remote database tutorial/example?
hi jbrohan, I am new in android as well as no java programming experienced. I had tried the example provided here. however, it doesnt work for me as it just return "error". Can you provide me some guidance? On Oct 25, 3:29 am, jbrohan wrote: > Hello > I need to look up a database in my app. I'll be doing it next week I > expect. For the moment the php just returns a constant. > $do = $_REQUEST['do']; > if ($do == "groupphone"){ > $phone=trim($_REQUEST['phone']); > $phone=str_replace(array('.','(',')','-',' ','+'),'',$phone); > if (substr($phone,0,1) == '1') $phone = substr($phone,1); // remove > '1' > echo "error"; // initial testing}elseif($do == "startgroup"){ > > echo "xyz"; > ... > > the java that does the call to the php program on the server is... > > public String callWebPage(String URLstring, String parameters){ > String s; > try { > URL updateURL = new URL(URLstring+parameters); > URLConnection conn = updateURL.openConnection(); > InputStream is = conn.getInputStream(); > BufferedInputStream bis = new BufferedInputStream(is); > ByteArrayBuffer baf = new ByteArrayBuffer(50); > Log.e("SettingsDialog", "after the call to web"); > int current = 0; > while((current = bis.read()) != -1){ > baf.append((byte)current); > } > Log.e("SettingsDialog", "back from web page"+parameters); > /* Convert the Bytes read to a String. */ > s = new String(baf.toByteArray()); > Log.e("SettingsDialog", String.format("in callWebPage = > %s ",s)); > return s; > } catch (Exception e) { > Log.e("SettingsDialog", "exception in callWebPage"); > } > return "error"; > } > > And the setup of the URLstring is...s = callWebPage(Constants.WebCall, > "?do=groupphone&phone="+s); what the php script echoed is in s. > > It seems to be very reliable. > It's worthwhile running your script from a browser first to make sure > that it works. > > Good Luck > John > > On Oct 24, 11:21 am, gmseed wrote: > > > Hi > > > I'm developing an application to connect to a database on my website. > > > Does anyone know of a link to an example/tutorial in which this kind > > of operation is performed? > > > Thanks > > > Graham -- 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] Accessing asset when not in main Activity
Hello everyone, Again, right upfront... I have to admit to being brand new to Java and OOP (though not to structured programming) and I'm drowning a bit... >From digging around a bit, getAssets() is an inherited method from ContextWrapper. It returns an AssetManager, and using open() it can return an InputStream. What I'm attempting to do at this point, is use the GLSurfuceViewActivity, Cube and CubeRenderer to work off of and read in vertex data from a binary file. I've already created the binary output by parsing a model obj file and added to the assets directory. My Shape class (modified from the Cube class) does not have access to calling getAssets() since it's not a subclass of Activity or ContextWrapper. Once I accepted that, I tried to think of the best way to read in the data (without storing it extra places) to the Shape class. What I did, and seems to be working okay, was modify the Shape and ShapeRenderer constructors to accept an AssetManger as a parameter. In the main Activity I added a private AssetManager, instatiated it in the onCreate() method from the main Activity, and passed that into the Renderer like so: am = getAssets(); mGLSurfaceView.setRenderer(new ShapeRenderer(am)); Does this sound reasonable or totally off base? -- 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: why Java, not Python?
It's true that some tasks are easier in Python than in Java. Java's Date-related libraries are norotiously horrible. And I'm sure that text parsing tasks (like pattern matching, etc.) are more suited for a scripting like Python or Perl than for Java. However, in my experience, programs written in scripting languages (like Python and Perl) tend to be sloppy, not very object-oriented, overly simplistic, and error-prone. They are great for quick-and- dirty solutions or for specialized tasks like text-parsing. On top of that, Python programs tend to be harder to read and understand. On the other extreme, C++ is a great language for low-level things like kernel stuff, device drivers, and that sort of thing. Java, on the other hand, really shines as a language for developing *applications*. When writing an application, you want a high-level, object oriented language, able to integrate with a lot of different components... but you also want it to be very robust. You want a language that will be strict, not loose. You want type safety, catching exceptions, that kind of thing. You want it to be pre- compiled and not runtime-interpreted. You also want to be able to easily debug applications. You also want a language that is mature, because then you gain the benefits of high quality and a large community that can contribute. You'll get a lot more third-party library availability, forum discussions, etc. I'm not saying that Python doesn't support object-oriented design (it does), or that you can't write robust Python code. And Java can blow up pretty easily, too, such as the notorious NullPointerException. And I will admit that for my graduate school projects, I like to use Perl, because it's quick-and-dirty, even more so than Python probably, and that's perfect for a small project. But if you're going to write an application for a lot of users, Java is your friend. :D -- PJ On Nov 23, 4:55 pm, Sean Dague wrote: > Esmail wrote: > > Lee Olayvar wrote: > >> To my knowledge, Java is simply faster. That, and Python is also rather > >> "big". > > > Is it really faster? Is that a consequence of a better virtual machine? > > On a proper x86 chip, it's *a lot* faster > -http://shootout.alioth.debian.org/u32q/fastest.php?d=ndata&calc=calcu... > > I suspect it's still faster on the Arm chip, but you'd have to run your > own numbers to be sure. I also suspect that the security model for java > is a bit easier to contain with multiple applications running. > > You can do a certain amount of development with ASE in python (or perl, > lua, jruby, bash). You don't get access to everything, but for small > things it is probably enough to play around with. > > -Sean > > -- > __ > > Sean Dague Mid-Hudson Valley > sda...@gmail.com Linux Users > Grouphttp://dague.net http://mhvlug.org > > There is no silver bullet. Plus, werewolves make better neighbors > than zombies, and they tend to keep the vampire population down. > __ > > signature.asc > < 1KViewDownload -- 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] uploading music
I am not sure, but is there an app that I need to download to be able to upload music from my itunes account? Thanks, Rob -- 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: Custom inputType
Thanks for a quick reply, And sending a useful tip in modify an editViews InputType in code. My problem is that if an InputTypes is set, as well as selecting the soft keyboard view, this also controls many other features including only allowing certain charaters (ie date time - [0-9 / : ) in the textView. I have tried masking flags and class after setting the InputType, and this does not appear to solve the issue, (Maybe I am doing this incorrectly). If I am using in code a pattern/match to check data integrity, i would like to allow all characters to be applied, but intially from the numbers/symbols soft keyboard view. Assuming that selecting a certain keyboard view must be possible, as user keyboards can be defined. I understand that InputType does greatly simplify defining editViews, however this does lead to an inflexability when the required input does not match the set definitions. I guess that selecting keyboard view is linked somehow to IMEs, inputMethods or such like. Any clues? On Nov 23, 2:52 pm, Nithin wrote: > Hi Leigh, > > try this, > editText.setInputType(InputType.TYPE_CLASS_NUMBER); > this is for numbers. > > InputType contains lot of constants like TYPE_CLASS_DATETIME, > TYPE_CLASS_PHONE etc. You choose according to your requirement. > > Thanks > > On Nov 22, 7:41 pm, "Leigh" wrote: > > > > > I have editText which accepts numeric details with an optional text suffix, > > (ie. 90.895t). > > I am using addTextChangedListeners and pattern/match to ensure correct data > > entry. > > > Planning to call text soft keyboard in number/symbol view initally, with > > text view obtainable from this keyboard. > > > I have tried inputType variations, with the only suitable view being > > datetime, > > this however only allows enrty text entry in the datetime format. > > > As the pre-existing attributes are ignored if inputType has been defined, > > there is no way of tweaking inputType attributes? > > > Or is there a simpler way of calling up specific soft keyboards (numeric, > > symbol, text)?- Hide quoted text - > > - Show quoted text - -- 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 2.0 SDK is here!
I had same error. Thanks for the fix! On Nov 12, 6:39 pm, Xu Bill wrote: > just change source tohttp://dl.google... > > On Nov 11, 2009 11:12 PM, "Jun" wrote: > > Hi, > I got a errro in my Android SDK and AVD manager when I install the SDK > -- > Failed to fetch > URLhttps://dl-ssl.google.com/android/repository/repository.xml, > reason: HTTPS SSL error. You might want to force download through HTTP > in the settings. > -- > Anyone can help me,thanks. > > On 11月1日, 上午5时11分, erisa wrote: > I did a fresh install > of the new SDK on an u... -- 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 .KML file to my google map app
Use this link http://www.devx.com/wireless/Article/39239/1954 Thanks, Mahesh On Nov 25, 11:31 am, wahib wrote: > hi !! I have written a simple app following a tutorial. but when i run > the application these is blank map view. Then i came to know that we > can emulate google map images using .KML files. I am having following > integrating it. I got sample.kml file but i am confused how to load it > with DDMS. further more how to select device in 'my devices' tab. > secondly, i read that i also need to pull gps properties as well but i > dont have any 'location' or 'gps' folder in /data/misc folder. > > Thanks in advance. > Regards, > wahib -- 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: building GUIs (manually? or with some tool?)
Hi Esmail, Yeah once you have the latest ADT installed you should be able to right click any layout xml file and choose Open With > Android Layout Editor. I'm on OS X here. > > Hi Richard, > > I installed at ADT (I think that's its name) plugin for Android and > Eclipse. Is that the one you are talking about or is there something > else. > > If I have the correct plugin I guess I haven't looked around enough, > do you have a quick pointer for me? > > Thanks! > Esmail -- 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] Creating a dialog from a Service
Hi, Now I know that a dialog has to be started from an activity. However I have a service running and I want it to be able to display a dialog. Having searched about this I know the normal thing to do is to display a status bar notification, however I want to interrupt the user and stop them doing whatever they currently are. Is there any way to do this? I know its considered bad programming, but it won't be as intrusive as it sounds! Thanks Tom Reay -- 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 sdk, eclipse + OS X
I dont think it is possible. 10.6 is not supported. On Nov 14, 2:50 am, swartzfeger wrote: > All, having issues getting my Android dev environment up and running > on my OS X10.6machine. So far: > > * downloaded the SDK > * installed eclipse 3.5 > * downloaded ADT-0.9.4 > > Here's what I've done to try an install the adt plugin in eclipse: > > Help > install new software > add site > > I've tried > bothhttps://dl-ssl.google.com/android/eclipseandhttp://dl-ssl.google.com/android/eclipsewith > no luck. I always > receive the error: > > Cannot complete the install because one or more required items could > not be found. > Software being installed: Android Development Tools > 0.9.4.v200910220141-17704 (com.android.ide.eclipse.adt.feature.group > 0.9.4.v200910220141-17704) > > I tried installing it locally by selecting the archive/.zip > (uncompressed) and receive the same error as above. > > Help! I'm really jonesin' to get started on this :) > > Jay -- 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: "Hello World" not even running in Emulator
My simple trick is setting up an android project in my workspace called emulatorstartup.. Highlight project with mouse, in eclipse the run as..config profile screen..create a new emulator runtime config for project..under AVD choice checkbox the AVD you want and click start emulator button.. Once you have that setup you can start the emulator at the begin of your workday and do not need to restart it.. Fred Grott Android Developer http://mobilebytes.wordpress.com On Nov 24, 1:13 pm, "Mr. Baseball 34" wrote: > How do you do that? > > 2009/11/23 razor > > > To save a time, don't start the emulator each time you want to run > > your app. > > Run emulator once, at the beginning and the only update your app on > > the emlator (eclipse will do all of that for 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] Re: Cannot get MSISDN (phone number) but can get IMSI on HTC G3
thank's for your reply, but in my application, i want to let user can submit his phone number without input, so others can phone him if necessary On 11月20日, 下午1时50分, Marc Lester Tan wrote: > I think some carriers don't provide the MSISDN to the handset so I guess you > shouldn't rely on it. Just use the IMSI and device id to identify the user. > > Marc > > > > On Thu, Nov 19, 2009 at 11:40 PM, rodger wrote: > > I want to use phone number as user ID,so i want to access the phone > > number. > > in my code, i can get IMSI (International Mobile Subscriber Identity) > > by using getSubscriberId(). > > but can not get MSISDN by using getLine1Number(),it returns null. > > > my test phone is HTC G3, > > anybody can solve the problem? > > > thanks! > > > TelephonyManager tm = (TelephonyManager) getSystemService > > (Context.TELEPHONY_SERVICE); > > > String phoneNumber = tm.getLine1Number(); > > if(phoneNumber == null || phoneNumber.trim().equals("")){ > > phoneNumber = "cann't get the phone number"; > > } > > > // permission has been added in 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- 隐藏被引用文字 - > > - 显示引用的文字 - -- 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 ADT in Eclipse 3.5.1 (Ubuntu)
I don't know if this will help but I had this same problem. After 40 or so tries, I restarted the IDE and went directly into this and it all works as expected. There may be some problem if this is not the first thing you do. Just my 2 cents hope it helps somebody out there. On Nov 20, 2:36 pm, Eno wrote: > I add the site and in the Install Details screen runs into an error: > > "Cannot complete the install because one or more required items could > not be found. > Software being installed: Android Development Tools > 0.9.4.v200910220141-17704 > (com.android.ide.eclipse.adt.feature.group0.9.4.v200910220141-17704) > Missing requirement: Android Development Tools > 0.9.4.v200910220141-17704 > (com.android.ide.eclipse.feature.group0.9.4.v200910220141-17704 > requires 'org.eclipse.gef 0.0.0' but it could not be 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] RelativeLayout margins inside a ListView are not displayed
Hi, I'm currently using a ListView that I fill with a custom adapter with RelativeLayout's. The problem is that the margins are not displayed for the RelativeLayout. Here is my relative layout declaration : http://schemas.android.com/apk/res/ android" android:id="@+id/ArticleSnippet" android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding="6dip" android:layout_marginTop="10dip" android:layout_marginLeft="10dip" android:layout_marginRight="10dip" android:background="@drawable/background_snippet" > ... The ListView declaration : Is there anything special to do to make the margin active inside a ListView ? Thanks in advance for any help, Lint (Dusariez JF) -- 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
Re: [android-beginners] Re: why Java, not Python?
Yea, i'd put money on size and speed. Sucks, but i have to agree with their choice heh. On Mon, Nov 23, 2009 at 2:55 PM, Sean Dague wrote: > Esmail wrote: > > Lee Olayvar wrote: > >> To my knowledge, Java is simply faster. That, and Python is also rather > >> "big". > > > > Is it really faster? Is that a consequence of a better virtual machine? > > On a proper x86 chip, it's *a lot* faster - > > http://shootout.alioth.debian.org/u32q/fastest.php?d=ndata&calc=calculate&javasteady=on&python=on > > I suspect it's still faster on the Arm chip, but you'd have to run your > own numbers to be sure. I also suspect that the security model for java > is a bit easier to contain with multiple applications running. > > You can do a certain amount of development with ASE in python (or perl, > lua, jruby, bash). You don't get access to everything, but for small > things it is probably enough to play around with. > >-Sean > > -- > __ > > Sean Dague Mid-Hudson Valley > sda...@gmail.com Linux Users Group > http://dague.net http://mhvlug.org > > There is no silver bullet. Plus, werewolves make better neighbors > than zombies, and they tend to keep the vampire population down. > __ > > > -- Lee Olayvar -- 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] Text file
Hi every body I wrote one text file and placed it under "\proc" directory now i would like to write a program to read that text file and print it on an emulator. For that iam reading the file into a buffer, now my problem is, iam unable to print that content of text file on emulator. so can any one please help me -- 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
Re: [android-beginners] SDK and AVD Manager UI doesn't launch from command line
Hi , You need to install ADT. Go to eclipse help--->install new software-->there give -->https://dl-ssl.google.com/android/eclipse/ ...Add site. On 11/24/09, Lynn wrote: > I am able to open the Android SDK and AVD Manager UI from the Eclipse > Window menu option. However, if I go to the /tools directory and > run ./android from the command line, the output suggests the UI will > be launched, but it never appears. I am running on Mac OS X 10.5.8. > The output looks like: > > Starting Android SDK and AVD Manager > No command line parameters provided, launching UI. > See 'android --help' for operations from the command line. > > Any suggestions? > > -- > 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 -- 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] Which sdk / emulator vers for moto cliq ?
Hi, This may be my first post here; having been reading many of the msgs here on and off ~1 month. I have installed the emulator [Win xp on a netbook] and gone thru the hello world sample. I just bought a moto cliq on tmo. 1. Which version of sdk/emulatorr should I be using? 2. Before I download anything of my own to the phone, I would like to understand how to duplicate the sdcard in there. Currently it is a 2G. If I want to use a new 4G, what do I do before taking it out / replace -- safely detach the card from the running os? How do I format a new card? Can it be done on win, is it FAT like most sd cards? Can I simply copy the card in my xp and replace? -- 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: "Hello World" not even running in Emulator
I found a solution to the 'emulator stops at animated logo' problem. I have a Ubuntu 9.04 machine, I had installed the JDK using the Debian package from the Ubuntu repositories: i sun-java6-jdk - Sun Java(TM) Development Kit (JDK) 6 I just tried downloading the JDK from www.java.com and set my path to the directory where I installed it. Started the emulator and in a few minutes I had the emulator home page showing. It runs painfully slowly, but it runs. On Nov 20, 8:04 pm, teichholtz wrote: > There now seem to be many of us who are experiencing this behaviour. I > have an emulator running now which has been running for over 24 hours > and still has not displayed the home page. > > I have a gut feeling that it is a video card issue, although I have > only two data points so far: > > 1. Dell laptop circa 2002 running Ubuntu 9.04. Emulator gets as far > as animated logo. > 2. Generic desktop, P4 machine running Ubuntu 9.04. Emulator boots up > in under 2 minutes. > > -David > > On Nov 20, 12:46 pm, Justin Anderson wrote: > > > The emulator takes extremely long to load. If you have a phone, you would > > notice that the second android image that you reference is the initial boot > > up screen for the phone. Just wait longer. Depending on your machine > > speed, os, etc... I have heard the emulator startup time can take any where > > from a few minutes to hours. On my machine it takes about 2 minutes. > > > Also, this question has been asked several times. Please search the group > > before posting redundant questions... Especially if they have already been > > answered. > > > -- > > There are only 10 types of people in the world... > > Those who know binary and those who don't. > > -- > > > On Fri, Nov 20, 2009 at 5:05 AM, Mr. Baseball 34 > > wrote: > > > > I have Eclipse Galileo JDK6.17 with Android 1.5R3. I can't even get the > > > Hello World app running correctly. > > > A Lot of messages say to wait for the emulator, well when it first comes > > > up, it shows attachment > > > android1.png (also posted here:. > > >http://www.delphicommunity.com/android1.png) > > > > I will wait for a while and the screen will clear then it shows the > > > attachment android2.png > > > (also posted here:http://www.delphicommunity.com/android2.png). > > > > Any ideas as to why it won't even work for this simple little app? > > > > -- > > > 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 -- 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 a refresh button to a webview app?
Thank you for the response. But like I said im very very new to this and i was basically looking for an example. I wish i knew what you meant and could go from there but if you dont mind could you show me what it should look like? Thank you so much, hopefully from looking at it i can get a better idea of the whole make a menu, then add buttons, change the icons on the buttons, then make the buttons do things (like in this case refresh the current page of a webview) * my code: webview.java - * package com.brybam.webview; import android.app.Activity; import android.os.Bundle; import android.view.KeyEvent; import android.webkit.WebView; import android.webkit.WebViewClient; public class webview extends Activity { /** Called when the activity is first created. */ WebView webview; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); webview = (WebView) findViewById(R.id.webview); webview.setWebViewClient(new webviewClient()); webview.getSettings().setJavaScriptEnabled(true); webview.loadUrl("http://google.com";); } private class webviewClient extends WebViewClient { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { view.loadUrl(url); return true; } } public boolean onKeyDown(int keyCode, KeyEvent event) { if ((keyCode == KeyEvent.KEYCODE_BACK) && webview.canGoBack ()) { webview.goBack(); return true; } return super.onKeyDown(keyCode, event); } } On Nov 5, 9:42 pm, Justin Anderson wrote: > Override the following methods in the Activity class: > - onCreateOptionsMenu() > - onPrepareOptionsMenu() > - onOptionsItemSelected() > > http://developer.android.com/reference/android/app/Activity.html#onCr... > > Good luck, > Justin > > -- > There are only 10 types of people in the world... > Those who know binary and those who don't. > -- > > > > On Wed, Nov 4, 2009 at 8:51 PM, BryBam wrote: > > Hey guys, i'm very new to this. I only have basic XHTML knowledge and > > im looking into getting more into android development so ive been > > reading the tutorials but i cant find a tutorial on how to create a > > menu and then make the menu button refresh my webview content. > > anyone...here's my current code. i was wondering if someone could show > > me how it should look to make it when i hit the menu button and then > > how to make the menu button do a refresh of my web content. thanks in > > advance i think getting to look how it is done may help me understand > > a lot of whats been confusing me ive looked everywhere and i just get > > lost. > > > * > > my code: > > webview.java - > > * > > package com.brybam.webview; > > > import android.app.Activity; > > import android.os.Bundle; > > import android.view.KeyEvent; > > import android.webkit.WebView; > > import android.webkit.WebViewClient; > > public class webview extends Activity { > > /** Called when the activity is first created. */ > > WebView webview; > > �...@override > > public void onCreate(Bundle savedInstanceState) { > > super.onCreate(savedInstanceState); > > setContentView(R.layout.main); > > webview = (WebView) findViewById(R.id.webview); > > webview.setWebViewClient(new webviewClient()); > > webview.getSettings().setJavaScriptEnabled(true); > > webview.loadUrl("http://google.com";); > > } > > private class webviewClient extends WebViewClient { > > �...@override > > public boolean shouldOverrideUrlLoading(WebView view, > > String url) > > { > > view.loadUrl(url); > > return true; > > } > > } > > public boolean onKeyDown(int keyCode, KeyEvent event) { > > if ((keyCode == KeyEvent.KEYCODE_BACK) && webview.canGoBack > > ()) { > > webview.goBack(); > > return true; > > } > > return super.onKeyDown(keyCode, event); > > } > > } > > > * > > main.xml - > > * > > > > http://schemas.android.com/apk/res/ > > android" > > android:layout_width="fill_parent" > > android:layout_height="fill_parent" > > android:orientation="vertical"> > > > android:id="@+id/webview" > > android:layout_width="fill_parent" > > android:layout_height="fill_parent" > > /> > > > > > > * > > AndroidManifest.xml - > > * > > > > http://schem
[android-beginners] Android development with ADK in Eclipse on Snow Leopard
I have tried numerous combination of installs and this does not seem supported. Does anyone have any success developing Android apps in Eclipse on Snow Leopard? I installed Eclipse 3.4 and it will not even load after I do a software update in Eclipse. I was able to get ADK installed in windows/eclipse in a snap. -- 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] HelloViews Tutorials , etc.
Hi Everyone, I went through the posts and didn't see this explicitly, although there were similar ideas. My apologies if this is redundant. I am brand new to Android Development but after I got my new Droid, I had to get involved. Unfortunately, NONE of the tutorials work besides Hello, World. I've tried almost all the HelloViews examples, and there are errors on every one. I am using Eclipse Galileo and the newest SDKDoes anyone have any ideas why this is happening or is anyone experiencing the same thing? It is maddening. This is the Google development forum, and the Google tutorials, and they don't work? Please Help! Thanks, Jason -- 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 save Setings
This might be of help to you: http://developer.android.com/guide/topics/data/data-storage.html ~Jeremy On Nov 24, 5:59 pm, Justin Anderson wrote: > Have a look at SharedPreferences and PreferenceActivity > > -- > There are only 10 types of people in the world... > Those who know binary and those who don't. > -- > > On Tue, Nov 24, 2009 at 6:36 PM, Batuka wrote: > > help me pls > > > -- > > 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 -- 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] Connect Android to Android or PC
Hi, I am trying to do a little game for android, but I wanted several players to play using a PC and another phone. How can I send and rreceive information from other phones or PCs? I really just want to know my possibilities, can I do it through HTTP? Is there a better way if I know which PC to connect to? Thank you, duarte -- 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] colored logcat for windows
Hi all, Jeff Sharkey made a nice app to highlight the logcat. It is really useful for debugging so be sure to check it out at http://jsharkey.org/blog/2009/04/22/modifying-the-android-logcat-stream-for-full-color-debugging/ The colored abd logcat idea was great so i decided to make a Windows port. Here http://adrianvintu.com/blogengine/post/Colored-Logcat-Script-for-Windows.aspx is the link to it. Best Redards, Adrian Vintu -- 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