[android-developers] Re: Message Dialog appears, The market billing service is not available, Dungeons Sample

2011-03-16 Thread muhammad mahmood
Thank you very much. Now i would like to ask for real implementation of in-app billing for my application, not sample. Can i test In-app purchases using my own Product IDs. I mean is it possible to add actual in-app purchases now and to test the end-to-end in-app billing experience, including

Re: [android-developers] Chaining Methods and Performance.

2011-03-16 Thread Alessio Grumiro
I use same syntax for custom view. I think it isn't a oop valid notation, and performance improvement is poor (maybe class file size could be smaller) You can use it if you like it. Bye Il giorno 15/mar/2011 21.38, brookisme br...@stickandlogdesigns.com ha scritto: Hi Guys. When creating

[android-developers] Re: Bluetooth Adapter.EXTRA DISCOVERABLE not obeyed

2011-03-16 Thread Zeljko Devcic
Hey Gergely, thanks a lot for your effort. It is good to know that somebody else independently observed the same. Best regards, Zeljko On 15 ožu, 23:04, Gergely Juhász jg.sv...@gmail.com wrote: I detect the same problem. It is a bug in the android :( On 15 March 2011 10:00, Zeljko Devcic

[android-developers] Re: onItemLongClick and onItemClick for a gridview

2011-03-16 Thread varinag gold
Any one? On Mar 15, 4:38 pm, varinag gold varinagg...@gmail.com wrote: Hello, For a gridview I am able to set the onItemClick and it works fine but I don't know how should I implement  onItemLongClick so that I can get both type of responses from a gridview items. I googled but could'n

[android-developers] XOOM #Androiddev questions at the MOTODEV Office Hours March 16th 2pm Pacific

2011-03-16 Thread DJ Ksar
hey everyone. I wanted to invite you to the first MOTODEV Office Hours happening March 16th at 2pm pacific at http://motodev.adobeconnect.com/officehours0316. I've seen lots of questions here on developing apps for the XOOM and wanted to make sure we get them answered and get your app to the

Re: [android-developers] Best practice for changing min SDK

2011-03-16 Thread String
On Wednesday, March 16, 2011 2:43:16 AM UTC, Robert Massaioli wrote: everything below v7 of the SDK is only about ten percent of the market which I think means that app developers will ditch those platforms in the future. (If not right now) I don't know about you, but I'm disinclined to

Re: [android-developers] Re: SQLite Transactions

2011-03-16 Thread Kostya Vasilyev
16.03.2011 4:46, David Williams ?: Ok, why isn't this working. Only the first CREATE TABLE command works, the rest don't :( This works fine when I copy and paste this command into an sqlite window and run it.

[android-developers] Re: Accessing Objects created in Service from Activity

2011-03-16 Thread Rohit Ghatol
Hi Mark, Thanks for the quick response. Unfortunately, the nature of our App demands we need a ever running service (its like you need service so that communication like chat or VOIP can happen). Yes we would have used BroadCast Receiver if it where Phone Events like Battery, Network change,

[android-developers] Re: Is SL4A a better tool to test android Applications

2011-03-16 Thread Shyam
Thanks Elk and metal. I will give you the exact scenario so that you will be easily able to justify. My requirement is to validate the platform Stability. Here the android applications remains the same without any modifications. CTS wil play its role in testing the Framework APIs. In Brief, My

Re: [android-developers] Re: Steps to make screen reader

2011-03-16 Thread ali abd elrahim
@ Justin: I mean, read text in any screen (screens of programs). @ Mark: what is screen reader? in Nokia Symbian there are more than one screen reader (Talks, Mobile speak), I used these software before in Nokia devices, with this softwares the sighted people can use every program in mobile

[android-developers] Re: Downloading Videos using Service but facing problem with respect to Wifi Connection

2011-03-16 Thread Goodwin
1. I think you should create a Thread in service to download the videos. On 3月15日, 下午2时38分, monty neilm30s...@gmail.com wrote: Hi All I am downloading encrypted videos from server in my phone memory and decrptying and moving the decrypted video to sdcard. I have the following issues and

[android-developers] Android WhiteBox Testing

2011-03-16 Thread Shyam
Hello Android Developers, How do i go about with Whitebox testing of Android Application. I am very new to Whitebox testing. I have been so far doing Black box testing using Robotium and SL4A. I believe that i know Robotium and SL4A to a better extent. My moto here is to test the application that

[android-developers] WiFi gets jammed in turning off state

2011-03-16 Thread Urizev
Hi I am developing an application for controlling the WiFi interface and I have found a problem: WiFi interface gets jammed on the Xperia X10 Mini (I tested on three devices of the same model). Looking at the log with logcat I found the following error: E/wpa_supplicant( 1775): ERROR -

Re: [android-developers] WiFi gets jammed in turning off state

2011-03-16 Thread Kostya Vasilyev
Are you sure you're not calling startScan too often? 16.03.2011 11:39, Urizev пишет: Hi I am developing an application for controlling the WiFi interface and I have found a problem: WiFi interface gets jammed on the Xperia X10 Mini (I tested on three devices of the same model). Looking at the

[android-developers] Re: Memory Allocation

2011-03-16 Thread pedr0
You could store in an XML array file and inflate it each time spinner is visible. Like this: Spinner spinner = (Spinner) findViewById(R.id.spinner); ArrayAdapterCharSequence adapter = ArrayAdapter.createFromResource( this, R.array.planets_array, android.R.layout.simple_spinner_item);

[android-developers] Re: custom attributes in library projects

2011-03-16 Thread Clément Plantier
Issue 9656 says it's not possible to have custom attributes declared used in library projects. This is fixed on SDK 11. About using an attribute that is declared in a library projet in multiple applications, I can't answer. Have you tried? What happens when you do it? On Mar 16, 6:26 am,

[android-developers] Re: How to fetch GroupId of ContextMenu

2011-03-16 Thread Goodwin
want that when i click on any of item of my ListView, it will display a different context menu corresponding to different List item. How could you do that? I think it is impossible. It is context menu ,not nomal menu. On 3月15日, 下午2时35分, Puneet Agarwal android.developer1...@gmail.com wrote: Hey

[android-developers] Android 2.3.3 and NFC Modes

2011-03-16 Thread hansamann
Hi all, just exploring NFC, got a few tags from smartcardfocus.com and now try to discover as much as I can. What modes are currently supported? There are three modes the nfc forum defined: - card emulation - peer to peer - card/tag reading/writing The latter one is clearly supported, then

[android-developers] Re: Honeycomb / ApiDemos / Fragments: ActionBarTabs activity not working

2011-03-16 Thread Clément Plantier
Not having a working demo with tabs is very problematic because when I try myself, the behavior of fragments seems a little weird. Just try changing the orientation when displaying tabs, and inspect the view hierarchy. Each time the orientation changes, a new fragment view hierarchy is added to

[android-developers] Re: Urgent and Alarming battery management problem. Google please do something about it.

2011-03-16 Thread lorenz
I don't agree. While I agree with this not being an issue with Android in general, I do think this should adressed by Google using Google Market in some way. The reason why a lot of users prefer the iPhone to Android devices is that everything is just easy on IOS devices. People shouldn't have

[android-developers] AppWidget Stopped !!!

2011-03-16 Thread hardrock
Hello, My digital clock is home screen widget. It works well but sometimes time's frozen. As I know, the receiver is no longer active after return from onReceive(). This means that system will consider its process to be empty and aggressively kill it. So I started SERVICE and never stop it to

[android-developers] Network connection issue..

2011-03-16 Thread NR
I have a ListView that updates periodically from server. The first time it loads properly... url: http://myip/abcd?as=scrip=abb,acc,rolta next time, the url becomes url: http://myIp/abcd?as=2011-03-16%2014:00:00scrip=abb,acc,rolta .(a) as I update the URL dynamically: url =

[android-developers] Converting android app to html/xml and css.

2011-03-16 Thread kunal khaire
I know with utilites like phonegap etc we can convert our webapps into native andorid apps.I was not sure if the opposite can happen(converting android app into a web app).Please help with your suggestions if you have come across any. Thanks,DP -- You received this message because you are

[android-developers] Converting android app to html/xml and css.

2011-03-16 Thread raztamus
I know with utilites like phonegap etc we can convert our webapps into native andorid apps.I was not sure if the opposite can happen(converting android app into a web app).Please help with your suggestions if you have come across any. Thanks,DP -- You received this message because you are

Re: [android-developers] Re: How to fetch GroupId of ContextMenu

2011-03-16 Thread Kostya Vasilyev
It is possible. onCreateContextMenu is called every time the menu is about to be shown. One can enable / disable item groups as needed. -- Kostya 16.03.2011 11:54, Goodwin пишет: want that when i click on any of item of my ListView, it will display a different context menu corresponding to

[android-developers] Android Chrome Plugin is not work in HTC NexusOne

2011-03-16 Thread topclass8205
I made a plugin for chrome browser. my plugin is made using NPAPI(webkit/webcore/plugin). It works well on Android Virtual Device in Eclipse, but doesn't work in NexusOne. (Actually, I couldn't test only NexusOne) My AVD's target is android 2.2. NexusOne is the same as AVD (2.2.1) Next is my

Re: [android-developers] mySQL android php

2011-03-16 Thread Marcin Orlowski
On 16 March 2011 03:51, acr acr...@gmail.com wrote: Hi all, I I'm trying to tackle a new area for me in the android dev which is getting/posting data to a mySql database. I am good with php and MySql just not sure how to tie in with android getting success/failure results etc. You want to

[android-developers] About method

2011-03-16 Thread kajal patil
Hi All, Can I use public static void main method in android application? Thank 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,

Re: [android-developers] About method

2011-03-16 Thread Marcin Orlowski
On 16 March 2011 11:01, kajal patil patil.kaja...@gmail.com wrote: Can I use public static void main method in android application? You can use, why not. But the question is what you want to achieve with it here? Regards, Marcin Orlowski Tray Agenda for Android http://bit.ly/trayagenda --

Re: [android-developers] About method

2011-03-16 Thread Kostya Vasilyev
Yes, you can. It just won't be called by Android. What are you trying to do? 16.03.2011 13:01, kajal patil пишет: Hi All, Can I use public static void main method in android application? Thank you. -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] About method

2011-03-16 Thread kajal patil
Hi All, My problem is like in java file of android project I have written one class in which i am taking some message in one string and i want to pass that string to my own method which is in different java file in same project.So i didn't get that whether the method is called or not? Thank

Re: [android-developers] mySQL android php

2011-03-16 Thread Nicholas Johnson
I have several apps which talk to mysql databases that I have on my websites. For me, I use a http post and json to talk between the two. For example, say I want a user to be able to insert some arbitrary data into a database (assuming he's already set up a username and password on my

[android-developers] Any ACTION_SCREEN_ON useable replacement?

2011-03-16 Thread Marcin Orlowski
Hi, My app shows some info in notification area and I wanted to update this info once screen gets on. While ACTION_SCREEN_ON looked promising it did not work at all so, as documentation is not helpful on this (when there will be option to add comments to the SDK documentation?!) I checked Android

[android-developers] How to install market app in emulator?

2011-03-16 Thread Saurav
Hi all, I want to install market app in emulator. Android 2.2 I have tried loads of internet blogs and free downloads, but they turned out not working. Please provide a working and tried out method/procedure, which is recent. Thanks in advance. Regards, Saurav Mukherjee. -- You received

[android-developers] Re: Any ACTION_SCREEN_ON useable replacement?

2011-03-16 Thread Marcin Orlowski
On 16 March 2011 11:29, Marcin Orlowski webnet.andr...@gmail.com wrote: My app shows some info in notification area and I wanted to update this info once screen gets on. While ACTION_SCREEN_ON looked promising it did not work at all so, as documentation is not helpful on this (when there will

Re: [android-developers] Any ACTION_SCREEN_ON useable replacement?

2011-03-16 Thread Kostya Vasilyev
How about: http://developer.android.com/reference/android/content/Intent.html#ACTION_USER_PRESENT ? 16.03.2011 13:29, Marcin Orlowski ?: Hi, My app shows some info in notification area and I wanted to update this info once screen gets on. While ACTION_SCREEN_ON looked promising it did

[android-developers] Re: How to install market app in emulator?

2011-03-16 Thread Nicholas Johnson
As far as I know, I don't think it's possible. However, Google APIs 8 and above include some Market functionality for using License Verification, etc. Why do u you the market app in the emulator? -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Walking Sprite....

2011-03-16 Thread Anirudh
I’m trying to make a sprite that is stationary at the start but once you click somewhere on the screen, it should move to that point automatically in a straight line, creating the walking effect. How do I do this? -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Any ACTION_SCREEN_ON useable replacement?

2011-03-16 Thread Marcin Orlowski
http://developer.android.com/reference/android/content/Intent.html#ACTION_USER_PRESENT Thanks. I already use it but it is being send after user removed screen lock, and that's too late for my purpose. I digged around a bit more and (unless someone got anything better in mind) it looks I have

Re: [android-developers] Best practice for changing min SDK

2011-03-16 Thread Robert Massaioli
Actually I made that comment a little flippantly; 10% still translates to a whole bunch of users when you are talking about an OS like Android. I have changed my mind and I will suffer a little bit of that Backwards Compatibility pain in order to cater for every user. -- You received this

Re: [android-developers] Re: Urgent and Alarming battery management problem. Google please do something about it.

2011-03-16 Thread Mark Murphy
On Wed, Mar 16, 2011 at 5:17 AM, lorenz lorenz.fisc...@gmail.com wrote: Google really could do a much better job in automatically testing and rating applications in regards to speed, battery usage, and force closes. You are cordially invited to develop an engine that performs automatically

[android-developers] Re: fetch all the miss call

2011-03-16 Thread crajesh
Hi Bastiaan, Thank you so much for this On Mar 15, 3:45 pm, Bastiaan bastiaa...@gmail.com wrote: You can use the Call Log Content Provider to fetch the missed calls: http://malsandroid.blogspot.com/2010/06/accessing-call-logs.htmlhttp://www.devx.com/wireless/Article/41133/1763/page/3

Re: [android-developers] Re: custom attributes in library projects

2011-03-16 Thread Mark Murphy
On Wed, Mar 16, 2011 at 1:26 AM, joebowbeer joe.bowb...@gmail.com wrote: What has been fixed and tested? Issue 9656? http://code.google.com/p/android/issues/detail?id=9656 Is it now possible to declare a custom attribute in a library project and reuse it in multiple apps? This has worked

Re: [android-developers] How to install market app in emulator?

2011-03-16 Thread Mark Murphy
On Wed, Mar 16, 2011 at 6:31 AM, Saurav to.saurav.mukher...@gmail.com wrote: I want to install market app in emulator. Android 2.2 The Android Market is not distributed for installation on emulators. Please provide a working and tried out method/procedure, which is recent. Any

[android-developers] How To End the Call

2011-03-16 Thread crajesh
Hi, I need to End call automatically. So can any one guide me how to End call.. Thanks C.Rajesh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from

Re: [android-developers] AppWidget Stopped !!!

2011-03-16 Thread Mark Murphy
On Wed, Mar 16, 2011 at 4:37 AM, hardrock hardrock...@gmail.com wrote: My digital clock is home screen widget. It works well but sometimes time's frozen. As I know, the receiver is no longer active after return from onReceive(). This means that system will consider its process to be empty

Re: [android-developers] Re: Steps to make screen reader

2011-03-16 Thread Mark Murphy
On Wed, Mar 16, 2011 at 4:24 AM, ali abd elrahim allo...@gmail.com wrote: @ Mark: what is screen reader? in Nokia Symbian there are more than one screen reader (Talks, Mobile speak), I used these software before in Nokia devices, with this softwares the sighted people can use every program in

[android-developers] Re: Best practice for changing min SDK

2011-03-16 Thread lbendlin
You will have to keep in mind that the 1.5 phones have no chance of ever being upgraded. So they are there to stay, as long as the owner thinks they are devcent as a phone (most are). You'll need to support 1.5 for at least another two years. I have my MinSDK set at 3 and use reflection

Re: [android-developers] Re: Accessing Objects created in Service from Activity

2011-03-16 Thread Mark Murphy
On Wed, Mar 16, 2011 at 4:04 AM, Rohit Ghatol rohitsgha...@gmail.com wrote: Hi Mark, Thanks for the quick response. Unfortunately, the nature of our App demands we need a ever running service (its like you need service so that communication like chat or VOIP can happen). Yes we would have

Re: [android-developers] Re: Accessing Objects created in Service from Activity

2011-03-16 Thread Mark Murphy
I apologize. My response was uncalled for. However, please understand that we need to see what User is generally doing on the phone is going to cause that reaction in people. On Wed, Mar 16, 2011 at 7:36 AM, Mark Murphy mmur...@commonsware.com wrote: On Wed, Mar 16, 2011 at 4:04 AM, Rohit

[android-developers] Re: SQLite Transactions

2011-03-16 Thread lbendlin
The transaction logic goes like this (replace the loop with your create statements) Db.execSQL(BEGIN TRANSACTION;); while ((line = r.readLine()) != null) { // insert the line into the database

[android-developers] Re: == How to Toast or Notify in response to ACTION_VIEW without showing my app ==

2011-03-16 Thread lbendlin
Tommy, I assure you that you can show a toast from anywhere, including from a service. It's even mentioned in the documentation. On Mar 15, 4:23 pm, Tommy droi...@gmail.com wrote: I'm not sure you can show a toast from a service. You might have send a broadcast and catch that in the current

[android-developers] Re: Accessing Objects created in Service from Activity

2011-03-16 Thread lbendlin
I needed a long-ish running service in my app too, but I agree with Mark. I solved the issue via global object (in this case a SQLite database that is shared between the application and the service. If the service finds that the database is no longer there it concludes that the application must

Re: [android-developers] How to install market app in emulator?

2011-03-16 Thread Saurav
Thanks Nicholas and Mark. Specially Mark, as I seriously did not know that it would be a copyright issue. I'll restrict myself from doing it. Thanks for your speedy replies. Regards, Saurav Mukherjee. On Wed, Mar 16, 2011 at 4:57 PM, Mark Murphy mmur...@commonsware.comwrote: On Wed, Mar

[android-developers] Re: rotating a bitmap

2011-03-16 Thread lbendlin
don't divide by two, multiply by .5 . multiplication is much faster than division. On Mar 15, 5:38 pm, Nicholas Johnson metthejohn...@gmail.com wrote: A couple things: This might help your pivot point that you have: instead of converting to float after the division, try doing it before the

Re: [android-developers] Re: SQLite Transactions

2011-03-16 Thread Kostya Vasilyev
Or, to use the pattern from documentation: db.beginTransaction(); try { db.execSQL(...); db.execSQL(...); db.setTransactionSuccessful(); } finally { db.endTransaction(); } The semantics are a little different, because beginTransaction() uses EXCLUSIVE transaction mode, while BEGIN

Re: [android-developers] Re: rotating a bitmap

2011-03-16 Thread Marcin Orlowski
On 16 March 2011 12:52, lbendlin l...@bendlin.us wrote: don't divide by two, multiply by .5 . multiplication is much faster than division. If you want to divide by 2 just shift the value one bit to the right. Won't work for floats though, so you have to cast the result. Regards, Marcin

Re: [android-developers] Re: rotating a bitmap

2011-03-16 Thread Nicholas Johnson
Marcin, I don't think that will work for him, since he's trying to keep the precision of the number (i.e. he needs whatever fractional part of the division). Nick -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: rotating a bitmap

2011-03-16 Thread authorwjf
Thanks for the suggestions Nicholas Marcin. I hope to get a chance to give them both a try tomorrow night. I especially like not having the overhead of creating the second bitmap. I didn't realize that was an option. I should have explored the canvas object more closely. -- You received

Re: [android-developers] How To End the Call

2011-03-16 Thread Marcin Orlowski
On 16 March 2011 12:28, crajesh crajesh2...@gmail.com wrote: I need to End call automatically. So can any one guide me how to End call.. What about putting more effort in seach yourself?

Re: [android-developers] Re: Memory Allocation

2011-03-16 Thread New Developer
Thanks But can the array xml fileby that I mean resources string-array a) IF stored in the /res directory can it be changed and modified *after* installation, say months of use later ? b) Can this be stored in /mnt/sdcard I know this can be modified after

[android-developers] Re: Paint single Path object with Xfermode

2011-03-16 Thread Menion
Looks that this really have no solution other, then separate Path object every cca 100m to gain effect of darker color when path is overlay one over another. Thanks anyway ... On Mar 14, 12:37 pm, Menion menion.as...@gmail.com wrote: As I expect, wrong description. Sorry Once more. On this

Re: [android-developers] Re: rotating a bitmap

2011-03-16 Thread Marcin Orlowski
Hi, I don't think that will work for him, since he's trying to keep the precision of the number (i.e. he needs whatever fractional part of the division). Correct. I just dropped my $0.02. In time of Visual Programming, oldskool asm tricks are dimming skill :) Regards, Marcin Orlowski Tray

Re: [android-developers] Re: Android Kernel Build Errors- Yaffs2 Errors

2011-03-16 Thread TreKing
On Wed, Mar 16, 2011 at 12:09 AM, Su-Android sudhirvpra...@gmail.comwrote: Now i Minimized the errors. This doesn't change the fact that you're in the wrong group for this topic. These are the recent errors with fs_uid fs_gid. can someone please suggest me the patch of this Someone on

[android-developers] About Android Application Development

2011-03-16 Thread kajal patil
Hi All, I need to call a servlet from my android app and send some data.Can anyone give me some example ? Thank 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

Re: [android-developers] Re: How to fetch GroupId of ContextMenu

2011-03-16 Thread Puneet Agarwal
I already have done that. Anyways very thanks for your help.If you need code for that then tell me i will post it on Android Developer Group. Thanks Regards Puneet Agarwal On Wed, Mar 16, 2011 at 3:19 PM, Kostya Vasilyev kmans...@gmail.com wrote: It is possible. onCreateContextMenu is

Re: [android-developers] About Android Application Development

2011-03-16 Thread Mark Murphy
This has nothing to do with Android. Use standard Java networking I/O (e.g., HttpUrlConnection) or HttpClient. On Wed, Mar 16, 2011 at 8:18 AM, kajal patil patil.kaja...@gmail.com wrote: Hi All, I need to call a servlet from my android app and send some data.Can anyone give me some

Re: [android-developers] Re: Urgent and Alarming battery management problem. Google please do something about it.

2011-03-16 Thread lorenz
As I said, I thought about it. For an individual developer trying to introduce something like this I see the following problems: 1. It won't help the average user if the results of said engine cannot be integrated into the market application itself. Publishing them on a web page is

Re: [android-developers] Re: Urgent and Alarming battery management problem. Google please do something about it.

2011-03-16 Thread Mark Murphy
On Wed, Mar 16, 2011 at 8:28 AM, lorenz lorenz.fisc...@gmail.com wrote: These are all things that I - as opposed to Google - do not have access to. So, why should I invest time and effort into something that Google could (and hopefully will) do in a way more effective way? I was referring to

[android-developers] Re: Memory Allocation

2011-03-16 Thread pedr0
Mumble mumble.. Maybe for your purpose a normal file is the best way. I think answer at your a,b question is not. On 16 Mar, 13:08, New Developer secur...@isscp.com wrote: Thanks But can the  array xml file    by that I mean  resources  string-array a) IF stored in the /res directory    

[android-developers] Gift certificate or something like that

2011-03-16 Thread J
Hi, I do not think this to be possible, but I'm asking just in case... I would like to give my beta-testers some kind of gift-certificate (or disccount or something) when they buy the beta-tested application. I mean: I code TheNextBigThingForAndroid, generate tnbt4a.apk and deliver it to

Re: [android-developers] Re: SQLite Transactions

2011-03-16 Thread David Williams
Thanks Kostya, I did find this out too :) David Williams Check out our WebOS mobile phone app for the Palm Pre and Pixi: http://www.dtw-consulting.com/GolfCaddie Golf Caddie http://www.dtw-consulting.com/GolfCaddie | Golf

