[android-developers] Re: Singleton object with context?

2010-10-12 Thread Chuck Lega
Ok, I may be a bit vague, but say I want an utility class to do some common stuff, including resources and shared prefs. Then I need a context. If I put a SharedPreferenceListener into the class, I am lost if I want to do something using a context when receiving the callbacks. This is how I think

[android-developers] Is a CursorAdapter only useable for ListView ?

2010-10-12 Thread cody
Hello, I'd like to append childs to a custom AdapterViewCursorAdapter to fill it with data. Can anyone help me to understand how this works? In the docs I read: Adapter that exposes data from a Cursor to a ListView widget (from:

Re: [android-developers] Custom title bar with TextView and id @android:id/title does not inherit/use android:label from manifest!

2010-10-12 Thread Kumar Bibek
How are you setting the title bar then? You set your own layout to it? On Wed, Oct 13, 2010 at 12:13 AM, Dimitris dnkou...@gmail.com wrote: I have a custom title bar that I would like to apply to all my activities. I have searched online and found a few ways of doing that however I have ran

[android-developers] Re: Is there a time limit I must wait between uploading updates to a single app?

2010-10-12 Thread Pent
They just make it *really* easy to hate on the Developer Console. I have no idea what you mean. Why, just recently they were kind enough to reset all my errors to New so that I could easily check that they were still fixed. Joking aside, I've only been on the market 3 months and have seen some

[android-developers] Strange behaviour with managedQuery

2010-10-12 Thread Roman Mazur
I have a list activity with a cursor adapter. Cursor is retrieved by managedQuery() method. The docs say that the cursor returned by this method is managed by activity life cycle: it's deactivated when activity is stopped, and is requeried when activity restarts. So I expect that once an activity

[android-developers] Re: mediaplayer's onCompletionListener never called on playing 3gpp/amr audio files

2010-10-12 Thread Anil
FYI, 3gpp/amr files are created when you are recording with the cell phone microphone. On Oct 12, 1:49 pm, Anil anil.r...@gmail.com wrote: I also tried                 player.setLooping(false); On Oct 12, 1:11 pm, Anil anil.r...@gmail.com wrote: In order to be notified when the clip

[android-developers] Re: Is there a time limit I must wait between uploading updates to a single app?

2010-10-12 Thread Nik Bhattacharya
If you want to feel some real **positivity** towards the console, try changing a paid app to a free app and then see how the rest of your day goes when you want to change it back to paid. DON'T DO THAT. ONCE FREE ALWAYS FREE. It's in another thread regarding how there should be some sort of

Re: [android-developers] Strange behaviour with managedQuery

2010-10-12 Thread Mark Murphy
On Tue, Oct 12, 2010 at 3:21 PM, Roman Mazur mazur.ro...@gmail.com wrote: Because in such case activity is paused and then resumed (e.g. after pressing a HOME button and returning) but NOT stopped and restarted. Pressing HOME will stop and start the activity. The exact sequence is: onPause()

[android-developers] Google TV

2010-10-12 Thread Spiral123
I'm thinking of getting a Google TV box when it comes out in a few weeks. I know that there is going to be an SDK released for the box at some point. Has anyone here heard any news about if we will be able to connect to the Logitech device via USB in order to test our applications, or if will

[android-developers] How to change from ringer volume to media volume

2010-10-12 Thread ericmahlon
On one page of my app there are sounds. Is there a line of code to allow the volume up/down buttons to switch to media volume control for that page of the app only? Or do I need to set it for the entire app, and how do I do that? Thanks -- You received this message because you are subscribed

Re: [android-developers] How to change from ringer volume to media volume

2010-10-12 Thread Kumar Bibek
I wonder if that's possible. If you can get the button press events, it's fairly easy to do. You cannot of course set the behaviour globally, ie, your code has to be application specific. But I cannot find any actions related to the volume rocker buttons, so I am guessing that you cannot really

[android-developers] Re: Google TV

