Re: [android-developers] Newbie running HelloWorld
What version of the SDK did you installed? What OS? eclipse version? Provide us with more information On Fri, May 13, 2011 at 5:51 PM, quique123 quique...@gmail.com wrote: Hi, I installed: android sdk jdk eclipse adt plugin Im following the developer.android.com guide for HelloWorld and here is my code: package com.santiapps.helloandroid; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class HelloAndroid extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = new TextView(this); tv.setText(Hello, Android); setContentView(tv); } } but i the emulator runs, for several minutes, and i get this in the console: [2011-05-13 09:19:45 - HelloAndroid] -- [2011-05-13 09:19:45 - HelloAndroid] Android Launch! [2011-05-13 09:19:45 - HelloAndroid] adb is running normally. [2011-05-13 09:19:45 - HelloAndroid] Performing com.santiapps.helloandroid.HelloAndroid activity launch [2011-05-13 09:19:45 - HelloAndroid] Automatic Target Mode: Preferred AVD 'my_avd' is not available. Launching new emulator. [2011-05-13 09:19:45 - HelloAndroid] Launching a new emulator with Virtual Device 'my_avd' [2011-05-13 09:19:56 - Emulator] 2011-05-13 09:19:56.191 emulator[528:903] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz. [2011-05-13 09:19:56 - Emulator] emulator: emulator window was out of view and was recentred [2011-05-13 09:19:56 - Emulator] [2011-05-13 09:19:56 - HelloAndroid] New emulator found: emulator-5554 [2011-05-13 09:19:56 - HelloAndroid] Waiting for HOME ('android.process.acore') to be launched... [2011-05-13 09:36:26 - Emulator] emulator: ERROR: unexpected qemud char. channel close So i close the emulator... [2011-05-13 09:39:14 - HelloAndroid] emulator-5554 disconnected! Cancelling 'com.santiapps.helloandroid.HelloAndroid activity launch'! -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- --- http://aitorTheRed.blogspot.com http://www.last.fm/user/aitorTheRed/ -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Transition from solid to transparent
I guess that if the third drawable is transparent over green, then you will see only green... On Fri, May 13, 2011 at 11:02 AM, crios crios8...@gmail.com wrote: Ok, so now I'm trying to use this transition as the background of the textview: transition xmlns:android=http://schemas.android.com/apk/res/ android item android:drawable=@drawable/transparent/ item android:drawable=@drawable/green_rect/ item android:drawable=@drawable/transparent/ /transition which goes from transparent to green and that's it, doesn't go back to transparent. It works only with 2 drawables? helf -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- --- http://aitorTheRed.blogspot.com http://www.last.fm/user/aitorTheRed/ -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to make an app in Android to add support of Urdu Language in SMS Program of Android
http://developer.android.com/guide/topics/resources/localization.html http://developer.android.com/guide/topics/resources/localization.html http://developer.android.com/resources/tutorials/localization/index.html http://developer.android.com/resources/tutorials/localization/index.html On Fri, May 13, 2011 at 3:05 PM, naveed ahmad navidu...@gmail.com wrote: I made an App for SMS .. now tell me how can i add font in it .. On May 10, 2:24 am, Chris crehb...@gmail.com wrote: Your best chance of seeing this happen would be to find an existing SMS app you like, then contact the authors and offer to do the translations so they can integrateUrduinto their app. Learning Java Android, writing an entire SMS app just to have anUrduSMS app seems like overkill to me. On the other hand if you really want to do this, use Google to find good Android programming tutorials examples, examples of sending/ receiving SMS, and how to localize Android apps. Tons of links on the internet. Cheers, - C On May 9, 1:58 pm, naveed ahmad navidu...@gmail.com wrote: Hi every one.. plz guide me how can i make an app forUrdusupportin SMS programmm of Android. guide me plz.. i am new in Android development. Regards Naveed -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- --- http://aitorTheRed.blogspot.com http://www.last.fm/user/aitorTheRed/ -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to make an app in Android to add support of Urdu Language in SMS Program of Android
eiteher you have to make a databses which contain all the words in urdu On Sat, May 14, 2011 at 12:06 PM, Aitor Mendaza Ormaza aitorthe...@gmail.com wrote: http://developer.android.com/guide/topics/resources/localization.html http://developer.android.com/guide/topics/resources/localization.html http://developer.android.com/resources/tutorials/localization/index.html http://developer.android.com/resources/tutorials/localization/index.html On Fri, May 13, 2011 at 3:05 PM, naveed ahmad navidu...@gmail.com wrote: I made an App for SMS .. now tell me e to make of datahow can i add font in it .. On May 10, 2:24 am, Chris crehb...@gmail.com wrote: Your best chance of seeing this happen would be to find an existing SMS app you like, then contact the authors and offer to do the translations so they can integrateUrduinto their app. Learning Java Android, writing an entire SMS app just to have anUrduSMS app seems like overkill to me. On the other hand if you really want to do this, use Google to find good Android programming tutorials examples, examples of sending/ receiving SMS, and how to localize Android apps. Tons of links on the internet. Cheers, - C On May 9, 1:58 pm, naveed ahmad navidu...@gmail.com wrote: Hi every one.. plz guide me how can i make an app forUrdusupportin SMS programmm of Android. guide me plz.. i am new in Android development. Regards Naveed -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- --- http://aitorTheRed.blogspot.com http://www.last.fm/user/aitorTheRed/ -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] In App purchase Google Checkout Testing In Pakistan
need android market version morethan 3.2 is the reason On Fri, May 13, 2011 at 12:04 PM, Piyasa nadirhussain.cpr...@gmail.comwrote: I am implementing In App purchase through Google CheckOut in my app. I live in Pakistan I can test In App billing only on Sprint CDMA device but not on Nexus S, Milestone II ,HTC desire and T Mobile G1. What is the logical reason. Is there any method , so that I can be able to test this feature on Milestone II or HTC Desire?. Any help will be appreciated. -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to make an app in Android to add support of Urdu Language in SMS Program of Android
U should have URDU fonts in your application (for loading fonts u can refer to Begining Android 2 by Marlk L.Murphy). Hardest part will be the editing part in urdu for typing message.U should draw each and every character in a canvas. U should have your own urdu soft keyboard. On Mon, May 9, 2011 at 11:28 PM, naveed ahmad navidu...@gmail.com wrote: Hi every one.. plz guide me how can i make an app for Urdu support in SMS programmm of Android. guide me plz.. i am new in Android development. Regards Naveed -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How do I know what encoding the string when I decoded from the media store?
Java strings are *always* Unicode strings. If you have mojibake, then the problem occurred before you got a Java string, and you have to fix it there. You cannot in general fix the problem, once the string has been misinterpreted. Although sometimes you can get away with your getBytes/new String approach, it is not semantically correct, and may possibly fail in some circumstances. What you need to do is to get your hands on the raw bytes as a byte[] array. AlbumCursor.getBlob(1) would be the way to do that -- but if it's not a blob, it's implementation-defined what happens. Likewise, if it's not a string, it's implementation-defined what happens. It's documented as being TEXT. It seems to me that your data is what's at fault here. What you really need is some tool to repair it -- actually make new copies of your data, getting rid of the Shift-JIS or EUC-J or whatever it's encoded in. SJIS -- and all national encodings -- are long obsolete, and you'll find increasing difficulty in handling them. Even the number of variations in SJIS is enough to give me nightmares. SJIS should not appear in MP3 files -- it violates the ID3v2 standard. ISO-8859-1 (ASCII), UTF-8, UCS-2, and UTF-16 (all Unicode) are the only options. I don't know if there's any trick you can use to auto-detect the encoding, based on other information in the file. Certainly, there is no general solution. I'd suggest writing a little tool that reads the MP3 file's ID3v2 data (not via MediaStore -- as raw data), shows you the textual data with various fixes (and lets you choose which one is actually readable), and then writes out the data to a new MP3 file. Run this on all your bad files that have been corrupted by whatever Japanese MP3 editing tool you've used in the past. Before I went to that effort, though, I'd google for a tool that does this. Surely someone has already done this. You'd think that, after decades of dealing with JIS, SJIS variants, and EUC-J, and all the confusion and incompatibility that results, that people would not be stuffing SJIS into audio files. But alas On Friday, May 13, 2011 10:56:49 AM UTC-7, wang wrote: Hi, I have some Japanese music on device, I try to write program to get every music's detail information from media store using public static final String[] DataProjection = new String[]{ MediaStore.Audio.Media.ALBUM_ID, MediaStore.Audio.Albums.ALBUM, MediaStore.Audio.Albums.ARTIST, MediaStore.Audio.Media.DATA, }; but when I query the data from media store database, it give me string with mojibakes (garbage characters), so I want to do convert before media store scan the music file, Although I know how to convert, for example SJIS to UTF-8 like newStr = new String(AlbumCursor.getString(1).getBytes(sjis),utf-8); but I cant not know what encoding the string, so can not convert it to UTF-8, someone can give me help or solution, thank you!!! -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] help
hello to all...i need help in making a project thats in assembly...and it is to control rc car through parallel ports...4 pin prgramming..initially em trying to send data on ports a led.for practic...but em short of time n project has 2 b submitted...i need guidelines... -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: My first android program
Thanks so much for your input! I've just had my final exam today, so I'm back into it. It's my final year in medicine actually, the only programming experience I have is in VB6 from a few years back (I loved it!). I'm familiar with the concept of OOP but haven't used it much. I think I'll take your advise and look for some online tutorials on java first, then look at android. To answer your questions, I was thinking of having an sqlite table (FTS) with the URL, title, and body of the html files (on sd card) (made on the device using Jericho HTML parser). I took the Searchabledictionary example app (in android SDK) for the top level part, and intend to change it so that when you search it shows the title in the listview and you click and it opens a web browser in the corresponding URL. It's pretty simple in theory, harder to actually start! Thanks again for all your help. It looks like there's a lot to learn. Richard On May 4, 9:57 am, Kristopher Micinski krismicin...@gmail.com wrote: On Tue, May 3, 2011 at 7:50 PM, Miguel Morales therevolti...@gmail.comwrote: So, what, you wouldn't learn it by practicing? You can only learn it by reading the spec? Of course not that's silly. Furthermore, he is taking final exams so I assume he is familiar with the concept of programming. Also, while Java is in many forms the primary Android development language, in many cases it isn't. If your objective is to make apps for Android learning things like thread locks, blocking queues, etc while it's ok will be superseded when you learn that Android has a bunch of nice helper classes (handler, looper, etc) to integrate better with its lifecycle methodology. Obviously the best would be to learn the spec AS you work on a project. Time spent learning or memorizing some silly spec is better spent making an app that follows to Android standards and practices. Sounds good to me. But note, I never said spec anywhere, (really, you can check), I simply said to *learn* Java. If you don't know OOP, then jumping into Android will be difficult, but I'll agree, it's best to learn as you go. (And yes, unless his tests aren't in programming, I suppose he already does.) Kris -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android renders RGB values wrong.
On Mon, Apr 18, 2011 at 5:48 PM, Andrew Huang proelited...@gmail.comwrote: Specify a RGB, i.e, color name=test_color#ff292728/color. Use the a Color Meter tool on Windows or Mac to sample the color in the Layout Preview screen. You'll see that it renders the correct value of 292728. Sampling the same color in the emulator would return a different value, #282329. The emulator emulates a 16-bit framebuffer, so this is not really unexpected. Note that the system does implement dithering though, but there will still be issues like that due to the reduced color resolution. Generally speaking, many devices out there don't have a screen that don't have the color resolution and gammut of a high-end desktop screen. So don't expect real 24-bit support on real hardware. This is causing us some serious problems with our graphics (i.e. images are not correctly blending with the background), I would recommend trying to achieve what you're aiming at differently. E.g. using transparent images and alpha-blending. so we would like to understand what's going on. My searches have turned up nothing so far. If anyone has a deeper understanding of how colors are render, we would greatly appreciate the help. -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Recommendations for 'specialization'.
Hi All, First of all, I'm very new to Android, installed my first SDK just 3 months ago. But given the nature of Java programming in general, it provides one with very flexible environment for familiarizing yourself with with it relatively quickly. And this holds for Android too (thanks guys, Dianne etc, you've done a great job). But since I have somewhat limited time for doing this, I'm learning Android on my spare time while someone else pays my bills, it soonish became quite obvious for me Android is huge. And I can't get into level on every area of Android programming I wanted to very easily. Now this leaves me with two options; 1. Start programming an application and force myself to go through services and what ever comes on the way. - This is what I started with at first. Went on with a Facebook Client, which I thought would provide me good overall experience on Android development (UI basics, network usage/optimization etc etc). But once I found myself reading XMPP documentation and writing my own Facebook chat client (I just didn't feel comfortable with adding a 500kB readymade jar to my smallish project), I had to start thinking is this a good way after all. 2. Find a 'special' domain to concentrate on and do it REALLY WELL. - This would provide smaller applications, maybe libraries, but gave me good insight on how to do certain things and I could concentrate on making them flexible/usable for other developers too. Meaning interfaces they can use to access my code. Or code itself should be flexible at least. Problem is, if I'm about to try finding an Android related job one day, should I go with the application approach instead? Or could you provide me with some examples of general interests, hot topics, I could spend my time on? -- H -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Transition from solid to transparent
Precisely that’s my problem, the transparent drawable is drawn over the solid and does not replace it :( well I’ll just have use other solutions. Thanks everybody. On May 14, 9:28 am, Aitor Mendaza Ormaza aitorthe...@gmail.com wrote: I guess that if the third drawable is transparent over green, then you will see only green... On Fri, May 13, 2011 at 11:02 AM, crios crios8...@gmail.com wrote: Ok, so now I'm trying to use this transition as the background of the textview: transition xmlns:android=http://schemas.android.com/apk/res/ android item android:drawable=@drawable/transparent/ item android:drawable=@drawable/green_rect/ item android:drawable=@drawable/transparent/ /transition which goes from transparent to green and that's it, doesn't go back to transparent. It works only with 2 drawables? helf -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ---http://aitorTheRed.blogspot.comhttp://www.last.fm/user/aitorTheRed/ -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] android jsoup
BHL how does that help me with development. how is it related to android development..am not looking for traffic.. On Thu, May 12, 2011 at 3:03 PM, BHL adsfors...@gmail.com wrote: Every affiliate is provided with a *General affiliate link* upon signup. Your link is: * http://BigExtraCash.com/_6a6b7d72.htm* -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] help for chart/graph?
hi, i have found chart engine to display charts in android.there is nice zoom in-out functionality.but i want that if i touch on two points on chart two vertical lines should be drawn and that clipped area should again zoom in-out(like pinch). how can i do that? regards, hitendrasinh gohil -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] AlertDialog gets disappear when adding single coise item
Hi I am working on android app. but i stuck at one point when i tried to add SingleChoiceItems to alert dialog the alert message gets disapear.,i dont know why this happens here is my code snippet. // builder.setMessage(alertMessage).setCancelable(false); builder.setSingleChoiceItems(alertChoices , -1, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { // TODO Auto-generated method stub } }); builder.setPositiveButton(Continue, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { dialogRunning = false; dialog.cancel(); } }); I want to add both message and singlechoiceitems to alert dialog thanks in advance Regards -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: help for chart/graph?
Hi, Take a look at AChartEngine. Since version 0.6.0 it supports pinch zoom. Regards, Dan On May 14, 1:41 pm, Hitendrasinh Gohil hitendra.virtuei...@gmail.com wrote: hi, i have found chart engine to display charts in android.there is nice zoom in-out functionality.but i want that if i touch on two points on chart two vertical lines should be drawn and that clipped area should again zoom in-out(like pinch). how can i do that? regards, hitendrasinh gohil -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: String Array help
System.arraycopy? On May 14, 12:39 am, Big Al bigal6...@gmail.com wrote: I need help with my programme. I am creating an epandable list from an xml file that contains data that can change at anytime. My question is the data in the xml file is stored in a string-array and I need to transfer it to a multi dimensional string array so I can use it to create the children for the expandable list. So is it possible to do this? If so, how do I do this? -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How do I know what encoding the string when I decoded from the media store?
By the way, you have it backwards, I think. newStr = new String(AlbumCursor.getString(1).getBytes(utf-8), sjis); That is, get the bytes of the string as they are internally, as UTF-8, and then re-interpret them as SJIS. On Friday, May 13, 2011 10:56:49 AM UTC-7, wang wrote: Hi, I have some Japanese music on device, I try to write program to get every music's detail information from media store using public static final String[] DataProjection = new String[]{ MediaStore.Audio.Media.ALBUM_ID, MediaStore.Audio.Albums.ALBUM, MediaStore.Audio.Albums.ARTIST, MediaStore.Audio.Media.DATA, }; but when I query the data from media store database, it give me string with mojibakes (garbage characters), so I want to do convert before media store scan the music file, Although I know how to convert, for example SJIS to UTF-8 like newStr = new String(AlbumCursor.getString(1).getBytes(sjis),utf-8); but I cant not know what encoding the string, so can not convert it to UTF-8, someone can give me help or solution, thank you!!! -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Progress circle (NOT indeterminate!)
That in deed is a nice approach. I wasn't aware that android has such a drawable. To abd this is more a 'ring' shape than a filled circle, but I guess a ring is also acceptable. But can you give me a hint how to control the 'progress' in the java code? So that I can i.e. increase it fluently in a timer or indicate a progress in downloading a file. On 13 Maj, 23:19, Romain Guy romain...@android.com wrote: You don't need to do all this. All you need is a drawable that supports levels. Android even provides a circle drawable that gets filled when you change the progress. Here's an example: layer-list xmlns:android=http://schemas.android.com/apk/res/android; item android:drawable=@android:drawable/progress_circular_background / item shape android:shape=ring android:innerRadiusRatio=3.4 android:thicknessRatio=6.0 gradient android:useLevel=true android:type=sweep android:startColor=#ff00 android:endColor=# / /shape /item item rotate android:pivotX=50% android:pivotY=50% android:fromDegrees=0 android:toDegrees=360 android:drawable=@android:drawable/progress_particle / /item /layer-list On Fri, May 13, 2011 at 2:12 PM, Nicholas Johnson metthejohn...@gmail.comwrote: Here's what you can do: Extend the AbsSeekBar classhttp://developer.android.com/reference/android/widget/AbsSeekBar.html, and implement the onDraw method to your liking. You can capture the height and width of your custom view by capturing those values in the onSizeChanged method. By drawing your circle programatically you can easily make a progress circle that looks good at all resolutions. Also, you don't have to worry about different device resolutions, since you just need to control the size of the view in the layout. Or, you could extend the ProgressBar class and do the same thing. Nick -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Appending nodes to an existing XML file
Dear All, I would like to append a node to an existing XML file.I doesn't want to rewrite the entire XML again.I just want to append the required node. I hardly could find resources for this scenario.I badly need the solution.Kindly help me.It would be great if you can give the entire source code. Thanks in advance. -- Thanks Regards, Suryatej, 9247714040. Please Save paper, Save trees. Please don't print this email and documents unless it is really necessary. -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Appending nodes to an existing XML file
It would be great if you can give the entire source code. Of course, why don't you just send us your Requirements Docs and will send you back the entire app for you. Free of charge, of course. -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Recommendations for 'specialization'.
Perhaps there are diffrent type of jobs requiring different skills/depth. if you are looking for an IT job writing business applications for the mobile, perhaps I could say a few words. Good hiring managers know that a good programmer is a good java programmer. And a good java programmer is a good android programmer. However some managers prefer that you have a explicit Android programming experience. The way some of these managers are workign this out is to see if you have any published apps on the android market. Don't have to be an extensive app. If you were to follow this logic it may better to write a few simple apps and publish them on the market. If your goals is to write a killer personal app that you can make money out off, that is a serious task, only toil and frustration can accrue. 2011/5/14 Harri Smått har...@gmail.com: Hi All, First of all, I'm very new to Android, installed my first SDK just 3 months ago. But given the nature of Java programming in general, it provides one with very flexible environment for familiarizing yourself with with it relatively quickly. And this holds for Android too (thanks guys, Dianne etc, you've done a great job). But since I have somewhat limited time for doing this, I'm learning Android on my spare time while someone else pays my bills, it soonish became quite obvious for me Android is huge. And I can't get into level on every area of Android programming I wanted to very easily. Now this leaves me with two options; 1. Start programming an application and force myself to go through services and what ever comes on the way. - This is what I started with at first. Went on with a Facebook Client, which I thought would provide me good overall experience on Android development (UI basics, network usage/optimization etc etc). But once I found myself reading XMPP documentation and writing my own Facebook chat client (I just didn't feel comfortable with adding a 500kB readymade jar to my smallish project), I had to start thinking is this a good way after all. 2. Find a 'special' domain to concentrate on and do it REALLY WELL. - This would provide smaller applications, maybe libraries, but gave me good insight on how to do certain things and I could concentrate on making them flexible/usable for other developers too. Meaning interfaces they can use to access my code. Or code itself should be flexible at least. Problem is, if I'm about to try finding an Android related job one day, should I go with the application approach instead? Or could you provide me with some examples of general interests, hot topics, I could spend my time on? -- H -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Satya Komatineni http://www.satyakomatineni.com http://www.androidbook.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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Recommendations for 'specialization'.
On May 14, 2011, at 4:28 PM, Satya Komatineni wrote: If you were to follow this logic it may better to write a few simple apps and publish them on the market. This is something I've been pondering over. And I've been keen to have something published 'as soon as possible' but considering the limits I have. It really wouldn't be too much of a special application. Also I'm bound by the fact I can't do extensive testing and don't want to end up maintaining an application which was left with zero ratings 'doesn't work on phone xxx'. If your goals is to write a killer personal app that you can make money out off, that is a serious task, only toil and frustration can accrue. Well, if I had an idea, I would most definitely go for it. Currently, given the huge developer potential there is behind Android, this is more of a catch up game for me. It's not only Android I'm rather new to, but having such an active developer community is something I've never experienced before. Anyway, your response was very interesting reading. From now on I'll try to focus on more specific questions but wanted to ask first if more experienced Android developers were able to provide me with some basic 'reality check' on what's really happening. -- H -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Need help, in case of accessing STARRED contacts
I am using the following code, ArrayListString starListNames = new ArrayListString(); ArrayListString starListIds = new ArrayListString(); */ Extracting and Storing the Starred Contacts into the lists named starListIds and starListNames BEGIN ***/* Cursor c = getContentResolver().query(Contacts.CONTENT_URI, null, Contacts.STARRED + =?, new String[] { 1 }, null); while (c.moveToNext()) { StarListIds.add(c.getString(c.getColumnIndexOrThrow(RawContacts._ID))); Log.i(Star-List, starListIds.get(blackListIds.size() - 1)); name = c.getString(c.getColumnIndexOrThrow(Contacts.DISPLAY_NAME)); Log.i(Star-List, name); starListNames.add(name); } */ Extracting and Storing the Starred Contacts into the lists named starListIds and starListNames END***/* / The above block of code is working fine, in both emulator and Android Phone(LG P500) / */ Extracting the contact whose RawContacts._ID, is stored in the array-list starListIds at a given position ***/ * int position=2; Cursor c1 = getContentResolver().query( ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null, ContactsContract.Data.RAW_CONTACT_ID + =? + AND + ContactsContract.Data.MIMETYPE + =' + Phone.CONTENT_ITEM_TYPE + ', new String[] { starListIds.get( position ) }, null); String id1=c1.getString(c1.getColumnIndex(Data.RAW_CONTACT_ID)); *Whats the Problem ?* *In the above code, the id1 is not getting initialized in all cases.* *e.g.,* *the id1 is getting initialized for the contacts that are manually added, and popping a message of Force Close for the contacts that got synchronized via., my gmail account.* 05-14 20:47:41.327: WARN/dalvikvm(32719): threadid=1: thread exiting with uncaught exception (group=0x40020ac0) 05-14 20:47:41.337: ERROR/AndroidRuntime(32719): FATAL EXCEPTION: main 05-14 20:47:41.337: ERROR/AndroidRuntime(32719): android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0 05-14 20:47:41.337: ERROR/AndroidRuntime(32719): at android.database.AbstractCursor.checkPosition(AbstractCursor.java:580) 05-14 20:47:41.337: ERROR/AndroidRuntime(32719): at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:214) 05-14 20:47:41.337: ERROR/AndroidRuntime(32719): at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:41) 05-14 20:47:41.337: ERROR/AndroidRuntime(32719): at android.database.CursorWrapper.getString(CursorWrapper.java:135) 05-14 20:47:41.337: ERROR/AndroidRuntime(32719): at com.ProtoType.ViewBlackList$1$1.onClick(ViewBlackList.java:111) 05-14 20:47:41.337: ERROR/AndroidRuntime(32719): at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:158) 05-14 20:47:41.337: ERROR/AndroidRuntime(32719): at android.os.Handler.dispatchMessage(Handler.java:99) 05-14 20:47:41.337: ERROR/AndroidRuntime(32719): at android.os.Looper.loop(Looper.java:123) 05-14 20:47:41.337: ERROR/AndroidRuntime(32719): at android.app.ActivityThread.main(ActivityThread.java:4627) 05-14 20:47:41.337: ERROR/AndroidRuntime(32719): at java.lang.reflect.Method.invokeNative(Native Method) 05-14 20:47:41.337: ERROR/AndroidRuntime(32719): at java.lang.reflect.Method.invoke(Method.java:521) 05-14 20:47:41.337: ERROR/AndroidRuntime(32719): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:878) 05-14 20:47:41.337: ERROR/AndroidRuntime(32719): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636) 05-14 20:47:41.337: ERROR/AndroidRuntime(32719): at dalvik.system.NativeStart.main(Native Method) 05-14 20:47:41.457: WARN/ActivityManager(1363): Force finishing activity com.ProtoType/.ViewBlackList -- Regards, Bikkanati Prabhakar. E-Mail: prabhakar.9...@gmail.com Blog:http://LetsXploreIT.blogspot.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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] custom searchbar background color
Hi all, is there a way to customize the background color of my app's Search Bar? Thank you. a.p. -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Camera JavaScript API
Last year at Google IO (2010), Google had a demo using a bleeding edge build of Android, where a website could access the device camera. Sense then, the w3 media capture docs have been updated: http://www.w3.org/TR/html-media-capture/ But, my question is, is it implemented? Is it in 2.3, ice cream sandwich, or nowhere in the pipe at the moment. I really want access to the camera. I have an offline mobile app that stores expenses (among other things). Having the ability to take a picture of the receipt would be huge. -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Develop apps on-the-fly?
Another approach without using Eclipse, the Android SDK or learning Java is MobiForms. MobiForms was the world's first rapid application development tool designed for creating Android apps. Most programming is done with drag and drop or using the simplified MobiScript built-in language for app logic and navigation. MobiForms is particularly good for creating business database orientated apps as it supports connection to a range of industry standard databases including SQL Server, Access, Oracle and MySQL. Additionally, the MobiForms Sync Server supports offline database buffering and online bi-directional synchronisation for partially connected apps. Many MobiForms customers have created apps to run against SAP, Oracle Apps, Navision or Dynamics. MobiForms also supports Android camera and GPS data integration. For more information have a look at our web site at: http://www.mobiforms.com. Kind regards, Tim @ MobiForms On May 9, 11:21 pm, keksinen keskinen.o...@gmail.com wrote: Hey there, I'm wondering whether I should move to developing android apps. As I know next to nothing on android, I'd like to know if there is a way to do the developing on an actual android device, or whether I'd be necessary to get a SDK on an external machine as it seems to be done. So again: is it possible or in any case convenient to do app developing on android itself? Cheers -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Synchronization with the web server
This is clear. I do not require the solution of the problem here to see prices and now I want you to only prompted in what direction to go and what books you can read. Thank you. On 14 май, 00:52, Miguel Morales therevolti...@gmail.com wrote: By programming it, and probably by using that specific social network android sdk or general api. It other words, by researching and implementing. On Fri, May 13, 2011 at 1:50 PM, Andrei entre...@gmail.com wrote: Good afternoon. Tell how you can make the following function. I call the dialog with fields of a login and password. The user must enter a username and password and login on a social network. How can this be implemented? Thank you. photo http://s43.radikal.ru/i102/1105/05/1d2c3263e24f.jpg -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ~ Jeremiah:9:23-24 Android 2D MMORPG:http://solrpg.com/,http://www.youtube.com/user/revoltingx -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] request max heapsize?
Hi guys, Is there a way for an application to request a larger than normal maximum heap size? I have an application which needs around 100mb RAM (and this is with lots of tricks to decrease memory usage). Newer phones with 500mb+ should have no problem coping with this. Any advice is very much appreciated. Thanks, Tomasz -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Unable to toggle breakpoint in eclipse
I am unable to toggle a breakpoint in eclipse. When I try, it says The chosen operation is not enabled and then greys out the Toggle breakpoint option. Any ideas? -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: request max heapsize?
I have found some references to a manifest file attribute, android:largeheap=true However if I try and use this I get the following error on compilation: error: No resource identifier found for attribute 'largeheap' in package 'android' On May 14, 5:31 pm, Tomasz pulchritud...@gmail.com wrote: Hi guys, Is there a way for an application to request a larger than normal maximum heap size? I have an application which needs around 100mb RAM (and this is with lots of tricks to decrease memory usage). Newer phones with 500mb+ should have no problem coping with this. Any advice is very much appreciated. Thanks, Tomasz -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Compile andriod source under ubuntu 11.04 64 bits
This should go on other list, maybe building or porting On Wed, May 11, 2011 at 3:30 AM, ying...@gmail.com ying...@gmail.comwrote: Hi, I have downloaded the android source on my ubuntu 11.04 64 bits environment. $ uname -a Linux yinglcs-Win7-VirtualBox 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux But when i compile the code, i get this error: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory compilation terminated. and according to http://source.android.com/source/initializing.html, i don't need to establish a 32 bit build environment, since i am building the head (i.e. Ginger bread) For building Froyo or an older release on a 64-bit system, several other packages are necessary to establish a 32-bit build environment: $ sudo apt-get install gcc-multilib g++-multilib libc6-i386 libc6-dev- i386 So can u please tell me if my understanding is incorrect? -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- --- http://aitorTheRed.blogspot.com http://www.last.fm/user/aitorTheRed/ -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Question about AccountManager and tokens
On Fri, May 13, 2011 at 3:52 AM, Kaldais kald...@gmail.com wrote: Now, there's an option for revoke this permission? Through your Google Account: https://www.google.com/accounts/b/0/IssuedAuthSubTokens?hl=en - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Contact list view menu action
On Thu, May 12, 2011 at 11:40 PM, Sweety sowjanya.sweety...@gmail.comwrote: Hi,In default contacts view, menu activity is not getting triggered and also is it possible to keep split screen . wherein in one view I'll have contact list and in the other I'll have my menu action. Please help me ! Read this: http://www.catb.org/~esr/faqs/smart-questions.html then try again. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: request max heapsize?
On May 14, 2011, at 7:59 PM, Tomasz wrote: I have found some references to a manifest file attribute, android:largeheap=true However if I try and use this I get the following error on compilation: error: No resource identifier found for attribute 'largeheap' in package 'android' android:largeHeap=true is mentioned here; http://developer.android.com/reference/android/app/ActivityManager.html#getLargeMemoryClass%28%29 It's API level 11 method, could it be so that this attribute is too? -- H -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Appending nodes to an existing XML file
Can't be done. (Well, could be done, but would require some file calisthenics. You'd need to scan through the file to find the closing tag, figure out what record that begins with -- it might actually span records -- then write your new tags in place of the closing tag and restore the closing tag. It would be difficult to do all of this using standard XML scanners, so you'd have to write your own or hack an existing open source one. And most likely you'd not want to insert your new tags directly in the outermost tag environment, but nested somewhat, making for even more complicated code.) On May 14, 8:02 am, surya tej akkirajusurya...@gmail.com wrote: Dear All, I would like to append a node to an existing XML file.I doesn't want to rewrite the entire XML again.I just want to append the required node. I hardly could find resources for this scenario.I badly need the solution.Kindly help me.It would be great if you can give the entire source code. Thanks in advance. -- Thanks Regards, Suryatej, 9247714040. Please Save paper, Save trees. Please don't print this email and documents unless it is really necessary. -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Music App and Call issue
If you want the app to stop playing when there´s an incoming call, then you should listen to the call event and take actions as it happens. If I got your explanation right, this is the expected behavior. On May 13, 9:59 am, future yamit.me...@gmail.com wrote: 1. Make MO Call. 2. Start music while still in call 3. Both Music + Voice call active. 4. Call end. 5. Music continues – expected. 6. User gets another call or makes another call. 7. Music doesn’t Auto stop @ ring tone. Is this expected behaviour? Ring is not heard and seems to be potential issue. Any comments? -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: request max heapsize?
Yes this was introduced in 3.0. 2011/5/14 Harri Smått har...@gmail.com On May 14, 2011, at 7:59 PM, Tomasz wrote: I have found some references to a manifest file attribute, android:largeheap=true However if I try and use this I get the following error on compilation: error: No resource identifier found for attribute 'largeheap' in package 'android' android:largeHeap=true is mentioned here; http://developer.android.com/reference/android/app/ActivityManager.html#getLargeMemoryClass%28%29 It's API level 11 method, could it be so that this attribute is too? -- H -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Progress circle (NOT indeterminate!)
Just set this as the drawable in a ProgressBar widget and control it with that. On Sat, May 14, 2011 at 5:43 AM, Serdel adam.lichwierow...@gmail.comwrote: That in deed is a nice approach. I wasn't aware that android has such a drawable. To abd this is more a 'ring' shape than a filled circle, but I guess a ring is also acceptable. But can you give me a hint how to control the 'progress' in the java code? So that I can i.e. increase it fluently in a timer or indicate a progress in downloading a file. On 13 Maj, 23:19, Romain Guy romain...@android.com wrote: You don't need to do all this. All you need is a drawable that supports levels. Android even provides a circle drawable that gets filled when you change the progress. Here's an example: layer-list xmlns:android=http://schemas.android.com/apk/res/android; item android:drawable=@android:drawable/progress_circular_background / item shape android:shape=ring android:innerRadiusRatio=3.4 android:thicknessRatio=6.0 gradient android:useLevel=true android:type=sweep android:startColor=#ff00 android:endColor=# / /shape /item item rotate android:pivotX=50% android:pivotY=50% android:fromDegrees=0 android:toDegrees=360 android:drawable=@android:drawable/progress_particle / /item /layer-list On Fri, May 13, 2011 at 2:12 PM, Nicholas Johnson metthejohn...@gmail.comwrote: Here's what you can do: Extend the AbsSeekBar class http://developer.android.com/reference/android/widget/AbsSeekBar.html, and implement the onDraw method to your liking. You can capture the height and width of your custom view by capturing those values in the onSizeChanged method. By drawing your circle programatically you can easily make a progress circle that looks good at all resolutions. Also, you don't have to worry about different device resolutions, since you just need to control the size of the view in the layout. Or, you could extend the ProgressBar class and do the same thing. Nick -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Adding overlay items between two overlay items
What if i added two over lay items on same line and i want to add overlay items between them in the map Can this be done If I Want it like this @ the 2 over lay items added and i want to add other overlay items between them !! can this be done ?? @ .. @ -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Adding overlay items between two overlay items
On Sat, May 14, 2011 at 2:26 PM, ingy abbas ingy.abba...@gmail.com wrote: If I Want it like this @ the 2 over lay items added and i want to add other overlay items between them !! What? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Adding overlay items between two overlay items
I want to play a pacman real life game so i want to be able to eat the overlay points ( vitamin ) now i need the normal points !! so this normal points i want them to be added betweeen vitamin points electronics (automatically ) wizout getting every location and enter the point manually On May 14, 9:31 pm, TreKing treking...@gmail.com wrote: On Sat, May 14, 2011 at 2:26 PM, ingy abbas ingy.abba...@gmail.com wrote: If I Want it like this @ the 2 over lay items added and i want to add other overlay items between them !! What? --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] keeping track of time a user is actively using an android app
On Fri, May 13, 2011 at 2:58 PM, laurent bouis lbou...@gmail.com wrote: I did some research and the only suggestion I found so far is using the onResume() and onPause() methods of activities to keep track of elapsed time between those 2 calls; I would probably need to do this in each activity of the application which doesn't seem to be a very elegant solution. Probably as good as it's going to get. Check out the delegation patterns discussed in this thread: http://groups.google.com/group/android-developers/browse_thread/thread/a38ecd2d9558d685 You could easily have a delegate object that tracks the time spent in a given activity by calling mDelegate.startTiming() / mDelegate.stopTiming() in onStart() / onStop(), respectively, in each activity. Note that you should use the onStart() / onStop() pair. If you show a dialog, for example, your activity is still in use but it gets onPause() called. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] horizontal view increasing the size of a text box
On Fri, May 13, 2011 at 9:43 PM, green hoodlum deadgreenid...@gmail.comwrote: any advice is appreciated. Use RelativeLayout. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Adding overlay items between two overlay items
On Sat, May 14, 2011 at 2:40 PM, ingy abbas ingy.abba...@gmail.com wrote: I want to play a pacman real life game so i want to be able to eat the overlay points ( vitamin ) now i need the normal points !! so this normal points i want them to be added betweeen vitamin points electronics (automatically ) wizout getting every location and enter the point manually I have no idea what you're talking about. But if you're saying you have @ @ on a map and you want: @ - - - - - - - - - - - - @ Then all you need is another itemized overlay with the - image with enough items to draw the dashes, which you would add exactly as you have already added the first two points. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Adding overlay items between two overlay items
can i take the average of the lat of both overlay item location then add them then divide by 2 then the point will appear between them !! On May 14, 10:04 pm, TreKing treking...@gmail.com wrote: On Sat, May 14, 2011 at 2:40 PM, ingy abbas ingy.abba...@gmail.com wrote: I want to play a pacman real life game so i want to be able to eat the overlay points ( vitamin ) now i need the normal points !! so this normal points i want them to be added betweeen vitamin points electronics (automatically ) wizout getting every location and enter the point manually I have no idea what you're talking about. But if you're saying you have @ @ on a map and you want: @ - - - - - - - - - - - - @ Then all you need is another itemized overlay with the - image with enough items to draw the dashes, which you would add exactly as you have already added the first two points. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Adding overlay items between two overlay items
On Sat, May 14, 2011 at 3:10 PM, ingy abbas ingy.abba...@gmail.com wrote: can i take the average of the lat of both overlay item location then add them then divide by 2 then the point will appear between them !! Sure !! Why not !! - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Appending nodes to an existing XML file
Well, there IS one way, sort of. You can have one XML file that has the outer tags, with a DTD that defines and entity that references a second file that contains a sequence of XML forms, and a reference to that entity between the outer tags. The need for two files is often reason enough to reject this approach. And, of course, it requires that your XML parser properly handle this sort of inclusion. On Saturday, May 14, 2011 11:12:50 AM UTC-7, DanH wrote: Can't be done. (Well, could be done, but would require some file calisthenics. You'd need to scan through the file to find the closing tag, figure out what record that begins with -- it might actually span records -- then write your new tags in place of the closing tag and restore the closing tag. It would be difficult to do all of this using standard XML scanners, so you'd have to write your own or hack an existing open source one. And most likely you'd not want to insert your new tags directly in the outermost tag environment, but nested somewhat, making for even more complicated code.) On May 14, 8:02 am, surya tej akkiraju...@gmail.com wrote: Dear All, I would like to append a node to an existing XML file.I doesn't want to rewrite the entire XML again.I just want to append the required node. I hardly could find resources for this scenario.I badly need the solution.Kindly help me.It would be great if you can give the entire source code. Thanks in advance. -- Thanks Regards, Suryatej, 9247714040. Please Save paper, Save trees. Please don't print this email and documents unless it is really necessary. -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to draw a circle on an image
I have an image that needs a red circe at x,y coords. Its in an image view. I can get x,y coords but no idea at all about how to place a red circle? -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to draw a circle on an image
On Sat, May 14, 2011 at 4:42 PM, Droid rod...@gmail.com wrote: I can get x,y coords but no idea at all about how to place a red circle? http://developer.android.com/reference/android/widget/ImageView.html#onDraw(android.graphics.Canvas) http://developer.android.com/reference/android/graphics/Canvas.html#drawCircle(float, float, float, android.graphics.Paint) - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Change color of listview in custom dialog
Hi, I created a custom dialog with a ListView to be able to use fastScroll and I want it to look like the dialog created with AlertDialog.Builder. I've tried to put ListView style to Widget.ListView.White, Theme.Light but none works and the listview is always displayed in black. ListView android:id=@+id/big_list_dialog_list android:layout_width=match_parent android:layout_height=match_parent style=@android:style/Widget.ListView.White / A lot of thanks in advance, -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] New Tab Control In New Music App
Try wrapping your TabWidget in a HorizontalScrollView. Somebody pointed that trick out to me recently -- I hadn't realized that it would work. On Fri, May 13, 2011 at 2:19 PM, flotzam artofthe...@gmail.com wrote: Anybody notice how the new official Google music app 3.0.338 that they released this week uses a new kind of tab metaphor, where you can scroll across to more tabs than the screen real estate can hold. Like you can see the edge of the Songs tab when you see Artists and Albums, etc? Pretty slick. Is this used in any other apps? Is this a control anyone can use? Looks like the source code up at http://android.git.kernel.org/?p=platform/packages/apps/Music.git;a=tree;hb=HEAD is still the old version. Seems like a new version of the TabHost perhaps that isn't available in the SDK? -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Unable to toggle breakpoint in eclipse
You'll have better luck in an eclipse forum of some sort... On May 14, 2011 10:37 AM, Alex maroeb...@gmail.com wrote: I am unable to toggle a breakpoint in eclipse. When I try, it says The chosen operation is not enabled and then greys out the Toggle breakpoint option. Any ideas? -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How did you get into Android development
This is a great thread. I'd like to add to the below points: - do something in a domain you know well and enjoy, that will touch on various areas of the android platform - solve an interesting problem in that domain that android/mobile/etc may be uniquely suitable for - set some limits on what your version 1.0 will be - dive deep into it... you're subscribed to this group and there's a wealth of knowledge here in the archives and among the braintrust that reply to intelligent questions and topics -- literally, the google engineers who write the SDK respond to pertinent threads! - sleep less, sacrifice some time to learn as much as you can, really, _sleep less_! - make lots of mistakes, fail, do things the wrong way and then improve - publish - have fun, experience some joy and passion for the process, it's an end in itself! After you make your first app, you'll be in a much better position to get android work, as you'll have something to show for your general development skills, in an android product you've produced. On Saturday, May 14, 2011 12:25:17 AM UTC-4, Brill Pappin wrote: haha, particularly since 25 years ago, hardly anyone knew java (if it was even released). I have something between 15 or 16 years of experience with java now now (exact numbers are fuzzy in my old age)... and I started with java 1.1 :) In fact i think its only about 17 years old! Anyway. If your writing code for someone else, there are multiple ways that can work, but demonstrating an published app should be pretty good proof. Our group decided to publish apps ourselves because we wanted some that didn't exist or we were not satisfied with what we could get. Even with four apps in the market, it doesn't pay us nearly enough to replace our day jobs... so we work at night and use the money we make to support our customers and buy hardware when we want it (or to finance some other startup project idea). I personally also get to develop on the Android platform for my clients (the ones where I actually make my living) but its a side thing, simply one of the many many skills I'm expected to have or to able to handle in order to get a large hourly rate. The long and the short of it is. Start. or i guess if your a nike fan. Just Do It. With luck you'll get an opportunity, and when you do you will have something to show for it. You are lucky in that right now Android developers are in short supply so your more likely to land a job doing it with minimal experience than you will be later. Personally, I'll never go back to a cubical farm if I can help it, but its taken years to get to that stage. -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How did you get into Android development
Apart from the obvious of starting your own app from scratch, you could try searching for an open source Android project and fix some bugs or add a feature. Andrew On 15 May 2011 11:19, Adam Ratana adam.rat...@gmail.com wrote: This is a great thread. I'd like to add to the below points: - do something in a domain you know well and enjoy, that will touch on various areas of the android platform - solve an interesting problem in that domain that android/mobile/etc may be uniquely suitable for - set some limits on what your version 1.0 will be - dive deep into it... you're subscribed to this group and there's a wealth of knowledge here in the archives and among the braintrust that reply to intelligent questions and topics -- literally, the google engineers who write the SDK respond to pertinent threads! - sleep less, sacrifice some time to learn as much as you can, really, _sleep less_! - make lots of mistakes, fail, do things the wrong way and then improve - publish - have fun, experience some joy and passion for the process, it's an end in itself! After you make your first app, you'll be in a much better position to get android work, as you'll have something to show for your general development skills, in an android product you've produced. On Saturday, May 14, 2011 12:25:17 AM UTC-4, Brill Pappin wrote: haha, particularly since 25 years ago, hardly anyone knew java (if it was even released). I have something between 15 or 16 years of experience with java now now (exact numbers are fuzzy in my old age)... and I started with java 1.1 :) In fact i think its only about 17 years old! Anyway. If your writing code for someone else, there are multiple ways that can work, but demonstrating an published app should be pretty good proof. Our group decided to publish apps ourselves because we wanted some that didn't exist or we were not satisfied with what we could get. Even with four apps in the market, it doesn't pay us nearly enough to replace our day jobs... so we work at night and use the money we make to support our customers and buy hardware when we want it (or to finance some other startup project idea). I personally also get to develop on the Android platform for my clients (the ones where I actually make my living) but its a side thing, simply one of the many many skills I'm expected to have or to able to handle in order to get a large hourly rate. The long and the short of it is. Start. or i guess if your a nike fan. Just Do It. With luck you'll get an opportunity, and when you do you will have something to show for it. You are lucky in that right now Android developers are in short supply so your more likely to land a job doing it with minimal experience than you will be later. Personally, I'll never go back to a cubical farm if I can help it, but its taken years to get to that stage. -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Open Source Chart
Hi, You can try AChartEngine. Open-source and free to use. Regards, Dan On May 2, 6:00 pm, Sivaprakash sivaprakashshanmu...@gmail.com wrote: Hi Please let me know if there is any good Open Source Chart Library for Android ? -- Siva -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en