Re: [android-developers] mySQL android php

2011-03-16 Thread David Williams
Yes, That's pretty much my method too...been working fine :) David Williams Check out our WebOS mobile phone app for the Palm Pre and Pixi: http://www.dtw-consulting.com/GolfCaddie Golf Caddie

Re: [android-developers] ProgressDialog results in a FC

2011-03-16 Thread David Williams
Anybody help on this, or tell me why the ProgressDialog is causing my app to do an FC? David Williams Check out our WebOS mobile phone app for the Palm Pre and Pixi: http://www.dtw-consulting.com/GolfCaddie Golf Caddie

Re: [android-developers] Re: custom attributes in library projects

2011-03-16 Thread Emanuel Moecklin
You are accessing custom attributes in Java code but this thread is about using custom attributes in xml layouts. In your example that would be e.g. having parcel:color=@android:color/black in cwac_colormixer_activity.xml. I'm not even sure why you need the namespace declaration in your layouts

[android-developers] Re: how to obtain the default font size

2011-03-16 Thread guich
Its really a shame that this can't be done. I never found a solution, in any other threads. Boy, i miss Windows Mobile, with their SystemMetrics api. 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] Re: ProgressDialog results in a FC

2011-03-16 Thread Nadeem Hasan
Are you calling this activity using startActivity(intent)? or are you explicitly calling the onCreate() from your GolfCaddie activity? If the latter then it will not work as you are bypassing a lot of activity setup logic that is needed. Using DBHelper.this as the context will not work as the