2010-10-12 Thread Kumar Bibek
Well, I guess, it might need specific drivers for the set top box or TV, but we can never be sure until there's an official announcement. Everybody is waiting for that, me too :) On Oct 13, 12:42 am, Spiral123 cumis...@gmail.com wrote: I'm thinking of getting a Google TV box when it comes out in

[android-developers] Error Parsing JSON data

2010-10-12 Thread Capt Spaghetti
If I run my php file manually I am getting the output as follows: = [{org_id:39575,orgname:ARTHRITIS FOUNDATION - VIRGINIA CHAPTER,orgcity:RICHMOND,orgstate:VA}] The php code is as follows: = html body style=background-color:#33990f ?php // connect

Re: [android-developers] Re: Is there a time limit I must wait between uploading updates to a single app?

2010-10-12 Thread TreKing
On Tue, Oct 12, 2010 at 2:21 PM, Pent tas...@dinglisch.net wrote: Joking aside, I've only been on the market 3 months and have seen some good improvements (errors to the console, improved app protection, expanded market countries) giving some hope that one day we'll be in good shape. I've

[android-developers] Re: How to change from ringer volume to media volume

2010-10-12 Thread ericmahlon
On soundboard apps, as soon as the app is loaded, the volume control buttons change to media control buttons. Even if I have to designate my app to do this at launch, how do I code that? On Oct 12, 3:43 pm, ericmahlon ericmah...@hotmail.com wrote: On one page of my app there are sounds. Is

[android-developers] Re: Custom title bar with TextView and id @android:id/title does not inherit/use android:label from manifest!

2010-10-12 Thread Dimitris
I use in onCreate(): requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); super.onCreate(savedInstanceState); setContentView(getContentView()); getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.title_bar_1); And then I have an XML

Re: [android-developers] Error Parsing JSON data

2010-10-12 Thread Mark Murphy
On Tue, Oct 12, 2010 at 3:51 PM, Capt Spaghetti gene_august...@msn.com wrote:                HttpPost httppost = new HttpPost(graborginfo.php); That is not a valid URL.                HttpResponse response = httpclient.execute(httppost);                HttpEntity entity =

Re: [android-developers] Re: How to change from ringer volume to media volume

2010-10-12 Thread Kumar Bibek
Thats quite easy. Use AudioManager by getting the AUDIO_SERVICE of the system. AudioManager has a few methods to adjust stream volume. Select your stream, and change the volume. On Wed, Oct 13, 2010 at 1:22 AM, ericmahlon ericmah...@hotmail.com wrote: On soundboard apps, as soon as the app is

[android-developers] Re: Strange behaviour with managedQuery

2010-10-12 Thread Roman Mazur
Oh, thanks... And what about starting a new activity with startActivity(). Is the starter stopped of paused? On 12 Жов, 22:32, Mark Murphy mmur...@commonsware.com wrote: On Tue, Oct 12, 2010 at 3:21 PM, Roman Mazur mazur.ro...@gmail.com wrote: Because in such case activity is paused and then

[android-developers] new screen on button click

2010-10-12 Thread Varun Khanduja
Hello, I am trying to follow a tutorial to learn how to get to a new screen on a button click. The issue I feel I am facing is that in this tutorial they have a file named main.java, firstly I don't have such a file. I think I named the file as name1.java and on this screen i have everything

Re: [android-developers] Re: Custom title bar with TextView and id @android:id/title does not inherit/use android:label from manifest!

2010-10-12 Thread Kumar Bibek
Well, the problem with this approach is that it is not FOOL PROOF. I dont think it's mentioned anywhere in the Docs that the title bar would always contain a texview with this id. So, the best bet I would suggest is go for a theme with no default title, and add a custom view which looks like a

Re: [android-developers] Re: Google TV

2010-10-12 Thread Shane Isbell
The announcements I read was an SDK isn't being released yet for the Google TV (I also have one on order). Google is releasing the Android Market on the revue sometime in QI of next year, so it's got to happen by then if they want Google TV specific apps. My hope is someone will hack the system

Re: [android-developers] new screen on button click

