[android-developers] How is android's AlertDialog layout define?

2009-03-21 Thread Lucius Fox
Hi, How is android's AlertDialog layout define? Is there a layout.xml file corresponding to the AlertDialog? I have looked at AlertDialog implementation, But i don't figure out how that is being layout (e.g. the location of the button, the location of text) Where are they defined? And how can I c

[android-developers] Re: Want a background Service to show Toasts on Device Screen

2009-03-21 Thread jsm
The approach I took was to set the UI handler to the service, then pass the message via that handler and then UI displays it using Toast. I don't know if this is the most efficient , but it works. Dianne Hackborn wrote: > Yes toasts can be shown by anyone; that is one of their main purposes. > >

[android-developers] Re: Getting a complete list of android native drawables

2009-03-21 Thread Dianne Hackborn
Hi Mark, I think there are two things being mixed here: you mention a number of times the basic user interaction model of not having a "close" menu item, but seem to be equating that with not having a standard look for menu icons across all applications. To me, these are really different things.

[android-developers] Re: Getting a complete list of android native drawables

2009-03-21 Thread Mark Murphy
Marco Nelissen wrote: > On the other hand, you might be better off using your own copy of the > system icons. For example, if you were to use system icons plus some > additional ones in the same style that you made yourself, your > application's menus will look weird if the system icons are > rede

[android-developers] Re: Android Video Capturing

2009-03-21 Thread Dan Morrill
That page refers to the underlying system, which is indeed capable of encoding to H.263. However, no API for video recording exists in Android 1.0 or 1.1. A future version of Android (likely the next one) will support video recording, including an API. - Dan On Fri, Mar 20, 2009 at 12:51 PM, p0

[android-developers] Re: Getting a complete list of android native drawables

2009-03-21 Thread Marco Nelissen
On Fri, Mar 20, 2009 at 7:42 AM, Mark Murphy wrote: > >>> That list is...  very questionable.  It contains lots and lots of >>> resources >>> that are not in the public SDK, and which you should not be using. >> >> Then how about pointing us to a list that isn't questionable?  Or at least >> show

[android-developers] Re: Retreivng data from internet source.

2009-03-21 Thread Mark Murphy
murphy wrote: > Okay, I went to the Device's menu Sorry. Back up. You said you use Eclipse. Eclipse, with the Android plugin, has a perspective called DDMS. If you cannot find it, run the ddms program from the tools/ folder in your SDK, then select your running emulator in the table on the left

[android-developers] Re: Please enable SVG Support in the Android Webkit Browser

