[android-developers] Re: Syntax error: Unterminated quoted string

2011-05-20 Thread Daniel Mack
On May 20, 6:18 am, Brill Pappin bpap...@sixgreen.com wrote: adding a quote symbol in the XML might cause it, although I'm surprised that the editor doesn't escape things as needed :) Well, as I said, all the code is auto-created by Eclipse (and the Android plugin), and I can't see anything

Re: [android-developers] Re: need reference page for how to write a png from res/drawable to background as wallpaper

2011-05-20 Thread Saurav
I am guessing this is what u want, WallpaperManager manager = WallpaperManager.getInstance(this); try { manager.setResource(R.drawable.wallpaper); } catch (IOException e) { e.printStackTrace(); } U need to add SET_WALLPAPER permissions in ur manifest file. Hope this helps. Regards, Saurav

Re: [android-developers] Saving an image

2011-05-20 Thread Francisco Dalla Rosa soares
Hi, I had the same problem and it seems that you have to compress the image before saving it t the disk. And I think you also have to flush the OutputStream. This is how I'm doing it. Hope it helps you:   public boolean storeImage(Bitmap bitmap, int picId) {         try {             File

Re: [android-developers] Re: Syntax error: Unterminated quoted string

2011-05-20 Thread Dianne Hackborn
am is the shell command that is run to launch an application. So a bad character got in that command line somehow... though I'm not sure how that could be, I think the main thing that is used there that comes from the app at all is the manifest package name. On Thu, May 19, 2011 at 11:00 PM,

Re: [android-developers] Re: TransitionDrawable with different sized bitmaps

2011-05-20 Thread Dianne Hackborn
You could write your own Drawable that keeps its size consistent across the images and does whatever transition you want. Or use a ViewFlipper to swap between ImageViews. On Thu, May 19, 2011 at 9:46 PM, Brill Pappin bpap...@sixgreen.com wrote: The funny thing is how its actually handling it.

Re: [android-developers] Re: How to close all activities on android app

2011-05-20 Thread Rocky
use function movetasktoback(). On Fri, May 20, 2011 at 7:32 AM, Bruno Lopes brunolope...@gmail.com wrote: thanks On 19 maio, 12:04, TreKing treking...@gmail.com wrote: On Wed, May 18, 2011 at 8:28 PM, Bruno Lopes brunolope...@gmail.com wrote: I'he a android app with 5 activities and i

[android-developers] MediaPlayer blocked(AudioFlinger write blocked) while playing animation