2010-10-12 Thread Kumar Bibek
There's nothing in names. Your class names can be anything. If you could explain your problem more clearly, may be someone would be able to help you. I went through the link, and it's good to go. Where are you stuck? On Wed, Oct 13, 2010 at 1:36 AM, Varun Khanduja

Re: [android-developers] Re: Strange behaviour with managedQuery

2010-10-12 Thread Mark Murphy
On Tue, Oct 12, 2010 at 4:05 PM, Roman Mazur mazur.ro...@gmail.com wrote: Oh, thanks... And what about starting a new activity with startActivity(). Is the starter stopped of paused? Generally, it is stopped. One exception would be if the activity being started is a dialog-themed activity --

Re: [android-developers] new screen on button click

2010-10-12 Thread TreKing
On Tue, Oct 12, 2010 at 3:06 PM, Varun Khanduja varunkhand...@gmail.comwrote: So tired and confused, please help Varun, based on this and your previous posts, it seems as though you don't yet have a solid grasp on Java. Forgive me if that's the wrong assumption. If not though, I would highly

[android-developers] Re: Unable to open or create cache for system/app/test.apk

2010-10-12 Thread FrankG
Also vendor extensions will be part of the system image and will be installed under system/app. IMHO it is a better style in my eyes to seperate your own stuff from the rest. On 12 Okt., 11:48, Raj raaju.pra...@gmail.com wrote: Thanks Frank. But the app has to be made as part of image and

Re: [android-developers] Error Parsing JSON data

2010-10-12 Thread Kostya Vasilyev
Take this out of your php file: html body style=background-color:#33990f And this too: /body/html Your php code needs to print out the JSON data array as is. The way you have it, it's wrapped with html tags. HTML tags are for web browsers, and are not part of JSON. This error should go

[android-developers] Re: Custom title bar with TextView and id @android:id/title does not inherit/use android:label from manifest!

2010-10-12 Thread Dimitris
That should work so you are saying there is no way for me to use android:label from the manifest...correct? On Oct 12, 1:09 pm, Kumar Bibek coomar@gmail.com wrote: Well, the problem with this approach is that it is not FOOL PROOF. I dont think it's mentioned anywhere in the Docs that the

Re: [android-developers] Re: Custom title bar with TextView and id @android:id/title does not inherit/use android:label from manifest!

2010-10-12 Thread Kumar Bibek
Yes, you cannot do that without having to pick up the value from the manifest and setting it to the title. Once you mention that you are using a custom title, the default things don't work. It thinks that you will set a custom title yourself, so it doesn't do it. On Wed, Oct 13, 2010 at 1:54 AM,

[android-developers] Re: Strange behaviour with managedQuery

2010-10-12 Thread Roman Mazur
Ok, I see. Thanks once more. Stopping activity is directly connected with disappearing from the screen. But I have a question about requering the cursor and list view state. As I see requering causes the list to reset its state. But is there a way to make the list view save its position and reload

Re: [android-developers] Re: Google TV

2010-10-12 Thread Shane Isbell
Does anyone know the release date? I could have sworn that Amazon said it was October 15th, but now I just see on my order - We need a little more time to provide you with a good estimate. On Tue, Oct 12, 2010 at 1:10 PM, Shane Isbell shane.isb...@gmail.comwrote: The announcements I read was an

Re: [android-developers] Re: Strange behaviour with managedQuery

2010-10-12 Thread Mark Murphy
2010/10/12 Roman Mazur mazur.ro...@gmail.com: As I see requering causes the list to reset its state. But is there a way to make the list view save its position and reload data at the same time? I am not aware of any automatic way to make that work. -- Mark Murphy (a Commons Guy)

[android-developers] Re: Custom title bar with TextView and id @android:id/title does not inherit/use android:label from manifest!

2010-10-12 Thread Dimitris
Sounds good then! One more question, it seems that if there first time I launch the app the default title shows up for a bit and then it gets replaced by mine. I know because I can see the title of my app and then it gets disappeared (via a fade animation). Now this does not occur on any

