Re: [android-developers] Re: Built-in resource unexpectedly not found

2011-01-28 Thread Mark Carter
Thank you for clarifying those points, Dianne. On 28 January 2011 00:42, Dianne Hackborn hack...@android.com wrote: This isn't really a problem; it is working as intended. You are using something from a newer platform that doesn't exist on an older platform. What do you expect to happen

[android-developers] Is it possible to use official Android icons in paid apps?

2011-01-28 Thread Mariux
Hello, is there some sort of prohibition to use official Android icons in paid apps? The Android SDK Terms of use reports this: 3.3 Except to the extent required by applicable third party licenses, you may not copy (except for backup purposes), modify, adapt, redistribute, decompile, reverse

Re: [android-developers] Honeycomb Emulator Landscape issue on Ubuntu 10.04

2011-01-28 Thread Steve Gores-Todd
The solution can be found on the SKD preview page near the bottom. http://developer.android.com/sdk/preview/index.html Known issues The following known issues occur for Android 3.0 AVDs that are loaded in the emulator: - The emulator displays a rotated portrait screen while in landscape

[android-developers] No option to download the API documentation in the Android SDK and AVD Manager

2011-01-28 Thread Dinesh Bajaj
https://lh6.googleusercontent.com/_FfdEN7satfM/TUKOV6EcVJI/ABE/_sOSgfOpJic/Available%20Packages.png https://lh4.googleusercontent.com/_FfdEN7satfM/TUKOLXx8KAI/AAc/l52IsJn72uo/Installed%20Packages.png I want to store Android API documentation offline, however there is no option

Re: [android-developers] Import package does not work...

2011-01-28 Thread Marko Mijatovic
OK Thanks! -- 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

[android-developers] Re: High sensor usage in stand by

