[android-developers] Re: How to draw pixels?

2011-12-04 Thread Vincent
Yes, that is what I want. Just don't know how to feed it the binary data. I am quite new to android, could you give me some detailed hints? On Dec 4, 6:19 pm, Doug beafd...@gmail.com wrote: Sounds like you just need to create your own subclass of View, feed it the binary data to draw as that

[android-developers] Graphics Information

2011-12-04 Thread Raghav Sood
Hi all, Just saw this great post by Dianne on Google+. You should definitely read it if your app has lots of graphics and drawing to do. https://plus.google.com/105051985738280261832/posts/2FXDCz8x93s Thanks -- Raghav Sood http://www.androidactivist.org/ - Author http://www.appaholics.in/ -

[android-developers] Re: list actvity is scrolling

2011-12-04 Thread Ali Chousein
The first step to get assitance in this group would be to articulate your questions. Reading your questions for the last some months, I've never understood what exactly you are trying to do. If expressing a coding question in plain English is difficult (and most of the times it is), copy paste the

[android-developers] Re: Is it possible to add rows to the listview from the top?

2011-12-04 Thread Ali Chousein
Exactly Doug! Adding the data at the desired location in the relevant container (e.g. ArrayList) and then calling the notifyDatasetChanged() method, is the only decent way of adding rows to a listview at any location (top, bottom, middle, random location etc etc)

[android-developers] grid view is not showing remote images

2011-12-04 Thread Ratheesh Valamchuzhy
i am developing an app which shows thumbnail of images using grid view i created image adapter class to get the thumbnail images , but it is not working plse help me(force close) here is my code package com.playswf; import java.io.IOException; import java.io.InputStream; import

Re: [android-developers] grid view is not showing remote images

2011-12-04 Thread Raghav Sood
Please post the relevant part of the LogCat. Raghav Sood Sent from my Nexus S On Dec 4, 2011 11:29 AM, Ratheesh Valamchuzhy android...@gmail.com wrote: i am developing an app which shows thumbnail of images using grid view i created image adapter class to get the thumbnail images , but it is

[android-developers] Re: MP4 video not working on Google Nexus One

2011-12-04 Thread Kumar Bibek
Moreover, MP4 is not really a video format. If a file has an mp4 extension, it doesn't necessarily mean that it's a MP4 format. So, looking at the actual format/encoding will help you to figure out if a video will play on a device or not. As Doug suggested, some device manufacturers go out of

[android-developers] Re: Pass Data From Activity to All Attached Fragments

2011-12-04 Thread Kumar Bibek
This approach is fine. -- 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: Example to use setError in EditText

2011-12-04 Thread Kumar Bibek
Use the addTextChangedListener method on your EditText. http://developer.android.com/reference/android/widget/TextView.html#addTextChangedListener%28android.text.TextWatcher%29 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: grid view is not showing remote images

2011-12-04 Thread skink
Ratheesh Valamchuzhy wrote: i am developing an app which shows thumbnail of images using grid view i created image adapter class to get the thumbnail images , but it is not working plse help me(force close) here is my code you are trying to use BitmapFactory.decodeFile with somethig

[android-developers] Re: SDK 4, R15, where is the navigation button?

2011-12-04 Thread Kumar Bibek
On a phone emulator or a tablet one? -- 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] Re: getting lattitude and longitude using GPS

2011-12-04 Thread lbendlin
then why do you specify 5m? -- 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] duplicate and rename package

2011-12-04 Thread Mark Murphy
On Sat, Dec 3, 2011 at 11:43 PM, bob b...@coolgroups.com wrote: Let's say you have an Android game. You have an Android game.  You want to duplicate the project and change the package name to make a new game.  Is there a simple 20- second way of doing this?  I've tried many methods and

[android-developers] Re: Is it possible to add rows to the listview from the top?

2011-12-04 Thread lbendlin
not if you are trying to visually please your users, Clear difference between Android and iOS here... -- 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