Re: [android-developers] Re: Custom title bar with TextView and id @android:id/title does not inherit/use android:label from manifest!

2010-10-12 Thread Kumar Bibek
Yes, this is the problem if you are setting it like this. You cannot avoid that. On Wed, Oct 13, 2010 at 2:12 AM, Dimitris dnkou...@gmail.com wrote: Sounds good then! One more question, it seems that if there first time I launch the app the default title shows up for a bit and then it gets

[android-developers] Re: Custom title bar with TextView and id @android:id/title does not inherit/use android:label from manifest!

2010-10-12 Thread Dimitris
I also managed to use the android:label just by accessing ActivityInfo programatically, I just want to guarantee no resources are wasted and no additional layouts are inflated for no need. On Oct 12, 1:27 pm, Kumar Bibek coomar@gmail.com wrote: Yes, you cannot do that without having to pick

[android-developers] AlertDialog within a TabActivity

2010-10-12 Thread Bret Foreman
I have a TabActivity with 3 tabs. Each tab contains its own Activity. When one of the contained Activities pops up an AlertDialog, there are actually 3 dialogs created. The dialog has a Dismiss button and it must be pressed 3 times to finally dismiss the 3rd dialog. My AlertDialog code in the

[android-developers] Re: AlertDialog within a TabActivity

2010-10-12 Thread Bret Foreman
As a workaround I created a static dialogOpen flag in the parent TabActivity and test/set it in the entry to the dialog code. Then I added onDismiss and onCancel listeners to the AlertDialog that reset the flag. This is ugly, but it works. -- You received this message because you are subscribed

[android-developers] Re: Writing to disk

2010-10-12 Thread kypriakos
My bad - the exception is specific to the software I am using. This exception is thrown when a particular file is not created in the sdcard. The thread that writes it does not thrown an exception but simply skips it - which means the original code does not catch it. I will look a bit deeper on

Re: [android-developers] Re: [USSD] Any API's or code flow ?

2010-10-12 Thread Frank Weiss
I didn't even know what USSD code flow is. When I googled, the first few results were google groups questions. AFAICT, this is a carier-specific issue. I suggest you contact a carrier for specific USSD code flow questions. -- You received this message because you are subscribed to the Google

Re: [android-developers] Re: Writing to disk

2010-10-12 Thread Mark Murphy
On Tue, Oct 12, 2010 at 5:04 PM, kypriakos demet...@ece.neu.edu wrote: On a related note - can apps give permissions to other apps to read write from/into their sandboxes? (/data/data/app/files? Yes, but it is a terrible idea. As in epic fail level of terrible. Provide some sort of managed

[android-developers] Can I turn the flash on?

2010-10-12 Thread Ken H
Is it possible to turn the flash on on an un-rooted phone (if so equipped)? I've been looking around and can't find anything specific, but I know it can be done...I found an app that does it. Ken -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Custom ListView Contain ImageView + TextView + CheckBox for selected Row

2010-10-12 Thread Ahmed Shoeib
i made this and this is the pic http://www6.0zz0.com/2010/10/12/21/748629320.png but i can't make an action on the table this is the row.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent

[android-developers] Re: Error Parsing JSON data

2010-10-12 Thread Capt Spaghetti
I removed html from the php file as suggested by Kostya Vasilyev and changed the approach to retrieve the information. The new Android code is as follows: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

[android-developers] Intent to load Call Log

2010-10-12 Thread Muhammad Bilal
Hi, I am trying to locate the intent to load the call log view , does android platform provide that out of the box? the functionality that i am looking is just like picking a contact from address book , you can do that by using intent.ACTION_PICK and using the people content URI Intent intent =

[android-developers] Re: How to develop a android app store

2010-10-12 Thread Indicator Veritatis
Maybe if they are willing to buy the company that hosts it;) On Oct 12, 8:54 am, Kumar Bibek coomar@gmail.com wrote: :) Can anyone buy the Android Market? On Tue, Oct 12, 2010 at 9:04 PM, TreKing treking...@gmail.com wrote: On Tue, Oct 12, 2010 at 1:25 AM, Nitin Mahajan

