[android-developers] Is there any way to parse JSON object into ArrayList or Map...

2010-07-13 Thread Sohan badaya
Hi, Is there any way to parse JSON object, that comes from facebook server in a response, into ArrayList or Map so that i can set values in my ListView. I am finding difficulty in parsing because JSON object itself contains JSONArray and this Array can contain JSONObject may be

[android-developers] Re: Motorola Droid - QCIF Camera Preview and Capture

2010-07-13 Thread Ignas
I have heard rumors that this problem is not visible on Motorola Milestone, which seems to be a very similar HW. Can someone confirm if the same problem persists in Milestone? I would think that the camera and related components should be the same. Thus, this seems like a driver problem. Hopefully,

[android-developers] Scrolling ListView manually by pixels

2010-07-13 Thread yuku
Hi, I want to make use of the trackball or d-pad to scroll my ListView smoothly. Without implementing anything, by default the list scrolls by one item, which is not appropriate for my app, since list items have different heights and I just want to scroll it by a fixed amount. Is there anything t

Re: [android-developers] why does AlarmManagerService.java call "remove" first in a "set" alarm?

2010-07-13 Thread Dianne Hackborn
If they are the same intent, they can not be uniquely distinguished, so the more recent one replaces the previous. It's like doing: HashMap alarms; Foo foo1 = new Foo(); Foo foo2 = new Foo(); alarms.put("mything", foo1); alarms.put("mything", foo2); The second call replaces the value of the fi

Re: [android-developers] Re: Will data remain after updating android os in mobile phones

2010-07-13 Thread Dianne Hackborn
On Thu, Jun 24, 2010 at 11:54 PM, FrankG wrote: > In my experience the manufacturer has in his "update" software the > whole > control whether he wants to delete only user data, or everything > before he update the device. > But IMHO to avoid any trouble during the update, they prefer to delete

[android-developers] Getting phone number from default SMS activity

2010-07-13 Thread Amit
Hi All, I have started the default SMS application and specified the SMS text to be sent through following code- intent = new Intent(Intent.ACTION_VIEW, Uri.parse("sms:")); intent.putExtra("sms_body", "SMS Text"); startActivity(intent); It worked fine and sends the message to selected number fro

[android-developers] not able to compile code get from the git repository.

2010-07-13 Thread kamiomar
Hi, Can anybody tell why i am not able to compile the code get from the git repository. i think some libraries missing. Example: i get Email Client code from the git repository. http://android.git.kernel.org/platform/packages/apps/Email.git Import the project in my eclipse and set the andro

[android-developers] Re: Approach to cache large amount of Textual and audio data in Android application

2010-07-13 Thread Samuh
:bump: -- 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,

[android-developers] Re: App Inventor

2010-07-13 Thread Maps.Huge.Info (Maps API Guru)
Interesting article on the topic in the NYT's: http://www.nytimes.com/2010/07/12/technology/12google.html?src=busln Especially this paragraph: "The tool is Web-based except for a small software download that automatically syncs the programs created on a personal computer, connected to the applic

[android-developers] Re: How to set the default download files location

2010-07-13 Thread uday
Hi Priyanka, Whatever u have suggested is working fine to copy the PDF files.. Instead of adding this iText to the android project, by using java methods we can achieve this.. I tried and i succeeded in it.. On Jul 4, 11:06 am, priyanka <2priya...@gmail.com> wrote: > Hello, > > There is a librar

[android-developers] Re: how to create a new account type for using exsiting providers

2010-07-13 Thread MG
At present Android code supports to add an exchange/corporate account. When user adds an account, Nexus one shows option to add MS exchange account or Google account, but this option is not available in Froyo/ Eclair code. The gmail account is also added as an exchange account and both these type

[android-developers] Re: Will data remain after updating android os in mobile phones

2010-07-13 Thread uday
Hi Guys, Is android will wipe the preference variables data when the application version is upgraded?? On Jun 25, 3:44 pm, santha wrote: > Thanks for the information. > > But in my application i want to backup the data when clicks on Factory > Reset.. for that purpose i browse in the interne

[android-developers] Re: Camera capture without a preview...

2010-07-13 Thread ashughes
I would also like to know how to do this. Have you figured it out? Does anyone know how to take a picture in the background (such as a service) without needing a preview? Thanks, Andrew On Jun 30, 12:04 am, SaiKiranVeluri wrote: > Hi, > > Is it possible to capture an imagewithoutshowing the came