Re: [android-developers] Re: custom attributes in library projects

2011-03-16 Thread Mark Murphy
On Wed, Mar 16, 2011 at 9:02 AM, Emanuel Moecklin 1gravity...@gmail.com wrote: You are accessing custom attributes in Java code but this thread is about using custom attributes in xml layouts. In your example that would be e.g. having parcel:color=@android:color/black in 

Re: [android-developers] ProgressDialog results in a FC

2011-03-16 Thread Kostya Vasilyev
16.03.2011 16:01, David Williams ?: the error is, system services not available to activities before oncreate. You are trying to display the dialog too early in your activity's lifecycle - before onCreate. Change the code so it's called inside onCreate, and it should work. -- Kostya

Re: [android-developers] Re: ProgressDialog results in a FC

2011-03-16 Thread David Williams
When I had DBHelper not as an activity then I was getting a different error for ProgressDialog, stating that the number of parameters for show were incorrect, when obviously they weren't. David Williams Check out our

[android-developers] Re: Network connection issue..

2011-03-16 Thread NR
Problem solved.. Thanks.. On Mar 16, 9:35 am, NR namit...@gmail.com wrote: I have a ListView that updates periodically from server. The first time it loads properly... url:http://myip/abcd?as=scrip=abb,acc,rolta next time, the url becomes

