[android-beginners] Re: Developing application in Android
Post the exact and precise specifications of the project. What exactly you want to develop on android. As you have worked with Java, developing an android application will be no big deal for you. Android supports Java2ME and Google's APIs. If you need any help for the project or want to ask any question about android development, just send me a message on maqs...@salsoft.net Maqsood On Aug 27, 9:42 pm, blixs johannesla...@gmail.com wrote: Hi!! I am a programmingstudet at the Norwegian It-University. Now in the second year we have a huge proyect where we have to develope a product to a event. To do it best we have to make an mobile application in the Android Platform. I have worked with Java, and want to develope me in this area, but I don't have experiencie about Android. Therefor, I'm looking for help here, what can I use for make the application and if exist an API. Do I need to get an Android-cellphone to test if it work, or can I emulate it in the computer? Best regards! J --~--~-~--~~~---~--~~ 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] Real Estate SEO
Could someone give me any good ideas on apps for Real Estate industry and SEO (Search Engine Optimization). Are there any apps on the app store or elsewhere on these subjects? Maqsood --~--~-~--~~~---~--~~ 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: Key Value pair in a spinner
Anyone knows how to? Am I being clear? On Aug 20, 8:48 pm, AlexDemers demers.a...@gmail.com wrote: Hey, I was wondering how to put a string array in a spinner (I can, using the ArrayAdapter) but I also want to set keys for these also. But it seems that there's no constructors for that (I may be mistaken). I have 2 arrays: {5123, 7434, 7333, 7345 } and {City 1, City 2, City 3, City 4 }. Obviously, the spinner UI should show the name array of the cities, but in the backend (what's returned from the submission of the form is the value. Anyone knows how? // Put the array in the spinner ArrayAdapterString adapter = new ArrayAdapterString(this, android.R.layout.simple_spinner_item, cityNames); spinCities.setAdapter(adapter); While, I'm the subject of spinners: is there any resource on the internet describing every type of spinner layouts? I'm using simple_spinner_item but I find it too small. Any suggestions? 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] easy stuff please reply
hello guys i am writing the data in text file with help of fos = new FileOutputStream(file); out1 =new OutputStreamWriter(fos); out=new DataOutputStream(fos); String Dpass = new String (1008); out.writeChars(Dpass); but in file due to char it is leaving space after each charactor.so how should i store so the will be no sapce. also which api should i used to delete containt of the file? thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Key Value pair in a spinner
I haven't tried using the spinner adapter yet, so I'm not sure, but it might be possible to do the following: - Create a new object that holds both the city string and the number - Override the toString() method to return the city string - Pass the array of your new object type to the spinner - Then the spinner would return your object and you can get the number value from that Again, I don't know how the spinner adapter is set up exactly, but you might be able to get something like this to work. Hope that helps, Justin -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Thu, Sep 3, 2009 at 3:48 AM, AlexDemers demers.a...@gmail.com wrote: Anyone knows how to? Am I being clear? On Aug 20, 8:48 pm, AlexDemers demers.a...@gmail.com wrote: Hey, I was wondering how to put a string array in a spinner (I can, using the ArrayAdapter) but I also want to set keys for these also. But it seems that there's no constructors for that (I may be mistaken). I have 2 arrays: {5123, 7434, 7333, 7345 } and {City 1, City 2, City 3, City 4 }. Obviously, the spinner UI should show the name array of the cities, but in the backend (what's returned from the submission of the form is the value. Anyone knows how? // Put the array in the spinner ArrayAdapterString adapter = new ArrayAdapterString(this, android.R.layout.simple_spinner_item, cityNames); spinCities.setAdapter(adapter); While, I'm the subject of spinners: is there any resource on the internet describing every type of spinner layouts? I'm using simple_spinner_item but I find it too small. Any suggestions? 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: easy stuff please reply
Why not use one of the methods from OutputStreamWriter that takes a string as a parameter? http://developer.android.com/reference/java/io/OutputStreamWriter.html -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Thu, Sep 3, 2009 at 6:15 AM, kapil.k kapnk...@gmail.com wrote: hello guys i am writing the data in text file with help of fos = new FileOutputStream(file); out1 =new OutputStreamWriter(fos); out=new DataOutputStream(fos); String Dpass = new String (1008); out.writeChars(Dpass); but in file due to char it is leaving space after each charactor.so how should i store so the will be no sapce. also which api should i used to delete containt of the file? thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: startActivity crash
Hello and thanks for the reply. No, the FieldGuide line that is commented out does not cause the crash. To the contrary, it actually works properly when starting that activity in the main app. Below you are looking at the code that causes the crash (the geotest activity). I had all of the below code in another application with other activities, and everytime I tried to start this activity, it would crash. So in an effort to isolate the problem, I made a new Android project and put only the crashing activity in it, and it is still crashing (which allows me to rule out the other activites/code in the main app for causing the problem). I get a nullpointerexception when trying to start the activity (see logcat output below). I'm very curious if someone else copy/paste all the code below into a new project, do they have the same problem? -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of htbest2000 Sent: Thursday, September 03, 2009 5:52 AM To: Android Beginners Subject: [android-beginners] Re: startActivity crash //startActivity(new Intent(Geotest.this, FieldGuide.class)); is this line cause crash ? why don't you show your layout file of FieldGuide? On Sep 3, 7:33 am, tinyang tiny...@earthlink.net wrote: Hello. I have an application in which I am trying to start an activity (geotest) in, and the activity crashes upon start of the application. Below is my code and my logcat output. I can't figure out the problem, because I have several other activities I am able to start exactly the same way with no problem. When I compare the code, I can't see what I'm doing wrong with the activity that crashes. Am I missing permissions for something maybe? Can someone please help? Thanks! -- -- -- geotest.java: package net.tinyang.geotest; import android.app.Activity; //import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.Toast; public classgeotestextends Activity { Button geotagbtn = null; Button next2btn = null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); geotagbtn = (Button) findViewById(R.id.geotagbtn); geotagbtn.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { //startActivity(new Intent(MainMenu.this, TakePic.class)); Toast.makeText(geotest.this, Geotag Picture coming soon, 5000).show(); } }); next2btn = (Button) findViewById(R.id.next2btn); next2btn.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { //startActivity(new Intent(Geotest.this, FieldGuide.class)); Toast.makeText(geotest.this, Next coming soon, 5000).show(); } }); } } -- -- -- geotag.xml: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:id=@+id/pictitle android:layout_width=fill_parent android:layout_height=wrap_content android:layout_marginTop=10dip android:text=Geotag your Picture / ImageView android:id=@+id/camsurface android:layout_width=wrap_content android:layout_height=wrap_content /ImageView TableLayout android:layout_width=fill_parent android:layout_height=wrap_content TableRow Button android:id=@+id/geotagbtn android:layout_width=wrap_content android:layout_height=wrap_content android:layout_below=@id/camsurface android:layout_centerHorizontal=true android:text= Geotag / Button android:id=@+id/next2btn android:layout_width=wrap_content android:layout_height=wrap_content android:layout_centerHorizontal=true android:text= Next / /TableRow /TableLayout /LinearLayout -- -- - manifest: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=net.tinyang.geotest android:versionCode=1 android:versionName=1.0 uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.CAMERA/ application android:icon=@drawable/icon android:label=@string/app_name activity android:name=.geotest android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application uses-sdk android:minSdkVersion=2 / /manifest -- --
[android-beginners] Any way to measure network traffic ?
Hi all, I did not find any application for doing this, so I would like to write one ( please tell me if I'm wrong ). I would like to measure how many bytes are sent/received over the internet ( not wifi ). Is there some event ( intent ) to be notified from ? The so collected data will then be reported in a monthly fashion, to measure how the phone company will bill the user. 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: Any way to measure network traffic ?
Sorry, Never mind, I found this: http://www.jaqpot.net/netcounter/ I will study that one since it is open source. On 3 Set, 17:56, FaticaLabs fel...@felicepollano.com wrote: Hi all, I did not find any application for doing this, so I would like to write one ( please tell me if I'm wrong ). I would like to measure how many bytes are sent/received over the internet ( not wifi ). Is there some event ( intent ) to be notified from ? The so collected data will then be reported in a monthly fashion, to measure how the phone company will bill the user. 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: apk install error
When you select the target for the AVD in the emulator, which one are you selecting? Based on the name of your application (mapact) you are using Google APIs for the map support, correct? Try to use target 3. Also make sure that in your Manifest you have uses-library to include the map library. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 2, 10:08 pm, geeth ganesh geeth.gane...@gmail.com wrote: when i try to install the apk in emulator i'm getting this error... Y ./adb install /home/.../tools/mapdemo/bin/mapact-debug.apk * daemon not running. starting it now * * daemon started successfully * 56 KB/s (4703 bytes in 0.081s) pkg: /data/local/tmp/mapact-debug.apk Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY] -- with regards Geetha --~--~-~--~~~---~--~~ 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: Map overlays
When I get no response, I'm never sure whether it's because I've asked a really dumb, obvious question, or because no one knows the answer! If someone could indicate which is the more likely scenario, I know whether or not to start programming this manually... but that would be pointless if there's already a quick way to do it :-) On Aug 31, 9:46 am, Neilz neilhorn...@googlemail.com wrote: Hi all. If I add two (or more) overlays (markers) to my map, is there a way I can calculate the center point between the two, and set the zoom accurately so that the map is displayed with all my markers shown? Many 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: problems building an eclipse dev environment as described on http://source.android.com/using-eclips
On Mon, Aug 31, 2009 at 7:13 PM, shuchi muley shuchimu...@gmail.com wrote: Hi Dav I use Eclipse with Android plugin. What I did was to download eclipse, open it up, add the android plugin. What is the problem that you are facing? Are you unable to use Eclipse or Android plugin hasn't properly installed ? That seem to work (http://developer.android.com/sdk/1.5_r1/installing.html). What dies is if I try to follow the instructions on http://source.android.com/using-eclipse. In particular, when I try to Create project from existing source I get the errors I showed in my reply to Fred. Thanks, Dave On Mon, Aug 31, 2009 at 5:17 PM, dmm...@gmail.com wrote: Folks, I've tried a few different things, all with the same outcome. Basically, when I Create project from existing source I get 100s of errors, all of type Java Problem What I did was follow these instructions ( http://source.android.com/using-eclipse) 1. If Eclipse asks you for a workspace location, choose the default. 2. If you have a Welcome screen, close it to reveal the Java perspective. 3. File New Java Project 4. Pick a project name, android or anything you like. 5. Select Create project from existing source, enter the path to your Android root directory, and click Finish. 6. Wait while it sets up the project. (You'll see a subtle progress meter in the lower right corner.) (eclipse-java-galileo-linux-gtk.tar.gz has a slightly different sequence) eclipse is eclipse-java-galileo-linux-gtk.tar.gz linux is 2.6.28-15-generic #49-Ubuntu jre is java-1.5.0-sun-1.5.0.18 I've tried a lot of different combinations with no luck. Am I doing something obviously wrong here? Thanks, Dav -- Regards Shuchi --~--~-~--~~~---~--~~ 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] Best practise for game SurfaceView other view layout
I am developing a game , I used the gametemplate by MrSnowflake. Thus I have a GameView extending the SurfaceView with a thread that handles the drawing etc. I need 4 buttons at the bottom of the screen. These will only use touch events, the game will not use d-pad or trackball events. My questions : 1) Should the surfaceview draw and handle the button touch presses? Or should i add button views to the parent activity, and those button views will handles the touch presses? 2) What is the best practise for layouts for games where surfaceview's are extended? 3) How does one change the size of the canvas thats provided via doDraw (). Currently the canvas is filling the screen not allowing me to see the button views that are below the surfaceview. --~--~-~--~~~---~--~~ 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 Beginner
Hello, I am a new beginner at Android development. I plan to get the HTC Hero coming up soon in the next month and I am excited to use Android on the new mobile device. Anyways, my question I had today was a problem that I’ve been encountering a lot lately with the SDK/Eclipse part of Android… A tutorial named HelloGridView that is located in the user- documentation of the SDK gives a tutorial on how to make a basic slide- show picture based application… I follow the instructions, but when I place this line of code: File to open: HelloGridView java file in SRC public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); GridView gridview = (GridView) findViewById(R.id.gridview); gridview.setAdapter(new ImageAdapter(this)); } COPY AND PASTED OVER ABOVE LINE OF CODE: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } } I get a bunch of underscore red-line errors and I’m not sure about how to go about fixing them… Without fixing them, I can’t use the application in Eclipse, and so on and so forth. I’m very new at this stuff and I can’t seem to understand why I’m getting these underline- red errors… Any help would be much appreciated. Tyler --~--~-~--~~~---~--~~ 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: C# on Android
Koushik Dutta has at least partly got it to run on Android. I don't know how active he is pursuing this, but you can check out his project on github: http://github.com/koush/androidmono/tree/master /Casper On 3 Sep., 14:27, Cao akudo...@gmail.com wrote: Hi everybody, My name is Cao I'm going to start a project base on Windows mobile devices. But I don't really like this OS... At all. I want to work on an Android mobile phone but the software we are using was coded in C# (it is a kind of logging client). My question is this : can we run or code C# software on Android? --~--~-~--~~~---~--~~ 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] C# on Android
Hi everybody, My name is Cao I'm going to start a project base on Windows mobile devices. But I don't really like this OS... At all. I want to work on an Android mobile phone but the software we are using was coded in C# (it is a kind of logging client). My question is this : can we run or code C# software on Android? --~--~-~--~~~---~--~~ 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: Urgent Help Needed: How to get AnimationDrawable to animate when drawing to SurfaceView?
Hi, I've had the very same problem just yesterday. After digging through the framework source, the solution was quiet easy: On scheduling the next frame the view tries to verify the drawable (this is the default implementation for the View class) 6733 /** 6734 * If your view subclass is displaying its own Drawable objects, it should 6735 * override this function and return true for any Drawable it is 6736 * displaying. This allows animations for those drawables to be 6737 * scheduled. 6738 * 6739 * pBe sure to call through to the super class when overriding this 6740 * function. 6741 * 6742 * @param who The Drawable to verify. Return true if it is one you are 6743 *displaying, else return the result of calling through to the 6744 *super class. 6745 * 6746 * @return boolean If true than the Drawable is being displayed in the 6747 * view; else false and it is not allowed to animate. 6748 * 6749 * @see #unscheduleDrawable 6750 * @see #drawableStateChanged 6751 */ 6752 protected boolean verifyDrawable(Drawable who) { 6753 return who == mBGDrawable; 6754 } For the animation to work, your view needs to overwrite the verifyDrawable() method. Something like this should work: protected boolean verifyDrawable(Drawable who) { return (who != null); } Also be sure to call the start() method of your animation after the surface has ben created. (i.e. SurfaceView.getHandler() does not return null) Greetings Andre On 27 Aug., 17:17, jeka jro...@gmail.com wrote: Here is myAnimationDrawable: res/anim/my_anim.xml ?xml version=1.0 encoding=utf-8? animation-list xmlns:android=http://schemas.android.com/apk/res/ android android:oneshot=false item android:drawable=@drawable/empty android:duration=250 / item android:drawable=@drawable/nont_empty android:duration=250 / /animation-list Here is how I use it from the drawing thread, which is implemented as an inner class of my SurfaceView subclass: AnimationDrawablead = (AnimationDrawable) getResources().getDrawable (R.anim.my_anim); ad.setCallback(MyView.this); ad.draw(canvas); ad.start(); this only draws the first frame of the animation and nothing else. Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] HTC Question
I have a couple of question concerning with my phone First... How do i know if my HTC is 32A or 32B?? Second... anyone here has root his phone to cynanogen? any advice i've heard only work with pohone on the US so... -- Atte [[Jose Luis Ayerdis Espinoza]] http://blognecronet.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] HelloWebView - WebViewClient odd behaviour
Hi everybody, Have been going through the HelloWebView tutorial. First I did all the coding my self. Went perfectly fine. Loaded the Google address. Then I added the code for HelloWebViewClient. As soon as I added the webview.setWebViewClient(new HelloWebViewClient()); I end up getting nothing but black in the content area. After working a bit with it, I reversed everything, and copied the code from the tutorial. Same behaviour. If I take the aforementioned line of code out, then it works again. Does anyone have a clue to why this is happening? Kind regards, Christer public class HelloWebView extends Activity { /** Called when the activity is first created. */ private WebView webview; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); webview = (WebView) findViewById(R.id.webview); webview.setWebViewClient(new HelloWebViewClient()); webview.getSettings().setJavaScriptEnabled(true); webview.loadUrl(http://www.google.com;); } private class HelloWebViewClient extends WebViewClient { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { view.loadUrl(url); return 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: HTC Question
If you tell us where you bought it, we can infer it for you. However you may also simply shut down your phone and then turn it on again by holding down Back + Power. This will lead you to the fastboot console where you can read the info. To exit from there again, press the Menu button. Rooting is pretty easy these days, consult xda-developers forums, locate your phone here: http://forum.xda-developers.com/ /Casper On 3 Sep., 19:45, Jose Ayerdis joseayer...@gmail.com wrote: I have a couple of question concerning with my phone First... How do i know if my HTC is 32A or 32B?? Second... anyone here has root his phone to cynanogen? any advice i've heard only work with pohone on the US so... -- Atte [[Jose Luis Ayerdis Espinoza]]http://blognecronet.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] problems getting started
I'm brand new to Android (although not to Eclipse and Java). Yesterday I installed ADT within Eclipse (always latest versions) both on Windows and XP. Then I try creating HelloWorld by following the tutorial. When creatin the android project I get an error on the line setContentView(R.layout.main) == R unknown. I tried ctr-shift-O == import android.R is added but the error remains. Undaunted I follow the tuturial and edit to create a TextView instead == application runs, i.e. I see a mobile terminal image with 'ANDROID' written in the centre. On XP it's strange: after a seemingly long time-out the text font changes and an icon (android) is added after the text. Next I try editing the resource .xml files as suggested in the tutorial in order to change the text. This also implies reintroducing the line with setContentView(R.layout.main) in lieu of the TextView. This time no error reported When inspecting main.xml, the new layout and text look OK. Yet when running the application I keep getting the same mobile picture, i.e. without the new text. It looks like the emulation doesn't work properly. I rebuilt the application from scratch and did another tutorial, with the same negative result. I must say that I'm lost. Can anyone help please --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: A Racing Car App in Android
Hello, You may start with this guide. http://www.futuredesktop.org/developing_android_apps_on_ubuntu.html It will tell you everything from installation to your first Android application. There are pointers to several good samples in step 11). Eg. check the LunarLander example project that comes with the Android SDK. It obviously uses OpenGL ES. Kindly Moma Antero Maxood wrote: I want to develop an application that involves a racing car. The car obviously moves forward, backward, left and right in a 3D environment. I like to make such an app using OpenGL ES. Can someone refer me a tutorial. Thank you, Maxood --~--~-~--~~~---~--~~ 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] getting the value from an attribute of an element in an rss xml feed
hi folks, i've been struggling to find a way to read in a url value from within a tag in an xml feed. im so close but i just can't seem to crack it. i started out using this http://www.devx.com/wireless/Article/39810/1954 as a guide which works great but customising it to read in an attribute of an element is causing me problems. the feed is here: http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml within the xml's 'item' element is media:thumbnail width=X height=X url=X/ it's the url attribute im after. i can get the title back fine but the structure of the media:thumbnail tag means im missing something! what's interesting(!?) is the fact that when i remove the loop and only go for the first item, i get the image back! the line with strImg = imgElement.getAttribute(url) just won't work within the loop... any ideas are greatly appreciated. this is very rough n ready, im learning :-) package apps.httpDownload; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import java.net.URLConnection; import java.util.ArrayList; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.Node; import org.w3c.dom.NodeList; import org.xml.sax.SAXException; import android.app.Activity; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.Bundle; import android.widget.ImageView; import android.widget.TextView; public class httpDownload extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); ArrayListString dataReturned = DownloadRSS(http:// newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml); TextView txt = (TextView) findViewById(R.id.text); for (int i = 0; i dataReturned.size(); i++) { if (i 10) txt.setText(txt.getText() + \n + dataReturned.get(i) + \n); Bitmap bitmap = DownloadImage(dataReturned.get(1)); ImageView img = (ImageView) findViewById(R.id.img); img.setImageBitmap(bitmap); } } private InputStream OpenHttpConnection(String urlString) throws IOException { InputStream in = null; int response = -1; URL url = new URL(urlString); URLConnection conn = url.openConnection(); if (!(conn instanceof HttpURLConnection)) throw new IOException(Not an HTTP connection); try{ HttpURLConnection httpConn = (HttpURLConnection) conn; httpConn.setAllowUserInteraction(false); httpConn.setInstanceFollowRedirects(true); httpConn.setRequestMethod(GET); httpConn.connect(); response = httpConn.getResponseCode(); if (response == HttpURLConnection.HTTP_OK) { in = httpConn.getInputStream(); } } catch (Exception ex) { throw new IOException(Error connecting); } return in; } private Bitmap DownloadImage(String URL) { Bitmap bitmap = null; InputStream in = null; try { in = OpenHttpConnection(URL); bitmap = BitmapFactory.decodeStream(in); in.close(); } catch (IOException e1) { e1.printStackTrace(); } return bitmap; } private ArrayListString DownloadRSS(String URL) { ArrayListString dataArray = new ArrayListString(); InputStream in = null; try { in = OpenHttpConnection(URL); Document doc = null; DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db; try { db = dbf.newDocumentBuilder(); doc = db.parse(in); } catch (ParserConfigurationException e) { e.printStackTrace(); } catch (SAXException e) { e.printStackTrace(); } doc.getDocumentElement().normalize(); NodeList itemNodes = doc.getElementsByTagName(item); String strTitle = ; String strImg = ; for (int i = 0; i itemNodes.getLength(); i++) { Node itemNode = itemNodes.item(i); if (itemNode.getNodeType() == Node.ELEMENT_NODE) { Element itemElement = (Element) itemNode; NodeList titleNodes = itemElement.getElementsByTagName(title); Element titleElement = (Element) titleNodes.item (0); NodeList
[android-beginners] Unsubscribing difficulties
Has anyone tried the email method for unsubscribing and failed? I can't really use the website to unsubscribe since I signed up via email and so I don't have a login into the group. But every time I email to unsubscribe it bounces back with 'unknown address', even though I use the address at the bottom of each message. Ahmad Bushnaq | System Engineer | Idearc Media LLC T. 781-684-6773 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~--- inline: image001.gif
[android-beginners] Re: HTC Question
2009/9/3 Casper Bang casper.b...@gmail.com If you tell us where you bought it, we can infer it for you. However bought it on ebay a couple of month ago you may also simply shut down your phone and then turn it on again by holding down Back + Power. This will lead you to the fastboot console where you can read the info. To exit from there again, press the Menu button. Rooting is pretty easy these days, consult xda-developers forums, locate your phone here: http://forum.xda-developers.com/ ohh is a 32B thank you very much i don't know if i'll be able to root any advice?? http://forum.xda-developers.com/ /Casper On 3 Sep., 19:45, Jose Ayerdis joseayer...@gmail.com wrote: I have a couple of question concerning with my phone First... How do i know if my HTC is 32A or 32B?? Second... anyone here has root his phone to cynanogen? any advice i've heard only work with pohone on the US so... -- Atte [[Jose Luis Ayerdis Espinoza]]http://blognecronet.blogspot.com -- Atte [[Jose Luis Ayerdis Espinoza]] http://blognecronet.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Android Beginner
Hello. It would really help if you posted the errors ou are getting. Is there any logcat output? -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of TheJediSlayer Sent: Thursday, September 03, 2009 11:42 AM To: Android Beginners Subject: [android-beginners] Android Beginner Hello, I am a new beginner at Android development. I plan to get the HTC Hero coming up soon in the next month and I am excited to use Android on the new mobile device. Anyways, my question I had today was a problem that I've been encountering a lot lately with the SDK/Eclipse part of Android. A tutorial named HelloGridView that is located in the user- documentation of the SDK gives a tutorial on how to make a basic slide- show picture based application. I follow the instructions, but when I place this line of code: File to open: HelloGridView java file in SRC public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); GridView gridview = (GridView) findViewById(R.id.gridview); gridview.setAdapter(new ImageAdapter(this)); } COPY AND PASTED OVER ABOVE LINE OF CODE: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } } I get a bunch of underscore red-line errors and I'm not sure about how to go about fixing them. Without fixing them, I can't use the application in Eclipse, and so on and so forth. I'm very new at this stuff and I can't seem to understand why I'm getting these underline- red errors. Any help would be much appreciated. Tyler No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.71/2332 - Release Date: 9/2/2009 6:03 PM --~--~-~--~~~---~--~~ 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: HelloWebView - WebViewClient odd behaviour
Hello Christer. Have you tried that line without the Hello? webview.setWebViewClient(new WebViewClient()); -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Christer Østergaard Sent: Thursday, September 03, 2009 11:06 AM To: Android Beginners Subject: [android-beginners] HelloWebView - WebViewClient odd behaviour Hi everybody, Have been going through the HelloWebView tutorial. First I did all the coding my self. Went perfectly fine. Loaded the Google address. Then I added the code for HelloWebViewClient. As soon as I added the webview.setWebViewClient(new HelloWebViewClient()); I end up getting nothing but black in the content area. After working a bit with it, I reversed everything, and copied the code from the tutorial. Same behaviour. If I take the aforementioned line of code out, then it works again. Does anyone have a clue to why this is happening? Kind regards, Christer public class HelloWebView extends Activity { /** Called when the activity is first created. */ private WebView webview; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); webview = (WebView) findViewById(R.id.webview); webview.setWebViewClient(new HelloWebViewClient()); webview.getSettings().setJavaScriptEnabled(true); webview.loadUrl(http://www.google.com;); } private class HelloWebViewClient extends WebViewClient { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { view.loadUrl(url); return true; } } } No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.71/2332 - Release Date: 9/2/2009 6:03 PM --~--~-~--~~~---~--~~ 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 Beginner
I didn't have any easy way of explaining my issue, so I let the picture do the talking. http://groups.google.com/group/android-beginners/browse_thread/thread/50db00667bd9c39e Thanks for the help so far, Tyler --~--~-~--~~~---~--~~ 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 Beginner
Hi Tyler. I'm sorry but I did not see a picture at the link you posted. -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of TheJediSlayer Sent: Thursday, September 03, 2009 2:56 PM To: Android Beginners Subject: [android-beginners] Re: Android Beginner I didn't have any easy way of explaining my issue, so I let the picture do the talking. http://groups.google.com/group/android-beginners/browse_thread/thread/50db00 667bd9c39e Thanks for the help so far, Tyler No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.71/2332 - Release Date: 9/2/2009 6:03 PM --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Ant build for android-1.5/samples
'android create project' should really not touch any existing files. I've filed a bug internally so that we can fix this asap. thanks, Xav On Wed, Sep 2, 2009 at 1:09 PM, jotobjectsjotobje...@gmail.com wrote: I figured this out on my own. android update project does the right thing if and only if AndroidManifest.xml exists in the target directory (it does for the samples). Example (first start emulator for install) cd platfrom/android-1.5/ApiDemos android update project -t 2 -p . ant debug adb install bin/ApiDemos-debug.apk A readme file in the samples directory with the steps for building the samples would be helpful for newbies. It seems I encountered a bug in android create project as it destructively over wrote files like strings.xml in an existing project - maybe the tool should not allow you to shoot yourself in the foot so easily :-). On Sep 1, 12:46 pm, jotobjects jotobje...@gmail.com wrote: What is the cookbook way to build the sample apps in the android-1.5/ samples SDK directory. There are not any ant build.xml scripts. I tried android create project using the samples directory but that gave me an error saying the directory already existed and then proceeded to overwrite things strings.xml. So that was clearly NOT the right thing to do. I thought it would be nice to build the samples and play with them. How do I do that? I'm looking for the non-Eclipse way using ant - but I don't see how to do it with Eclipse either. Thanks - Paul Copeland -- Xavier Ducrohet Android Developer Tools Engineer Google Inc. --~--~-~--~~~---~--~~ 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 Beginner
OK, seeing the picture does help. On the right is the red line errors. On the left is either a folder with a small red/white X icon on it, or just a larger red/white X icon. If you rest your mouse pointer over the red/white icons on the left side, it will pop up a tool tip and give you the error message. If you hit F2, it will make suggestions for fixing your errors. The F2 feature is called quick fix. If the quick fix doesn't work for all of your errors, then note the verbiage of the error and search google or post here for further help. Happy debugging. :) -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of TheJediSlayer Sent: Thursday, September 03, 2009 2:56 PM To: Android Beginners Subject: [android-beginners] Re: Android Beginner I didn't have any easy way of explaining my issue, so I let the picture do the talking. http://img269.imageshack.us/img269/3442/gridview.png http://groups.google.com/group/android-beginners/browse_thread/thread/50db00 667bd9c39e Thanks for the help so far, Tyler No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.71/2332 - Release Date: 9/2/2009 6:03 PM --~--~-~--~~~---~--~~ 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: Unsubscribing difficulties
On Thursday 03 September 2009 11:14:01 Bushnaq, Ahmad wrote: Has anyone tried the email method for unsubscribing and failed? I can't really use the website to unsubscribe since I signed up via email and so I don't have a login into the group. But every time I email to unsubscribe it bounces back with 'unknown address', even though I use the address at the bottom of each message. I had that experience as well (with the developer group). To unsubscribe I had to do it from the web site. Ahmad Bushnaq | System Engineer | Idearc Media LLC T. 781-684-6773 --~--~-~--~~~---~--~~ 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 getting started
R is a class that is generated at compile-time. In particular, to get R.layout.main you need to create a file names main.xml in your res/layout folder and create the layout in xml format as described in the Dev Guide docs. I've never used the emulator (I push my apps directly to my phone for debugging) so I can't help with that... Let me know if this helps, Justin -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Thu, Sep 3, 2009 at 9:49 AM, leeuwerik l...@qilium.com wrote: I'm brand new to Android (although not to Eclipse and Java). Yesterday I installed ADT within Eclipse (always latest versions) both on Windows and XP. Then I try creating HelloWorld by following the tutorial. When creatin the android project I get an error on the line setContentView(R.layout.main) == R unknown. I tried ctr-shift-O == import android.R is added but the error remains. Undaunted I follow the tuturial and edit to create a TextView instead == application runs, i.e. I see a mobile terminal image with 'ANDROID' written in the centre. On XP it's strange: after a seemingly long time-out the text font changes and an icon (android) is added after the text. Next I try editing the resource .xml files as suggested in the tutorial in order to change the text. This also implies reintroducing the line with setContentView(R.layout.main) in lieu of the TextView. This time no error reported When inspecting main.xml, the new layout and text look OK. Yet when running the application I keep getting the same mobile picture, i.e. without the new text. It looks like the emulation doesn't work properly. I rebuilt the application from scratch and did another tutorial, with the same negative result. I must say that I'm lost. Can anyone help please --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Any way to measure network traffic ?
You could use the netstat application netstat -I interface -b which gives the the number of incoming and outgoing traffic. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 3, 8:59 am, FaticaLabs fel...@felicepollano.com wrote: Sorry, Never mind, I found this:http://www.jaqpot.net/netcounter/ I will study that one since it is open source. On 3 Set, 17:56, FaticaLabs fel...@felicepollano.com wrote: Hi all, I did not find any application for doing this, so I would like to write one ( please tell me if I'm wrong ). I would like to measure how many bytes are sent/received over the internet ( not wifi ). Is there some event ( intent ) to be notified from ? The so collected data will then be reported in a monthly fashion, to measure how the phone company will bill the user. 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: problems getting started
When you create your first Android application you normally have not to do anything besides creating an Android project. The Eclipse ADT is going to create all the needed resources for you. Check the following - Your Eclipse: for example Version: 3.4.1 Build id: M20080911-1700 - the Problems-tab in Eclipse editor - make sure that ADT is correctly installed -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 3, 8:49 am, leeuwerik l...@qilium.com wrote: I'm brand new to Android (although not to Eclipse and Java). Yesterday I installed ADT within Eclipse (always latest versions) both on Windows and XP. Then I try creating HelloWorld by following the tutorial. When creatin the android project I get an error on the line setContentView(R.layout.main) == R unknown. I tried ctr-shift-O == import android.R is added but the error remains. Undaunted I follow the tuturial and edit to create a TextView instead == application runs, i.e. I see a mobile terminal image with 'ANDROID' written in the centre. On XP it's strange: after a seemingly long time-out the text font changes and an icon (android) is added after the text. Next I try editing the resource .xml files as suggested in the tutorial in order to change the text. This also implies reintroducing the line with setContentView(R.layout.main) in lieu of the TextView. This time no error reported When inspecting main.xml, the new layout and text look OK. Yet when running the application I keep getting the same mobile picture, i.e. without the new text. It looks like the emulation doesn't work properly. I rebuilt the application from scratch and did another tutorial, with the same negative result. I must say that I'm lost. Can anyone help please --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: problems getting started
Regarding the cases when the R class does not get generated/updated in time, try the following (in no particular order): - Manually delete the R.java class, so the next time it will generate a completely new one. - Right click on the project - Android Tools - Fix Project Properties - Clean the project under Project - Clean - Restart Eclipse Regarding the case when updating the text in the layout did not reflect in the emulator, are you sure the latest project was deployed to the emulator? Can you confirm that the APK is built and pushed to the emulator by looking at the console? Sometimes, the ADB has issues and it disconnects with the emulator. If this was the case, your emulator was still running the previous version. On Sep 3, 11:49 am, leeuwerik l...@qilium.com wrote: I'm brand new to Android (although not to Eclipse and Java). Yesterday I installed ADT within Eclipse (always latest versions) both on Windows and XP. Then I try creating HelloWorld by following the tutorial. When creatin the android project I get an error on the line setContentView(R.layout.main) == R unknown. I tried ctr-shift-O == import android.R is added but the error remains. Undaunted I follow the tuturial and edit to create a TextView instead == application runs, i.e. I see a mobile terminal image with 'ANDROID' written in the centre. On XP it's strange: after a seemingly long time-out the text font changes and an icon (android) is added after the text. Next I try editing the resource .xml files as suggested in the tutorial in order to change the text. This also implies reintroducing the line with setContentView(R.layout.main) in lieu of the TextView. This time no error reported When inspecting main.xml, the new layout and text look OK. Yet when running the application I keep getting the same mobile picture, i.e. without the new text. It looks like the emulation doesn't work properly. I rebuilt the application from scratch and did another tutorial, with the same negative result. I must say that I'm lost. Can anyone help please --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Want to graduate from android-beginners to android-developers
'looks like someone in Ukrane got it working... Maybe you gotta turn on gps or absofrickensomething. http://www.wikispeedia.org/l/maps.html S, where can I buy a reasonably priced android 1.5 phone? chao jp --~--~-~--~~~---~--~~ 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: force orientation change?
Hi Jeffrey I previously sent you a reply with this line that you place in the manifest. android:screenOrientation=portrait I had only just found it and while trying to find out whether you can change the orientation by code while the program is running, I found some tips that didn't work ,but after playing around with them I have got these two lines to work in the main body of code. setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); You will have to import as follows import android.content.pm.ActivityInfo; It is really annoying that we have to search so much for such basic information as this. Good luck with your app Mike - Original Message - From: Jeffrey Blattman To: android-beginners@googlegroups.com Sent: Wednesday, September 02, 2009 2:30 PM Subject: [android-beginners] force orientation change? wondering if there is a way to force the screen orientation one way or the other ... regardless of the phone's actual orientation. 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 -~--~~~~--~~--~--~--- inline: qr-gmail.png
[android-beginners]
I am android beginner looking for play youtube in android I need a source code in android --~--~-~--~~~---~--~~ 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]
I am android beginner looking for source code for mediaplayer in android --~--~-~--~~~---~--~~ 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: easy stuff please reply
i checked this but it takes string as a parameter but write as a charactor only in the file.so again space is there. On Thu, Sep 3, 2009 at 7:35 PM, Justin Anderson janderson@gmail.comwrote: Why not use one of the methods from OutputStreamWriter that takes a string as a parameter? http://developer.android.com/reference/java/io/OutputStreamWriter.html -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Thu, Sep 3, 2009 at 6:15 AM, kapil.k kapnk...@gmail.com wrote: hello guys i am writing the data in text file with help of fos = new FileOutputStream(file); out1 =new OutputStreamWriter(fos); out=new DataOutputStream(fos); String Dpass = new String (1008); out.writeChars(Dpass); but in file due to char it is leaving space after each charactor.so how should i store so the will be no sapce. also which api should i used to delete containt of the file? thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: easy stuff please reply
Have you tried using PrintWriter? -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The coverage you need at the price you want The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 3, 9:33 pm, kapnk...@gmail.com wrote: i checked this but it takes string as a parameter but write as a charactor only in the file.so again space is there. On Thu, Sep 3, 2009 at 7:35 PM, Justin Anderson janderson@gmail.comwrote: Why not use one of the methods from OutputStreamWriter that takes a string as a parameter? http://developer.android.com/reference/java/io/OutputStreamWriter.html -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Thu, Sep 3, 2009 at 6:15 AM, kapil.k kapnk...@gmail.com wrote: hello guys i am writing the data in text file with help of fos = new FileOutputStream(file); out1 =new OutputStreamWriter(fos); out=new DataOutputStream(fos); String Dpass = new String (1008); out.writeChars(Dpass); but in file due to char it is leaving space after each charactor.so how should i store so the will be no sapce. also which api should i used to delete containt of the file? thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---