Re: [android-developers] Re: database connectivity on real device

2011-12-04 Thread lbendlin
Now that you achieved that, do the following test: Take out the SD card and run your app. -- 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

Re: [android-developers] duplicate and rename package

2011-12-04 Thread Nikolay Elenkov
On Sun, Dec 4, 2011 at 9:51 PM, Mark Murphy mmur...@commonsware.com wrote: On Sat, Dec 3, 2011 at 11:43 PM, bob b...@coolgroups.com wrote: Let's say you have an Android game. You have an Android game.  You want to duplicate the project and change the package name to make a new game.  Is

Re: [android-developers] duplicate and rename package

2011-12-04 Thread Mark Murphy
On Sun, Dec 4, 2011 at 9:17 AM, Nikolay Elenkov nikolay.elen...@gmail.com wrote: I haven't actually used it, but at least int ADT15, there is a 'Rename Application Package' action (right click project, Android Tools-Rename Application Package) . Judging from the preview it looks like it: *

Re: [android-developers] duplicate and rename package

2011-12-04 Thread Mark Murphy
On Sun, Dec 4, 2011 at 9:27 AM, Mark Murphy mmur...@commonsware.com wrote: On Sun, Dec 4, 2011 at 9:17 AM, Nikolay Elenkov nikolay.elen...@gmail.com wrote: I haven't actually used it, but at least int ADT15, there is a 'Rename Application Package' action (right click project, Android

[android-developers]

2011-12-04 Thread Nir Lavi
-- 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

[android-developers] Re: Unique ID, but not IMEI, IMSI, MAC, AndroidID

2011-12-04 Thread Rich
http://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID -- 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,

[android-developers] Re: Fail to connect to camera service

2011-12-04 Thread Pedro Teixeira
HEy again. I'm almost sure the problem is as you mentioned that the camera is already in use. I'm going from an activity that uses the camera (wikitude applicaiton) to an activity that still uses the camera (my own). I'm not sure what are my options here: Am I able to continue without releasing

Re: [android-developers] Re: Fail to connect to camera service

2011-12-04 Thread Mark Murphy
On Sun, Dec 4, 2011 at 10:10 AM, Pedro Teixeira pedroteixeir...@gmail.com wrote: I'm almost sure the problem is as you mentioned that the camera is already in use. I'm going from an activity that uses the camera (wikitude applicaiton) to an activity that still uses the camera (my own). I'm

[android-developers] Re: Fail to connect to camera service

2011-12-04 Thread Pedro Teixeira
Yes that's the only way I know how to do it. I'll try to contact them and hear what they have to say about it. Thank you On Dec 4, 3:20 pm, Mark Murphy mmur...@commonsware.com wrote: On Sun, Dec 4, 2011 at 10:10 AM, Pedro Teixeira pedroteixeir...@gmail.com wrote: I'm almost sure the problem

Re: [android-developers] Re: database connectivity on real device

2011-12-04 Thread Narendra Singh Rathore
Now that you achieved that, do the following test: Take out the SD card and run your app. I will definitely give that test later, and hopefully will achieve that. anyways thanx for the challenging test. :) -- You received this message because you are subscribed to the Google Groups Android

[android-developers] an app with web-services

2011-12-04 Thread juliagrig
Hi all, I would like to know, how I could make an application which will be linked to a web server and use web services. Could you help me to make a beginning, because I have not dealt at all with a similar issue in the past. Thanks in advance. -- You received this message because you are

[android-developers] C2DM - frequent “timeouts” or errors when sending; webservice does not respond

2011-12-04 Thread Ted
Hey, I just posted this on StackOverflow, thought I'd post it here too. http://stackoverflow.com/questions/8377185/c2dm-frequent-timeouts-or-errors-when-sending-webservice-does-not-respond So I have set up a connection to Googles C2DM system. It works - sort of. When I ask C2DM to ping my

[android-developers] Re: SDK 4, R15, where is the navigation button?