[android-developers] User Identity

2010-10-12 Thread William Ferguson
I'm looking for a way to determine user identity so I can globally track game scores off phone. IMEI provides identity of the phone - not effective if phone is on- traded or upgraded by individual. USIM provides identity of phone carrier subscriber - assumes device is phone, and currently has a

Re: [android-developers] Intent to load Call Log

2010-10-12 Thread Mark Murphy
You can try ACTION_PICK on android.provider.CallLog.Calls.CONTENT_URI. I do not know if it supports that particular action, but it should be easy enough for you to try. On Tue, Oct 12, 2010 at 5:49 PM, Muhammad Bilal se.bi...@gmail.com wrote: Hi, I am trying to locate the intent to load the

[android-developers] Re: Question For All Android Developer

2010-10-12 Thread himanshu jain
@kumar bibek What i am trying to do is simple i want to embed using any video or other tag mp4 file in android webview and want to paly it similarly to facebook does allow with flash player to play video , i want similar thing . i tried it but once i pass the intent android player show up on

Re: [android-developers] User Identity

2010-10-12 Thread Dianne Hackborn
There isn't really a user identity. Not even with a Google account -- the user can have multiple Google accounts, and though today there is some concept of a primary account for implementation reasons, that is not necessarily their real primary account (just the first one they used), and that

[android-developers] Re: Unit testing a class that uses android.os.Handler

2010-10-12 Thread Jeremy Wadsack
I think AsyncTask is designed to provide a way to run things off the main thread and take care of starting and ending the thread as needed, but it's not intended to be re-used. It does it's thing in the background and then it's done. As for the test case, what you say makes sense. And I suppose

[android-developers] Re: Singleton object with context?

2010-10-12 Thread Zsolt Vasvari
Most listeners/callbacks that I use are annonymous inner classes in methods that already take a Context as a parameter. In that case I just make the parameter final and use it from the callback method without it having to receive a Context directly. On Oct 13, 3:15 am, Chuck Lega

[android-developers] ImageView adjustViewBounds not doing what I think it should?

2010-10-12 Thread Tim S
I want to scale and display images which are dynamically loaded to a certain maximum size. The way I'm doing this is to set the layout_width and layout_height of my ImageView to the maximum dimensions and setting the scaleType to fitCenter. But here's the problem. This is inside a

[android-developers] Re: new screen on button click

2010-10-12 Thread Varun Khanduja
Hello all, I figured out the issue. I went through this tutorial over and over again without worrying for my project and then suddenly realized there was nothing wrong except that I was not replacing a xml file. Sorry I know it was not very smart of me. Thanks all @king - I agree with you. I am

Re: [android-developers] Class Object and Messenger/Bundle

2010-10-12 Thread Michael MacDonald
On 10/11/10 17:23, Jim Cortez wrote: Hello all, I am trying to send a Class object using the android.os.Messenger capabilities. The Bundle class does not have methods for adding a Class object and the Class object is not parcelable. Has anyone done this before? Are there any ideas on how

Re: [android-developers] Re: Singleton object with context?

2010-10-12 Thread Dianne Hackborn
If you are loading resources, you should strongly consider making this a singleton per context. The resources you get for different contexts can vary due to themes and such. If your singleton is doing things you know are global to the app -- for example loading concrete resources that can't be

Re: [android-developers] User Identity