2011-01-28 Thread Alex Munteanu
The problem is that I see on the same phone (Samsung Galaxy S) the situation when my application doesn't get listed in Batery Use with high use (and it this case Sensor Usage of Spare Parts reports little usage for my app) and the situation when it get's listed (and in this case Sensor Usage of

[android-developers] How to add a text file as part of the apk

2011-01-28 Thread Reddy
Hi, 1. I have one txt file which contains some data. 2. Creating an app(apk) which uses (open, read, write, close) the txt file. What i want is, when i install the apk, txt file also need to be installed in the target. Can any one let me know is it possible. If yes please let me know the

Re: [android-developers] Honeycomb Emulator Landscape issue on Ubuntu 10.04

2011-01-28 Thread Kostya Vasilyev
You can scale the emulator by enabling scale to real size in the emulator launch dialog. It's the only way to get the galaxy tab to fit, as well. Being able to scroll would be nice too, but afaik, that's not possible. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 28.01.2011 12:41

[android-developers] Re: High sensor usage in stand by

2011-01-28 Thread Alex Munteanu
Now, my question that just popped up in my head is what's actualy happening when my service receive the SCREEN_OFF event ? I have a couple of things that are executed at this point (one of them is unregister the Listener for Orientation Sensor), but how the Android handle this ? I mean, always

[android-developers] Re: Android SDK is so slow that is ridiculous.

2011-01-28 Thread sblantipodi
Other emulators works with natively speed, don't compare a 1GHz Cortex or Snapdragon processor with a modern desktop CPU please, its ridiculous. @Raphael: Thanks for the answer, I appreciate your answer and hope to see some fix soon :) On Jan 28, 3:44 am, Zsolt Vasvari zvasv...@gmail.com wrote:

[android-developers] waiting for debugger

2011-01-28 Thread ruspa
I set debuggable=false and commented //android.os.Debug.waitForDebugger(); so that there are no ways my app should go in debug mode, but since yesterday even if the phone is not usb connected my app is showing up the popup waiting for debugger... [force close] at startup. The licensing

[android-developers] Re: Waiting for debugger force close (when USB is not attached)

2011-01-28 Thread ruspa
same problem here, without touching by no means the setdebuggable true/false parts of code, my apps starts and stucks waiting for a inexistent debugger :( trying to soft reset now... I'm very worried) On 9 Gen, 23:41, Dianne Hackborn hack...@android.com wrote: Did you select your app to be

Re: [android-developers] How to add a text file as part of the apk

2011-01-28 Thread Marcin Orlowski
On 28 January 2011 10:48, Reddy devireddy@gmail.com wrote: Hi, 1. I have one txt file which contains some data. 2. Creating an app(apk) which uses (open, read, write, close) the txt file. What i want is, when i install the apk, txt file also need to be installed in the target. Use

Re: [android-developers] How to add a text file as part of the apk

2011-01-28 Thread Kumar Bibek
You canot write/change the txt file if you put it in the assets. So, on first run of app, make a copy to SD card or the data directory, and then, you can proceed. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Fri, Jan 28, 2011 at 3:59 PM, Marcin Orlowski

[android-developers] Re: Confusion over MediaPlayer Framework on GingerBread and Apple's HTTP Live Streaming Support

2011-01-28 Thread Samuh
I tried same code on 3.0 Preview SDK and was unable to play Apple's Test Stream.('http://devimages.apple.com/iphone/samples/bipbop/gear1/ prog_index.m3u8). Following debug stmts were written to a trace file, however : http://pastebin.com/kNXWYYhf can please someone explain what went wrong there?

[android-developers] Re: Providing 2 differing interfaces to a remoteService

2011-01-28 Thread Dale Harvey
onBind only gets called once when the service is started, subsequent bindServices reuse the same IBinder This isnt particularly well documented, but confirmed after numerous attempts to debug and

[android-developers] reset market license

2011-01-28 Thread ruspa
I got some issues with my market license key.. I've read about how LVL check fails with ApiException 503 error for preventing dos attacks..etc.. but now I'm getting this error on my own phone and can't run or debug in no way the app. How can I reset the market LVL timer or change my keys? I've

[android-developers] Re: reset market license

2011-01-28 Thread ruspa
there should be a way to kill the feature that detects this dos attack, it's impossible to test effectively something without running the piece of code dozens and dozens of times. If the market verification fails after a couple of trials it's quite disappointing. Plus, this 503 issue (ops should

[android-developers] Re: Honeycomb browser broken?

2011-01-28 Thread James Pearce
Rumor is that all those screenshots in the media came from Google themselves :-) On Jan 27, 2:11 pm, H m...@howardb.com wrote: Is there anything we can do to try to help it..? I've even updated the shared_prefs for the browser to disable hardware_accel in the vain hope that might help but no

[android-developers] Re: Honeycomb browser broken?

2011-01-28 Thread H
Ordinarily I would probably believe you. But I saw this picture for a specific android website posted on their own site makes me think they definitely managed to get it to work:

[android-developers] Honeycomb SDK - TabHost issue

2011-01-28 Thread roundhill
Tried our app (WordPress for Android) on the Honeycomb preview, when it gets to the point where it uses a TabHost the app crashes on ViewRoot.draw() Anyone else having problems with a tab layout in Honeycomb? -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Passing objects to new intents

2011-01-28 Thread maccoy
why not class implementes Serializable myBundle.putSerializable( and get the class back?? is there a performance issue? On Dec 30 2010, 5:21 pm, TreKing treking...@gmail.com wrote: On Thu, Dec 30, 2010 at 3:36 AM, maomaostevencao maomaosteven...@hotmail.com wrote: What you have said is the

Re: [android-developers] Re: Providing 2 differing interfaces to a remoteService

2011-01-28 Thread Kostya Vasilyev
Dale, Here is a few ideas: - A service-specific singleton *should* work, along the lines of setting a static to this in the service's onCreate or onBind and resetting to null in onDestroy. - You could add a method in the primary AIDL interface that obtains the administration interface. The

[android-developers] Tab layout problem

2011-01-28 Thread vnv
Hi, I need to implement following layout [search text] [Tab1][Tab2][Tab3] [ ] [ Tab Content] [ ] [Button1] [Button2] My activity is already ListActivity so I cannot extend it to TabActivity ? I have [search text] and [button#]

[android-developers] java.net.SocketTimeoutException when downloading

2011-01-28 Thread kavitha b
Hi All, I am developing a streaming player.I need to store streamed content.So I am downloading streamed content. But I am getting exception after 5 minutes when using Wifi. W/System.err(12726): java.net.SocketTimeoutException W/System.err(12726): at

[android-developers] Two methods of dialogs button tuning. What the difference

2011-01-28 Thread Aevea
There is two methors to add buttons to AlertDialog 1. using AlertDialog.Builder and calling builder.setPositiveButton or setNegativeButton 2. using AlertDialog dialog; dialog.setButton dialog.setButton2. What the difference By the way, if I inherit my class from Dialog should I override all

Re: [android-developers] Re: Passing objects to new intents

2011-01-28 Thread Kostya Vasilyev
Serializable has higher overhead than Android's similar built-in interface, Parcelable. Try using Parcelable if possible, and consider support for Java serialization a fall-back (for compatibility with legacy and library code). -- Kostya 28.01.2011 14:44, maccoy пишет: why not class

[android-developers] Re: openFileOutput, FileNotFoundException

2011-01-28 Thread Michael
On 27 Jan, 19:52, TreKing treking...@gmail.com wrote: You do not need external storage permission to save local data. Any other permissions than can be the issue? I've tried reading some documentation for the answer, but i can't find anything about internal storage and permission. -- You

Re: [android-developers] How to add a text file as part of the apk

2011-01-28 Thread Marcin Orlowski
On 28 January 2011 11:34, Kumar Bibek coomar@gmail.com wrote: You canot write/change the txt file if you put it in the assets. So, on first run of app, make a copy to SD card or the data directory, and then, you can proceed. I was writting mine in a hurry so I now see my post looks bit

Re: [android-developers] Re: Providing 2 differing interfaces to a remoteService

2011-01-28 Thread Mark Murphy
On Fri, Jan 28, 2011 at 5:44 AM, Dale Harvey d...@arandomurl.com wrote: onBind only gets called once when the service is started, subsequent bindServices reuse the same IBinder Set it up so the one AIDL has a superset of the methods of the other. Then, only bind once. Though it would be nice

Re: [android-developers] No option to download the API documentation in the Android SDK and AVD Manager

2011-01-28 Thread Mark Murphy
I have downloaded documentation on all my machines. Documentation for Honeycomb shows up as an option in the SDK and AVD Manager on this particular environment I am sitting at now. Furthermore, there are no images for which we should verify this. On Fri, Jan 28, 2011 at 4:39 AM, Dinesh Bajaj

[android-developers] Re: how to change background of a widget

2011-01-28 Thread cellurl
That worked so easily, I didn't believe it at first! Only the experts know the workarounds. Thanks Kostya! -cellurl On Dec 18 2010, 3:45 am, Kostya Vasilyev kmans...@gmail.com wrote: 17.12.2010 23:03, cellurl пишет: More info. It says RemoteView doesnt have setImageResource(). Q: Does that

Re: [android-developers] Re: openFileOutput, FileNotFoundException

2011-01-28 Thread Kostya Vasilyev
Michael, Your code (as posted) is correct. Just in verify, I just pasted in verbatim into my application and verified that it works (as it should). Try removing and reinstalling the application, see if that helps. Other than that - is this a Samsung Galaxy S with 2.2.1 firmware, by any

Re: [android-developers] Re: how to change background of a widget

2011-01-28 Thread Kostya Vasilyev
Cool! 28.01.2011 16:39, cellurl пишет: That worked so easily, I didn't believe it at first! Only the experts know the workarounds. Thanks Kostya! -cellurl On Dec 18 2010, 3:45 am, Kostya Vasilyevkmans...@gmail.com wrote: 17.12.2010 23:03, cellurl пишет: More info. It says RemoteView doesnt

Re: [android-developers] No option to download the API documentation in the Android SDK and AVD Manager

2011-01-28 Thread Dinesh Bajaj
Thanks for your response, Mark. I too had earlier downloaded documentations for Android Platforms, but yesterday I had to uninstall the whole SDK package due a problem, and when I re-installed it, I saw that there was no option to download the documentation. I just ran the SDK manager to

[android-developers] Re: Is it possible to use official Android icons in paid apps?

2011-01-28 Thread Brill Pappin
Thats a good questions. I know that even Google Engineers will suggest that if you want to use the icons in the SDK that you make your own copy to bundle with the app. Although based on what you've highlighted here thats not supposed to happen. However, at the same time all the source is license

Re: [android-developers] Re: Honeycomb browser broken?

2011-01-28 Thread Marcin Orlowski
On 28 January 2011 12:22, H m...@howardb.com wrote: Ordinarily I would probably believe you. But I saw this picture for a specific android website posted on their own site makes me think they definitely managed to get it to work:

[android-developers] Honeycomb Preview SDK: HTTP Live Streaming support validation

2011-01-28 Thread Samuh
I have tried playing via MediaPlayer Apple's test stream: http://devimages.apple.com/iphone/samples/bipbop/gear1/prog_index.m3u8 The emulator displayed just a black screen. A trace was written to the logs which can also be found here: http://pastebin.com/kNXWYYhf Questions: 1. Can someone please

[android-developers] Re: openFileOutput, FileNotFoundException

2011-01-28 Thread Michael
Thanks for the answer and for testing the code. I'm developing on Eclipse - this is my first try on android developing and my java isn't that good in the first place. I'm using a virtual andriod phone for testing, but i can't even compile the code because of the error message. I will try and

Re: [android-developers] No option to download the API documentation in the Android SDK and AVD Manager

2011-01-28 Thread Kostya Vasilyev
Just checked on my computer - the only documentation package I get is Documentation for Android Honeycomb Preview SDK. The documentation for API 9 is no longer on the list. So it's not just your computer - either it's deliberate and the Honeycomb docs include all the older stuff, or else this

Re: [android-developers] Re: openFileOutput, FileNotFoundException

2011-01-28 Thread Kostya Vasilyev
Ah!!! So you have a *compile* error! Ok, try this: String fil = test2; String string = exempeltext; FileOutputStream fos; try { fos = openFileOutput(fil, Context.MODE_PRIVATE); fos.write(string.getBytes()); fos.close();

[android-developers] Re: openFileOutput, FileNotFoundException

2011-01-28 Thread Michael
Thanks alot for the help Kostya. I'll definitely follow your advice and learn som more about exceptions and debuggning. /Micke On 28 Jan, 15:12, Kostya Vasilyev kmans...@gmail.com wrote: Ah!!! So you have a *compile* error! Ok, try this:          String fil = test2;          String string =

[android-developers] Why is the GIT repository so slow lately?

2011-01-28 Thread niko20
Why is the GitWeb interface about 500% slower than it used to be? Maybe from parsing such a huge database of GIT entries...? -niko -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Re: Problem move to sd card

2011-01-28 Thread TreKing
On Fri, Jan 28, 2011 at 1:52 AM, a3g a3g.astur...@gmail.com wrote: Can you undestand me now? Yes. Post the manifest section where you specify the install location. - TreKing

[android-developers] showing map and a saving location

2011-01-28 Thread Atif Musaddaq
Hi, I would like to show map of the current location along with a small form a text field with a submit button. what exactly i want to do is: to let user save his desired location, but with addition of that i would like to show him on the map where he/she is. Is it possible to do in a single

[android-developers] Custom button border

2011-01-28 Thread Premier
Hello, i want to make a breadcrumb for my android app. In breadcrumb on the left there is an imagebutton with arrow border. On the right there is a text title. When user tap on imagebutton, application performs specific task. So, how i can create a button with arrow on border right? Thank you.

[android-developers] Shell Console for Android

2011-01-28 Thread Abhyudai Shanker
Hi everyone, I am trying to build a shell console for Android, much like a command prompt in windows or any OS on the PC. However I am unable to understand how to start with the process. I cant really understand the underlying working which would be required to get the console working. If

Re: [android-developers] Shell Console for Android

2011-01-28 Thread Kostya Vasilyev
If you're doing this in Java, use ProcessBuilder: http://developer.android.com/reference/java/lang/ProcessBuilder.html -- Kostya 28.01.2011 18:05, Abhyudai Shanker пишет: Hi everyone, I am trying to build a shell console for Android, much like a command prompt in windows or any OS on the

[android-developers] Re: Android SDK is so slow that is ridiculous.

2011-01-28 Thread JAlexoid (Aleksandr Panzin)
I'm not complaining about the performance, since I know the problems behind it. But, with the inevitable performance problems maybe a simulated environment(with x86 architecture) or a Android x86 VM would be a better option(in performance). Problems will probably arise with the optimisations of

[android-developers] Re: NFC Secure Element

2011-01-28 Thread mtk
I added the code to set wired mode in com_android_nfc_NativeNfcManager.cpp. I also added some additional methods on NFcService so I can conveniently call it from my test activity. For sending APDU commands in SWP mode, I use another activity with TAG_DISCOVERED action in android manifest, (just

[android-developers] Re: Data Transfer between Android Phone and PC

2011-01-28 Thread JAlexoid (Aleksandr Panzin)
http://download.oracle.com/javase/tutorial/networking/sockets/ http://www.oracle.com/technetwork/java/socket-140484.html http://www.google.com/search?client=ubuntuchannel=fsq=java+sockets+tutorialie=utf-8oe=utf-8 These should help On 28 янв, 01:33, Joseph bates josephbate...@gmail.com wrote:

[android-developers] Re: Problem releasing activities

2011-01-28 Thread JAlexoid (Aleksandr Panzin)
Try getting the phone memory filed up. So it starts GC'ing and killing off processes to release the memory. Or try filling up the heap with total garbage and trigger a GC. If after that point you actually have the unused(or what you would expect to become garbage) Activities and Views retained,

Re: [android-developers] hi

2011-01-28 Thread TreKing
On Thu, Jan 27, 2011 at 11:16 PM, tushar sahni tusharsahn...@gmail.comwrote: I will be greatly thankful to u for any contribution or coordination Step 1 - Reread your own post. Step 2 - Ask, does this make sense to anyone that knows nothing about my project?. Step 3 - Answer yourself, No,

[android-developers] Re: Vanishing apps in the Market with 2.2.2

2011-01-28 Thread jarkman
Yes, our apps are. And, based on our previous experience, we can't un- copy-protect them without making their data unreadable. I suppose we just have to wait for the Market folks to fix their database. Richard On Jan 27, 12:17 am, Peter Sinnott psinn...@gmail.com wrote: Sometimes new firmwares

[android-developers] Re: Suggested Android Phone for Unity Game Development Testing?

2011-01-28 Thread JAlexoid (Aleksandr Panzin)
Get a Nexus One. Unity guys that ported their engine to Android were using G1 originally and now Nexus One. On 25 янв, 02:29, HV-Charley charles.holmes.pr...@gmail.com wrote: Hey everyone, I'm new to Android development and am looking to sort out what I should be getting as a development

[android-developers] Re: Problem move to sd card

2011-01-28 Thread JAlexoid (Aleksandr Panzin)
I think, Copy protection disables Move to SD. On 28 янв, 09:52, a3g a3g.astur...@gmail.com wrote: When I download my app from Android Market and I try to move to sd card, I can't move it because the button is disabled but If I run the app in my phone by usb I can move it, because the button is

[android-developers] How to convert a image into Base64

2011-01-28 Thread saex
Hi Can someone tell me the code to transforma image (maximum of 200KB) into Base64 ??? i need to know how to do it with android, because i have to add the functionality to upload images to a remote server in my main app i am searching in google but i can't find easy examples that i can aford

Re: [android-developers] How to convert a image into Base64

2011-01-28 Thread Kumar Bibek
There are a few Base64Encoders available. Search for them. http://www.source-code.biz/base64coder/java/ Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Fri, Jan 28, 2011 at 10:03 PM, saex elpablos...@gmail.com wrote: Hi Can someone tell me the code to transforma image

[android-developers] Re: Is it possible to use official Android icons in paid apps?

2011-01-28 Thread Mariux
This is really hard to find out. There's no clear statement that SDK components as platform images are effectively Open Source (under Apache License). There are a lot of paid apps that use, for example, Gingerbread icons and drawables, even full apps ripped or reverse-engineered from Gingerbread

[android-developers] How to convert a image into Base64 string?

2011-01-28 Thread saex
Hi Can someone tell me the code to transforma image (maximum of 200KB) into Base64 String??? i need to know how to do it with android, because i have to add the functionality to upload images to a remote server in my main app putting them into a ROW of the database, as a string. i am searching

[android-developers] Re: How to convert a image into Base64 string?

2011-01-28 Thread Hari Edo
This kind of question seems more like a school homework assignment, but in case the question is practical, here goes. What Base64 is: http://en.wikipedia.org/wiki/Base64 This article gives plenty of examples and details that someone can write their own fully-tested implementation in an hour.

[android-developers] Re: How to convert a image into Base64 string?

2011-01-28 Thread Hari Edo
Perhaps the actual question is how to get a byte[] for a given Bitmap or vice versa. This is, indeed, Android-specific and not as obvious as the Base64 part of your question. However, again, with a couple minutes of Google use, I found this snippet: // have Bitmap bitmap from somewhere

Re: [android-developers] Re: How to convert a image into Base64 string?

2011-01-28 Thread Kostya Vasilyev
This class (as well as Base64OutputStream) is only available starting with API level 8, which may not work for all applications. -- Kostya 28.01.2011 19:56, Hari Edo пишет: However, this question is even sillier than that. The Android platform even includes a class called Base64 which does

Re: [android-developers] Honeycomb SDK - TabHost issue

2011-01-28 Thread Romain Guy
Hi, Could you please post your stack trace? We've made extensive changes to the rendering system in Android 3.0 and I want to make sure we catch any issue we might have missed. Note that the preview SDK is not a final version and that we are still actively fixing bugs, so we might already have

[android-developers] Table row content disappearing on rotate

2011-01-28 Thread FractalBob
Hi, I have an app that includes two TableLayouts whose rows are filled in dynamically. Whenever I rotate the device, the rows are cleared for both tables. This only happens with the tables, not with other views, like TextViews. The relevant XML and Java code are as follows: *play.xml:*

Re: [android-developers] Table row content disappearing on rotate

2011-01-28 Thread TreKing
On Fri, Jan 28, 2011 at 11:31 AM, FractalBob ruom...@gmail.com wrote: Any ideas would be appreciated. http://developer.android.com/guide/topics/fundamentals.html#actlife - TreKing

Re: [android-developers] Play Wav file with dynamic path

2011-01-28 Thread TreKing
On Fri, Jan 28, 2011 at 12:47 AM, Amit Mangal forum.amit.man...@gmail.comwrote: i want to decide at run time which file need to play. i have file name in string. how to get the path of the file and using which api i can play that file.

Re: [android-developers] Stop installation of package

2011-01-28 Thread TreKing
On Fri, Jan 28, 2011 at 1:56 AM, rashmi rashmi@gmail.com wrote: Can I stop the installation of package?. Please let me know if any observer is there for installation of package to get to know about the status of installation and how can I stop/cancel the installation. Don't think so. You

[android-developers] Getting NullPointer Exception while inserting into database!!!

2011-01-28 Thread Pink
Hi, I am trying to insert data my content provider. But getting NullPointer exception, though every thing is seems ok. I checked evry thing in code. But got no clue. I have been getting irritated. I am getting following Exception. /AndroidRuntime( 3077): Caused by:

[android-developers] Communicating with the browser

2011-01-28 Thread kypriakos
Hi all, if I run a client (any kind of a client, let's say javascript) on the native browser which access a remote web server and retrieves a page I can theoritically intercept that request and have a local agent return to the browser (on the socket that it was writing to) a response using

[android-developers] TextView - how to make appended text visible?

2011-01-28 Thread John Lussmyer
I have a TextView that frequently has text appended from a service. I can append the text just fine, but how do I make the TextView scroll so the newly appended text is visible? Once the view fills, the new text is below the bottom edge. -- You received this message because you are subscribed to

Re: [android-developers] Getting NullPointer Exception while inserting into database!!!

2011-01-28 Thread Kumar Bibek
You are using Parcel? There might be something wrong there. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Fri, Jan 28, 2011 at 11:16 PM, Pink sivareddy.j...@gmail.com wrote: Hi, I am trying to insert data my content provider. But getting NullPointer exception,

Re: [android-developers] Table row content disappearing on rotate

2011-01-28 Thread FractalBob
Thanks for the link. I read it but I couldn't see the relevance. Does device rotation require that the activity state, including the entire row data, be saved by the app? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] Table row content disappearing on rotate

2011-01-28 Thread TreKing
On Fri, Jan 28, 2011 at 11:55 AM, FractalBob ruom...@gmail.com wrote: Thanks for the link. I read it but I couldn't see the relevance. Does device rotation require that the activity state, including the entire row data, be saved by the app? If you are populating it dynamically, as you

Re: [android-developers] Table row content disappearing on rotate

2011-01-28 Thread Kostya Vasilyev
28.01.2011 20:58, TreKing пишет: Remember, rotating the device causes a change in configuration which cause the system to kill and restart your app. Built-In views will normally retain their state, but other changes you've made dynamically are your responsibility. They cause Android to

[android-developers] is it possible to override 9 patch pngs?

2011-01-28 Thread kernelpanic
specifically, I am trying to change the 9 patch image used for btn_dropdown_normal.9.png anyone know how to override the stock 9 patch images without rooting the device or other silly ideas? I was hoping that selection of a 9 patch image file would cascade through from my project's drawable-mdpi

[android-developers] Re: How to change the background color of ToggleButton?

2011-01-28 Thread Roger Podacter
I was interested in doing something like this as well. My app has 6 toggle buttons in a row on one line, and it doesn't quite fit on portrait screen. I wanted to make a custom toggle button, color, width, etc. You could also make your own state-list drawable I think It's called. Anyway in the

Re: [android-developers] Table row content disappearing on rotate

2011-01-28 Thread TreKing
On Fri, Jan 28, 2011 at 12:04 PM, Kostya Vasilyev kmans...@gmail.comwrote: They cause Android to destroy and recreate the Activity. The app (meaning the process) keeps running. Yeah, sorry, by app I meant what you're currently running / seeing on the screen (meaning the activity). Good

Re: [android-developers] is it possible to override 9 patch pngs?

2011-01-28 Thread Kostya Vasilyev
You can copy the platform defaults into your project, edit them as you like, and use with buttons by setting android:background. This would affect your own application. As for changing an Android resource so it affects other apps - sorry, no. -- Kostya 28.01.2011 21:07, kernelpanic пишет:

Re: [android-developers] Getting NullPointer Exception while inserting into database!!!

2011-01-28 Thread H
It may be PArcel, but unlikely - the contentprovidernative code uses Parcels to return errors/messages from/to the contentprovider. Can you post the code in your contentprovider for the insert() method..? -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Strange orange background color when custom 9 patch button is pressed...

2011-01-28 Thread Jarrette
I made a custom background for the buttons in my app. Here is my btn_blue.xml markup ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_focused=true android:state_pressed=false

[android-developers] Re: is it possible to override 9 patch pngs?

2011-01-28 Thread kernelpanic
ok, let me clarify that I only want to affect my app. I created a spinner with an image and text, and the drop down arrow gets stretched in the middle - and it looks kinda like this guy's here http://androidforbeginners.blogspot.com/2010/10/spinner-down-arrow-stretching.html i just want to

[android-developers] Re: How to convert a image into Base64 string?

2011-01-28 Thread H
If you do need to convert a byte[] to base64 and back again, the android LVL has a utility class called Base64 which does exactly that. It is completely standalone and has no imports whatsoever, so it should work fine with any version of Android. -- You received this message because you are

Re: [android-developers] Re: How to change the background color of ToggleButton?

2011-01-28 Thread Kostya Vasilyev
If you only want to change the way a ToggleButton looks (not behaves), you can replace the background from XML with your own. Note that ToggleButton uses a layer-list drawable to overlay the toggle state over the standard button background, to reduce the number of needed images. You can

Re: [android-developers] Re: Honeycomb browser broken?

2011-01-28 Thread H
I guess I'm just a glass half full kind of guy and presumed they wouldn't goto all that effort. If they did have to because the browser was broken then surely they would have made at least a throwaway comment in the blog about the flaky browser as well. But they made no mention at all. So I

[android-developers] Detect Default Camera Directory

2011-01-28 Thread joshbeck
Hello: I have an app that uses this standard code to get a list of pictures stored on the phone: (It seems to only works when the device in question utilizes /DCIM/ camera) --Many use different folders for default picture storage. --My question: What might be the best way to detect what the

Re: [android-developers] Table row content disappearing on rotate

2011-01-28 Thread FractalBob
Thanks, that puts me in the right direction! -- 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

Re: [android-developers] Table row content disappearing on rotate

2011-01-28 Thread FractalBob
Thanks for the link, Kostya. Yeah, I understood that TreKing meant Activity, not the app process. -- 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

Re: [android-developers] Re: is it possible to override 9 patch pngs?

2011-01-28 Thread Kostya Vasilyev
You *could* copy the standard spinner image, edit it in Draw9Patch to add stretch areas in more proper places, but I wouldn't recommend this: if this image is replaced by the firmware, your application will not match the rest of the phone's UI. To be specific, the Motorola Droid X does this,

[android-developers] Re: is it possible to override 9 patch pngs?

2011-01-28 Thread kernelpanic
yes you're right - thanks I hadn't considered future proofing or customized implementations, but it makes good sense. mine doesn't look near as bad as the example I posted http://test-icu.com/images/android/stretched-arrow.png the icons I'm using are only 32x32 but I'll vamp them down so that

Re: [android-developers] Tab layout problem

2011-01-28 Thread TreKing
On Fri, Jan 28, 2011 at 5:55 AM, vnv nikola1...@gmail.com wrote: My activity is already ListActivity so I cannot extend it to TabActivity ? You can make it a TabActivity and manage the ListViews within the Activity yourself. Otherwise your tab content section can be a ViewSwitcher or

[android-developers] Re: Retrieve tweets from my twitter account

2011-01-28 Thread gvenugopal
Hi Albert, you said that, I have seen that there are libraries to integrate your app with twitter and post messages, etc . I stucked with posting the tweets from my music app while sharing. If you have any sample codes or related web urls to post the tweets from android

Re: [android-developers] Two methods of dialogs button tuning. What the difference

2011-01-28 Thread TreKing
On Fri, Jan 28, 2011 at 6:22 AM, Aevea zi...@mail.ru wrote: There is two methors to add buttons to AlertDialog 1. using AlertDialog.Builder and calling builder.setPositiveButton or setNegativeButton 2. using AlertDialog dialog; dialog.setButton dialog.setButton2. What the difference

[android-developers] looking for 2d game developer in toronto/ontario

2011-01-28 Thread social hub
We are looking for 2d game developer for a small project(3 months) in Toronto/Ontario region. If you are interested please contact me Thanks Social -- 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: Retrieve tweets from my twitter account

2011-01-28 Thread gvenugopal
Hi Ali, I stucked with posting the tweets from my android application. If you know how to post the tweets can please guide me in that way. or send me any useful codes or website urls. thanks venu On Jan 18, 1:42 am, Muhammad Ali zaandr...@gmail.com wrote: Hi,  You should use the twitter4j for

[android-developers] Re: Troubleshooting some memory leaks

2011-01-28 Thread TheRain
Thank you very much- I did a lot more work on this after posting my question here and I found this excellent guide on troubleshooting Android memory leaks http://ttlnews.blogspot.com/2010/01/attacking-memory-problems-on-android.html The MAT plugin for eclipse mentioned in that article is the

[android-developers] Re: Detect Default Camera Directory

2011-01-28 Thread joshbeck
Forgot to mention the CAMERA_IMAGE_BUCKET_ID string: It is defined as: public static final String CAMERA_IMAGE_BUCKET_ID = getBucketId(CAMERA_IMAGE_BUCKET_NAME); On Jan 28, 12:22 pm, joshbeck josh.beck2...@gmail.com wrote: Hello: I have an app that uses this standard code to get a

[android-developers] Re: Import package does not work...

2011-01-28 Thread Peruzzo
You have installed the Google APIs by Google Inc.? On 27 jan, 09:32, Marko Mijatovic jom...@gmail.com wrote: Hi! I code android app that uses Google Maps. I added uses-library android:name=com.google.android.maps/ in manifest file, and when in java class try to import that package, I get:

[android-developers] Google Maps Broken

2011-01-28 Thread Nick Friederich
I'm developing an app that uses Google Maps, it was all working fine until a few days ago until it seems that silently maps now shows only X's. I have deleted my debug key generated a new one and used the new fingerprint to register a new API key, to no avail. I've even created a new project and

[android-developers] Excluding specific .xml files from being built by Android.mk

2011-01-28 Thread red
Hello, I wish to be able to exclude a few named xml files from being included in the resulting .apk file. Specifically, the Makefile I *think* I need to edit is: /frameworks/base/core/res/Android.mk The resulting package file is /out/target/product/camden/system/ framework/framework-res.apk I

  1   2   3   >