2011-05-20 Thread quill
Hi all, I have a thread to play audio and animation together. It's a frame animation. The drawable resources are in sdcard. When I play the animation, I use a handler to send message to refresh images one by one. Here's my code: final Handler handle = new Handler(){ public void

[android-developers] Re: Changing application description shown in option list when multiple apps can do same job

2011-05-20 Thread Kacee
Ok.. But I have seen applications that do not appear with their package name in the list created by intent (dont know what to call this dialog box ) That means there is a way to atleast hide package name. Package name looks bit ugly, I only want to show a meaningful string (eg. app name ) that

[android-developers] Re: Devs with paid apps -- check your enabled countries

2011-05-20 Thread MarcoAndroid
Thanks for the tip! Had indeed some of the new countries with no amount filled in, so probably those countries didn't see my app. On 19 mei, 08:49, Zsolt Vasvari zvasv...@gmail.com wrote: The Android Market team moved some countries from the first list to the overflow list.  But, since there

[android-developers] Orientation change and setRender

2011-05-20 Thread qwesthead
I've a region on an activity that uses GLSurfaceView. When the Activity is resumed, I call the setRenderer and then the content of the screen. They work fine. But, the problem arise when I change orientation (configurationChange.) Upon orientation change, I need to change the layout. After

Re: [android-developers] Re: Problem when coming back to activity after changing font in Galaxy S

2011-05-20 Thread Suresh Chandra Pal
Hi Simon, You suggested to make activity singleton. But is 'making activity' singleton not equal to single instance. At a time I'll be having a single instance. and I dont want to do that. Moreover mainly, I want a way which is acceptable according to android concepts. and if that is not possible

[android-developers] I connect Acer iconia a500 with ddms

2011-05-20 Thread Chi Kit Leung
Hi all, I bought Acer. Iconia A500 last week. I cannot get it work with dens. Do I need to get a driver ? -- 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

[android-developers] Re: I connect Acer iconia a500 with ddms

2011-05-20 Thread Zsolt Vasvari
I am sure. Even the Xoom is not suported by the Google USB driver as I've learned today. On May 20, 3:57 pm, Chi Kit Leung michaelchi...@gmail.com wrote: Hi all, I bought Acer. Iconia A500 last week.  I cannot get it work with dens. Do I need to get a driver ? -- You received this message

[android-developers] Re: Devs with paid apps -- check your enabled countries

2011-05-20 Thread Zsolt Vasvari
No, that's different. No amount filled in means that they will see pricing in US$. I was referring to the checkboxes in the list at the bottom. On May 20, 3:23 pm, MarcoAndroid marco...@gmail.com wrote: Thanks for the tip! Had indeed some of the new countries with no amount filled in, so

Re: [android-developers] Specific drawable not working?????

2011-05-20 Thread Marcin Orlowski
On 19 May 2011 23:08, mikedrmfs mike.davis...@gmail.com wrote: In a very simple menu the drawable @android:drawable/ic_media_stop doesn''t work and @android:drawable/ic_media_pause does. I get problem [2011-05-19 14:04:52 - Twitter Update] W/ResourceType( 7852): Bad XML block: header size

[android-developers] Java Guru needed -- compiler bug?

2011-05-20 Thread Zsolt Vasvari
private void method(CollectionString s) { // Nothing } private void caller() { // Complies fine CollectionString s = Collections.emptyList(); method(s); // Doesn't compile -- gives error message // The method

Re: [android-developers] Java Guru needed -- compiler bug?

2011-05-20 Thread Nikolay Elenkov
On Fri, May 20, 2011 at 5:46 PM, Zsolt Vasvari zvasv...@gmail.com wrote:    private void method(CollectionString s)    {        // Nothing    }    private void caller()    {       // Complies fine        CollectionString s = Collections.emptyList();        method(s);       // Doesn't

[android-developers] Re: Syntax error: Unterminated quoted string

2011-05-20 Thread Daniel Mack
On May 20, 9:08 am, Dianne Hackborn hack...@android.com wrote: am is the shell command that is run to launch an application.  So a bad character got in that command line somehow...   I can't find that binary, otherwise I would debug and wrap it and dump the arguments it has to deal with. Any

Re: [android-developers] Re: Problem when coming back to activity after changing font in Galaxy S

2011-05-20 Thread Suresh Chandra Pal
Sorry for the wrong code, but the ActivityOne do not have a button, but is starting ActivityTwo immediately in its onCreate() method. and this code is creating problem. @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

[android-developers] urgent help

2011-05-20 Thread neha
hi Is there are anyone who worked on SIP server. I want to get registered with server and make call. -- 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

[android-developers] Re: ndk5 exception crash with third-party library

2011-05-20 Thread wasabee18
sorry. I intended to post it on ndk list. my mistake. I have re-posted to ndk list. Thanks. On May 12, 4:01 pm, Marcin Orlowski webnet.andr...@gmail.com wrote: On 11 May 2011 09:35, wasabee18 wasabe...@gmail.com wrote: Hi everyone, that's my first post, please be nice :) I beliee your

[android-developers] Re: regarding HTTPClient : How to get the HTTP request posted by the native browser

2011-05-20 Thread Jens
Apache - as in the HttpClient, org.apache.http.* or the web server? Further - the browser in the phone typically doesn't use the apache HTTP client library, it's JNI to WebKit. The good thing is that you're not going to be able to sniff either without building your own firmware and flashing the

[android-developers] ldd for android

2011-05-20 Thread wasabee18
Hi everyone, there is no ldd for android available in the ndk. is it available somewhere else ? It is useful when troubleshooting libraries. i know it has already been been posted in a different list (http:// groups.google.com/group/android-platform/browse_thread/thread/

[android-developers] Re: need reference page for how to write a png from res/drawable to background as wallpaper

2011-05-20 Thread Spooky
On May 20, 1:04 am, Saurav to.saurav.mukher...@gmail.com wrote: Hope this helps. Looks like exactly what I need. Thanks! I also have something far more likely to get better search results (for a reference page), too---so thanks for that, as well! Later, --jim -- You received this

Re: [android-developers] current distribution of platform versions update

2011-05-20 Thread Mark Murphy
This page is updated irregularly. It will be updated when it is updated. On Thu, May 19, 2011 at 9:19 AM, Chris Ti badmintonch...@googlemail.com wrote: Dear Sir or Madam, in the following I am refering to http://developer.android.com/resources/dashboard/platform-versions.html When will

[android-developers] Problem when dealing with multiple screen sizes

2011-05-20 Thread lou
Hi ! I have some problems when dealing with different resolutions and sizes of screen : my goal is to display an image in a square which is draw in my background picture. I have a main RelativeLayout which is filling the entire screen : RelativeLayout

Re: [android-developers] Why ImageView doesn't show up inside ScrollView

2011-05-20 Thread Mark Murphy
Why are you using LinearLayout.LayoutParams for a child of a ScrollView subclass? On Thu, May 19, 2011 at 9:21 PM, Frank frank.android@gmail.com wrote: Hi All, I have the following code. I only got a black screen without seeing the white image. public class Demo extends Activity {    

Re: [android-developers] How to disable USB tethering in android

2011-05-20 Thread Mark Murphy
On Thu, May 19, 2011 at 7:06 AM, satish kuma s,n. satish...@gmail.com wrote: Can you please tell me how we can disable the USB tethering in android. This is not possible from an SDK application, sorry. If your interest is in creating custom firmware that has USB tethering disabled, please

Re: [android-developers] Can I change appwidget-provider XML 's android:initialLayout? How to do?

2011-05-20 Thread Mark Murphy
Just use your desired layout on the first onUpdate() call of your AppWidgetProvider. You cannot literally modify android:initialLayout, or anything inside of a resource, at runtime. On Thu, May 19, 2011 at 3:06 AM, Perry168 perry...@netvigator.com wrote: Hi all,    Following was the

Re: [android-developers] Key capture background

2011-05-20 Thread Mark Murphy
On Thu, May 19, 2011 at 3:01 AM, coder_sym saj...@gmail.com wrote: I saw a post saying key capturing in the background is not possible .. is this still the case? Yes. or was thre any recent changes to make this happen ? No. I wonder why this capability is closed when there are lot of

[android-developers] appwidget setOnClickPendingIntent not always working

2011-05-20 Thread biokys
Hi, I have an issue with my appwidget. It has really strange behaviour, because when I add widget to desktop it *not always* become clickable, even i defined setOnClickPendingIntent. On different phones it has different successfull install ratio. Thank you for your help public class

[android-developers] Application crashes when downloding long data in from server and in loop.............

2011-05-20 Thread imran ali
Hi all I have been using AsyncTaskContext, Integer, String to download data from server, in between it has been crashing with message in DDMS. 05-20 16:37:11.656: DEBUG/Zygote(33): Process 9489 terminated by signal (11) can any one has idea, what would be solution, i am downloading big size of

[android-developers] Re: NFC Secure Element

2011-05-20 Thread Martin
Hello Michael, here are the information I promised you yesterday. Reader: Omnikey 55x3 Software: HID Reader Utility Version 4.0.0.0 Key: it works for each sector. This is what we found in the api: // The well-known default MIFARE read key. All keys are set to this at the

Re: [android-developers] Application crashes when downloding long data in from server and in loop.............

2011-05-20 Thread Daniel Drozdzewski
Imran, Any debug info? Listing of your doInBackground() perhaps? Are you saving the whole 10MB of text into memory or do you save it to a file via some buffer? Daniel On Fri, May 20, 2011 at 12:22 PM, imran ali imran...@gmail.com wrote: Hi all I have been using AsyncTaskContext, Integer,

Re: [android-developers] Re: PDF Reader in Android OS

2011-05-20 Thread lbendlin
You have to be aware that the majority of web users in Asia do not know Google. They use Baidu,Yandex or local equivalents. Yes, shocking, I know. -- 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] Re: A PROBLEM WITH HELLO WORLD

2011-05-20 Thread cellurl
try this jetboy video tutorial. http://www.udemy.com/write-and-publish-an-app-for-your-android-smartphone/ On May 19, 1:30 pm, behery eng.m.beh...@gmail.com wrote: HI, I did all the configuration on eclipse helios, running on UBUNTU, and after copying code from the helloworld tutorial on

[android-developers] Aw: Re: PackageManage: Couldn't copy package file to temp file.

2011-05-20 Thread Matthias
I see this happening with rooted G1s, was your phone rooted by any chance? In any case, I can install packages via adb and Eclipse, but not using the 'pm' command on the device. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

Re: [android-developers] Re: How can I draw/move a point on screen ?!

2011-05-20 Thread Diogo Salaberri
If you see the first email from that thread, you'll see: *Any tutorial ? Any link ?* -- Atenciosamente; Diogo Bonoto Salaberri Bacharel em Ciência da Computação - UFPel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] internet not working with emulator?

2011-05-20 Thread Hitendrasinh Gohil
hi, anybody is there? -- 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

[android-developers] Re: ArrayIndexOutOfBounds in Thread.getState() ...

2011-05-20 Thread Pent
            int state = thread.getStatus();             if(state != -1) {                 return VMThread.STATE_MAP[state]; // 812             } Thanks for tracking down the source :-) Since I only get one or two of these a week, I guess it's a SDK/device specific problem, only under

[android-developers] Re: Appwidget set background and set background transparency/alpha

2011-05-20 Thread Jake Colman
N == Niall twom...@gmail.com writes: N Worked perfectly. Thanks very much. I lifted this color picker N http://code.google.com/p/color-picker-view/ and wrapped it in a N custom preference and it works delightfully :) So your user can now use a preference option to control the

[android-developers] Re: Appwidget set background and set background transparency/alpha

2011-05-20 Thread String
Assuming his code is similar to mine, it's a simple matter of implementing the color picker (from the source link) and then passing the selected colorValue through this call into the widget (from earlier in the thread): RemoteViews.setInt(id, setBackgroundColor, colorValue); Is there some

Re: [android-developers] internet not working with emulator?

2011-05-20 Thread Diogo Salaberri
hi.. - verify if you have internet acess on your computer - if you are testing through a app, verify if you add on your manifest.xml a permission to INTERNET_ACESS Bye -- Atenciosamente; Diogo Bonoto Salaberri Bacharel em Ciência da Computação - UFPel -- You received this message because you

[android-developers] Multiple markets, one purchase?

2011-05-20 Thread Adam Ratana
I've put my very modest apps in Amazon App Store now, and I've just been thinking about this, and musing about Amazon's future strategy, complete speculation: - if Amazon is planning its Android tablets not to have the official google seal of approval, and not have android market (similar to

Re: [android-developers] internet not working with emulator?

2011-05-20 Thread Hitendrasinh Gohil
ya i have define internet_access and i am testing it with my emultor. i have just change my internet service provider. -- 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] How to Hide Alert Builder using Custom Layout

2011-05-20 Thread gaurav gupta
Hi guys. i need to hide a alert dialog builder on its onclick listener. m using a custom view for alert dialog, when i click on submit button of its custom view, this will do some work and hide. i cant set negative button here.Custom layout must have only one button. suggest me .how to do this.

Re: [android-developers] Android Twitter App

2011-05-20 Thread quique123
Really? An android twitter app question has nothing to do with android development? -- 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,

Re: [android-developers] Re: Giant Android Device seen at I/O

2011-05-20 Thread Streets Of Boston
At least some of them had working touch-screens at Google IO! 't Was pretty cool :) -- 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,

Re: [android-developers] Re: Multi-touch pointer ids on Sony Xperia Play spurious ACTION_DOWN events

2011-05-20 Thread Leigh McRae
Thank you for taking the time for such a great reply. I have couple of comments still though. On 5/19/2011 3:35 AM, Jeffrey Brown wrote: Some tips: 1. Use MotionEvent.getActionMasked() and MotionEvent.getActionIndex() to retrieve the masked action and changed pointer id respectively. This

Re: [android-developers] Re: How can I draw/move a point on screen ?!

2011-05-20 Thread TreKing
On Fri, May 20, 2011 at 7:18 AM, Diogo Salaberri caxix...@gmail.com wrote: If you see the first email from that thread, you'll see: *Any tutorial ? Any link ?* If you see the subsequent emails from this thread you will see several links posted. You will also see people asking you followup

[android-developers] Re: ISO 15693 UID inversed

2011-05-20 Thread Michael Roland
Hallo Johannes, the byte-order in the UID array exactly matches the byte-order defined in ISO/IEC 15693-3: MSB LSB +--+--+--+--+--+--+--+--+ |64 57|56 49|48 1|

Re: [android-developers] Re: Giant Android Device seen at I/O

2011-05-20 Thread Francois Masurel
One is available there and it has a touch screen : http://www.toutpourlavideo.com/totem-android-p-383.html Francois -- 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

[android-developers] How to capture system warnings in application ?

2011-05-20 Thread chcat
I am writing media streaming application... At some point i see the following warnings in LogCat: OsclNativeFile: writing xx bytes takes too long Any idea how i can capture that warning in my application code? Thank you, -- You received this message because you are subscribed to the Google

Re: [android-developers] Android Twitter App

2011-05-20 Thread TreKing
On Fri, May 20, 2011 at 8:46 AM, quique123 quique...@gmail.com wrote: Really? An android twitter app question has nothing to do with android development? Yes, really. Just because you're making an Android App does not automatically make every question you have on it it appropriate for this

[android-developers] Re: Java Guru needed -- compiler bug?

2011-05-20 Thread Streets Of Boston
Welcome to the wonderful world of generics. The emptyList method is defined as follows: public static final T List http://download.oracle.com/javase/1,5.0/docs/api/java/util/List.htmlT emptyList() With the statement CollectionString s = Collections.emptyList(), the compiler knows (because of

[android-developers] Re: Java Guru needed -- compiler bug?

2011-05-20 Thread Streets Of Boston
Welcome to the wonderful world of generics. The emptyList method is defined as follows: public static final T List http://download.oracle.com/javase/1,5.0/docs/api/java/util/List.htmlT emptyList() With the statement CollectionString s = Collections.emptyList(), the compiler knows (because of

[android-developers] Loading all Contacts from the Phone

2011-05-20 Thread Stefan S
I'm loading my Contacts with the following Uri Uri uri = ContactsContract.CommonDataKinds.Phone.CONTENT_URI; The problem is that I'm getting only the Contacts which are having a phone entry. Those which only have an e-mail will be ignored. What do I have to change for getting all Contacts from

[android-developers] FragmentPager component?

2011-05-20 Thread Scythe
During the Android 3.0 UI design talk on IO 2011, it was mentioned that we'll get a FragmentPager component soon. I'd like to know a bit more about this component, when'll this be released and what'll it be able to do? I'm quite curious, because it awfully sounds something that I'm working on

[android-developers] Re: startActivityForResult

2011-05-20 Thread kypriakos
Ah sleep is good ... Ok revisiting this I can see the wrong path I went down to ... I built a servlet for the ijetty web server that launches an Activity once a particular remote request comes in. The ijetty code provides the AndroidContext in all servlets through: Object o =

[android-developers] Re: Appwidget set background and set background transparency/alpha

2011-05-20 Thread Niall
Might be helpful for people to see the code. The preference (change as appropriate. My coding style is to have classes named with a lower first letter, so that has been changed from the link above): http://pastebin.com/1EkdJNnE Preference code: http://pastebin.com/r5LYfF2r Doing set colour

Re: [android-developers] Re: startActivityForResult

2011-05-20 Thread Nikolay Elenkov
On Fri, May 20, 2011 at 11:51 PM, kypriakos demet...@ece.neu.edu wrote: Ah sleep is good ... Ok revisiting this I can see the wrong path I went down to ... I built a servlet for the ijetty web server that launches an Activity once a particular remote request comes in. The ijetty code

[android-developers] Re: Can I change appwidget-provider XML 's android:initialLayout? How to do?

2011-05-20 Thread Perry168
Thanks a lot! Could you give me a hint? I just know to use RemoteViews(getPackageName(),R.Layout.LO1) to change the layout. About AppWidgetProvider XML, i had try to use (getPackageName(),R.xml.sc1), but I failed. On 5月20日, 下午6時07分, Mark Murphy mmur...@commonsware.com wrote: Just use your

Re: [android-developers] Re: Java Guru needed -- compiler bug?

2011-05-20 Thread Kostya Vasilyev
20.05.2011 18:24, Streets Of Boston ?: And i'm still not sure why the compiler can't pick up the same info from the 's' parameter declaration of the method 'method' This has some interesting stuff on Java's type inference for generics:

Re: [android-developers] Re: Can I change appwidget-provider XML 's android:initialLayout? How to do?

2011-05-20 Thread Mark Murphy
2011/5/20 Perry168 perry...@netvigator.com:   Could you give me a hint? I thought I did. I just know to use RemoteViews(getPackageName(),R.Layout.LO1) to change the layout. Correct. The layout supplied to the RemoteViews constructor does not have to be the same layout supplied to

[android-developers] Merchant Sales Report Issues

2011-05-20 Thread polyclefsoftware
I'm happy that Google has now added more detailed sales reporting to the Android Developer Console. Reconciling my payouts to partners and sales taxes was a nightmare before. However, there seems to be an issue with the reports from Jan 2011 and all months prior. Many of the fields have

[android-developers] Re: Can I change appwidget-provider XML 's android:initialLayout? How to do?

2011-05-20 Thread Perry168
Hi, Or how to change appwidget-provider XML in onUpdate()? On 5月20日, 下午6時07分, Mark Murphy mmur...@commonsware.com wrote: Just use your desired layout on the first onUpdate() call of your AppWidgetProvider. You cannot literally modify android:initialLayout, or anything inside of a resource, at

Re: [android-developers] Re: Can I change appwidget-provider XML 's android:initialLayout? How to do?

2011-05-20 Thread Mark Murphy
2011/5/20 Perry168 perry...@netvigator.com: Or how to change appwidget-provider XML in onUpdate()? As I wrote, you cannot change appwidget-provider XML, or any resource, at runtime. In your RemoteViews constructor, use the layout you want. -- Mark Murphy (a Commons Guy) http://commonsware.com

[android-developers] Re: Can I change appwidget-provider XML 's android:initialLayout? How to do?

2011-05-20 Thread Perry168
Thanks for your teaching! ~^O^~ On 5月20日, 下午11時41分, Mark Murphy mmur...@commonsware.com wrote: 2011/5/20 Perry168 perry...@netvigator.com: Or how to change appwidget-provider XML in onUpdate()? As I wrote, you cannot change appwidget-provider XML, or any resource, at runtime. In your

Re: [android-developers] Re: PDF Reader in Android OS

2011-05-20 Thread khanh_qhi™
Can anyone show me how to use PDFBox lib to view pdf files? I try to convert one pdf page to image, and then read it as an image. On Fri, May 20, 2011 at 6:52 PM, lbendlin l...@bendlin.us wrote: You have to be aware that the majority of web users in Asia do not know Google. They use

[android-developers] OpenGL ES 2 support in emulator?

2011-05-20 Thread Thomas
I'm wondering if Google has any plans to include OpenGL ES 2 support in the Android emulator at some point in the future? ES 2 is becoming increasingly more important as users upgrade for 2nd generation Android phones and the percentage of 1st generation phones (that do not support ES 2)

Re: [android-developers] Multiple markets, one purchase?

2011-05-20 Thread TreKing
On Fri, May 20, 2011 at 8:30 AM, Adam Ratana adam.rat...@gmail.com wrote: I doubt Amazon would attempt devices without the Android Market, but if there's a critical mass of the high quality apps in Amazon App Store, perhaps they would. Seems like that's exactly what they're aiming for.

Re: [android-developers] FragmentPager component?

2011-05-20 Thread Dianne Hackborn
It is something I have been working on. I don't know when it will be out to be used, but it will likely still be quite rough at that point. The code is not used by anything released at this point. It lets you do interactions like the swiping between panels in the news and weather app... though

[android-developers] Appwidget RemoteViews copy

2011-05-20 Thread Niall
Hi all. I've a quick question pertaining to remote views. Is it safe to keep and maintain a copy of the last RemoteViews that was used for updating the appwidget? I have a status message that is updated regularily (more so than the rest of the widget). Suppose I have something like...

[android-developers] Re: Why ImageView doesn't show up inside ScrollView

2011-05-20 Thread Frank
Thank you, Mark, for the reply. For of all, I am pretty new to Android and my code is by no means doing things in the most meaningful way. :) Before answering your question, can I ask does using LinearLayout.LayoutParams prevent it from working? I tried to comment it out, but it still doesn't

Re: [android-developers] Re: startActivityForResult

2011-05-20 Thread Kostya Vasilyev
20.05.2011 18:51, kypriakos ?: Oh, and I see that the intent you're trying to start is for a service. Using startActivity (for result or not) with a service intent just doesn't make sense. Where do you see that? The intent I am starting is an Activity class. Can you explain please?

Re: [android-developers] Re: Why ImageView doesn't show up inside ScrollView

2011-05-20 Thread Mark Murphy
On Fri, May 20, 2011 at 12:47 PM, Frank frank.android@gmail.com wrote: Before answering your question, can I ask does using LinearLayout.LayoutParams prevent it from working? Quite possibly. I tried to comment it out, but it still doesn't work. Just call addView() with the child View.

Re: [android-developers] Re: startActivityForResult

2011-05-20 Thread luiX_
Haven't read carefully all the responses but just a quick note: It's not a good idea to declare the request code as a local variable, I usually declare them as constants because you'll need it in the onActivityResult method :) 2011/5/20 Kostya Vasilyev kmans...@gmail.com 20.05.2011 18:51,

Re: [android-developers] Appwidget RemoteViews copy

2011-05-20 Thread Kostya Vasilyev
Keeping the same RemoteViews object and repeatedly adding more operations will cause the copy in your process to get bigger and bigger, and the actual updates in the launcher process to get slower and slower over time. The basic pattern is really simple: rv = new RemoteViews ()

Re: [android-developers] Merchant Sales Report Issues

2011-05-20 Thread TreKing
On Fri, May 20, 2011 at 10:24 AM, polyclefsoftware dja...@gmail.com wrote: If there is a more appropriate forum to note this issue, or a place to report bugs, please point me to it. http://www.google.com/support/androidmarket/developer/bin/answer.py?answer=136601hl=en Otherwise, could

Re: [android-developers] urgent help

2011-05-20 Thread TreKing
On Fri, May 20, 2011 at 4:20 AM, neha neha.05...@gmail.com wrote: hi Is there are anyone who worked on SIP server. I want to get registered with server and make call. This is an Android Development group, not a SIP server group.

[android-developers] Re: ListPreference.getSummary

2011-05-20 Thread String
Reviving an old [degenerate] thread, rather than creating a new one... I've been getting occasional UnknownFormatConversionException error reports in my Dev Console, and had no idea what they were from. Today I think I've figured it out, because it's occurring reliably on my Honeycomb device.

[android-developers] Re: How to load resources like texture images sound files in native code?

2011-05-20 Thread Halsafar
The example basically involves loading up the PNG Java side using the Android Bitmap class. Then exposing some Java functions to the native side so the native side can ask for the bytes of the image. Which part is giving you trouble? I'll guide as best I can. On May 19, 2:10 am, Atul Prakash

Re: [android-developers] Re: ListPreference.getSummary

2011-05-20 Thread Kostya Vasilyev
Percent character in String.format() is obtained by specifying %% (two percent signs). http://download.oracle.com/javase/1.5.0/docs/api/java/util/Formatter.html ( search for percent, where it says The result is a literal '%' ) But I bet you already knew that :) On the other hand, this

[android-developers] Re: ListPreference.getSummary

2011-05-20 Thread String
No, I hadn't thought of using %%. That works, thanks! FWIW, this is happening in stock Honeycomb, not CM as the OP was experiencing. String On May 20, 6:34 pm, Kostya Vasilyev kmans...@gmail.com wrote: Percent character in String.format() is obtained by specifying %% (two percent signs).

[android-developers] Unlock thing

2011-05-20 Thread Renan
I have a running android Service. It runs even on the lockscreen, and I want it to somehow Unlock the lockscreen. How can I interfere with the lockscreen activity or whatever the lockscreen is, to unlock it... I want my service to Unlock the lockscreen, just like if the user slided the unlock

Re: [android-developers] How to capture system warnings in application ?

2011-05-20 Thread TreKing
On Fri, May 20, 2011 at 9:11 AM, chcat vlyamt...@gmail.com wrote: Any idea how i can capture that warning in my application code? Define capture. - TreKing

Re: [android-developers] NoClassDefFoundError thrown when an Android project references Eclipse project where project layout is set to project folder as root for sources and class files layout

2011-05-20 Thread Xavier Ducrohet
The only possible workaround is to export the referenced project as a jar file and use that in the android project. I've seen the bug you filed and will be looking at it to see what's up in our builder (thanks for providing a test project too!) thanks Xav On Thu, May 19, 2011 at 1:35 PM, Anar

[android-developers] how to generate ID's for dynamic radio buttons

2011-05-20 Thread jotobjects
I am generating RadioButtons in code and adding them to a RadioGroup. Seems like I need ID values to be able to use check(id) and so forth. The bug I have now is that calling RadioButton.setChecked(true) does not uncheck the already checked button. For creating ID's in code can I just use

[android-developers] Re: Why ImageView doesn't show up inside ScrollView

2011-05-20 Thread Frank
In fact, this is just a trial code. What I really want to do is to tile a ViewGroup with a whole bunch of ImageViews. I want to specify the absolute location and dimensions of eachImageViewinside the parent ViewGroup. However, it looks to me that I cannot do this. I found there is

Re: [android-developers] Re: Why ImageView doesn't show up inside ScrollView

2011-05-20 Thread Mark Murphy
On Fri, May 20, 2011 at 2:12 PM, Frank frank.android@gmail.com wrote: If I can tile a ViewGroup as I planned originally, I can tile beyond the visible region. Then when it is scrolled, Android can just quickly scroll in the new tiles (with whatever hardware acceleration it can use). If I

[android-developers] Re: IllegalStateException: Fragment not added in ActionBarTabs example

2011-05-20 Thread Ed Burnette
Ok, I've entered a bug report. See/vote for: http://code.google.com/p/android/issues/detail?id=17029 . Thanks. On May 19, 2:46 pm, Shane Isbell shane.isb...@gmail.com wrote: I've run into this on occasion, I surrounded it with a general Exception catch to handle this, which seemed to have no

[android-developers] Re: how to generate ID's for dynamic radio buttons

2011-05-20 Thread jotobjects
Adding more detail to question - the source for CompoundButton shows that findViewById() is used to find the currently checked button. So that means ID's I assign to these buttons must be unique in the current View hierarchy. Does anyone have a suggestion on generating unique View ID''s at

Re: [android-developers] Re: IllegalStateException: Fragment not added in ActionBarTabs example

2011-05-20 Thread Dianne Hackborn
Lots of votes for bugs just makes me want to ignore the bug. Just saying. I hate bug voting. Drives me crazy. On Fri, May 20, 2011 at 11:23 AM, Ed Burnette ed.burne...@gmail.com wrote: Ok, I've entered a bug report. See/vote for: http://code.google.com/p/android/issues/detail?id=17029 .

Re: [android-developers] Re: IllegalStateException: Fragment not added in ActionBarTabs example

2011-05-20 Thread Mark Murphy
On Fri, May 20, 2011 at 2:29 PM, Dianne Hackborn hack...@android.com wrote: Lots of votes for bugs just makes me want to ignore the bug.  Just saying. Is there another mechanism on b.android.com to subscribe to an issue without voting for it? I hate bug voting.  Drives me crazy. There's no

Re: [android-developers] Appwidget RemoteViews copy

2011-05-20 Thread Niall
See. The problem is that I generate a table (with nested ListViews) and display it on the appwidget, and the elements of the table (as well as the buttons) have on intents tied to them when a user presses on a place of the table. And if the orientation of the phone changes (which isn't beyond

Re: [android-developers] How to disable USB tethering in android

2011-05-20 Thread Rogério de Souza Moraes
Hi Satish, if you plan to build your own SDK, delete the line itemusb0/item inside the file frameworks/base/core/res/res/values/config.xml this will disable the usb tethering. Regards, Rogerio 2011/5/20 Mark Murphy mmur...@commonsware.com On Thu, May 19, 2011 at 7:06 AM, satish kuma s,n.

Re: [android-developers] How to disable USB tethering in android

2011-05-20 Thread Chris Stratton
On Friday, May 20, 2011 2:46:13 PM UTC-4, Roger wrote: if you plan to build your own SDK, delete the line itemusb0/item inside the file frameworks/base/core/res/res/values/config.xml this will disable the usb tethering. That would be kind of pointless, as the SDK does not get installed on

Re: [android-developers] Appwidget RemoteViews copy

2011-05-20 Thread Niall
I should explain better. A user presses a refresh button (or an alarm service triggers the same effect) on the appwidget. I want to tell the user that the system is refreshing so they know the widget's doing something. But I want to tell the user that it's happening immediately. So I need to

Re: [android-developers] Re: How to get synced Google contact group programmatically ?

2011-05-20 Thread Goutom
Hello Jens May I have tutorial link on this topics(How to get synced Google contact group programmatically ?)? On Thu, May 19, 2011 at 3:31 PM, Jens dunkingbikk...@gmail.com wrote: I assume you mean : http://developer.android.com/reference/android/provider/ContactsContract.Groups.html

Re: [android-developers] Help to do a trick on the Lock screen

2011-05-20 Thread TreKing
On Thu, May 19, 2011 at 9:40 AM, Renan renanleand...@gmail.com wrote: I'm doing an App that need's to interfere with the Lock Screen... That doesn't sound suspicious at all. How can i do that??? You can't, AFAIK.

  1   2   >