2010-10-12 Thread Tom Gibara
I've been wrestling with the same problem. I've decided that my approach will be to register, unseen to the user, an anonymous account when they first need an identity on the server (eg. when posting their first high-score). Then, after they have continued to use the app for a time (eg. when they

[android-developers] Improper Audio format while using AudioRecord API

2010-10-12 Thread Mrid
I am doing recording in following way and storing byte array in a binary file. But the binary file I am getting is not in any format. what can be the problem? int bufferSize = AudioRecord.getMinBufferSize(8000, AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT);

[android-developers] Re: User Identity

2010-10-12 Thread William Ferguson
Sounds like we are dealing with exactly the same problem Tom. I was considering a solution similar to yours, but I wasn't going to force a password - I really hate being forced into creating a new account wherever I go. The sooner the world gives over to ubiquitous OpenId the better. I was

Re: [android-developers] Re: User Identity

2010-10-12 Thread Greg Donald
On Tue, Oct 12, 2010 at 6:37 PM, William Ferguson william.ferguson...@gmail.com wrote: Sounds like we are dealing with exactly the same problem Tom. Anyone and everyone has this problem. I use Settings.Secure.ANDROID_ID. When it's not present I hash something up and save it as a preference.

[android-developers] Manipulating SIM card or SD card pins

2010-10-12 Thread Joel
Hi, I am trying to write a program that will be able to read digital signals from the SD card slot or SIM card. Unfortunately, the computer I am working on is a bit slow and and I am just starting and not very familiar with the android platform. Does this code look right? Thanks! package

[android-developers] Re: User Identity

2010-10-12 Thread William Ferguson
Thanks Dianne, As you suggested I had planned on asking the user to tell me who they are, after all I really only want a display name and perhaps vague location info, whatever they are prepared to divulge globally and associate with their scores. The rub is in what unique identifier I can use

[android-developers] Intent to pick a contact from Call Log

2010-10-12 Thread Muhammad Bilal
Hi, I am trying to locate the intent to load the call log view , does android platform provide that out of the box? the functionality that i am looking is just like picking a contact from address book , you can do that by using intent.ACTION_PICK and using the people content URI Intent intent =

[android-developers] Re: Write data into SDCard while mounted

2010-10-12 Thread perumal316
Hi, Thanks for the reply. So is there any other method to pass some data into the Android phone from a desktop application which will be used by an Android application and at the same time copy some data from the phone into the desktop application? Thanks In Advance, Perumal On Oct 12, 10:47 

Re: [android-developers] Re: Write data into SDCard while mounted

2010-10-12 Thread Mark Murphy
On Tue, Oct 12, 2010 at 8:56 PM, perumal316 perumal...@gmail.com wrote: Thanks for the reply. So is there any other method to pass some data into the Android phone from a desktop application which will be used by an Android application and at the same time copy some data from the phone into

Re: [android-developers] Re: User Identity

2010-10-12 Thread Tom Gibara
I was considering a solution similar to yours, but I wasn't going to force a password - I really hate being forced into creating a new account wherever I go. The sooner the world gives over to ubiquitous OpenId the better. I keep hovering around adopting OpenId, but I have usability concerns

[android-developers] Re: Write data into SDCard while mounted

2010-10-12 Thread perumal316
Hi Mark, Yes, wifi and Bluetooth can be used. But I am wondering if it is possible through USB as the phone will be connected to the PC. I method I thought is by writing to sdcard and the desktop application can copy from it. But it is not possible to write to sdcard while it is mounted. Is it

Re: [android-developers] Re: Write data into SDCard while mounted

2010-10-12 Thread Mark Murphy
On Tue, Oct 12, 2010 at 9:06 PM, perumal316 perumal...@gmail.com wrote: Yes, wifi and Bluetooth can be used. But I am wondering if it is possible through USB as the phone will be connected to the PC. The USB connection is not really designed for application use, unfortunately. I method I

[android-developers] Re: FileObserver not returning file changes within subfolders?

2010-10-12 Thread Freddy
Indeed I was suprised too. I found this post from an android.com offical stating the docs are wrong and sub-folders are NOT watched. Which does match what I'm seeing in my app. Too bad really ... that would be an excellent feature!

Re: [android-developers] Re: Error Parsing JSON data

2010-10-12 Thread Brad Gies
You should be able to get rid of the HTML, but it's tough to give you advice when we don't know the web server setup. If it's causing too many problems to get rid of the HTML, you can always do other things. I had the same problem on one of my sites, and to get the website admin to do

[android-developers] out of memory, VM won't let us allocate,.

2010-10-12 Thread n2v2rda2
below is my code to make bitmap from network-jpeg-stream whose size is 360*288 i don't know how to handle it , --- private void makeImage() { try {

[android-developers] Re: ImageView adjustViewBounds not doing what I think it should?

2010-10-12 Thread Tim S
Hmm, well I could've sworn I tried this before but I seem to have fixed it. All the parents of my ImageView are set to wrap_content and this is how I have my ImageView: ImageView android:id=@+id/image_view android:layout_width=wrap_content

[android-developers] Re: Differences between Android Button and JAVA buttons

2010-10-12 Thread DanH
That is an interesting question: I haven't run across any way in Android to control the shape of the sensitive area of a button. Is it always a rectangle, or can it be made circular, triangular, etc, by making it conform to the shape of an image? On Oct 11, 6:03 pm, Mark Murphy

[android-developers] Re: Improper Audio format while using AudioRecord API

2010-10-12 Thread BobG
Cant store a 16 bit sample into a byte array? -- 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] Re: Differences between Android Button and JAVA buttons