[android-developers] Re: ProgressDialog results in a FC

2011-03-16 Thread Nadeem Hasan
Another issue is that even if it was working, the progress dialog would never show up as you are blocking the GUI thread. You should use an AsyncTask and show the progress dialog in onPreExecute(), do all the db operations in doInBackground() and dismiss the dialog in onPostExecute(). -- You

Re: [android-developers] Result from Activity to Appwidget.

2011-03-16 Thread Mahavir Jain
Thanks.. It works.. On Tue, Mar 15, 2011 at 9:18 PM, Mark Murphy mmur...@commonsware.comwrote: On Tue, Mar 15, 2011 at 11:25 AM, Mahavir Jain vir.j...@gmail.com wrote: Hi, When we launch child activity from parent activity then we get the result of child activity in onActivityResult()

Re: [android-developers] Re: ProgressDialog results in a FC

2011-03-16 Thread Nadeem Hasan
You must be passing the DBHelper.this as the Context parameter when it clearly would not be if DBHelper was not an Activity. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Re: ProgressDialog results in a FC

2011-03-16 Thread David Williams
Still newish to Java so trying to get my head around many things here :( Ok, so I switched the DBHelper class back so that it wasn't an activity. DBHelper.java now has an error and I can't even build my project. This is the code that is stopping the compile: ProgressDialog dialog; dialog =

Re: [android-developers] Re: how to obtain the default font size

2011-03-16 Thread Pepijn Van Eeckhoudt
On 16/03/2011 14:05, guich wrote: Its really a shame that this can't be done. I never found a solution, in any other threads. Boy, i miss Windows Mobile, with their SystemMetrics api. Have you tried reuse the correct style/theme (http://developer.android.com/guide/topics/ui/themes.html)? Bit

Re: [android-developers] Re: Urgent and Alarming battery management problem. Google please do something about it.

2011-03-16 Thread lorenz
If you're only considering methods available in the API you're probably right. However, if you're the one writing an OS you're not restricted to only use API calls ;-) Even thought I haven't spent too much time looking around, there are a few things I was thinking of: - Battery usage:

Re: [android-developers] Re: ProgressDialog results in a FC

2011-03-16 Thread TreKing
On Wed, Mar 16, 2011 at 8:23 AM, David Williams dwilli...@dtw-consulting.com wrote: Still newish to Java so trying to get my head around many things here :( It's generally recommended you learn Java on it's own, outside of Android, or you're going to run into very silly issues like this.

Re: [android-developers] Gift certificate or something like that

2011-03-16 Thread Marcin Orlowski
On 16 March 2011 13:52, J javier.sed...@gmail.com wrote: I do not think this to be possible, but I'm asking just in case... I would like to give my beta-testers some kind of gift-certificate (or disccount or something) when they buy the beta-tested application. I mean: I code

Re: [android-developers] Re: Urgent and Alarming battery management problem. Google please do something about it.

2011-03-16 Thread Mark Murphy
On Wed, Mar 16, 2011 at 9:35 AM, lorenz lorenz.fisc...@gmail.com wrote: If you're only considering methods available in the API you're probably right. However, if you're the one writing an OS you're not restricted to only use API calls ;-) Even thought I haven't spent too much time looking

Re: [android-developers] Re: ProgressDialog results in a FC

2011-03-16 Thread David Williams
Thanks, I understand what you are saying, and I am trying to learn Java as I go along (granted, not the best way) and do some research on line too. If I change the context to *this* that still doesn't work and still shows the error below, except the context it is showing now is:

[android-developers] Regarding Database Of Android Phone(Motorola Droid)

2011-03-16 Thread yogendra G
Hi All, My Database is working properly through emulator but when i put the same app in phone values required by me when i enter are not getting inserted properly. So plz resolve my query asap. Regards, Yogendra G -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Re: Install % drop again?

2011-03-16 Thread Justin Giles
For example, 1.6 is shown as as having a 4.8% share in one, 7.1% in the other -- they are not even close. So, my theory to discontinue 1.5 and 1.6 support became much murkier as I have no way of knowing which number is right and which one is BS. It's not a matter of the overall averages

Re: [android-developers] Re: ProgressDialog results in a FC

2011-03-16 Thread Nadeem Hasan
DBHelper should take the Context object as a parameter in the ctor. Use this passed context in the call to ProgressDialog.show(). When you instantiate the DBHelper object in GolfCaddie activity, pass this as the parameter in the ctor. Also make sure you call the DBHelper method to create the db

Re: [android-developers] Re: ProgressDialog results in a FC

2011-03-16 Thread TreKing
On Wed, Mar 16, 2011 at 8:47 AM, David Williams dwilli...@dtw-consulting.com wrote: If I change the context to *this* that still doesn't work and still shows the error below, except the context it is showing now is: DBHelper.DatabaseHelper. Assuming that this is what *this* equates too. I

