[android-developers] exception while creating activity

2010-12-13 Thread Honest
hello, i am starting new activity from current activity but some how before starting activity i am getting Null Pointer exception. and startActivity() from source activity calls sucessfully. I am getting Null Pointer exception. the following is code. Intent intent = new Intent(PdfFileSelectActivi

[android-developers] Simple code hangs the android emulator.

2010-12-13 Thread Vladimir Florentino
The following simple code irrecoverably hangs the android emulator. I know the first reaction is to say that it's the while(true){}. Just remember that this is a contrived example to show the issue. In my own code, I do the lifecycle activity as described in the docs. The issue is that the emulato

[android-developers] Re: screen brightness change

2010-12-13 Thread Gulfam
I think this kind of broadcast are not availbele. Gulfam On Dec 14, 11:04 am, "Hendrik Greving" wrote: > Hi is there some broadcast or listener for screen brightness changes? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to thi

[android-developers] Re: SSHFS on Android

2010-12-13 Thread Dana L
Just providing an update. I added FUSE support into my kernel (by building and loading a module), and I was able to use httpfs (http://httpfs.sourceforge.net/) to mount an http file via FUSE. However, I still get the same error with sshfs. So I've pretty much isolated this to an error with the ss

[android-developers] Re: Fm Radio

2010-12-13 Thread Gulfam
There is no API available for FM radio in android, but you can play audio from stream. and there is a tutorial available in Android API demo to Play audio from stream. Gulfam On Dec 11, 6:31 pm, wolf wrote: > how the fm radio it works on android phones ? i mean, can you send me > the code or exa

[android-developers] Re: Please help with an ideea

2010-12-13 Thread Alex Munteanu
So what's your problem anyway ? As long as I didn't found myself a solution yet, I still have the hope that someone will read this post and maybe could give a hint. On Dec 10, 5:45 pm, TreKing wrote: > On Fri, Dec 10, 2010 at 2:16 AM, Alex Munteanu wrote: > > > It stills obsese me... :)) > > Well

[android-developers] Re: Hello Andriod

2010-12-13 Thread Gulfam
Hi Montya, I think your application is crashing at some point, try to find out the issue first. As mark has said use adb Logcat, DDMS to narrow down the issue. Gulfam On Dec 11, 3:18 pm, montya wrote: > Hey guys i am following Hello Andriod book. > > All was fine till  60th page, When i try to

[android-developers] Re: How do you specify ContentProvider authorities when using the Lite & Pro app publishing model?

2010-12-13 Thread Sarwar Erfan
When I buy a pro version, usually I uninstall the lite verion before installing the pro version. The pro version is a superset of the lite version. Regards Sarwar Erfan -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this grou

[android-developers] Re: How to reference Android default icons on MenuItem.setIcon()

2010-12-13 Thread Gulfam
its very simple android.R.drawable.icon :) On Dec 14, 2:10 am, TreKing wrote: > On Sun, Dec 12, 2010 at 1:26 AM, kno...@googlemail.com < > > kno...@googlemail.com> wrote: > > The question is: How do I reference the Android default icons? > > Same way you reference yours, but taking into account

[android-developers] Re: Recommended way of passing the around Facebook object among different activities

2010-12-13 Thread Gulfam
Hi Sogwiz, I have Implemented the facebook chat and update status on facebook features in my application that is working perfect for me, According to my understanding you want to share a single facebook object for all activities, i think you should use the singleton object for Facebook class, you

[android-developers] Re: Global intercept of the search key

2010-12-13 Thread Doug
You can't, and why would you want to cripple other apps like this? On Dec 13, 8:05 pm, neuromit wrote: > I'm wondering how hard it would be to globally intercept the search > key in every application? I'm guessing this isn't possible using the > standard API's. Could I do this on a rooted phone?

[android-developers] Re: Recommended way of passing the around Facebook object among different activities

2010-12-13 Thread Gulfam
Hi sogwiz, On Dec 13, 10:37 pm, sogwiz wrote: > Hi, > > Does anyone have a recommended way of passing around the > com.facebook.android.Facebook object to different activities one its > been initialized and once the user has successfully logged in? Sample > approaches may include putExtras, sha

[android-developers] Re: MediaPlayer is Hanging in reset call