2009-03-21 Thread Paper Coder
Thanks Diane. At think point I don't think it will be worth it to try and use SVG - due to the performance changes on different devices. Perhaps when someone codes an efficient, pre-compiled, SVG renderer it will be acceptable to do so. I don't like the thought of working in Flash, either (when

[android-developers] Re: Retreivng data from internet source.

2009-03-21 Thread murphy
Okay, I went to the Device's menu, selected Dev Tools, then went to Package Browser and found my package, selected it and was then brought to a screen displaying details. Under Data is written /data/data/ my.package.name. Don't know what any of it means. Couldn't see any sign of the text file. Sor

[android-developers] Re: Please enable SVG Support in the Android Webkit Browser

2009-03-21 Thread Dianne Hackborn
On Fri, Mar 20, 2009 at 10:02 AM, Paper Coder wrote: > What about simple animations? I can see extensive animations bogging > things down, but how about simple artwork and png animations for the fast > stuff? It depends. But just assume that vector-based graphics are going to be significantly

[android-developers] Re: When to setResult for onActivityResult

2009-03-21 Thread Dianne Hackborn
On Fri, Mar 20, 2009 at 11:30 PM, havexz wrote: > I am also suffering from the same problem.What I think one should be > able to call setResult till the last life cycle state "OnDestroy" You can't because the previous activity has receive the result from you and resumed itself long before your

[android-developers] Re: Retreivng data from internet source.

2009-03-21 Thread Mark Murphy
> I'm working on the emulator using eclipse. I have a workspace for the > project on my desktop. When I go into my application's folder my > options are other folders like .setting, assets, res, bin and src. I > don't know where to go to find the news.txt file. Ah! You're looking in your project

[android-developers] Re: Retreivng data from internet source.

2009-03-21 Thread murphy
I'm working on the emulator using eclipse. I have a workspace for the project on my desktop. When I go into my application's folder my options are other folders like .setting, assets, res, bin and src. I don't know where to go to find the news.txt file. On Mar 22, 12:56 am, "Mark Murphy" wrote

[android-developers] Re: Retreivng data from internet source.

2009-03-21 Thread Simon Depiets
2009/3/22 Mark Murphy : > >> I can't find /data/data/my.package.here/files. I don't seem to have a >> data folder. > > Are you working on the emulator, or the device? Be sure you look in the InternalMemory, not the SDCard aswell -- Lliane aka Simon Depiets Epita Promo 2011,42 http://www.lliane.

[android-developers] Re: Retreivng data from internet source.

2009-03-21 Thread Mark Murphy
> I can't find /data/data/my.package.here/files. I don't seem to have a > data folder. Are you working on the emulator, or the device? If it's the device, you probably cannot browse to the location using DDMS due to security restrictions. However, you should be able to use adb pull to pull the f

[android-developers] Re: Retreivng data from internet source.

2009-03-21 Thread murphy
I can't find /data/data/my.package.here/files. I don't seem to have a data folder. On Mar 22, 12:42 am, Simon Depiets wrote: > 2009/3/22 Mark Murphy : > > > > >> I'm not receiving any error. > > > Ah, sorry. I was sifting through earlier messages in the thread and > > thought you were getting

[android-developers] Re: Retreivng data from internet source.

2009-03-21 Thread Simon Depiets
2009/3/22 Mark Murphy : > >> I'm not receiving any error. > > Ah, sorry. I was sifting through earlier messages in the thread and > thought you were getting an error. > >> Its just that when I click the button in >> my application which should call a function to go online and download >> data to t

[android-developers] Re: Error code

2009-03-21 Thread Jean-Baptiste Queru
Heh. Jason Parks is my manager at Google, he's a member of the Core Technical Team for the Android Open-Source Project, and he is responsible for the overall performance and stability of the Android platform. He broke it because, well, that's what he does ;-) JBQ On Fri, Mar 20, 2009 at 4:40 P

[android-developers] Re: OOXML MimeType application/vnd.openxmlformats-officedocument.wordprocessingml.documen t not available in android?

2009-03-21 Thread Mark Murphy
> you are right. The web server didn't serve the right mimetype. I > tested it now via a microsoft iis server and ooxml works fine there. > > I hoped for a built-in mimetype detection in android just in case the > web servers don't deliver the right mimetype. Android, AFAIK, does not have any fil

[android-developers] Re: OOXML MimeType application/vnd.openxmlformats-officedocument.wordprocessingml.documen t not available in android?

2009-03-21 Thread sdz
Hi, you are right. The web server didn't serve the right mimetype. I tested it now via a microsoft iis server and ooxml works fine there. I hoped for a built-in mimetype detection in android just in case the web servers don't deliver the right mimetype. Thanks On 22 Mrz., 01:19, "Mark Murphy"

[android-developers] Re: Deleting Incoming SMS???

2009-03-21 Thread Tseng
Exactly. This is not possible for security reasons. The user shall always be aware what he is receiving from other people and it makes malware/trojan-hores like applications harder to make. However, I think it's possible to set an notification in the notification window, so the user is aware that

[android-developers] Re: OOXML MimeType application/vnd.openxmlformats-officedocument.wordprocessingml.documen t not available in android?

2009-03-21 Thread Mark Murphy
> set an intent-filter > > > > but Android never bind *.docx Documents with my application. > > Can it be, that Android doesn't know, that there is such a mimetype > out there? Are you sure your Web server is serving up the file with that MIME type? If you are not downloading the file via a Web

[android-developers] Re: Retreivng data from internet source.

2009-03-21 Thread Mark Murphy
> I'm not receiving any error. Ah, sorry. I was sifting through earlier messages in the thread and thought you were getting an error. > Its just that when I click the button in > my application which should call a function to go online and download > data to the news.txt file, nothing happens.

[android-developers] OOXML MimeType application/vnd.openxmlformats-officedocument.wordprocessingml.document not available in android?