[android-developers] Re: Rapid Android Development with AML, looking for feedback

2010-07-13 Thread Jeff Rowberg
Hello again everyone, Due to the response I got from DZone, I've migrated my AML project to its own website, which you can find here: http://www.amlcode.com My quest for feedback and input from the Android development community is still going on though, so if anyone has any suggestions, ideas, c

[android-developers] why does AlarmManagerService.java call "remove" first in a "set" alarm?

2010-07-13 Thread Satya Komatineni
It was a bit baffling (Probably there is a good reason, and it doesnt take much to baffle me) AlarmManager am; ... PendingIntent pi; am.set(pi, ...) at 11pm am.set(pi,...) at 2pm Same "pending intent" with the same intent and request code, in otherwords they resolve to same intent on equals.

[android-developers] Re: how to check if the current thread is in the ui thread?

2010-07-13 Thread DanH
You'd be amazed how many exceptions are thrown loading a single class. On Jul 13, 5:05 pm, TreKing wrote: > On Tue, Jul 13, 2010 at 2:30 PM, Frank Weiss wrote: > > I suppose you might also try just catching the IllegalStateException which > > would occur if not a UI thread AFAIK.. > > Exceptions

[android-developers] Video playback (mediaplayer) always logs ERROR/OsclAsyncFile(12290): OsclAsyncFile::ConstructL!! on Samsung Galaxy S

2010-07-13 Thread Mathias Lin
I'm using a mediaplayer (http://developer.android.com/reference/android/media/MediaPlayer.html) to playback a video. Everything works fine actually but I noticed that on a Samsung Galaxy S, despite that everything seems to run ok, I still see errors in the log, which I don't get on Nexus One or

[android-developers] Re: how to deal with button clickevent in a listview?

2010-07-13 Thread Jeruliu
Well, that will be similar with handling the checkbox in the item. I handled it in my customized adapter with a dirty approach. On Jul 12, 4:55 pm, 苗忠良 wrote: > hi,Jeruliu: > I need not that how to handle the item, in my code, I wrote it , I want > to know is that how to handle the button i

[android-developers] Re: Android market hiding apps with bluetooth permissions from Android 1.5 and 1.6