[android-developers] Re: how to obtain the default font size

2011-03-16 Thread guich
Pepijn, Many thanks. That simple line solved the issue. Got the following results: Htc Magic: 14 Motorola Spice: 11 Motorola Milestone: 21 So, from this i can achieve the results i need. All the best guich -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: how to obtain the default font size

2011-03-16 Thread guich
Many thanks, it worked! -- 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

Re: [android-developers] Gift certificate or something like that

2011-03-16 Thread TreKing
On Wed, Mar 16, 2011 at 7:52 AM, J javier.sed...@gmail.com wrote: Is there any way that I could gift them? Either a disccount or a full gift. Use a separate, decent payment processor, like PayPal, to reimburse them the cost of the app. Cludgy, but with the Android Market, these are the kinds

Re: [android-developers] Regarding Database Of Android Phone(Motorola Droid)

2011-03-16 Thread Marcin Orlowski
My Database is working properly through emulator but when i put the same app in phone values required by me when i enter are not getting inserted properly. So plz resolve my query asap. I think that something is not working correctly. Problem solved. -- You received this message because

Re: [android-developers] Re: fetch all the miss call

2011-03-16 Thread Marcin Orlowski
On Mar 15, 3:45 pm, Bastiaan bastiaa...@gmail.com wrote: You can use the Call Log Content Provider to fetch the missed calls: Be aware that call log is (for some odd reason) limited to last 500 entries only. Regards, Marcin Orlowski Tray Agenda for Android http://bit.ly/trayagenda -- You

  1   2   3   >