[android-beginners] About accessing text file in android

2008-05-07 Thread Analdin Judy
Hi, Below is my code for accessing text file package com.IW.TestText; import java.io.BufferedReader; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStreamReader; import android.app.Activity; import android.os.Bundle; import android.util.Log; public class Test

[android-beginners] Re: About accessing text file in android

2008-05-07 Thread Dan U.
Looks like an issue when putting it in the Activity constructor. Perhaps because the Activity has not been fully set up in terms of what Context it is using. Try putting this in the onCreate. On May 7, 5:22 am, "Analdin Judy" <[EMAIL PROTECTED]> wrote: > Hi, > > Below is my code for accessing tex

[android-beginners] Style text in color problem

2008-05-07 Thread [EMAIL PROTECTED]
Hi all, I am trying to edit a styled text. My goal is to display a string, for example "This is a color string" and the word "color" is in different color. My first solution is to create a string resource like this values.xml This is a color string TextTest.java String text = g

[android-beginners] HI

2008-05-07 Thread Hitesh
HI MADM/SIR i m getting the problem with progressbar. when i dissmiss the progressbar i m getting null pointer exception. plz sugget me a solution. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" g

[android-beginners] Error in HelloAndroid: Could not find /bin/HelloAndroid.apk!

2008-05-07 Thread gonzalo
Hello I have installed Eclipse and the ADT pluguin. I follow Step-by-Step the HelloAndroid example and when i run it i obtain: ... [2008-05-07 18:57:23 - HelloAndroid] Android Launch! [2008-05-07 18:57:23 - HelloAndroid] adb is running normally. [2008-05-07 18:57:23 - HelloAndroid] Could not find

[android-beginners] Re: Error in HelloAndroid: Could not find /bin/HelloAndroid.apk!