2010-07-13 Thread DonFrench
Ok, I clicked the star and added my support. On Jul 13, 12:17 pm, "Jonas Petersson" wrote: > On 07/13/2010 09:05 PM, DonFrench wrote: >  > > [Joe's app ] > > > So Bluetooth is not necessary to benefit from using your app but those > > whose phones support it can reap the additional Bluetooth bene

[android-developers] Market question about copy protection

2010-07-13 Thread Stephen Lebed
Hi all, I would have posted this in the Android Market group, but it looks like there's no one home over there. Anyway, I have an paid app currently selling in the market with its copy protection turned on. I'm thinking about turning this off in order to reduce the size of my app and allow the "

[android-developers] Re: how to add fixed view to PreferenceActivity

2010-07-13 Thread mkhwang
like below... there are title-bar on top, buttons on bottom and preferences having scollbar on middle. +-+ |Tital bar(TextView)| +-+ | Preference 1 || | || |--

[android-developers] Where should I change a ListView's backing data from?

2010-07-13 Thread CodeFusion
I have a ListView that is filled from my adapter with my custom views. Each view has two buttons, one that starts another activity to edit the contents of that list item and one to delete that item. My question is where should my ClickEvent handlers for those buttons be? Should I put them right

[android-developers] facebook api help

2010-07-13 Thread XiaoDar
i've been palying with facebok-android api for a few days now i've followed the tutorial from http://www.mobisoftinfotech.com/blog/android/845/ and now i've successfully get the app to work however i would like to preset a default value in the text box here http://www.mobisoftinfotech.com/blog/wp-c

[android-developers] How to compile and install mplayer from source code

2010-07-13 Thread xlshe
Hi, I want to compile and install mplayer for my android phone. Has anyone done the similar thing? Can you give me some suggestion about how to do it? Thank you very much! Best regards, Longsheng Xia -- You received this message because you are subscribed to the Google Groups "Android Developer

[android-developers] Re: Setting emulator phone number

2010-07-13 Thread jotobjects
Sorry to reply to my own posting. I'm asking because my project is using the Telephony API getLine1Number() and I'm wondering if the telephone number is the same on all emulators or if it can be changed somehow for testing without getting the same number every time. Anybody have experience with th

[android-developers] Re: Fixing a performance issue on a financial calculator program

2010-07-13 Thread Zsolt Vasvari
In my app, in a generic report viewer, I just draw the lines on a Canvas. It's very fast and lightweight. If you send me an e-mail, I can send you my code. On Jul 14, 2:02 am, Mark Murphy wrote: > On Tue, Jul 13, 2010 at 1:21 PM, Connie Walsh > > wrote: > > I am writing a financial calculator

[android-developers] how to add fixed view to PreferenceActivity

2010-07-13 Thread mkhwang
Hi everyone~ It occur some problems to develop U/I. there is a PreferenceActivity that was aleady developped and is typecally like 'Settings' of android. by the way, the customer is requiring to change U/I like IPhone Requirements are 1. application title-bar using ImageView(or TextView) posit

[android-developers] Re: problems with the old and new Contact API

2010-07-13 Thread Zsolt Vasvari
What you are trying to do is probably much more sophisticated than what most people are doing with Contacts, so I wouldn't expect much help. If I were in your situation, I'd download the source to the Contact app and the Contact provider and see what they are doing. Debugging this with the source

Re: [android-developers] Re: How can I find unneeded permission?

2010-07-13 Thread Dianne Hackborn
On Tue, Jul 13, 2010 at 11:54 AM, deg wrote: > But, I do hope that some toolmeister inside Google sees this thread > and picks up the gauntlet someday. > You don't need Google to do such things. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private

[android-developers] Stack Exchange Audio Programming Proposal

2010-07-13 Thread jeremynealbrown
Hi, If you are generally interested in Audio Programming and a StackOverflow/StackExchange enthusiast, be sure to follow the development of the Audio Programming proposal @ Area51: http://area51.stackexchange.com/proposals/13007/audio-programming In order for this to become an actual forum we ne

[android-developers] how to setup vold.conf for USB mass storage device

2010-07-13 Thread rhardy
Can anyone tell me how to setup vold.conf for ums. I can't find any documentation on it. I want vold to mount a hotplugged USB storage device and broadcast notifications (intents) when it is plugged and unplugged. Thanks -- You received this message because you are subscribed to the Google Gro

Re: [android-developers] Force an Application to be alive

2010-07-13 Thread Dianne Hackborn
Please don't use that. I didn't realize this got left in the public API... it should not be. :( It is very broken for apps to use this; expect it to be turned into a no-op in the future. On Tue, Jul 13, 2010 at 12:54 AM, y 00o00o0o0o000o00o0o0o < yszhou4t...@gmail.com> wrote: > I read the refe

Re: [android-developers] Re: Are the Maps libraries included on every phone?

2010-07-13 Thread Mark Murphy
On Tue, Jul 13, 2010 at 8:16 PM, Dianne Hackborn wrote: > 2. You can use (I think this was > introduced in 2.0) to say you don't require the library.  If the library > doesn't exist you can still be installed, and you can use the normal Java > tricks of dealing with those classes not being there.

Re: [android-developers] Re: 3D Game Development

2010-07-13 Thread Renan Henrique Pereira de Lima
Thank you all, guys! I'm looking for some kind of 3D game development engine or API, like an Unreal Engine, but for mobile devices. Apparently, there aren't too much. Recently, I've found Shiva 3D, which has the capability to export it games to mobile. Do you know this engine? Or other one? Thank

Re: [android-developers] Re: Are the Maps libraries included on every phone?

2010-07-13 Thread Dianne Hackborn
Not true. 1. If you say by default it is assumed you require the library, and thus your app will not be shown in market on devices that don't have the library and the platform will fail installing the app if the library doesn't exist. 2. You can use (I think this was introduced in 2.0) to say y

Re: [android-developers] Re: how to check if the current thread is in the ui thread?

2010-07-13 Thread Dianne Hackborn
On Tue, Jul 13, 2010 at 12:30 PM, Frank Weiss wrote: > I suppose you might also try just catching the IllegalStateException > which would occur if not a UI thread AFAIK.. > You can't trust this will actually be shown. We try to show it when we do detect a bad thread is entering the view hierarc

[android-developers] Re: Killi Process with files on SD card

2010-07-13 Thread ls02
I tried this on Motorola DROID and it does not work. I do not receive any events in receiver onReceive. On Jul 10, 9:23 pm, Streets Of Boston wrote: > Register your broadcast receiver like this: > > IntentFilter intentFilter = new > IntentFilter(Intent.ACTION_MEDIA_EJECT); > intentFilter.addActio

Re: [android-developers] Sections in ListView

2010-07-13 Thread Mark Murphy
On Tue, Jul 13, 2010 at 6:54 PM, Jens wrote: > What is the preferred way to sectionize a ListView by declaring a > header before each section? In the end, you need a ListAdapter that is aware of your sections and can put in the headings as needed. You could roll one yourself. Or, you could use my

[android-developers] Full size image with scroll ability

2010-07-13 Thread Tommy
Hi everyone, I have an image that I want to be able to display full size but when I place it in my imageview it scales. I would like it to display full size with scroll bars. Is there a way I can make my main view that the image view is in have scroll bars vertical and horizontal or how can I do t

[android-developers] Sections in ListView

2010-07-13 Thread Jens
What is the preferred way to sectionize a ListView by declaring a header before each section? -- 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

[android-developers] Numeric Soft Keyboard

2010-07-13 Thread Shivaansh
How can we default to a numeric soft keyboard when the user focuses on a web page edit field where input=number? -- 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 uns

Re: [android-developers] Re: Are the Maps libraries included on every phone?

2010-07-13 Thread Mark Murphy
On Tue, Jul 13, 2010 at 6:48 PM, paladin wrote: > So there would be no way to make the maps part of your app optional? Unfortunately, no. You could have multiple editions of your app on the Market (Maps and no-Maps, like the "lite" vs. "pro" editions you see other developers use). -- Mark Murph

Re: [android-developers] xcode equivalent for android development

2010-07-13 Thread aniruddha dhamal
Run your android device Go to tools folder and run ddms. You will get the log. On Tue, Jul 13, 2010 at 3:32 PM, Frank Weiss wrote: > www.eclipse.org + Android SDK > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this g

[android-developers] Re: Are the Maps libraries included on every phone?

2010-07-13 Thread paladin
On Jul 13, 4:46 pm, TreKing wrote: > On Tue, Jul 13, 2010 at 2:34 PM, paladin wrote: > You don't, but your app probably won't be able to be installed on the device > if you require the library. For example, creating an AVD without the Google > Maps add-on and trying to install my app with the "us

Re: [android-developers] xcode equivalent for android development

2010-07-13 Thread Frank Weiss
www.eclipse.org + Android SDK -- 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

Re: [android-developers] Re: how to check if the current thread is in the ui thread?

2010-07-13 Thread TreKing
On Tue, Jul 13, 2010 at 2:30 PM, Frank Weiss wrote: > I suppose you might also try just catching the IllegalStateException which > would occur if not a UI thread AFAIK.. > Exceptions are for exceptional situations. You really should not be using them for logic flow, and definitely not where thre

Re: [android-developers] Google Maps API in Israel

2010-07-13 Thread Steve Howard
Likely the same as this: http://code.google.com/p/gmaps-api-issues/issues/detail?id=664 Steve On Tue, Jul 13, 2010 at 1:15 PM, oriharel wrote: > Can a Googler please answer this one - > how come I don't see detailed Israel map whe

[android-developers] xcode equivalent for android development

2010-07-13 Thread rahul jain
Hi there !, Whats the xcode equivalent for android ? ..like i would like to see crash viewer, log viewer and etc. Thanks. RJ -- 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@googlegr

[android-developers] Re: problems with the old and new Contact API

2010-07-13 Thread Alvin
anyone helpe? On Jul 13, 2:29 pm, Alvin wrote: > here's a few things i couldn't figure out and could find anyone else > posting them in the discussion: > 1. > In the new API > ContactsContract.AggregationExceptions table does not really work for > me: when I try to insert a row into the table, it

[android-developers] Re: merge a bitmap overtop of another

2010-07-13 Thread String
Use Canvas.drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) with a Paint having the appropriate Porter/Duff transfer mode. Exactly which mode you want depends on how your code is set up, but it'll probably be either SRC_OVER or DST_OVER. String On Jul 13, 8:47 pm, Eric Murtaugh wrote:

[android-developers] Re: Attach debugger to a process running in the emulator via eclipse.

2010-07-13 Thread MB
Yes, it is enabled. I killed the process in step 1.) via the suspend/ terminate button in the eclipse debugger gui. After the process is killed I re launch it in the emulator. When it is relaunched, I want to re-attach the debugger. On Jul 13, 12:47 am, Kostya Vasilyev wrote: > Is debugging enabl