2010-12-13 Thread Doug
When you say "half of the time" do you mean this could happen any time under the exact same circumstances, or with half of the videos that you try every time? Have you looked into using seVideoUri instead of setVideoPath on VideoView? On Dec 13, 9:27 am, John wrote: > Yes. The video works great

[android-developers] Creating iPhone style bubble list view in android

2010-12-13 Thread Rahul
I am creating a chat application the interacts between two users. I want to show the interaction between the users in the form of a iPhone bubble list view... I found a tutorial that shows to create a bubble list in IOS... Here's the link(http://mobiforge.com/developing/story/sms-bubble-ui-iphone-

[android-developers] screen brightness change

2010-12-13 Thread Hendrik Greving
Hi is there some broadcast or listener for screen brightness changes? -- 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 and

[android-developers] Re: How to Declare file write permission in framework code

2010-12-13 Thread Mansoor
hey thanks a lot Kostya Vasilyev and Chris Stratton for your kind reply :) i resolved the issue by adding tag to Launcher application manifest . Thanks a lot once again :) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this g

Re: [android-developers] TranslateAnimation problem

2010-12-13 Thread 陈彧堃
Hey man, I tried your SlidingPanel demo, you use fading out animation. However, if the panel's alpha value is not set from 1.0 to 0.0(for example, alway 1.0), there will be flicker at the end of animation. On Mon, Dec 13, 2010 at 9:08 PM, Mark Murphy wrote: > On Mon, Dec 13, 2010 at 8:03 AM, 陈彧堃

Re: [android-developers] SharedPreferences.Editor.apply() -- very confused

2010-12-13 Thread shareem sharif
ture but no On Mon, Dec 13, 2010 at 8:28 PM, Dianne Hackborn wrote: > You should do this based on API level. If an API is not documented as > available prior to a particular version, there are no guarantees what any > existing method would do in the earlier versions. For example, not > infreque

Re: [android-developers] How do you specify ContentProvider authorities when using the Lite & Pro app publishing model?

2010-12-13 Thread Mark Carter
Before, I was just prefixing with com.mycompanyname.myappname but this is broken when using the lite/pro model. Now I prefix with myapppackagename which is something like com.mycompanyname.myappname.pro I still find the meta-data approach cumbersome so is there a better way? On 14 December 2010

[android-developers] Bluetooth query: how can i access OPP, PBAP api's of frameworks

2010-12-13 Thread vick.s
Hi seniors, I saw in developer site that "New BT profiles: Object Push Profile (OPP) and Phone Book Access Profile (PBAP)" are being supported. But i fail to find any api's to access those profiles. I want to develop application using these profiles. Could anybody refer any documentation on this

Re: [android-developers] SharedPreferences.Editor.apply() -- very confused

2010-12-13 Thread Dianne Hackborn
You should do this based on API level. If an API is not documented as available prior to a particular version, there are no guarantees what any existing method would do in the earlier versions. For example, not infrequently a new API is being developed but hidden from a particular release because

Re: [android-developers] How do you specify ContentProvider authorities when using the Lite & Pro app publishing model?

2010-12-13 Thread Dianne Hackborn
On Mon, Dec 13, 2010 at 8:17 PM, Mark Carter wrote: > My current approach is to always specify an authority using the app > package name as a prefix. This guarantees uniqueness. > You should prefix with your package name, anyway, to ensure you don't conflict with someone else's app. -- Dianne

Re: [android-developers] Querying battery status synchronously

2010-12-13 Thread Dianne Hackborn
Please don't leave a service running forever for this. Not that it would guarantee you'd find out, anyway, since there will be times your service gets killed temporarily. If you just want to know about changes after you install, you could have an intent receiver in your manifest to be launched wh

Re: [android-developers] Querying battery status synchronously

2010-12-13 Thread Frank Weiss
Since the API apparently doesn't support a synchronous status, here's another, somewhat more complicated option. Add a service to your app that receives the status updates and stores them in the app's preferences, or somesuch. Then your app can get the most recent value synchronously. Note that the

[android-developers] How do you specify ContentProvider authorities when using the Lite & Pro app publishing model?

2010-12-13 Thread Mark Carter
An app cannot be installed if (in a provider Manifest element) it specifies an authority that has already been specified by an existing app. This can lead to problems when installing the pro version of an app with the lite version already installed. How do devs deal with this? My current approac