2011-12-04 Thread Lew
You know, you asked this question on Oct. 28. Now you're bumping it, yet again, as of Nov. 15. I write this on Dec. 4. Googling this information would have been faster. To make sure I am not full of it, I used http://lmgtfy.com/?q=Android+Ice+Cream+Sandwich+missing+back+and+home+buttons

[android-developers] Mobile app discovery

2011-12-04 Thread klewelling
I am collecting information about difficulties related to app discovery on mobile platforms. I released my Android app Text Easy in 2008, and while I have had some modest success, I don’t have the marketing resources to draw mass appeal. Part of the problem are the overcrowded app markets that

Re: [android-developers] Mobile app discovery

2011-12-04 Thread Mark Murphy
On Sun, Dec 4, 2011 at 1:32 PM, klewelling klewell...@gmail.com wrote: I have developed a technology that allows a host app to download and run APKs in its own process. That is *so* not a good idea. The backbone of Android security is process isolation. -- Mark Murphy (a Commons Guy)

[android-developers] Re: Mobile app discovery

2011-12-04 Thread klewelling
Thanks for the feedback. There are definitively security issues to work out. APKs can be multi-process which can be used to isolate the dynamic apks at runtime. An application virtualization layer can be used to keep the apks from writing over each other's files and the APKs themselves can be

Re: [android-developers] Re: Mobile app discovery

2011-12-04 Thread Mark Murphy
On Sun, Dec 4, 2011 at 2:01 PM, klewelling klewell...@gmail.com wrote: Thanks for the feedback. There are definitively security issues to work out. APKs can be multi-process which can be used to isolate the dynamic apks at runtime. Not really. The secondary process has all the rights and

[android-developers] Problems reading/writing to SQLite db on SD card.

2011-12-04 Thread MarkG123
Hi, writing an Android application that reads data from a SQLite database created by a 3rd party camera. I have added permission WRITE_EXTERNAL_STORAGE, but I still get attempt to write a readonly database exception I have tried different API levels and such, without any difference. I have

Re: [android-developers] an app with web-services

2011-12-04 Thread Michael Banzon
It is indeed possible. Where do you want to start?? On Sun, Dec 4, 2011 at 6:51 PM, juliagrig iouliag...@gmail.com wrote: Hi all, I would like to know, how I could make an application which will be linked to a web server and use web services. Could you help me to make a beginning, because I

[android-developers] Re: Mobile app discovery

2011-12-04 Thread klewelling
My take-away from your comments is that a fundamental risk is security. I understand you have some technical reservations but that is for me to worry about:) You are of course correct that every APK executing in the host will have the same rights and abilities. Is your main concern that one or

Re: [android-developers] Re: Mobile app discovery

2011-12-04 Thread Kristopher Micinski
On Sun, Dec 4, 2011 at 2:49 PM, klewelling klewell...@gmail.com wrote: My take-away from your comments is that a fundamental risk is security. I understand you have some technical reservations but that is for me to worry about:) You are of course correct that every APK executing in the host

Re: [android-developers] Re: Mobile app discovery

2011-12-04 Thread Mark Murphy
On Sun, Dec 4, 2011 at 2:49 PM, klewelling klewell...@gmail.com wrote: My take-away from your comments is that a fundamental risk is security. I understand you have some technical reservations but that is for me to worry about:) I'm sure that CarrierIQ thinks the same thing. Surprisingly

[android-developers] Re: Mobile app discovery

2011-12-04 Thread klewelling
kris, Thanks for your comments. By saying just a 'social app discovery' service you imply that app discovery is not important to you. How would you rate app discovery with respect to other developer concerns? My main point of my original post was to gauge interest. I don't mind having a technical

[android-developers] Re: How to READ a MODE_WORLD_READABLE file from ANOTHER application