[android-developers] EditText input text not drawing after a while

2010-07-13 Thread Al
I have a chat app and one the problems I haven't been able to solve is the EditText input box stops showing text after a while. I've verified the problem myself but it seems to depend on the IME you use. I use HTC's ime and have never had the problem. For purposes of finding the problem, I switched

[android-developers] Re: multiple mapviews

2010-07-13 Thread Michael
Good idea. I would put them in tabs On Jul 13, 9:46 am, TreKing wrote: > On Tue, Jul 13, 2010 at 12:31 AM, rukiman wrote: > > Any way I can implement this? > > Idea: Override onDraw() on the MapView (or Activity, or wherever), set the > parameters you need (location, zoom level) to draw scaled d

Re: [android-developers] Are the Maps libraries included on every phone?

2010-07-13 Thread TreKing
On Tue, Jul 13, 2010 at 2:34 PM, paladin wrote: > Does anyone know if these libraries are guaranteed to be included on every > Android phone? > I don't think it's absolutely guaranteed, but it's a pretty good bet. > If not, how would I know if they are not there? > You don't, but your app pro

[android-developers] Re: Force an Application to be alive

2010-07-13 Thread mah
Or you could make use of the AlarmManager. On Jul 13, 8:59 am, Nadav wrote: > However you might be able to set up a broadcast receiver for different > system events that would at least restart your service in case its > down. For example listening to the boot, phone being plugged into > power, et