Re: [android-developers] SharedPreferences.Editor.apply() -- very confused

2010-12-13 Thread shareem sharif
root it On Mon, Dec 13, 2010 at 8:00 PM, shareem sharif wrote: > just root it god danm it > > > On Mon, Dec 13, 2010 at 7:59 PM, Zsolt Vasvari wrote: > >> As per the StrictMode article ( >> >> http://android-developers.blogspot.com/2010/12/new-gingerbread-api-strictmode.html >> ), I devided to s

[android-developers] Global intercept of the search key

2010-12-13 Thread neuromit
I'm wondering how hard it would be to globally intercept the search key in every application? I'm guessing this isn't possible using the standard API's. Could I do this on a rooted phone? If so what steps would I need to take? -- You received this message because you are subscribed to the Google

Re: [android-developers] SharedPreferences.Editor.apply() -- very confused

2010-12-13 Thread shareem sharif
just root it god danm it On Mon, Dec 13, 2010 at 7:59 PM, Zsolt Vasvari wrote: > As per the StrictMode article ( > > http://android-developers.blogspot.com/2010/12/new-gingerbread-api-strictmode.html > ), I devided to switch over using apply() instead of commit() for my > SharedPreferences. > >

[android-developers] SharedPreferences.Editor.apply() -- very confused

2010-12-13 Thread Zsolt Vasvari
As per the StrictMode article ( http://android-developers.blogspot.com/2010/12/new-gingerbread-api-strictmode.html ), I devided to switch over using apply() instead of commit() for my SharedPreferences. So I wrote my nice conditional logic based on the API level and to test to see what happens, I

[android-developers] Re: Emulator crashes (Because of concurrency, I think)

2010-12-13 Thread Vladimir Florentino
I forgot to mention that I'm developing this on SDK 2.1 On Dec 13, 3:28 pm, Vladimir Florentino wrote: > Hello, > > I've been wrestling for a few days with concurrency related to setting > up different threads for a game app. > I have made many versions, but they have all failed. At this point, I

[android-developers] Re: Fm Radio

2010-12-13 Thread Brill Pappin
I don't remember seeing any API for FM Radio... do you mean steaming radio? - Brill -- 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, se

[android-developers] Re: Preferable OS environment?

2010-12-13 Thread Brill Pappin
I do most of my development on Mac, but if your going to be compiling the linux kernel and writing drivers, a Linux dev box would be better. You can set it up to build on a Mac but there are extra steps to make sure the file system can support it (you need to work in a disk image. not too big a

Re: [android-developers] Re: EditText and auto-complete/correct

2010-12-13 Thread Brill Pappin
Sounds good.. I'll trade you :) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegrou

Re: [android-developers] Problem of "debug build".

2010-12-13 Thread Kevin Yuan
Thank you very much. 在 2010-12-14 上午4:13,"Xavier Ducrohet" 写道: > After looking into it, it's half broken. > > The debug build technically works. It does put debuggable=true in the > manifest. That is, in the compiled manifest. > However ADT is being stupid, and doesn't detect this (looks into the >

Re: [android-developers] Querying battery status synchronously

2010-12-13 Thread Dianne Hackborn
Sorry, there isn't a way to do this. The best you can do is query the current battery level (which is part of a sticky broadcast so the last reported value is always available). On Mon, Dec 13, 2010 at 6:11 PM, Thomas Okken wrote: > I'm working on an app that needs to adapt its behavior to the c

Re: [android-developers] Programmatically discover ContentProviders in the current application

2010-12-13 Thread Mark Carter
Thanks Kostya. I did see those other parameters but was confused by what it would mean for a content provider to be "hosted by the given process". Does it only return ContentProviders that have already been started in the given process? I will give it a try though... On 14 December 2010 02:37, K

[android-developers] Re: SQLite3 Queries: Order By with Negative numbers backwards?

2010-12-13 Thread DanH
Yeah, remember that Sqlite doesn't really pay any attention to the declared column types, but types each individual data cell separately. You have to use care on insertion (avoid quotes for numerics, eg) to get the data type you expect, or else you have to arrange your queries to coerce the data t

[android-developers] Re: Pop up Dialog Not Displaying

2010-12-13 Thread JoeSchmoe
That's what I thought it was. How do I post to the main thread though? I can't find any documentation on how to do that? On Dec 13, 5:49 pm, Prakash Iyer wrote: > Look at logcat. I'm reasonably sure the trouble is that you are trying > to update the UI from a different thread than the main app

[android-developers] Querying battery status synchronously

2010-12-13 Thread Thomas Okken
I'm working on an app that needs to adapt its behavior to the current battery status. When there's plenty of juice left in the battery, it may perform certain tasks in a way that maximizes responsiveness, but also drains a lot of power, while in a low-battery situation, it should automatically adju

[android-developers] Re: unable to set gps geo fix

2010-12-13 Thread doles
Hello Folks, Has anyone else tried setting location in the emulator at all? When I try to set location in the emulator through the ddms UI or through the telnet command prompt, my emulator crashes. I am running it on windows 32 bit with jdk 1.6 _22 Please help. Thanks On Dec 12, 9:31 am, doles

[android-developers] Re: SQLite3 Queries: Order By with Negative numbers backwards?

2010-12-13 Thread swgillan
Thanks Dan, That is actually what I was thinking, but wanted to check here as well. I will test with your suggestion tomorrow. On Dec 13, 5:46 pm, DanH wrote: > You're assuming that the ordering is numeric, when the column is > likely being interpreted as character data.  You have to work at it

Re: [android-developers] Pop up Dialog Not Displaying

2010-12-13 Thread Prakash Iyer
Look at logcat. I'm reasonably sure the trouble is that you are trying to update the UI from a different thread than the main app thread. In the button case you are in the main thread. You should post message to your main thread from the socket thread and then you should be fine. Sent from my iPho

[android-developers] Re: SQLite3 Queries: Order By with Negative numbers backwards?

2010-12-13 Thread DanH
You're assuming that the ordering is numeric, when the column is likely being interpreted as character data. You have to work at it a bit to get Sqlite to order numerically -- I don't offhand recall the tricks, but they're probably out there if you Google them. (Try "ORDER BY (sigma + 0)".) (It

[android-developers] SQLite3 Queries: Order By with Negative numbers backwards?

2010-12-13 Thread swgillan
Hello, I came across something really odd, that I just can't seem to figure out. I am performing a query using rawQuery and also the query method (just for consistency to test this problem). In both cases, when I ORDER BY a column with negative numbers, the ASC and DESC appear to be backwards (as

Re: [android-developers] Re: EditText and auto-complete/correct

2010-12-13 Thread Raymond Rodgers
Not yet, but I'll send you an .apk directly (off-list) when it's in a more complete state. Thanks, Raymond On 12/13/2010 02:49 PM, Brill Pappin wrote: Is your app available? I can test it against my keyboard code, which closely matches the stock keyboard and trace what the keyboard is doing.

[android-developers] Re: openGL ES animation rendering is coming out choppy

2010-12-13 Thread Robert Green
For first gen devices, 20,000 triangles is way too many to get a good framerate. I found that anything over about 2500 becomes a burden for them. New devices should be able to handle 20k much better. What device are you testing on? On Dec 13, 3:27 pm, Avtar Khalsa wrote: > Hi All > > I am an A

[android-developers] Re: Use MediaPlayer in background and control it after app restarts

2010-12-13 Thread 1001knights
Thanks! I am using service now. On Dec 4, 2:05 pm, Doug wrote: > On Dec 2, 10:37 am, 1001knights wrote: > > > I would like to know how to control MediaPlayer again after I launch > > the application later, so that I won't have too many copies open? > > You should probably create a persistent Ser

[android-developers] How to implement the ContentObserver

2010-12-13 Thread Psyhclo
Hey, I'd like to know if there is a way to know if the content provider of callings has changed. I mean, if I make a call, or I answer a call, it returns a "flag" that a new log has been added to the call log, or the place where Android store informations about callings. Because, when I make a cal

[android-developers] Uri.encode and 2.1+

2010-12-13 Thread Kaamel
I just noticed something that I cannot figure out. When I use Uri.encode(string) it returns a uri encoded string as advertised on 1.5 and 1.6 devices. But on 2.1 and 2.2 (and presumably 2.3) it uri encodes EVERYTHING, including the characters that are supposed to be ignored ("_-!.~'()*") and

[android-developers] Pop up Dialog Not Displaying

2010-12-13 Thread JoeSchmoe
When doing OnClickListener mButtonYListener = new OnClickListener() { public void onClick( View v ) { showDialog( DIALOG_PA_MESSAGE ); } }; . protected Dialog onCreateDialog( int id ) { } is called and my Dialog Box is displayed

[android-developers] Re: Preferable OS environment?

2010-12-13 Thread Hal
It sounds like Linux would be a good choice (based on the comment around Linux device/driver kernel). I'm not sure if you are trying to modify/compile the Android kernel though. Hal - An intelligent Android. On Dec 13, 1:12 am, JY Kim wrote: > Hello. > > I have posted this question before but

Re: [android-developers] android manifest.xml missing

2010-12-13 Thread Marcin Orlowski
On 13 December 2010 23:15, kiros88 wrote: > Okay so basically i cant figure this out my project whne i create from > exisitng projects has the manifest in it and it lets me create the > project but as it opens it says error manifest is missing > > BUT It clearly isnt cuz in the project i see the

Re: [android-developers] App to place wallpapers on Android

2010-12-13 Thread Marcin Orlowski
On 12 December 2010 21:17, Dave_c wrote: > I'm trying to place a number of static wallpapers on Android > Marketplace No thanks. There's hell lot of such junk there already -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this

Re: [android-developers] Preferable OS environment?

2010-12-13 Thread Marcin Orlowski
On 13 December 2010 07:12, JY Kim wrote: > Hello. > > I have posted this question before but my message does not show. You won't see your post if sent via web interface -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group

[android-developers] openGL ES animation rendering is coming out choppy

2010-12-13 Thread Avtar Khalsa
Hi All I am an Android beginner working with openGL ES to try to make some simple 3d animations. I only have one glDrawElements call per screen refresh and I have it set to RENDERMODE_CONTINUOUSLY. Unfortunately, for some reason, my animation is coming out very choppy with a frame rate of around 2

[android-developers] Re: SDK 2.3: Get "Multiple substitutions specified in non-positional format" error

2010-12-13 Thread Bob Kerns
OK, having actually converted a project with a significant number of format strings: this thing is MUCH more serious than I thought. This isn't just a matter of an over-the-top error message. That's bad enough, of course. But combine that with a BROKEN DETECTOR? Consider this format string: "foo

[android-developers] Re: Setting Custom ringtone to contacts

2010-12-13 Thread pierre
Update: This code works on Android 1.6, but not on 2.2.1. Does anyone know how to update this code so it will work on 2.2.1 ? Thanks. On Dec 13, 12:17 am, pierre wrote: > Hello, > > I have created an activity that copies an MP3 file from the assets to > the SD card, then sets that MP3 file as

Re: [android-developers] Custom dialog issues

2010-12-13 Thread Kostya Vasilyev
getApplicationContext is pure evil with UI classes. Use the parent tab activity for context. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 14.12.2010 1:34 пользователь "Antony BODY" написал: > Hi, > > I try to implement an custom dialog sadly when i call "show" > method i get this stac

[android-developers] Re: New error in the Market

2010-12-13 Thread Zsolt Vasvari
Bill, you just contributed 3 posts of spam yourself. On Dec 14, 2:44 am, Brill Pappin wrote: > Yah, i'm starting to think that. > > Well I guess we can all mark it as spam and if she really isn't then > she can sort it our with the forum admins. > > Marking now. -- You received this message bec

[android-developers] Re: Auto android:debuggable. Anybody got it working?

2010-12-13 Thread Zsolt Vasvari
So what's the final verdict? Does it work for you as the doc says, Xavier? On Dec 14, 4:02 am, Xavier Ducrohet wrote: > As mentioned below, if you use "run application" instead of "debug > application" it'll run any application compiled in debug but won't > connect a debugger to it (which is the

[android-developers] Custom dialog issues

2010-12-13 Thread Antony BODY
Hi, I try to implement an custom dialog sadly when i call "show" method i get this stac: Thread [<3> main] (Suspended (exception WindowManager $BadTokenException)) ViewRoot.setView(View, WindowManager$LayoutParams, View) line: 491 WindowManagerImpl.addView(View, ViewGroup$Lay

Re: [android-developers] How to perform Google checkout in My application

2010-12-13 Thread TreKing
On Mon, Dec 13, 2010 at 5:16 AM, mit_Panchal wrote: > I want to integrate the Google checkout in my Android but i > have never performed google checkout any time on any platform, so i > want to know how to integrate > http://code.google.com/apis/checkout/developer/index.html

Re: [android-developers] Re: Concern on AsyncTask in an Activity

2010-12-13 Thread Kostya Vasilyev
If you are going to carry your AsyncTask across configuration (e.g. orientation) changes, might as well explicitly null out its UI references in onDestroy, and restore them again in onCreate, once you have new views -- Kostya Vasilyev -- http://kmansoft.wordpress.com 14.12.2010 1:17 пользовате

Re: [android-developers] App to place wallpapers on Android

2010-12-13 Thread TreKing
On Sun, Dec 12, 2010 at 2:17 PM, Dave_c wrote: > Any suggestions would be greatly appreciated > Have you looked through the docs? Right off the bat this pops up: http://developer.android.com/reference/android/app/WallpaperManager.html

Re: [android-developers] Dialog Resize on Keyboard Up

2010-12-13 Thread TreKing
On Sun, Dec 12, 2010 at 2:36 AM, srp wrote: > Is there a way to move the webview up on edittext click so that i can see > the edittext field while typing the data. > See if this helps: http://developer.android.com/resources/articles/on-screen-inputs.html

Re: [android-developers] Re: Layout: Battery usage bar

2010-12-13 Thread Kostya Vasilyev
These classes are not part of the SDK, that is, what Android provides for applications to build upon. Rather, they are a part of one of the built-in applications, provided by Android for the user to use. You can still look and learn, and copy/paste into your application. -- Kostya Vasilyev -- ht

Re: [android-developers] How to include line break in notification?

2010-12-13 Thread TreKing
On Mon, Dec 13, 2010 at 1:48 AM, Stephan Wiesner wrote: > i want to include line breaks in the long text of notifications. \n does > not work. > I want to display my information in 2 blocks and need a visual distinction > between these blocks. > http://developer.android.com/reference/android/app

Re: [android-developers] Adding TouchListener to a line drawn on mapView

2010-12-13 Thread TreKing
On Sun, Dec 12, 2010 at 1:02 PM, aforapp wrote: > How can you attach a TouchListener to a line drawn(using > the canvas.drawPath) between two Points on a mapView as an Overlay > Making a custom Overlay that takes a TouchListener and using the existing tap() or touchEvent() functions: http://code

[android-developers] Re: Concern on AsyncTask in an Activity

2010-12-13 Thread Brion Emde
One way to do this is to have the AsyncTask keep WeakReference references to the view components that it wants to update. Then, if it cannot get the soft reference to resolve, it just can exit without changing anything. I've done this using AsycQueryHandler, but I don't see why it shouldn't work f

[android-developers] android manifest.xml missing

2010-12-13 Thread kiros88
Okay so basically i cant figure this out my project whne i create from exisitng projects has the manifest in it and it lets me create the project but as it opens it says error manifest is missing BUT It clearly isnt cuz in the project i see the manifest file on the bottom this is using eclipse an

[android-developers] Re: Layout: Battery usage bar

2010-12-13 Thread Harpritt
Oh one more question Why are the classes in package com.android.settings not available to me in my apps? ie i cant import them On Dec 13, 4:52 pm, Kostya Vasilyev wrote: > Have you looked at the source? It's probably part of Settings application: > > http://android.git.kernel.org/?p=platform/pa

Re: [android-developers] Use shared preferences on non-app directory file

2010-12-13 Thread TreKing
On Mon, Dec 13, 2010 at 3:29 PM, bagelboy wrote: > Is there a way to use shared preferences on a different directory? > What for? SharedPrefs are for storing name value pairs. What difference does it make where it's stored? ---

[android-developers] Re: SSHFS on Android

2010-12-13 Thread Dana L
On Dec 13, 12:22 pm, Chris Stratton wrote: > On Dec 13, 2:12 pm, Dana L wrote: > > > I'm trying to run sshfs on Android. > > Does your kernel have the necessary support? I haven't built support into the kernel yet, although this appears to be an SSH error rather than a FUSE error. I think I'm goi

Re: [android-developers] Color Touch Area on Dialog

2010-12-13 Thread TreKing
On Sun, Dec 12, 2010 at 3:42 PM, Anmol wrote: > how do I put in the color around an area with these coordinates? > Create a Custom View, override draw() or onDraw(), whichever it is, and do your coloring algorithm based on your needs.

Re: [android-developers] Preferable OS environment?

2010-12-13 Thread TreKing
On Mon, Dec 13, 2010 at 12:12 AM, JY Kim wrote: > I have posted this question before but my message does not show. > It did ... eventually. Google Groups basically sucks and sometimes "hold" messages for quite a while. > I have familiar with both Windows and Linux. I am also going to modify an

[android-developers] Re: Detect OSK shown / hidden events

2010-12-13 Thread DH
>From my hours spent on the Nexus One, onConfigurationChanged does not get called when the soft keyboard state is changed, I have resorted to hooking into the on size changed for my content view. However I get this annoying flickering issue since when one of my button is clicked, I would hide the k

Re: [android-developers] How to reference Android default icons on MenuItem.setIcon()

2010-12-13 Thread TreKing
On Sun, Dec 12, 2010 at 1:26 AM, kno...@googlemail.com < kno...@googlemail.com> wrote: > The question is: How do I reference the Android default icons? Same way you reference yours, but taking into account the fact that they're in the android namespace: android.R.drawable.icon_i_want_to_use. No

Re: [android-developers] Need Help

2010-12-13 Thread TreKing
On Sat, Dec 11, 2010 at 11:06 AM, ishwarya wrote: > Can some one pl help me with this. > You're going to have to provide more information than that. Learn to use the debugger and the Android tools like LogCat to get information about what's causing your crash. --

Re: [android-developers] tabbed InfoWindow

2010-12-13 Thread TreKing
On Sun, Dec 12, 2010 at 4:55 AM, Zakaria Biaz wrote: > hellomap I would like to know how to make this application.(tabbed > InfoWindow Map) > http://code.google.com/android/add-ons/google-apis/reference/index.html http://

Re: [android-developers] Re: Beginner questions

2010-12-13 Thread TreKing
On Sat, Dec 11, 2010 at 1:57 AM, JY Kim wrote: > Which of OS environment is preferrable? > Windows or Linux? > The one you prefer. :-) - TreKing -

[android-developers] Use shared preferences on non-app directory file

2010-12-13 Thread bagelboy
Shared Preferences is a handy tool, the only problem is that as far as I can tell it only works on files in the app directory. Is there a way to use shared preferences on a different directory? I've tried simply putting a path in the file string but that crashes. -BB -- You received this message

Re: [android-developers] How to reference Android default icons on MenuItem.setIcon()

2010-12-13 Thread Kostya Vasilyev
Stephan, That would be: android.R.drawable.ic_menu_info_details and so on. -- Kostya 12.12.2010 10:26, kno...@googlemail.com пишет: Hi, I create a menu by creating my items and setting their icons. This works fine if I use icons in my drawable folder: MenuItem itemHelp = menu.add(0, MENU_IT

Re: [android-developers] Subclass android.app.Application to save global state?

2010-12-13 Thread TreKing
On Mon, Dec 13, 2010 at 1:56 PM, Tobiah wrote: > What would that tag attribute look like? > http://developer.android.com/guide/topics/manifest/application-element.html#nm > Also, in the docs for android.app.Appli

Re: [android-developers] Android WebView

2010-12-13 Thread Kostya Vasilyev
See this: http://developer.android.com/reference/android/webkit/WebView.html#loadDataWithBaseURL(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String) It says: Note for post 1.0. Due to the change in the WebKit, the access to asset files through "file:///a

[android-developers] Re: Layout: Battery usage bar

2010-12-13 Thread Harpritt
Hi again.. ive found exactly what i was after On Dec 13, 4:49 pm, Kostya Vasilyev wrote: > That's just spam. > > And Julie Andrews's name seems to actually be Vikram. >

Re: [android-developers] Help me about publish fee

2010-12-13 Thread YuviDroid
http://market.android.com/support/bin/answer.py?hl=en&answer=113468 http://market.android.com/support/bin/answer.py?hl=en&answer=112622 On Mon, Dec 13, 2010 a

Re: [android-developers] display a view on an external display/minitor

2010-12-13 Thread Mark Murphy
On Mon, Dec 13, 2010 at 11:35 AM, smithbob wrote: > Is it possible to output a view from my application to an external > display. It means being able to enumerate display/screen and then > asign a view/window to a specific display/screen ? There is nothing in the Android SDK for this today, sorry

Re: [android-developers] Re: home screen widget drag or scroll

2010-12-13 Thread YuviDroid
That's just for HTC widgets on the HTC homescreen...and unfortunately they don't expose any API for us devs, so we cannot make scrollable widgets that would work on the Sense homescreen or stock launcher. However, you can create scrollable widgets for 3rd-party launchers (like LauncherPro, ADW, Ho

Re: [android-developers] Hello Andriod

2010-12-13 Thread Mark Murphy
Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and look at the stack trace associated with your error message. On Sat, Dec 11, 2010 at 5:18 AM, montya wrote: > Hey guys i am following Hello Andriod book. > > All was fine till  60th page, When i try to implement in Abou

[android-developers] Need Help

2010-12-13 Thread ishwarya
I am a newbie to android. I am facing an issue when I created an app. The error is " the application stopped unexpectedly". I tried reloading the app, but it was of no use. Can some one pl help me with this. Thanks in advance -- You received this message because you are subscribed to the Google G

Re: [android-developers] Fm Radio

2010-12-13 Thread Mark Murphy
On Sat, Dec 11, 2010 at 8:31 AM, wolf wrote: > how the fm radio it works on android phones ? i mean, can you send me > the code or example ? i don't want how to use it, but the program code > i want. I want it for education purpose. it use assemble and java ? or > something like that ? There is n

[android-developers] DRM for Android

2010-12-13 Thread Henry
Hi, We want to use DRM (very minimal, like forward lock) to protect media file, we are using Android 1.5, I cannot find any documentation or sample or header file for that, I see there are discussions about android.drm.mobile1, but cannot find any more details about it. If you have the knowledge

[android-developers] display a view on an external display/minitor

2010-12-13 Thread smithbob
Hello, I am new to android development and I am looking if something I what to do is possible on this platform (I already to it under iOS). Is it possible to output a view from my application to an external display. It means being able to enumerate display/screen and then asign a view/window to a

[android-developers] "Failed to find provider info for" ContentProvider

2010-12-13 Thread Ich UndDu
Hi, can't find my ContentProvider via ContentResolver(Uri CONTENT_URI). Logcat says "Failed to find provider info for"... Please see my other post on http://stackoverflow.com/questions/4404689/creating-using-contentprovider-for-android I have spent so much time on this and read so many articles, I

[android-developers] Emulator crashes (Because of concurrency, I think)

2010-12-13 Thread Vladimir Florentino
Hello, I've been wrestling for a few days with concurrency related to setting up different threads for a game app. I have made many versions, but they have all failed. At this point, I just want to get a basic concurrent setup going. The worst part is that it is the emulator that crashes, so DDMS

[android-developers] Help me about publish fee

2010-12-13 Thread binh nguyen
I want to develop on Android Applications, but I dont know publish fee (sign + test +...). Can anyone help me ? -- 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 unsu

[android-developers] Supporting in uncertain life to family member

2010-12-13 Thread khushitiwari2...@rediff.com
Flexible investment plan with life cover http://www.insuranceworlds1.com/index.htm -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send

[android-developers] NPAPI plugin support

2010-12-13 Thread bill_tn
Hi, I am planning to developp an NPAPI plugin for android browser. the first thing that I want to know is: does android 2.2 web browser supports NPAPI plugins. if yes, how can I enable this support (where to put the plugin's .so ...) if not what kind of plugin should I write for Android 2.2 web ap

[android-developers] Leaking intent in send sms applicaion

2010-12-13 Thread Sandesh
Hi, I have created an application in android. I have one activity which invokes my app in a thread through a service. In that thread, I register an intent receiver dynamically. But sometimes I keep getting an error saying that intent receiver is leaked. I searched on the forums & it said that I wo

[android-developers] How a Drawable could implement Drawable.Callback?

2010-12-13 Thread Kaloian Doganov
Hello! I'm trying to write a Drawable (say, CustomDrawable) that implements the Drawable.Callback interface. The CustomDrawable extends Drawable, but it needs the reference to mCallback in order to implement Callback interface properly. Unfortunately, mCallback is declared as package private in t

  1   2   3   >