2011-12-04 Thread Saied
Thanks again! Actually, this seems to be working on the ContentProvider now: public AssetFileDescriptor openAssetFile(Uri uri, String mode) { String fileName = asset_text_orig.txt; URI uri1 = URI.create(fileName); AssetFileDescriptor parcel =

[android-developers] Re: Mobile app discovery

2011-12-04 Thread klewelling
On Dec 4, 2:18 pm, Mark Murphy mmur...@commonsware.com wrote: On Sun, Dec 4, 2011 at 2:49 PM, klewelling klewell...@gmail.com wrote: My take-away from your comments is that a fundamental risk is security. I understand you have some technical reservations but that is for me to worry

[android-developers] Re: an app with web-services

2011-12-04 Thread juliagrig
I would like to know the basic steps to do something like that. This can be done by more than one way? I would appreciate if you give me some information, such if additional libraries are used, what exactly is good to read to understand what elements are used and why. Also, I need to create a

Re: [android-developers] Re: Mobile app discovery

2011-12-04 Thread Kristopher Micinski
On Sun, Dec 4, 2011 at 3:18 PM, Mark Murphy mmur...@commonsware.com wrote: On Sun, Dec 4, 2011 at 2:49 PM, klewelling klewell...@gmail.com wrote: To echo Mr. Micinski's reply, I have no problem with more social tools for app discovery, so long as they do not introduce security and privacy

Re: [android-developers] Re: Mobile app discovery

2011-12-04 Thread Mark Murphy
On Sun, Dec 4, 2011 at 3:38 PM, klewelling klewell...@gmail.com wrote: I understand you have some technical reservations but that is for me to worry about:) I'm sure that CarrierIQ thinks the same thing. Surprisingly enough, I disagree with that opinion. Ouch! I don't think I made my

[android-developers] Re: How to READ a MODE_WORLD_READABLE file from ANOTHER application

