[android-developers] Re: Call out to the community about the poor quality of Android's error messaging

2008-04-04 Thread acopernicus
Thanks for the reply Andrex...but happily Android's poor error messaging is definitely not an issue with the Java language. It's a matter of proper programming and understanding that others must be able to develop off your code base. I can handle instability but operating in the dark because of

[android-developers] Re: importing java 6 libs

2008-04-04 Thread Lahiru
Hi, Thanks a lot for the reply,,, I'll try with sources.. :) Thanks again.! On Apr 5, 12:34 am, David Given <[EMAIL PROTECTED]> wrote: > Lahiru wrote: > > [...] > > >> I need to import some javax packages comes with Java6. > >> I added required jre in eclipse project and successfully imported

[android-developers] support of handwritten Input

2008-04-04 Thread Danny
Hi All, is there any API's that support developing applications for online handwritten input?. or is the Android emulator supports online handwritten input? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Dev

[android-developers] Re: Call out to the community about the poor quality of Android's error messaging

2008-04-04 Thread Andrex
Well that's what you get when you program in the Java language... Although I agree, some errors are seemingly random. It'd be nice to have some sort of stability, but I'll make do because of how great Android is now already. On Apr 5, 12:19 am, acopernicus <[EMAIL PROTECTED]> wrote: > Yeah...the

[android-developers] Re: Why don't System.err and System.out point to the console?

2008-04-04 Thread Andrex
It's because the Android code isn't really Java, it's Dalvik, and the Android emultator makes you report those things to the Dalvik output. You yourself listed the process to print errors there, I suggest you use it. ;) On Apr 4, 7:34 pm, Anil <[EMAIL PROTECTED]> wrote: > It would be good for And

[android-developers] Call out to the community about the poor quality of Android's error messaging

2008-04-04 Thread acopernicus
Yeah...the Challenge deadline is growing closer, so I needed to spread a a little feedback to the Android team about the many days I've just spent working around issues in the API. OK...first off...some of those issues were mine but my biggest waste of time has been tracking down error messaging

[android-developers] Have my custom streaming utility but have remaining MediaPlayer isses

2008-04-04 Thread acopernicus
As some of you now know, I have a tutorial on my site that discusses a streaming function that I wrote as a workaround to the buggy streaming currently available (see blog.pocketjourney.com). It addresses most of my issues but these still persist: 1) I still cannot stream .mp4 files using the bu

[android-developers] MediaPlayer and mutli-threaded issues along with new streaming tutorial

2008-04-04 Thread acopernicus
Just a quick note on my recent experiences with the MediaPlayer. Turns out it is highly dependent on making calls on the main UI thread and interacting with it from a deeply threaded mindset. Sorry for being vague but if you know anything about the issues around multi-threaded programming, then k

[android-developers] Re: gtalkservice.IGTalkSession.logout() causes GTalk Service to crash

2008-04-04 Thread zeaster
I got the similar problem. set one account in GTalk settings, remove this account. when set another account in GTalk settings, gtalk service crashes too. It seems gtalk logout() can not work fine. --~--~-~--~~~---~--~~ You received this message because you are sub

[android-developers] Re: How do I wipe the contacts.db from within an Activity

2008-04-04 Thread xingye
change the order of the three delete methods and try it again. On 4月5日, 上午3时04分, NikB <[EMAIL PROTECTED]> wrote: > I am writing a demo app in which I want to bootstrap the contacts > database each time I run my app. I have successfully managed to > insert contacts into the people, phones, and co

[android-developers] Re: WebView very weird behavior loading http://google.com

2008-04-04 Thread Diego Torres Milano
Thanks a lot for your answer. Would you tell me why the simplest URL isn't displayed correctly ? I can see the DDMS logs and the page is downloaded. On Apr 4, 1:25 am, "Megha Joshi" <[EMAIL PROTECTED]> wrote: > Hi, > > Try using: > > w.loadUrl("http://www.google.com/ig?hl=en";); > > That shoul

[android-developers] Re: GTalk Data Send parse error!