Re: [android-developers] Re: Can I put a donation link in my free app?

2010-07-13 Thread Tomáš Hubálek
Michael, seriously: where to ask? And do you think that you get it? Tom On Jul 13, 2010 10:30 PM, "Michael A." wrote: Hi, You would have to ask Google about that, but the existence or lack of a market payment processor does not really change the terms of service. It's just one way in which th

Re: [android-developers] Re: Android market hiding apps with bluetooth permissions from Android 1.5 and 1.6

2010-07-13 Thread Kostya Vasilyev
To original poster: I am guessing you are already using reflection to use Android 1.5 Bluetooth APIs vs. 2.0 APIs, similar to this: http://code.google.com/p/backport-android-bluetooth If that's the case, seems like you don't have to rely on Market to only make your app available to phones w

[android-developers] Re: Can I put a donation link in my free app?

2010-07-13 Thread Michael A.
Hi, You would have to ask Google about that, but the existence or lack of a market payment processor does not really change the terms of service. It's just one way in which those of us who are outside the Google Checkout zone are screwed over by the Android market. Regards, Michael A. On Jun 3

[android-developers] soft keyboard selection from app?

2010-07-13 Thread ddum...@gmail.com
So Sony appears to have included their own IME with their xperia phones. I have an edit box for numerical input that i have specified as number| numberDecimal|phone It allows for easy number entry and allows users to enter in decimal numbers. However the IME in the xperia phones is missing the d

Re: [android-developers] Re: Android market hiding apps with bluetooth permissions from Android 1.5 and 1.6

2010-07-13 Thread Michael MacDonald
Seems like a work-around for that would be to have a base app that only requests the base permissions, and have it on-demand install an optional add-on that requests the additional permissions. The base app calls into the add-on to do the additional functionality. On 07/13/10 15:17, Jonas Peterss

[android-developers] Google Maps API in Israel

2010-07-13 Thread oriharel
Can a Googler please answer this one - how come I don't see detailed Israel map when I integrate with the MapView in my MapActivity? I can see just about any other country except Israel. thanks, Ori -- You received this message because you are subscribed to the Google Groups "Android Developers"

[android-developers] Re: OpenGL ES libraries

2010-07-13 Thread Sundog
Thanks, that does look interesting, and the Apache license is less cumbersome. Given the state of development right now though, maybe a wait-and-see approach would be appropriate. On Jul 13, 1:33 pm, christoph widulle wrote: > http://code.google.com/p/libgdx/ > > libgdx could be something you a

Re: [android-developers] Re: Easy and fast XML Parser?