2011-12-04 Thread skink
Saied wrote: Thanks again! Actually, this seems to be working on the ContentProvider now: public AssetFileDescriptor openAssetFile(Uri uri, String mode) { String fileName = asset_text_orig.txt; URI uri1 = URI.create(fileName); AssetFileDescriptor

[android-developers] Re: Mobile app discovery

2011-12-04 Thread klewelling
I think there are other patterns for this, like betas, that have worked with success. Also, what you're describing is a more controlled scenario than what I inferred from a StumbleUpon-style service. Yes those were very different than a StumbleUpon-style service. I was listing some other

Re: [android-developers] Re: Mobile app discovery

2011-12-04 Thread Mark Murphy
On Sun, Dec 4, 2011 at 5:17 PM, klewelling klewell...@gmail.com wrote: Getting back to the StumbleUpon-style service I believe a lot of the security issues can be reduced by limiting the permissions available to the dynamic applications. Split the app into two pieces, a UI APK and a host APK.

Re: [android-developers] Mobile app discovery

2011-12-04 Thread Jim Graham
On Sun, Dec 04, 2011 at 10:32:31AM -0800, klewelling wrote: I don't have the marketing resources to draw mass appeal. Part of the problem are the overcrowded app markets that overwhelm users with choices. That's part of the problem. Another part is the lack of a temporary home for new apps.

[android-developers] Why doesn't layout_alignCenterInParent work?

2011-12-04 Thread Christopher Van Kirk
I've tried several times now to use android:layout_alignCenterInParent to center a child in its parent RelativeLayout view, but it never seems to work. What's wrong with this code, and why doesn't it center the GridView in the outer RelativeView? ?xml version=1.0 encoding=utf-8?

[android-developers] Re: Mobile app discovery

2011-12-04 Thread klewelling
I don't completely follow your description, sorry. You're using too many terms (the app, host APK, UI APK, dynamic apps) that you know how they relate, but I don't. Perhaps I'm just being thick. Ya what I wrote was a bit stream-of-consciousness. Let me try again. Here is my suggestion for a

[android-developers] Re: Mobile app discovery

2011-12-04 Thread klewelling
I think a central issue involves the paradox of choice (http:// en.wikipedia.org/wiki/The_Paradox_of_Choice:_Why_More_Is_Less) where too many app options prevent people from trying new things. Thats why I think a StumbleUpon type service could be so valuable, it involves no choice. You try an app

[android-developers] Re: Mobile app discovery

2011-12-04 Thread klewelling
The UI app receives the requests and asks the user via a dialog if it is OK to allow the trial app access to the requested resource. For example the UI app may pop up a dialog and say App xyz wants to send a text message. OK or Cancel. I forgot to mention that if the user click OK then the

Re: [android-developers] Re: Mobile app discovery

2011-12-04 Thread Jim Graham
On Sun, Dec 04, 2011 at 02:53:25PM -0800, klewelling wrote: Why_More_Is_Less And, as almost every Unix user knows, less is better than more. :-) (Sorry, couldn't resist.) Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)| Peter da Silva: No, try rm -rf /

[android-developers] Re: How to READ a MODE_WORLD_READABLE file from ANOTHER application

2011-12-04 Thread Saied
wow. that was dumb of me!! Thanks for pointing it out. so I changed it to: @Override public AssetFileDescriptor openAssetFile(Uri uri, String mode) { String fileName = asset_text_orig.txt; // hardcoding the file name for now AssetManager

Re: [android-developers] Re: Mobile app discovery

2011-12-04 Thread Kristopher Micinski
On Sun, Dec 4, 2011 at 5:47 PM, klewelling klewell...@gmail.com wrote: I don't completely follow your description, sorry. You're using too many terms (the app, host APK, UI APK, dynamic apps) that you know how they relate, but I don't. Perhaps I'm just being thick. Ya what I wrote was a

Re: [android-developers] Re: Mobile app discovery

2011-12-04 Thread Mark Murphy
From a security standpoint, what you're describing is a sandbox, which, done properly, can certainly help with security. However, you're also describing a complete app rewrite to create the stumble-able edition of the app. The odds of your convincing developers to rewrite their app to support

Re: [android-developers] Why doesn't layout_alignCenterInParent work?

2011-12-04 Thread Mark Murphy
I would assume that GridView does not support wrap_content for android:layout_height, no different that ListView. I'm not sure it supports wrap_content for android:layout_width, either. And, of course, your RelativeLayout doesn't have the attribute in your post title, though I assume that's a

[android-developers] Re: Mobile app discovery

2011-12-04 Thread klewelling
If I were you, I'd go a different route. For example, go with a mobile edition of the Amazon AppStore preview model. AFAIK, they're using android-x86 instances hosted in their cloud, where they cooked up a Flash RDP(?) client to connect to those from the browser. You could do something along

Re: [android-developers] Re: Mobile app discovery

2011-12-04 Thread Mark Murphy
On Sun, Dec 4, 2011 at 6:59 PM, klewelling klewell...@gmail.com wrote: (figuring out the stack for doing this sort of preview is on my 18,000-item to-do list, though I probably would be aiming to replicate the Web-based client) What do you mean replicate the Web-based client? Amazon AppStore

[android-developers] Re: Mobile app discovery

2011-12-04 Thread klewelling
(figuring out the stack for doing this sort of preview is on my 18,000-item to-do list, though I probably would be aiming to replicate the Web-based client) What do you mean replicate the Web-based client? Is this another item on your todo list? Oh you mean replicate what Amazon did, do

Re: [android-developers] Re: Mobile app discovery

2011-12-04 Thread Mark Murphy
On Sun, Dec 4, 2011 at 7:05 PM, klewelling klewell...@gmail.com wrote: Oh you mean replicate what Amazon did, do it for the web first then maybe the device later. Well, I hadn't been considering the device at all. I was more interested in Web-based app previews, using a hosted Android

[android-developers] Re: In app billing: restore single transaction?

2011-12-04 Thread xstream
i know this is over a month old...but bump as i just found it and am having the same exact issue. I have the dungeons sample working perfectly, however i want to try to add code to see if a certain managed item was purchased on app start upplease assist! thank you. -- You received this

[android-developers] Unity for Android

2011-12-04 Thread bob
Can you do anything for free using Unity for Android? Or, do you have to pay $400 or $1500? 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

[android-developers] How to set background color for context menu

2011-12-04 Thread rambabu mareedu
HI to allIn my app iam using context menu for this i want to set some background colors to my context menu can anyone tell is it possible? Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

Re: [android-developers] Unity for Android

2011-12-04 Thread TreKing
On Sun, Dec 4, 2011 at 8:00 PM, bob b...@coolgroups.com wrote: Can you do anything for free using Unity for Android? Or, do you have to pay $400 or $1500? Why not ask that to the people at Unity ... ? Or do some basic research ... ?

Re: [android-developers] Problems reading/writing to SQLite db on SD card.

2011-12-04 Thread Nikolay Elenkov
On Mon, Dec 5, 2011 at 4:14 AM, MarkG123 mark.gilles...@gmail.com wrote: Hi, writing an Android application that reads data from a SQLite database created by a 3rd party camera. I have added permission WRITE_EXTERNAL_STORAGE, but I still get attempt to write a readonly database exception I

Re: [android-developers] My Newbie problem with compiling the HelloAndroid App

2011-12-04 Thread TreKing
On Mon, Nov 28, 2011 at 9:48 PM, Jerry jsmet...@gmail.com wrote: The error message says that R.layout.main can't be run... That file is not something that can be run. You should elaborate on what *exactly* you're doing and what *exactly* is the error that you're getting.

Re: [android-developers] How can I get Active Activity of a service from an annotation

2011-12-04 Thread TreKing
On Tue, Nov 29, 2011 at 1:05 PM, pedrohms pedrohms...@gmail.com wrote: I have a little problem in my application when I try get an active activity. You want us to guess what the little problem is?

[android-developers] how to retrieve connected bluetooth headset battery strength

2011-12-04 Thread Amit Mangal
Hi Developers, I am trying to calculate the battery strength of Bluetooth headset that is connected to my android mobile. I have downloaded code https://github.com/cgjones/android-frameworks-base/blob/gingerbread-b2g/core/java/android/bluetooth/BluetoothHeadset.java but i am unable to use it

[android-developers] User cannot install an update

2011-12-04 Thread John Gaby
I have a user who is trying to install an update and it is failing. He has sent me the logcat and it seems to be failing because of some kind of incompatibility with the shared UserID. However, I am able to install the same update over the same old version without this problem. Here is the

[android-developers] Re: User cannot install an update

2011-12-04 Thread John Gaby
There is one more relevant point. I have had the user completely uninstall the app and re-install the new version and the above log is what he is seeing -- 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: User cannot install an update

2011-12-04 Thread John Coryat
How many times have I read that same complaint from a user. I'm guessing hundreds. it's unrelated to your app. I send this to the user and it has always solved the problem: The launcher, installer and Android Market installer are part of your device manufacturer or carrier's specific Android

[android-developers] Is is possible to block android system updates with out rooting the device?

2011-12-04 Thread srihari babu
Hi All, Is there is any way to block android OS updates in the device. I even don't want to show notification of system update and at the same time i am not interested to root the device. Is is possible? any suggestions are highly appreciated. Regards, Sri -- You received this message because

[android-developers] Re: My Newbie problem with compiling the HelloAndroid App

2011-12-04 Thread Droid
You have to right click on the project folder and then find run I think you are right clicking on R java or something. Its only the project file at the top that runs That's my guess. On Nov 29, 3:48 am, Jerry jsmet...@gmail.com wrote: I have Eclipse Gallileo hosting Android 4.0 platform,

[android-developers] Re: How to READ a MODE_WORLD_READABLE file from ANOTHER application

2011-12-04 Thread Saied
I spoke too soon. It works ONCE and then it 12-04 22:38:05.330: WARN/System.err(763): java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed This is the routine in the Content Provider: @Override public AssetFileDescriptor openAssetFile(Uri