2010-10-12 Thread Kumar Bibek
By default it is a rectangle. All the views are rectangles as well. As Mark said, they look different because of the backgrounds. On Wed, Oct 13, 2010 at 9:02 AM, DanH danhi...@ieee.org wrote: That is an interesting question: I haven't run across any way in Android to control the shape of the

[android-developers] Re: Differences between Android Button and JAVA buttons

2010-10-12 Thread DanH
I know that's the default. But other platforms have a way to modify that default. On Oct 12, 10:41 pm, Kumar Bibek coomar@gmail.com wrote: By default it is a rectangle. All the views are rectangles as well. As Mark said, they look different because of the backgrounds. On Wed, Oct 13,

Re: [android-developers] Re: Differences between Android Button and JAVA buttons

2010-10-12 Thread Kumar Bibek
Ummm, What do you mean by modify that default? All the views take of a rectangular estate area. This is generally the way how widgets are laid out virtually everywhere. Even while you are designing HTML pages, everything is a rectangle. The boundaries of a view is always a rectangle. On Wed, Oct

[android-developers] Re: out of memory, VM won't let us allocate,.

2010-10-12 Thread DanH
I'm guessing it has to do with the bitmap size here: Out of memory: Heap Size=5639KB, Allocated=3134KB, Bitmap Size=18669KB The Android has a mysterious and troublesome bitmap caching scheme, and sometimes this requires the explicit issuance of System.gc calls, even though the Java book says

Re: [android-developers] How to develop a android app store

2010-10-12 Thread Nitin Mahajan
HI! On Tue, Oct 12, 2010 at 9:04 PM, TreKing treking...@gmail.com wrote: On Tue, Oct 12, 2010 at 1:25 AM, Nitin Mahajan np.maha...@gmail.comwrote: How can we develop an Android app store, to distribute apps/upgrades specific to a product, which is a non mobile device? Your question is

[android-developers] Re: Differences between Android Button and JAVA buttons

2010-10-12 Thread DanH
I mean, eg, provide an image of a circle, and have only the area inside the circle (where alpha is non-zero) be sensitive. On Oct 12, 10:58 pm, Kumar Bibek coomar@gmail.com wrote: Ummm, What do you mean by modify that default? All the views take of a rectangular estate area. This is

Re: [android-developers] Re: Differences between Android Button and JAVA buttons

2010-10-12 Thread Kumar Bibek
You can have that, but again, the the effective view area is still a rectangle, isn't it? On Wed, Oct 13, 2010 at 9:44 AM, DanH danhi...@ieee.org wrote: I mean, eg, provide an image of a circle, and have only the area inside the circle (where alpha is non-zero) be sensitive. On Oct 12, 10:58

Re: [android-developers] Re: out of memory, VM won't let us allocate,.