2010-07-13 Thread Mark Murphy
On Tue, Jul 13, 2010 at 3:27 PM, Frank Weiss wrote: > You noted that there is a marked difference, in favor of pull, for > "compiled XML resource". What does that mean and why would it make > such a differnce? A compiled XML resource is an Android resource that is in XML. Like, say, layouts. Or m

Re: [android-developers] Are the Maps libraries included on every phone?

2010-07-13 Thread Mark Murphy
On Tue, Jul 13, 2010 at 3:34 PM, paladin wrote: > My app uses location services, and has the manifest entry: > > > > Does anyone know if these libraries are guaranteed to be included on > every Android phone? They are not guaranteed to be on every Android device. > If not, how would I know if t

[android-developers] Re: Are the Maps libraries included on every phone?

2010-07-13 Thread Alvin
same question On Jul 13, 3:34 pm, paladin wrote: > My app uses location services, and has the manifest entry: > > > > Does anyone know if these libraries are guaranteed to be included on > every Android phone? If not, how would I know if they are not there? -- You received this message because

[android-developers] merge a bitmap overtop of another

2010-07-13 Thread Eric Murtaugh
ok so i have sort of a picture frame type bitmap and a picture bitmap so think of it like this i have a 64x64 frame image where (5,6) to like (56,54) is where the picture should be, how can i merge the picture bitmap into the frame bitmap with those bounds and make it one bitmap? ive been searching

[android-developers] Are the Maps libraries included on every phone?

2010-07-13 Thread paladin
My app uses location services, and has the manifest entry: Does anyone know if these libraries are guaranteed to be included on every Android phone? If not, how would I know if they are not there? -- You received this message because you are subscribed to the Google Groups "Android Developers"

[android-developers] Re: OpenGL ES libraries

2010-07-13 Thread christoph widulle
http://code.google.com/p/libgdx/ libgdx could be something you are looking for. Greetings, Christoph On 13 Jul., 16:23, Sundog wrote: > I looked around for info on this in the group but couldn't find any... > so far in my OpenGL programming I've just done everything directly, > but I was curiou

Re: [android-developers] Re: how to check if the current thread is in the ui thread?

2010-07-13 Thread Frank Weiss
I suppose you might also try just catching the IllegalStateException which would occur if not a UI thread AFAIK.. -- 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 un

Re: [android-developers] Re: Easy and fast XML Parser?

2010-07-13 Thread Frank Weiss
I did some research on the difference between SAX push/pull parsers. The consensus was that generally they are within an order of magnitude, the speed varies somewhat depending on the data, and that there is a factor of the preference for programming push vs pull. You noted that there is a marked

Re: [android-developers] Re: Android market hiding apps with bluetooth permissions from Android 1.5 and 1.6