2008-05-07 Thread Mark Murphy
gonzalo wrote: > Hello > I have installed Eclipse and the ADT pluguin. I follow Step-by-Step > the HelloAndroid example and when i run it i obtain: > ... > [2008-05-07 18:57:23 - HelloAndroid] Android Launch! > [2008-05-07 18:57:23 - HelloAndroid] adb is running normally. > [2008-05-07 18:57:23 -

[android-beginners] i m getting problem with progresbar in android

2008-05-07 Thread Hitesh
hi madam/sir i m getting the problem with progressbar in android. when i dissmis the progressbar i m gettiong null pointer exception. suggest me answer madam Thank u --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "A

[android-beginners] I have a strange Bug

2008-05-07 Thread Ahmed Abdel samea
i am making a music player called Mobi3 I had a strange problem when i made a playlist of the form of ListView and contain all music in it like the one in WinAmp so when i shuffle i delete all entries in the listview then get the new entries after shuffle and insert it in the list view again. and

[android-beginners] Re: I have a strange Bug

2008-05-07 Thread Dan U.
I think you should try something like songListView.getAdapter().getItem(mNowPlaying) and I think it will be a TextView object in your case. On May 7, 11:23 am, Ahmed Abdel samea <[EMAIL PROTECTED]> wrote: > i am making a music player called Mobi3 > > I had a strange problem when i made a playlist

[android-beginners] Re: i m getting problem with progresbar in android

2008-05-07 Thread Dan U.
You will really have to post more information like your code. And actually, the stack trace likely has the line number in your code that this happens, so it should be fairly obvious what is null at that line. My best guess is that your ProgressDialog instance is null for some reason. On May 7, 10

[android-beginners] Re: Style text in color problem

2008-05-07 Thread Dan U.
The first example I'm pretty sure doesn't work. I think it only supports bold, italic, and maybe underline tags. I haven't tried doing what you are, but I remember someone having the same kind of question. I think the advice was to look at SpannableString and SpannableStringBuilder On May 7, 9:13

[android-beginners] how to create a widget dynamically after setContenView

2008-05-07 Thread rukiman
Ok I want to be able to create a widget dynamically after a setContentView. Here is what I have so far: public class Demo extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle icicle) { super.onCreate(ic

[android-beginners] unsubscribe my account

2008-05-07 Thread Tim Park
Please unsubscribe my Android beginner's account Tim Park Team Manager Technical Support Team P 888-339-0100, F 213-365-1131 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To pos

[android-beginners] Re: problem in running HelloAndroid.....

2008-05-07 Thread Justin (Google Employee)
Does your project's build path (Project > Properties > Build Path) include the Android Library? I interpret this error to basically be saying that, that the Android libraries are not in the build path. Cheers, Justin Android Team @ Google On Apr 28, 8:57 pm, "sree kanth" <[EMAIL PROTECTED]> wrot

[android-beginners] Re: failure to connect to database

2008-05-07 Thread Justin (Google Employee)
Android doesn't support java[x].rmi and you probably wouldn't want to use this code for issuing requests for many of the same reasons you wouldn't want to use JDBC. These code bases are built for more reliable, lower latency, and bandwidth rich networks that most Android devices are going to opera

[android-beginners] Re: null uri in getContentResolver().insert()

2008-05-07 Thread Justin (Google Employee)
As indicated in a previous post People.NUMBER is NOT part of the People content provider. If you notice, this column is part of People.PhoneColumns, which means it belongs to Phones, NOT people. I realize this is a bit confusing. Here is the code you want: // create the new person Con

[android-beginners] Re: Hi,I have a problem using android http connection demo

2008-05-07 Thread Justin (Google Employee)
Sorry, can you provide the link to where you got this demo? Thanks, Justin Android Team @ Google On May 6, 3:10 am, "resbonus(USOON.net)" <[EMAIL PROTECTED]> wrote: > Hi ,everyone.I am using http connection demo,the following is the > code.In the eclipse debugging mode, I can't get the error > m

[android-beginners] Re: UI Elements distinguishing

2008-05-07 Thread Justin (Google Employee)
The do all inherit form java.lang.Object because every class in Java does. A Window is an abstract class that defines a standard set of behaviors that its descendants will have. The View class inherits from Window and provides a basic implementation of how to create a rectangular region of the s

[android-beginners] Re: Looking for a fast UI platform for embedded linux

2008-05-07 Thread Justin (Google Employee)
Ummm, Android doesn't actually run a Java VM. Its runs Dalvik. All your questions are fairly basic and covered by things like "What is Android?" ( http://code.google.com/android/what-is-android.html ) and the FAQs ( http://code.google.com/android/kb/index.html ). There are some great intro videos

[android-beginners] Re: modifying the People content provider

2008-05-07 Thread Justin (Google Employee)
What do you want to modify here? The Contacts content provider or the UI of the Contacts application included on the emulator? You could extend the Contacts content provider or wrap it in another class that maps from the strings that you want to use to the strings that it uses. The Contacts conte

[android-beginners] Re: HI

2008-05-07 Thread dolan kundu
hi Hitesh, please cearly explain the problem. On Wed, May 7, 2008 at 9:41 PM, Hitesh <[EMAIL PROTECTED]> wrote: > > HI MADM/SIR > i m getting the problem with progressbar. > when i dissmiss the progressbar i m getting null pointer exception. > plz sugget me a solution. > > > --~--~-~-

[android-beginners] Re: Error in HelloAndroid: Could not find /bin/HelloAndroid.apk!

2008-05-07 Thread dolan kundu
Hello, I just run the same program in NetBeans, but no error in this program. nicely its running. and giving output. On Wed, May 7, 2008 at 10:37 PM, gonzalo <[EMAIL PROTECTED]> wrote: > > Hello > I have installed Eclipse and the ADT pluguin. I follow Step-by-Step > the HelloAndroid example and w

[android-beginners] Re: About accessing text file in android

2008-05-07 Thread Analdin Judy
Hi, I put it in the oncreate().But i got error message"did not call through oncreate()" Thanks judy --~--~-~--~~~---~--~~ 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] Re: how to create a widget dynamically after setContenView

2008-05-07 Thread Megha Joshi
You can always create layouts programatically, and it is also possible to add widgets programatically to the layouts declared in xml files. All widgets provide constructors which you can use to create them programatically..There are methods corresponding to each xml attribute for any widget, so you