2008-04-04 Thread Megha Joshi
This looks like a bug. You may want to log this in the issue tracker. When you file a bug, please include a short code snippet from APIDemos like the one below, to make it more clear: private Intent getIntentToSend() { Intent intent = new Intent(GTalkDataMessageReceiver.ACTION);

[android-developers] Re: Is it safe to share a View among several layouts?

2008-04-04 Thread Anil
35x35 pixels. this is just the audio 'speaker' icon on a button. On Apr 4, 11:28 am, hackbod <[EMAIL PROTECTED]> wrote: > On Apr 4, 5:44 am, Anil <[EMAIL PROTECTED]> wrote: > > > No, it is a small image: 863 bytes > > The second time, I have already removed it from the layout, and am > > calling

[android-developers] Why don't System.err and System.out point to the console?

2008-04-04 Thread Anil
It would be good for Android phones to have a rolling log file that doubles as a console. That way, when there are problems with applications in production, the user can simply push the logs to a server - just as Microsoft does now. It is weird for developers to not have familiar tools like e.prin

[android-developers] ServiceState Radio On?

2008-04-04 Thread Kevin Wu
Hello, How do I check whether or not the radio is on and an internet connection can be established? My application requires connection to my server and I need to make sure that G/3G radio is available before I can make a connection. I'm looking at ServiceState: http://code.google.com/android/re

[android-developers] Tutorial: Custom Media Streaming for Android's MediaPlayer

2008-04-04 Thread acopernicus
I have had absolutely no luck streaming audio using the built-in MediaPlayer functionality so I decided to write my own streaming utility for the MediaPlayer. My solution is now documented as a tutorial on my blog including including source code: blog.pocketjourney.com. Please check it out & le

[android-developers] Re: How to setup a server for streaming audio files

2008-04-04 Thread acopernicus
Still no luck streaming the audio using the built-in MediaPlayer functionality so I decided to write my own streaming utility for the MediaPlayer. My solution is now documented as a tutorial on my blog including including source code: blog.pocketjourney.com. Please check it out & leave a commen

[android-developers] Re: Any one tried uisng mediaplayer example ,I ma unable to play video file from local directory

2008-04-04 Thread acopernicus
Hi guys, I decided to write my own streaming utility for the MediaPlayer. My solution is now documented as a tutorial on my blog including including source code: blog.pocketjourney.com. Please check it out & leave a comment on my blog if you have questions. Best of luck, Anthony --~--~--

[android-developers] gtalkservice.IGTalkSession.logout() causes GTalk Service to crash

2008-04-04 Thread android munky
Has anybody else experienced com.google.android.gtalkservice.IGTalkSession.logout() causing the GTalkService to crash? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group,

[android-developers] Re: MediaPlayer example: Has anyone been able to stream an .mp4 file yet?

2008-04-04 Thread acopernicus
I decided to take matters into my own hands and to write my own streaming utility for the MediaPlayer. I created a tutorial on my solution and posted everything including source code onto my blog: blog.pocketjourney.com. Please check it out & leave a comment on my blog if you have questions. B

[android-developers] Re: How does a user input a text on HVGA portrait mode with no keyboard, in the actual device.

2008-04-04 Thread Megha Joshi
The actual devices will have a keyboard. On Fri, Apr 4, 2008 at 3:16 PM, Peli <[EMAIL PROTECTED]> wrote: > > I assume the question was more about actual devices when they ship > later this year. How will users input text on those devices? Will > there be a "virtual keyboard"? (so far I have not s

[android-developers] Re: Reset of the emulator?

2008-04-04 Thread Digit
emulator -wipe-data On Fri, Apr 4, 2008 at 9:00 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > On Vista, I deleted the userdata.img file, but after that I am not > able to launch the emulator at all. > Is there any other way to do a hard reset on Android emulator? > > On Feb 9, 7:33 am, zur

[android-developers] Re: How does a user input a text on HVGA portrait mode with no keyboard, in the actual device.

2008-04-04 Thread Peli
I assume the question was more about actual devices when they ship later this year. How will users input text on those devices? Will there be a "virtual keyboard"? (so far I have not seen anything about this in the SDK). Peli On Apr 4, 7:54 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote: >  Hi, > >

[android-developers] Re: RadioButton size

2008-04-04 Thread hackbod
Don't count on the size of the controls in the light theme being smaller. I think the only reason they are smaller right now is because the graphics for that theme haven't been done yet, so they are still the old non-touch graphics. On Apr 4, 1:40 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote: >  

[android-developers] Re: Custom listview

2008-04-04 Thread NikB
On the ImageView question, this should work: ImageView image = (ImageView)findViewById(R.id.avatar); Bitmap bitmap = BitmapFactory.decodeFile(photoPath); //this is the full path in my case it is /sdcard/sample/foo.png image.setImageBitmap(bitmap); The setImageDrawable(int drawable) with a refer

[android-developers] Re: RadioButton size

2008-04-04 Thread Megha Joshi
There is not attribute to change the radio button image. For light theme this image is a bit smaller as compared to the standard theme. You can change the size of the text associated with the radio button by using android:textSize attribute. On Thu, Apr 3, 2008 at 6:23 PM, DotNetCode <[EMAI

[android-developers] Re: Deploy from a webserver

2008-04-04 Thread Shane Isbell
Hi Mikael, I've got remote downloading working. You can go to code.google.com/p/jvending and download a provisioning server that handles stocking and delivery of Android apps. It uses OMA OTA descriptors (a superset of JAD descriptors). I'm going to shortly release the application manager (ASLv2.0

[android-developers] Re: importing java 6 libs

2008-04-04 Thread David Given
Lahiru wrote: [...] >> I need to import some javax packages comes with Java6. >> I added required jre in eclipse project and successfully imported >> several javax pkgs. >> >> But in runtime I'm getting class not found error,... is there any >> other way to link jre 6 libs with android? [...] > Any

[android-developers] Re: importing java 6 libs

2008-04-04 Thread Lahiru
Any help please? :) On Apr 4, 6:39 pm, Lahiru <[EMAIL PROTECTED]> wrote: > Hi > > I need to import some javax packages comes with Java6. > I added required jre in eclipse project and successfully imported > several javax pkgs. > > But in runtime I'm getting class not found error,... is there any

[android-developers] Re: Deploy from a webserver

2008-04-04 Thread BMT
Did any of you get the remote download to work? I am working on a similar probelm. The basic system is supposed to work like this: The user gets a message containing a personalized "link" this link points to a personalized application that gets downloaded and installed to the phone. The current A

[android-developers] how to change Menu show up as VERTICAL?

2008-04-04 Thread Android-Berry
Hi There, After creating the menuitems and add them to Menu, they are showing HORIZONTAL instead of VERITCAL, like the following style: I3 | ITEM4 | ITEM5 -- FIRST 1 | SECOND 2 how to make them display like vertical alignment ITEM5 ITEM4 I3 SECOND 2 FIRST 1 Than

[android-developers] Re: Image not correctly viewed

2008-04-04 Thread Andrea Bernardi
Thanks for your answers, but the problem persists. The code function but the given image " http://vdt.meteo.alice.it/meteo/imgs/icone/small/previsioni/notte/sereno.png"; is viewed bad, not perfectly as in the browser, the pixel are more big. The image given from xingye "http://www.yexing.org/image.

[android-developers] Re: Strange slow behavior in Emulator and how to recreate it (CameraPreview)

2008-04-04 Thread qvark
Also, try rotating the device (Ctrl-Alt-Pg. down). The ratio (frames/ sec) is much slower in landscape mode than in portrait mode. I suppose it is just an emulator issue and it will not be a problem with the actual devices, so I'm not too much worried about it... On 4 abr, 15:05, Franco <[EMAIL

[android-developers] Re: Aver the air download and install application

2008-04-04 Thread BMT
Thanks Dan: Seems like I am not alone looking for a solution. This seems like something that would be fundametal for a wireless device. The ability to download and install an application. Is there a preferred way of installing applications on the device? Thanks, I'll keep looking, and the referen

[android-developers] Re: MediaPlayer example: Has anyone been able to stream an .mp4 file yet?

2008-04-04 Thread Markiv
I am having the same issue...let me know if you figure out a solution... Vikram On Apr 4, 1:46 am, acopernicus <[EMAIL PROTECTED]> wrote: > Please feel free to test your working code against my .mp4 file if > your code works. It's possible there's something wrong with my .mp4 > file, but I doub

[android-developers] How do I wipe the contacts.db from within an Activity

2008-04-04 Thread NikB
I am writing a demo app in which I want to bootstrap the contacts database each time I run my app. I have successfully managed to insert contacts into the people, phones, and contact_methods tables. I want to delete all rows in each of these tables. I want to do it through the content resolver a

[android-developers] Re: Reset of the emulator?

2008-04-04 Thread [EMAIL PROTECTED]
On Vista, I deleted the userdata.img file, but after that I am not able to launch the emulator at all. Is there any other way to do a hard reset on Android emulator? On Feb 9, 7:33 am, zurdo1119 <[EMAIL PROTECTED]> wrote: > On Win XP delete C:\Documents and Settings\[YOUR_USER_HERE]\Local > Setti

[android-developers] Bold a part of the TextView

2008-04-04 Thread GUS
Is there any way to bold olny one word of the text inside a TextView? Thx in advance. Gustavo Avila http://www.androidforum.com.br --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post t

[android-developers] Is ScrollView the only way Scroll the Screen?

2008-04-04 Thread gilgantic
Hi All, Is it common to use ScrollView as the parent layout for scrolling on a screen? My screens normally go beyond the view of the screen. Especially when I test using the QVJA emulator skins. Below is example of what most of my layouts for app look like. http://schemas.android.com/apk/res/

[android-developers] Re: Why bitmap cache was removed in mc5?

2008-04-04 Thread Megha Joshi
>When I loaded images from the web, it was quite useful to use caching >of images Could you give me some more background information on this? What APIs did you use that are now not available or what behavior did you see in m3 which is no longer visible? On Thu, Apr 3, 2008 at 1:37 PM, rostik sl

[android-developers] Re: Adding xmpp users into xmppDataMessageCapable table

2008-04-04 Thread [EMAIL PROTECTED]
Use a contentresolver and use the GTalkDataMessageCapable table: that should work On 4 apr, 18:11, Jorge <[EMAIL PROTECTED]> wrote: > Hi, > I am trying to add an users into xmppDataMessageCapable table, without > success. > This is my code: > >

[android-developers] Re: How does a user input a text on HVGA portrait mode with no keyboard, in the actual device.

2008-04-04 Thread Megha Joshi
Hi, I am assuming that you are trying to simulate keyevents. You can use the APIs in the instrumentation class, particularly sendkeysync()

[android-developers] Re: Android EditText Bug?

2008-04-04 Thread Megha Joshi
Hi, I think it might be because you typed public ExitTextView(Context ctx, Object obj), instead of public EditTextView(Context ctx, Object obj) in your code. Thanks, Megha On Thu, Apr 3, 2008 at 11:02 AM, Android-Berry <[EMAIL PROTECTED]> wrote: > > Hi All, > > Is there anyone meets this issue?

[android-developers] Re: JAD - Java Application Descriptor like

2008-04-04 Thread David Given
Raja Nagendra Kumar wrote: [...] > Once the application is compiled and packed, is there a way provide > external properties to the andorid application. Similar to JAD file in > j2me. Yes; you can attach metadata to activities by putting it in your manifest.xml file. You can then read it by look

[android-developers] Re: cannot get a spinner to bind to a cursor

2008-04-04 Thread android_newbie
Hi, I'm trying to display items from a database in a Spinner. I've read the other posts on this but my items still aren't showing up and none of the posts show a complete solution. To help debug the error, I added a ListView and the items from the same db call display without any problem in the

[android-developers] Re: java.text.SimpleDateFormat appears to be broken

2008-04-04 Thread Bill
OK, my mistake capitalizing the pattern. SimpleDateFormat works properly if I give the pattern correctly. On Apr 3, 8:20 pm, Bill <[EMAIL PROTECTED]> wrote: > Hello all. On the latest M5 I've tried creating a DateFormat object as > follows: > > DateFormat df = newSimpleDateFormat("-MM-DD

[android-developers] Re: Getting the state of a checkbox inside of a listview

2008-04-04 Thread Romain Guy
Hi guys, Here is a sample activity that shows how to create a list of checkboxes: import android.app.ListActivity; import android.os.Bundle; import android.widget.ListView; import android.widget.ArrayAdapter; import android.widget.CheckBox; import android.widget.CompoundButton; import android.wi

[android-developers] Re: Is it safe to share a View among several layouts?

2008-04-04 Thread hackbod
On Apr 4, 5:44 am, Anil <[EMAIL PROTECTED]> wrote: > No, it is a small image: 863 bytes > The second time, I have already removed it from the layout, and am > calling getImageResource again, so I am surprised it is much quicker. Resources are cached. The primary difference between the two runs i

[android-developers] Re: proxy

2008-04-04 Thread Raja Nagendra Kumar
Got the solution on closure look at HttpClient api docs some thing like this.. HttpClient client = new HttpClient(); client.getHostConfiguration().setProxy("tejanag", 8118); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: Image not correctly viewed

2008-04-04 Thread Charlie Collins
I use a snippet that looks almost identical to yours and it seems to work fine. The images I pull are from a Yahoo API, and they vary, but they all seem to work. When you say "this don't function" what do you mean, is there an error in the log, a stacktrace? This is the snippet I use (which aga

[android-developers] JAD - Java Application Descriptor like

2008-04-04 Thread Raja Nagendra Kumar
Hi, Once the application is compiled and packed, is there a way provide external properties to the andorid application. Similar to JAD file in j2me. Regards, Raja Nagendra Kumar, C.T.O www.tejasoft.com --~--~-~--~~~---~--~~ You received this message because you ar

[android-developers] Adding xmpp users into xmppDataMessageCapable table

2008-04-04 Thread Jorge
Hi, I am trying to add an users into xmppDataMessageCapable table, without success. This is my code: * SQLiteDatabase db; ContentValues values = new ContentValues(); String myResource = "Resource" ; String myEmail = "[EMAIL PROTECTED]"; Cursor c

[android-developers] Re: Any one tried uisng mediaplayer example ,I ma unable to play video file from local directory

2008-04-04 Thread Cheryl Sedota
I can play a video from a local directory just fine. I am using a video podcast intended for the iPhone and I put it in an sdcard image and accessed it at "/sdcard/myVideos/TheVideoPodcast.m4v" Then use VideoView in your layout XML and set its URI programatically in your activity: Video

[android-developers] proxy

2008-04-04 Thread Raja Nagendra Kumar
Hi, I have set the proxy using the commands adb shell sqlite3 /data/data/com.google.android.providers.settings/databases/ settings.db "INSERT INTO system VALUES(99,'http_proxy','192.168.0.88:8118');" sqlite3 /data/data/com.google.android.providers.settings/databases/ settings.db "SELECT * FROM s

[android-developers] Re: Image not correctly viewed

2008-04-04 Thread xingye
// ImageView iv = (ImageView)convertView.findViewById(R.id.image); // iv.setImageResource(R.drawable.badge); // Uri uri = Uri.parse("http://www.yexing.org/image.axd? picture=browse.png"); // iv.setImageURI(uri); /

[android-developers] Re: View Parents

2008-04-04 Thread [EMAIL PROTECTED]
thx megat Joshi i´m currently use m5rc15 ,but i solverd the problem. I was triying to assign a static view between 2 activities and when return to main activity show exception. thats occurs because second activity catch the static view an throws the exception when back to main activiy and tries to

[android-developers] Reference to current Activity being displayed/shown

2008-04-04 Thread Raja Nagendra Kumar
Hi, Is there a way to get the reference of current activity beeing showin or displayed, though some static class. Regards, Raja Nagendra Kumar, C.T.O www.tejasoft.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

[android-developers] Image not correctly viewed

2008-04-04 Thread Andrea Bernardi
Hello at all, i'm developing on Android since the last month and I've encountered this problem in these days. If I download an image from Internet with this code isn't correctly viewed: package org.ti.weather; import java.io.BufferedInputStream; import java.io.IOException; import java.io.InputSt

[android-developers] importing java 6 libs

2008-04-04 Thread Lahiru
Hi I need to import some javax packages comes with Java6. I added required jre in eclipse project and successfully imported several javax pkgs. But in runtime I'm getting class not found error,... is there any other way to link jre 6 libs with android? Please help.. Thanks in advance. Lahiru.

[android-developers] Re: Aver the air download and install application

2008-04-04 Thread Dan U.
I think http://groups.google.com/group/android-developers/browse_thread/thread/d6fddac0a408e59f/0159a8a2759e7280?lnk=gst&q=apk+browser#0159a8a2759e7280 is about the only place I've seen mention of doing this. Sounds like it's not possible with the browser, or at least not yet. On Apr 4, 6:25 am,

[android-developers] Re: GTalk subscription requests broken ..

2008-04-04 Thread writser
Hi Megha Joshi, Thanks for your reply. As far as we can see the subscription info is not in that database. In fact, the scheme of that database does not contain a "subscriptions" table, as you can see below. We made this dump just after sending a subscription request to our emulator. regards, Wr

[android-developers] Aver the air download and install application

2008-04-04 Thread BMT
Dear developers: I must have missed something obvious: I am developing an application that is required to be downloaded and installed on a pristine Android phone. When I try to download the .apk file by itself the browser tries to display it, and when I send it as a .zip file it turns out as a un

[android-developers] Strange slow behavior in Emulator and how to recreate it (CameraPreview)

2008-04-04 Thread Franco
Hi, Using the CameraPreview example and doing some image processing I found a strange slow behavior in the Emulator. I have little experience with java and Android (C/C++ background) so I do not know if it is a true issue of the emulator or some strange memory/thread handling that I am not aware.

[android-developers] Re: Is it safe to share a View among several layouts?

2008-04-04 Thread Anil
When I print out the before/after times around the 3 statements, it takes 1 second. Log.v(TAG, new java.util.Date().toString()); VERBOSE/BEFORE(768): Fri Apr 04 12:35:23 GMT 2008 VERBOSE/AFTER(768): Fri Apr 04 12:35:24 GMT 2008 However it takes 3.5 seconds to see the button in the layout. So th

[android-developers] Re: JavaDoc

2008-04-04 Thread luke
Yes, but there are a couple of problems with the javadoc there: (1) AFAICT Eclipse doesn't let you change the Javadoc attachment for android.jar, so you still have to look up the Javadoc manually, as you can't integrate it in the IDE. (2) The Javadoc that has problems in Eclipse is blank on andro

[android-developers] Re: Android clip

2008-04-04 Thread jessealbini
This code works for me but it also stops after maybe 20 to 30 seconds. Please fix the media player! It's frustrating to use when half of the features are non-functional! - Jesse --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

[android-developers] Re: How to set rich text in TextView?

2008-04-04 Thread [EMAIL PROTECTED]
In the FAQ an example can be found on how to style text inside a textview: http://code.google.com/android/kb/commontasks.html#selectingtext On Apr 4, 1:27 pm, "Dan U." <[EMAIL PROTECTED]> wrote: > The docs for that certainly aren't very good. Good thing Romain > mentioned BackgroundColorSpan. It

[android-developers] Re: How to set rich text in TextView?

2008-04-04 Thread Dan U.
The docs for that certainly aren't very good. Good thing Romain mentioned BackgroundColorSpan. It helped me find these... http://groups.google.com/group/android-developers/browse_thread/thread/85f5581765ff73b4/50d02ffaa040edee?lnk=gst&q=backgroundcolorspan#50d02ffaa040edee http://groups.google.co

[android-developers] Re: canvas.scale and text size bug

2008-04-04 Thread freeanderson
I mean if the physical pixel width of "abcd" is 30px when canvas.scale(1.0f, 1.0f), then doesn't it have to be 15px when canvas.scale(0.5f, 0.5f)? other drawing object like rectangle, circle, bitmap and etc are drawn correctly without matter of canvas.scale. if i draw one rectangle physically (10,

[android-developers] Re: Resuming not visible activities using intents

2008-04-04 Thread xingye
here is my way, just a suggestion:) 1. if the activity is not in active, start it and show the unread messages; 2. if the activity in front, hook the database changes, just show a message in the activity not the state bar. 3. switch the char window(with deffrient buddy) by popup menu(a dialog) or

[android-developers] Re: How to set rich text in TextView?

2008-04-04 Thread Evan JIANG
Thank you for your reply. Is there any examples to show how to use SpannableString. In the method like SpannableStringBuilder.setSpan(Object what, int start, int end, int flags) , I've no idea what type of Object of the parameter "what" is needed. Best regards, Evan JIANG On Fri, Apr 4, 2008 a

[android-developers] Re: Resuming not visible activities using intents

2008-04-04 Thread Semeria Stefano
Well, I'll probably need to explain better my use case. I am working on a instant messaging application. I would like to support multiple conversation. For handling each ongoing conversation I use different instances of the same activity (let's call it ChatActivity). I have a background thread

[android-developers] Re: Resuming not visible activities using intents

2008-04-04 Thread xingye
Use service instead of activity:) On 4月4日, 下午4时16分, "Semeria Stefano" <[EMAIL PROTECTED]> wrote: > Hi all, > > Is it possible to resume a background activity using an intent? > > When I register a notification in the status bar and clicked on it an > Activity is fired, but it's always a new one..

[android-developers] Re: Getting the state of a checkbox inside of a listview

2008-04-04 Thread xingye
here is the demo code what you want. http://code.google.com/p/sharepath just checkout the source code, the checkable list in choosebuddy.java. On 4月4日, 上午10时57分, SnowDrifter <[EMAIL PROTECTED]> wrote: > I have a ListView that contains a list of checkbox and text pairs. I > am having trouble f

[android-developers] Resuming not visible activities using intents

2008-04-04 Thread Semeria Stefano
Hi all, Is it possible to resume a background activity using an intent? When I register a notification in the status bar and clicked on it an Activity is fired, but it's always a new one... I would need a way to reuse one in background already on the stack. Please help. Thanks a lot. --~

[android-developers] Re: Eclipse hangs when launching program file.. AGAIN !

2008-04-04 Thread joos
I had to reinstall im java sdk (jdk1.6.0_05) and now, the problem seems to have disappeard. I am using also Windows XP and the latest Android SDK. The problem happened maybe every 5th redeploy from Eclipse. The result was as descriped, hanging at 19%. Since I reinstalled the java sdk jdk1.6.0_0

[android-developers] Re: How to set rich text in TextView?

2008-04-04 Thread Romain Guy
I believe it is possible to do this by using a Spannable and BackgroundColorSpan. You can take a look at the documentation for SpannableStringBuilder if you want more information. On Fri, Apr 4, 2008 at 1:04 AM, Dan U. <[EMAIL PROTECTED]> wrote: > > It also supports , but I don't think there's a

[android-developers] Re: Problem using XMPP demo in latest SDK emulator m5 rc 14

2008-04-04 Thread Marcos Hack
Hi Juan, Start the second instance and run the command adb -d 2 install ANDROID_SDK_PATH/samples/ApiDemos/bin/ApiDemos.apk Note that you only need the "-d 2" argument if you start the "first" emulator first. Regards, Marcos Hack. On Mar 25, 7:50 pm, jtaylor <[EMAIL PROTECTED]> wrote: > Ho

[android-developers] Re: How to set rich text in TextView?

2008-04-04 Thread Dan U.
It also supports , but I don't think there's any way to set a color only for specific words in the string without implementing your own TextView. Either that or string together multiple textviews with appropriate colors, but that probably isn't the best idea. On Apr 4, 12:35 am, "Evan JIANG" <[EM

[android-developers] Re: Getting the state of a checkbox inside of a listview

2008-04-04 Thread Romain Guy
It is actually not very difficult to implement a list of checkboxes. The key is to write a custom Adapter that keeps track of the selected items (using a SparseBooleanArray for instance.) I wrote such an adapter as an ApiDemo recently, I'll try to find the code and paste it here. Note that the nex

[android-developers] Re: Getting the state of a checkbox inside of a listview

2008-04-04 Thread Pierre Neihouser
Create your own view (CheckboxView) where you have only a checkbox. Do the processing in your own CheckboxView, the correct instance will be called each time. If you get it all working with the new touch mode (and the keys mode), let me know as I've been banging my head on this one for the past

[android-developers] Re: How to set rich text in TextView?

2008-04-04 Thread Evan JIANG
On Fri, Apr 4, 2008 at 3:34 PM, Evan JIANG <[EMAIL PROTECTED]> wrote: > Hi all, > I find that TextView not support plain text. In APIDemos, there's Sorry, should be "I find that TextView not only support plain text." > a sample to set a text with , tags in TextView. But > does TextView onl

[android-developers] How to set rich text in TextView?

2008-04-04 Thread Evan JIANG
Hi all, I find that TextView not support plain text. In APIDemos, there's a sample to set a text with , tags in TextView. But does TextView only support these two tags? Is it possible to set different font backgroud color in a TextView? My goal is to highlight words in a string. Best regard

[android-developers] Re: canvas.scale and text size bug

2008-04-04 Thread Romain Guy
Using scale(0.5f, 0.5f) just means that the text will be drawn at half its size, not that it will be drawn to fit in a rectangle that is half the size of the screen. It depends on the length of the text you are drawing, the font size and the type face you are using. On Thu, Apr 3, 2008 at 11:41 P