2010-07-13 Thread Jonas Petersson
On 07/13/2010 09:05 PM, DonFrench wrote: > > [Joe's app ] So Bluetooth is not necessary to benefit from using your app but those whose phones support it can reap the additional Bluetooth benefits that you so thoughtfully added, is that it?. Since your app is still valuable even without Bluetoot

Re: [android-developers] Re: How to access shared preference outside of Activity

2010-07-13 Thread Gene Augustine
I had asked the question " Is it possible to pass a variable to the characters method event in the XMLReader.parse() of a SAX2 driver? If so does anyone have an example? and was sent a message to use PreferenceManager.getDefaultSharedPreferences(). I entered the statement: SharedPreferences mySha

[android-developers] Re: Android market hiding apps with bluetooth permissions from Android 1.5 and 1.6

2010-07-13 Thread DonFrench
So Bluetooth is not necessary to benefit from using your app but those whose phones support it can reap the additional Bluetooth benefits that you so thoughtfully added, is that it?. Since your app is still valuable even without Bluetooth functionality, people with pre-2.0 phones should not be pr

Re: [android-developers] Re: App launching

2010-07-13 Thread Brad Gies
My data source is just a JSONArray I pass in to the constructor for my spinner activity, and then to the Javascript when it is ready, along with some other setup parameters. If you look at the declaration for The AndoidBridge in my second message you will see that it is a private class that ju

Re: [android-developers] Re: Easy and fast XML Parser?

2010-07-13 Thread Dianne Hackborn
As a very rough sketch, the performance you can expect is: SAX is 10-100x slower than XmlPullParser on a compiled XML resource. DOM is 10-100x slower than SAX. (XmlPullParser on a raw XML file is slower than SAX, but not an order of magnitude.) For some context on that, a significant amount of t

[android-developers] Re: Launch an Activity Form a Service

2010-07-13 Thread Boozel
That Did IT! Thank You On Jul 13, 8:47 pm, Kostya Vasilyev wrote: > Boozel, > > The second parameter should be without quotes - i.e. a reference to the > actual Java class object of your activity. > > new Intent(BbService.this, TsandCs.class); > startActivity(intent); > > If specifying class name

[android-developers] Re: How can I find unneeded permission?

2010-07-13 Thread deg
Unfortunately, I'm not going to do this anytime soon; the tradeoff is clearly not worth it within the domain of just my company and our apps. Nor am I likely to persuade you that it's worthwhile; nor you to persuade me. The arguments over static analysis tools are religious and, even after thirty-

Re: [android-developers] Re: Launch an Activity Form a Service

2010-07-13 Thread Kostya Vasilyev
Boozel, The second parameter should be without quotes - i.e. a reference to the actual Java class object of your activity. new Intent(BbService.this, TsandCs.class); startActivity(intent); If specifying class name by string, the ".class" should not be there, since you're not making a referen

Re: [android-developers] Re: Launch an Activity Form a Service

2010-07-13 Thread Kostya Vasilyev
I believe this: new ComponentName( "com.example.test", "TsandCs.class" ) is supposed to be either: new ComponentName( context, TsandCs.class) or new ComponentName( "com.example.test", "TsandCs") Use the first case if the activity is in the same application as the service, the second case if

[android-developers] Re: Launch an Activity Form a Service

2010-07-13 Thread Boozel
This is the code i used Intent intent = new Intent(BbService.this, "TsandCs.class"); startActivity(intent); but eclipse says: The constructor Intent(BbService,String) is undefined i tried putting the first parameter in quotes too like above but the constructor Intent

Re: [android-developers] Re: Launch an Activity Form a Service

2010-07-13 Thread chethan kumar
Also Add this in between Intent intent = new Intent("Your Service Class Name.this", "Activity You Want to Go.class"); intent.addFlags( Intent.FLAG_ACTIVITY_NEW_TASK ); startActivity(intent); On Wed, Jul 14, 2010 at 12:02 AM, chethan kumar wrote: > you want to start activity from a service rite

Re: [android-developers] Re: Launch an Activity Form a Service

2010-07-13 Thread chethan kumar
you want to start activity from a service rite So you can just do this. Intent intent = new Intent("*Your Service Class Name.this*", "*Activity You Want to Go.class*"); startActivity(intent); MAke sure you have added the activity in your Manifest. regards Chethan On Tue, Jul 13, 2010 at 11:52

[android-developers] problems with the old and new Contact API

2010-07-13 Thread Alvin
here's a few things i couldn't figure out and could find anyone else posting them in the discussion: 1. In the new API ContactsContract.AggregationExceptions table does not really work for me: when I try to insert a row into the table, it gives me this error: 07-13 14:20:09.399: ERROR/X(3074):

Re: [android-developers] Changing Main/Launch activity

2010-07-13 Thread Dianne Hackborn
You will break any shortcuts that have been made to that activity (or other explicit intents that have been made to it, though for main/launcher a shortcut is by far the most common case). On Tue, Jul 13, 2010 at 6:08 AM, Justin wrote: > I think I already know the answer to this, but I just want

[android-developers] Re: Launch an Activity Form a Service

2010-07-13 Thread Boozel
It now gives this error Unable to find explicit activity class {com.example.test/ TsandCs.class}; have you declared this activity in your AndroidManifest.xml? here is the code i used try{ Intent i = new Intent( Intent.ACTION_MAIN ); Log.d( LOG_TAG,"onCreate - 3" );

[android-developers] Re: how to check if the current thread is in the ui thread?

2010-07-13 Thread guich
Thanks, i'll try it. regards guich -- 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...@

Re: [android-developers] Changing Main/Launch activity

2010-07-13 Thread TreKing
On Tue, Jul 13, 2010 at 12:58 PM, Greg Pasquariello wrote: > See the attached document. Which has what to do with the OP's post? - TreKing - Chicago transit tracking app for Android-powered devices

[android-developers] Re: App launching

2010-07-13 Thread kypriakos
Hi Brad, What is the data source to your spinner? Or that is not necessary? I guess because I cannot see what is before this code segment I was curious how you use that. Also, I am not familiar with the AndroidBridge() - is that part of the standard API? Thanks On Jul 12, 8:20 pm, Brad Gies wr

Re: [android-developers] Memory Info

2010-07-13 Thread chethan kumar
Check out this link http://developer.android.com/reference/android/app/ActivityManager.MemoryInfo.html it gives you memory info of the device. Regards Chethan On Mon, Jul 12, 2010 at 4:18 PM, aparna wrote: > Hello, > > How can I fetch the memory Information(physical and storage) from > mobile dev

Re: [android-developers] Can Android 2.X connect to 3G and Wifi data networks simultaneously?

2010-07-13 Thread Mark Murphy
On Tue, Jul 13, 2010 at 2:01 PM, RickB wrote: > We have an application where we'd like to use the Wifi connection on a > local network (intranet) with no Internet connectivity, and use the 3G > connection simultaneously as the data connection to the internet. Like the WiFi hotspot built into Andr

Re: [android-developers] Fixing a performance issue on a financial calculator program

2010-07-13 Thread Mark Murphy
On Tue, Jul 13, 2010 at 1:21 PM, Connie Walsh wrote: > I am writing a financial calculator and part of my code is printing > out an amortization table for 25 - 30 years. Some times there can be > up to 2000 rows on the page. Here is my code to do this part: Ack! > Should I try to add them as the

[android-developers] Can Android 2.X connect to 3G and Wifi data networks simultaneously?

2010-07-13 Thread RickB
We have an application where we'd like to use the Wifi connection on a local network (intranet) with no Internet connectivity, and use the 3G connection simultaneously as the data connection to the internet. To summarize: - We need to connect to two distinct networks at the same time - We need da

Re: [android-developers] how to check if the current thread is in the ui thread?

2010-07-13 Thread Mark Murphy
On Tue, Jul 13, 2010 at 1:38 PM, guich wrote: > I have a situation where i want to show a dialog. However, the code > that calls the method to show the dialog can be running either in the > ui thread or not. > > How can i find if the current thread is running in the ui thread or > not? Actually,

Re: [android-developers] RadioGroup

2010-07-13 Thread chethan kumar
You mean you want to fire some action based on which RadioButton is Clicked rite... If that is the case use *isChecked() method* in your Button.ONclick ListenerHope it helps Regards Chethan On Tue, Jul 13, 2010 at 9:01 PM, anil kukreti wrote: > use the setChecked(boolean) method for particu

[android-developers]

2010-07-13 Thread o
-- 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

Re: [android-developers] Re: How can I find unneeded permission?

2010-07-13 Thread TreKing
On Tue, Jul 13, 2010 at 9:00 AM, deg wrote: > Actually, I can imagine two very common cases: > > 1) Code or even functionality is changed in an application, possibly > in some minor way. The developer does not realize that he has removed > the last SDK call using a permission. The permission ling

[android-developers] how to check if the current thread is in the ui thread?

2010-07-13 Thread guich
Hi, I have a situation where i want to show a dialog. However, the code that calls the method to show the dialog can be running either in the ui thread or not. How can i find if the current thread is running in the ui thread or not? thanks guich -- You received this message because you are

[android-developers] Re: Launch an Activity Form a Service

2010-07-13 Thread Boozel
sorry i realized i dont need a first parameter. When i run the app though i get an error that says No Activity found to handle intent i know this is a manifest problem my is shown below, http://schemas.android.com/apk/res/android"; package="com.example.packagename" android:versionCode

[android-developers] Re: Launch an Activity Form a Service

2010-07-13 Thread Pent
Intent i = new Intent( Intent.ACTION_MAIN ); // don't think main is necessary actually :) i.setComponentName( new ComponentName( "pkgname", "activityclassname" ) ); i.addFlags( Intent.FLAG_ACTIVITY_NEW_TASK ); i.addFlags( Intent.FLAG_FROM_BACKGROUND); try { startActivity( i ); } ca

Re: [android-developers] Changing Main/Launch activity

2010-07-13 Thread TreKing
On Tue, Jul 13, 2010 at 8:08 AM, Justin wrote: > Are there any ramifications to changing the "MAIN"/"LAUNCHER" tags in the > manifest to a different activity? > I *think* I remember seeing people post about issues where they removed or renamed the main activity and the launcher icons failed to l

  1   2   >