2009-03-21 Thread sdz
Hi, set an intent-filter but Android never bind *.docx Documents with my application. Can it be, that Android doesn't know, that there is such a mimetype out there? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

[android-developers] Re: Retreivng data from internet source.

2009-03-21 Thread murphy
I'm not receiving any error. Its just that when I click the button in my application which should call a function to go online and download data to the news.txt file, nothing happens. My Manifest reads as follows: http://schemas.android.com/apk/res/android"; package="com.organiser.college

[android-developers] Re: Retreivng data from internet source.

2009-03-21 Thread Mark Murphy
> > Hi, I used the code you suggested Simon in this way, > > try{ > > URL myURL = new URL("http://www.indulec.ie/weather.txt";); > > URLConnection conn = myURL.openConnection(); > conn.connect(); > > BufferedReader is = new BufferedReader(ne

[android-developers] Re: Retreivng data from internet source.

2009-03-21 Thread murphy
Hi, I used the code you suggested Simon in this way, try{ URL myURL = new URL("http://www.indulec.ie/weather.txt";); URLConnection conn = myURL.openConnection(); conn.connect(); BufferedReader is = new BufferedReader(new InputStre

[android-developers] Re: Retreivng data from internet source.

2009-03-21 Thread Streets Of Boston
Your use of HttpGet is good. However, you cast an InputStream to a char-sequence when calling tv.setText((CharSequence)input);. This will give you a class-cast exception. Read char-data from the InputStream instead. Also, try to find out if 'entity' has some methods to get a String back that has

[android-developers] Re: Retreivng data from internet source.

2009-03-21 Thread Simon Depiets
Hi, you should try something like URL myURL = new URL("http://lol.com/lol.txt";); URLConnection conn = myURL.openConnection(); conn.connect(); BufferedReader is = new BufferedReader(new InputStreamReader (conn.getInputStream(), "UTF8")); FileOutputStream fOut = openFil

[android-developers] Retreivng data from internet source.

2009-03-21 Thread murphy
Hi all, I am having difficulty retrieving data from the internet to be displayed in a TextView. When I run the application it says the application has stopped unexpectedly. I am using the code: String urls = "http://www.indulec.ie/weather.txt";; HttpClient client = new DefaultHttpCli

[android-developers] Re: When to setResult for onActivityResult

2009-03-21 Thread havexz
I am also suffering from the same problem.What I think one should be able to call setResult till the last life cycle state "OnDestroy" On Mar 5, 5:11 am, Chronos wrote: > @Tseng: I can't find this method - are you talking about class > Activity ? > > So, let me get this straight: there are just

[android-developers] can i debug the built-in app such as Phone, alarm in Eclipse?

2009-03-21 Thread Haman
Hi All, Can I debug the built-in app such as Phone, alarm in Eclipse IDE? If can, how should I do it? Thanks a lot. Best Regards Haman --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group.

[android-developers] Search within Android Mailing Lists

2009-03-21 Thread Ashutosh Agrawal
Hi, Searching in Android mailing lists has now become easy with http://android-search.blogspot.com/ Cheers, Ashutosh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group,

[android-developers] Re: Android Video Capturing

2009-03-21 Thread p0kerkn1ght
This link appears to indicate that Video Capture is supported for both H.263 and H.264 http://developer.android.com/guide/appendix/media-formats.html Is there another source I should be using? On Mar 20, 2:38 pm, "Mark Murphy" wrote: > > I'm novice in Android and looking for Video Capturing ap

[android-developers] Re: How to display text just over ProgressBar?

2009-03-21 Thread T patel
On Mar 10, 9:17 pm, David Yue wrote: > Hi, > I am trying to implement a ProgressBar with text over it. Below is my > general idea: > > In layout *.xml file, I define it as below: >         style="?android:attr/progressBarStyleHorizontal" >         android:layout_width="200dip" >         androi

[android-developers] publish error: "The server could not process your apk" when trying to upload

2009-03-21 Thread Markus Nigrin
my post did not appear, trying to send per email, sorry if duplicate Hi, trying to upload a new app through the android developer consoleI am getting the error "The server could not process your apk. Try again". Searched a bit, found nothing, only unresolved questions. Any help/hint on what could

[android-developers] Re: ListViews getting rendered multiple times

2009-03-21 Thread ljm189
2009-03-21 ljm189 发件人: markdsievers 发送时间: 2009-03-21 08:02:53 收件人: Android Developers 抄送: 主题: [android-developers] Re: ListViews getting rendered multiple times Hi Romain, Thanks for your response, though I had a couple of questions for you; 1) None of the LinearLayout's contai

[android-developers] publish error: "The server could not process your apk" when trying to upload

2009-03-21 Thread Markus
sorry if this will end up being a repost. posted 4h ago but can't find my original post in the devgroup. Maybe it is stuck in the review process? ;) Hi, trying to upload a new app through the android developer consoleI am getting the error "The server could not process your apk. Try aga

[android-developers] Re: Android Video Capturing

2009-03-21 Thread Andy Braun
This link appears to indicate that Video Capture is supported for both H.263 and H.264 http://developer.android.com/guide/appendix/media-formats.html Is there another source I should be using? On Fri, Mar 20, 2009 at 2:38 PM, Mark Murphy wrote: > > > I'm novice in Android and looking for Video

[android-developers] Re: Please enable SVG Support in the AndroidWebkit Browser

2009-03-21 Thread ljm189
2009-03-21 ljm189 发件人: Sena Gbeckor-Kove 发送时间: 2009-03-21 00:02:15 收件人: android-developers@googlegroups.com 抄送: 主题: [android-developers] Re: Please enable SVG Support in the AndroidWebkit Browser Yes, it's pretty damn sweet isn't it :) S On 20 Mar 2009, at 17:00, Paper Cod

[android-developers] Error code

2009-03-21 Thread grube...@gmail.com
Who is JPARKS and why did he break it ?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this gr

[android-developers] publish error: "The server could not process your apk" when trying to upload

2009-03-21 Thread Markus
Hi, trying to upload a new app through the android developer consoleI am getting the error "The server could not process your apk. Try again". Searched a bit, found nothing, only unresolved questions. Any help/hint on what could cause that would be highly appreciated. Some add. info: - app runs

[android-developers] Re: Getting a complete list of android native drawables

2009-03-21 Thread Edward Falk
On Mar 20, 7:38 am, gsmd wrote: > I'd suggest to check out the sources from git & search for .pngs > there. At least, that's what I did. That's a very bad idea. If they're not part of the documented API, they could very easily go away again on the next os release. Using undocumented features

[android-developers] upc lookup...or at least web search?

2009-03-21 Thread Keith Wiley
I have a UPC code and I want to retrieve product information about it. I realize I can type the following into a browser: http://www.google.com/products?q=someUpcCodeNum Two questions. First, what I really want is the raw product data, not a webpage. Can I do this internally in my app somehow

[android-developers] Re: Accessing System Brightness

2009-03-21 Thread sm1
make that Log.d("x...@#$% tag :-)","SCREEN_BRIGHTNESS (0-255) {"+ib+"}"); serge On Mar 21, 10:40 am, sm1 wrote: > and to read it and log it: > >     int ib = Settings.System.getInt(getContentResolver(), >         Settings.System.SCREEN_BRIGHTNESS,-1); >     Log.d("SCREEN_BRIGHTNESS (0-255)

[android-developers] Re: Can only hear sound when playing video

2009-03-21 Thread Mark Murphy
bestpriv...@googlemail.com wrote: > On 21 Mrz., 15:42, Mark Murphy wrote: >> The "Documentaries and You" video from this link definitely works for >> both sound and video: >> >> http://www.law.duke.edu/cspd/contest/finalists/ > > Thank you very much Mark. You just made my day :-) Aw, shucks. I'

[android-developers] Testing a possible localisation issue?

2009-03-21 Thread Al Sutton
I've got a simple expenses program which I've received two crash reports that I can't reproduce for the life of me. One user is German, one is Austrian, so I'm wondering if there is something about the German localisation which is causing a problem. If anyone has a German G1 and would be willi

[android-developers] Re: Can only hear sound when playing video

2009-03-21 Thread bestpriv...@googlemail.com
On 21 Mrz., 15:42, Mark Murphy wrote: > The "Documentaries and You" video from this link definitely works for > both sound and video: > > http://www.law.duke.edu/cspd/contest/finalists/ Thank you very much Mark. You just made my day :-) The sample code works fine with that clip. I did not expect

[android-developers] hi

2009-03-21 Thread harsh
Hey, Checkout www.RemindMeSam.com . -- harsh Via - www.remindmesam.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegr

[android-developers] Re: www.developer.android.com is gone!!!!

2009-03-21 Thread Nox
Oh, thank you! Now it´s working again. On 21 Mrz., 13:44, Mark Murphy wrote: > Nox wrote: > > I´ve got a problem with the Android homepage, it isn´t working!!! > > There is no www on the Android home page. The site is: > > http://developer.android.com > > Without the www, it is working fine for

[android-developers] Re: Can only hear sound when playing video

2009-03-21 Thread Mark Murphy
bestpriv...@googlemail.com wrote: > Any news on this one? I also only get sound. I tried the demo code on > both emulator and g1 but it only get sound, no video. The "Documentaries and You" video from this link definitely works for both sound and video: http://www.law.duke.edu/cspd/contest/final

[android-developers] Re: Accessing System Brightness

2009-03-21 Thread sm1
and to read it and log it: int ib = Settings.System.getInt(getContentResolver(), Settings.System.SCREEN_BRIGHTNESS,-1); Log.d("SCREEN_BRIGHTNESS (0-255) {"+ib+"}"); On Mar 20, 6:53 pm, mark.ka...@gmail.com wrote: > int bright = 50; > Settings.System.putInt(ftaContext.getContentR

[android-developers] Re: Can only hear sound when playing video

2009-03-21 Thread bestpriv...@googlemail.com
Any news on this one? I also only get sound. I tried the demo code on both emulator and g1 but it only get sound, no video. Please google, if it is a bug, fix it soon or let us know what we are doing wrong. --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: how to color key 2d sprite backgound?

2009-03-21 Thread Tazzer
For who it concerns.. As is seems it is not possible within the android api to do color keying directly, so I created a function to set all pixels manual. It is based on the color located on pixel 0,0. If you want to use a given color just replace it by its color value. public Bitmap se

[android-developers] Re: adb version failed

2009-03-21 Thread jammy
In the '/' directory of my fedora 10 linux there are two directories for lib.. one is lib and other one is lib64. in lib64 all the files (libz.so.1, libncurses.so.5, etc..) are there.. in eclipse whether it is searching the files in lib or lib64... On Mar 21, 6:01 pm, jammy wrote: > In the root

[android-developers] Re: adb version failed

2009-03-21 Thread jammy
In the root directory of fedora linux there is a directory called lib64. isn't that indicates that my linux distribution is 64 bit??? If im right then why i should download again 32bit zlib package On Mar 20, 8:02 pm, David Turner wrote: > On Thu, Mar 19, 2009 at 11:29 PM, jammy wrote: > >

[android-developers] Re: www.developer.android.com is gone!!!!

2009-03-21 Thread Mark Murphy
Nox wrote: > I´ve got a problem with the Android homepage, it isn´t working!!! There is no www on the Android home page. The site is: http://developer.android.com Without the www, it is working fine for me. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Training:

[android-developers] www.developer.android.com is gone!!!!

2009-03-21 Thread Nox
Hi everyone, I´ve got a problem with the Android homepage, it isn´t working!!! There always appears an error message that the site contains Spyware,but the message is from Google! The error-code is 403(forbidden). Do you have the same problem if you want to open this site??? Thanks in advance

[android-developers] ImageView class Initialization

2009-03-21 Thread Chetan
I want to initialize ImageView class in Class which do not extends View. protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); System.out.println("Hi"); //mImage

[android-developers] Persistent Sockets on ADP 1.1 (was Re: Jetty Comet Library)

2009-03-21 Thread Miguel Paraz
Hi, I believe the problem is with the ADP1. I retested using the emulator and it's working perfectly. My code is here: http://pastebin.ca/1365243 How can I isolate the problem? Does the hardware driver prevent persistent sockets? On Mar 18, 3:23 pm, Miguel Paraz wrote: > Hi, > How are you guy