2010-10-12 Thread Kumar Bibek
Well, I would say, that System.gc() won't help you much. Since the purpose of yours is to stream an image from the internet, the best approach would probably be to write that stream into a file first. When that is done, you can create a Bitmap from this file. On Wed, Oct 13, 2010 at 9:32 AM, DanH

Re: [android-developers] How to develop a android app store

2010-10-12 Thread Frank Weiss
I suppose the simplest thing that works is an e-commerce web site, like those that sell software downloads. -- 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: Can I use ext2 or ext3 formatted external SD card in Android 2.1

2010-10-12 Thread Sarwar Erfan
The answer is NO. I had to get two sdcards to be safe (as I did not get any reply). This morning I went to the person having the device and tested. Android reported that filesystem of sdcard (which was ext2) is unsupported. Regards Sarwar Erfan On Oct 12, 5:58 pm, Sarwar Erfan

Re: [android-developers] Re: Error Parsing JSON data

2010-10-12 Thread Frank Weiss
First thing I'd do is run the Android code with the debugger, breakpoint just before the JSON code and inspect the result string. -- 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: How to develop a android app store

2010-10-12 Thread metal mikey
Here's some suggestions (I used my imagination): 1) Employ tens of thousands of monkeys to do random stuff, eventually they may serve the correct .apk file to a request made by one of the Users of your device. 2) Put your Apps on Android Market as paid Apps. Some dodgy, unofficial market may

[android-developers] Can´t animate ImageView

2010-10-12 Thread Alexander
hi everybody. i'm having problems when trying to animate an ImageView. it is a simple alpha animation. the anim is in the xml file: ?xml version=1.0 encoding=utf-8? alpha xmlns:android=http://schemas.android.com/apk/res/android; android:interpolator=@android:anim/linear_interpolator

Re: [android-developers] Re: How to develop a android app store

2010-10-12 Thread Kumar Bibek
Pretty amazing imagination :) On Wed, Oct 13, 2010 at 10:30 AM, metal mikey coref...@gmail.com wrote: Here's some suggestions (I used my imagination): 1) Employ tens of thousands of monkeys to do random stuff, eventually they may serve the correct .apk file to a request made by one of the

[android-developers] Re: Unable to open or create cache for system/app/test.apk

2010-10-12 Thread Raj
Hi, The application is under vendor extension only and its getting installed in system/app after building. My problem is : While running the app it gives Unable to open or create cache for /system/app/ test.apk (/data/dalvik-cache/sys...@a...@test@classes.dex) Just to check the behaviour I

[android-developers] Fwd: how to make center image bigger than rest images , in gallery

2010-10-12 Thread Babita kumari
-- Forwarded message -- From: Babita kumari babita.permeat...@gmail.com Date: Tue, Oct 12, 2010 at 10:55 AM Subject: how to make center image bigger than rest images , in gallery To: android-developers@googlegroups.com I am designing a screen , in which I am showing a gallery

[android-developers] getdeviceid() causing invocation target exception

2010-10-12 Thread A N K ! T
hey i am trying to get imei no of the phone.. for that i am using telephonyManagerObject.getDeviceID() but it is causing invocationTargetExceptioni am using it in my MapActivity class what is wrong with it -- A N K ! T.. -- You received this message because you are subscribed to the

[android-developers] Alternative to GLWallpaperService, OpenGL Live Wallpaper

2010-10-12 Thread mr.winky
I've been using the GLWallpaperService as posted by Robert Green (http://www.rbgrn.net/content/354-glsurfaceview-adapted-3d-live- wallpapers), which has worked so far for the live wallpapers but I'm hitting a wall when it comes to performance. The GL code is executing at the expected speed when

[android-developers] Re: How to develop a android app store

2010-10-12 Thread mr.winky
Please dont forget the thousands of required We have all apps, only 9.99 per year! On Oct 12, 10:02 pm, Kumar Bibek coomar@gmail.com wrote: Pretty amazing imagination :) On Wed, Oct 13, 2010 at 10:30 AM, metal mikey coref...@gmail.com wrote: Here's some suggestions (I used my

<    1   2