Re: [android-developers] Separate design based on resolution. Android 2.3

2012-07-03 Thread Dianne Hackborn
Don't do it based on resolution. Period. Do it in dp units. On Sun, Jun 24, 2012 at 5:28 AM, Dmitriy F midnight@gmail.com wrote: I'm implementing an application which must support multiple screens and provide devices with different layout designs. My task claims that layout design

[android-developers] Playing user specified YouTube Videos in MediaPlayer

2012-07-03 Thread Simon Giddings
My Android app uses data designed for my main Web Application. Content providers are able to specify a presentation video hosted in YouTube for playback on the site. This works just fine. Does anyone know if there exists a means or an api which permits getting the correct URI for a given

[android-developers] Re: App opens with nfc-tag only?

2012-07-03 Thread Dominik
Do not quite understand what you mean. If you do not add the application on the home screen (i.e. no intent-filter on the action MAIN in the category LAUNCHER) then it can only be started with the other intents defined. This could e.g. be an intent with action=NDEF_DISCOVERED. However, any

[android-developers] Handler removecallback problem

2012-07-03 Thread B.Arunkumar
Hi, Sometimes, handler.removeCallbacks(runnable) does not remove the callback after handler.postDelayed(runnables,millisecs) is executed and the handler.postDelayed again gets executed after some time. Can somebody let me know how to solve this problem? Thank you, B.Arunkumar -- You

[android-developers] MediaPlayer.setNextMediaPlayer

2012-07-03 Thread Mirko Schenk
Hi, is there any additional information about how to use setNextMediaPlayer in Jelly Bean? I mean, it's fairly easy to start with, just prepare a new MediaPlayer and pass it to setNextMediaPlayer. But some time in the future, my app still has the reference to the old MediaPlayer while the new

[android-developers] Re: Handler removecallback problem

2012-07-03 Thread skink
B.Arunkumar wrote: Hi, Sometimes, handler.removeCallbacks(runnable) does not remove the callback after handler.postDelayed(runnables,millisecs) is executed and the handler.postDelayed again gets executed after some time. Can somebody let me know how to solve this problem? it just

Re: [android-developers] Re: Problem optimizing views for having a fast scroll

2012-07-03 Thread jean-francois garreau
I already saw that presentation and I can't use the ViewHolder pattern because i need a customView. So I'm looking for a way to optimize my CustomView because I don't know what I'm doing wrong with this view that causing thoses GC Le lundi 2 juillet 2012 18:11:32 UTC+2, Daniel Drozdzewski

[android-developers] Re: Handler removecallback problem

2012-07-03 Thread B.Arunkumar
Hi, Thank you for your reply. This is roughly the framework of code I am using: Main Thread :- Handler handler = new Handler(); handler.postDelayed (runnable,miilisecs); Another Thread :- handler.removeCallbacks(runnable) But I find that handler.postDelayed (runnable,miilisecs) still

Re: [android-developers] Re: Problem optimizing views for having a fast scroll

2012-07-03 Thread Mark Murphy
On Tue, Jul 3, 2012 at 7:16 AM, jean-francois garreau jean.francois.garr...@gmail.com wrote: I already saw that presentation and I can't use the ViewHolder pattern because i need a customView. That makes absolutely no sense whatsoever. - TextView inherits from View - ImageView inherits from

Re: [android-developers] Re: Problem optimizing views for having a fast scroll

2012-07-03 Thread Kostya Vasilyev
A custom view, assuming it's at the root of your item layout, is just as good as a view holder. Here is what you can do: - Override onFinishInflate in your item layout root view - Call this.findViewById to find children - Store them as member variables - Access in the adapter's getView, like

[android-developers] Re: Handler removecallback problem

2012-07-03 Thread RichardC
Does this happen every time or only occasionally? Does your code call handler.postDelayed (runnable,miilisecs) in other places or repeatedly? What is the value of miilisecs? And finally there is a small chance that the runnable will be started just as you call removeCallbacks due to threading.

[android-developers] Re: Handler removecallback problem

2012-07-03 Thread skink
B.Arunkumar wrote: Hi, Thank you for your reply. This is roughly the framework of code I am using: Main Thread :- Handler handler = new Handler(); handler.postDelayed (runnable,miilisecs); Another Thread :- handler.removeCallbacks(runnable) But I find that handler.postDelayed

Re: [android-developers] Re: Problem optimizing views for having a fast scroll

2012-07-03 Thread jean-francois garreau
Ok so can you please explain me how to do a view like this : -- *NameMovie* 1h20min 11:00am | 2:00pm | *4:00pm* | 8:00pm | 10:00pm - -- Text(in bold) SubText(in gray) Text1 (in gray) Text2 (in gray) Text3 (in bold) Text4 (normal)

[android-developers] Re: Activity Animation

2012-07-03 Thread ala hammad
please more description and with example of code if you can .. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] My Developer account got suspended, how can I create a new one?

2012-07-03 Thread Francisco M. Marzoa Alonso
On 27/06/12 07:34, pierre1232 wrote: I have three apps got suspended, a day after, my account was suspended too. Einstein used to say that the solution to a problem was mainly in its definition. And I think you are not defining the problem right. The first question you should try to answer is:

Re: [android-developers] How to: Free to Paid App and retain preference and db files?

2012-07-03 Thread Francisco M. Marzoa Alonso
On 30/06/12 11:22, Fred Niggle wrote: as long as the .apk has the same name, i.e. com.my.app, then you wont lose the preferences and database. That's impossible, indeed. Two different applications may have different package names. And the only way of having one per pay version and another free,

Re: [android-developers] How to: Free to Paid App and retain preference and db files?

2012-07-03 Thread Francisco M. Marzoa Alonso
If you use a SQLite3 db or so for preferences, you cannot access it from different packages, but in some cases you can implement an export/import mechanism, saving the preferences in a file into the external SD card. My first app uses just a plain text file written into the SDCard and for having

Re: [android-developers] Re: Problem optimizing views for having a fast scroll

2012-07-03 Thread Mark Murphy
On Tue, Jul 3, 2012 at 7:48 AM, jean-francois garreau jean.francois.garr...@gmail.com wrote: Ok so can you please explain me how to do a view like this : -- NameMovie 1h20min 11:00am | 2:00pm | 4:00pm | 8:00pm | 10:00pm - That is a single TextView,

Re: [android-developers] Re: Problem optimizing views for having a fast scroll

2012-07-03 Thread Daniel Drozdzewski
On 3 July 2012 12:48, jean-francois garreau jean.francois.garr...@gmail.com wrote: Ok so can you please explain me how to do a view like this : -- *NameMovie* 1h20min 11:00am | 2:00pm | *4:00pm* | 8:00pm | 10:00pm - -- Text(in

Re: [android-developers] Re: Problem optimizing views for having a fast scroll

2012-07-03 Thread jean-francois garreau
Ok I will try that thanks ! But I think the problem is somewhere else because, I comment all the code of my adapter in order to return static string for fix number of child and group items and I still have lots of GC So the problem maybe doesn't comes finally from my CustomView I

Re: [android-developers] Re: Problem optimizing views for having a fast scroll

2012-07-03 Thread Mark Murphy
On Tue, Jul 3, 2012 at 8:37 AM, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: See Mark's comment. If you can get away with one View. If however each of those times is clickable, then just set max number of TextViews in each list element, as simply removing unused ones by calling

Re: [android-developers] Re: Problem optimizing views for having a fast scroll

2012-07-03 Thread Daniel Drozdzewski
On 3 July 2012 13:40, Mark Murphy mmur...@commonsware.com wrote: On Tue, Jul 3, 2012 at 8:37 AM, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: See Mark's comment. If you can get away with one View. If however each of those times is clickable, then just set max number of TextViews

Re: [android-developers] Re: Problem optimizing views for having a fast scroll

2012-07-03 Thread jean-francois garreau
Ok thank you So first of all i think that as I didn't identify what's causing all my GC I will not solves this UI problem. But After, i will try your solutions. regards Le mardi 3 juillet 2012 14:45:22 UTC+2, Daniel Drozdzewski a écrit : On 3 July 2012 13:40, Mark Murphy

[android-developers] Getting action bar height while minSdkVersion is 7

2012-07-03 Thread limtc
I am faced with an issue - I need to know the action bar height when our app is running on Android 3/4. However, ActionBar class might not exists as our minSdkVersion is 7, and it seems that the height is not standard. I tested on 2 tablets and they are both 56 - but on users reported that on

[android-developers] Application Restarts Suddenly While trying to decode using speex ?

2012-07-03 Thread amit
*What my App does ?* The App I am developing is a typical client server App which talks to a windows server using Wifi. The Application has multiple Activities and really has heavy memory and CPU requirements i.e native calls for speex encoding / decoding. *What my Problem is ?* The problem

[android-developers] Re: Is there is any method to completely come out/exit from application and not only from activity (call finish() of activity) ?

2012-07-03 Thread amit
No there is no such method, even if you try System.exit().. the App might be still active in background.. That is the normal behavior for the Android Apps On Wednesday, June 27, 2012 5:37:02 PM UTC+5:30, SIVAKUMAR.J wrote: Is there is any way to exit completely from application.? For

[android-developers] Re: Getting action bar height while minSdkVersion is 7

2012-07-03 Thread RichardC
The action bar can also change size with custom (OEM) themes. So I would take a different approach and find the size of the usable window left to your application. This is just a case of calling getWidth and getHeight on the root object of your view hierarchy. On Tuesday, July 3, 2012

[android-developers] Re: Handler removecallback problem

2012-07-03 Thread B.Arunkumar
Hi, Thank you for your replies. The value of millisecs I am using is of the order of 5000 millisecs. Actually, you may be right. There might be cases where probably the removecallback executes in the secondary thread faster than setting the handler postdelayed in the main thread. Thank you,

[android-developers] Re: camera doesnt work

2012-07-03 Thread Viktor Brešan
You have to add the Hardware Property to your AVD: Configures camera facing front or Configures camera facing back and assign webcam as it's value. Kind regards, Viktor. On Sunday, June 24, 2012 1:43:08 PM UTC+2, karan hans wrote: otherwise the camera works fine with skype On Sunday, June

Re: [android-developers] HELP! Google removed my app with millions of users!

2012-07-03 Thread Mark Murphy
On Tue, Jul 3, 2012 at 10:08 AM, CVP chri...@gmail.com wrote: I'm really looking for help from anyone, but I really need to get in contact with someone from google... http://developer.android.com/support.html Without warning, a few days ago my long standing successful app was removed from

[android-developers] Re: java.lang.IllegalArgumentException: contentIntent required

2012-07-03 Thread brandall
It seems there is no answer here or on Stackoverflow for this behaviour, so I have to assume it's a notification from a service bug for a small number of Android devices. Where do I report this as a bug? On Saturday, June 30, 2012 9:19:18 PM UTC+1, brandall wrote: The full error also

[android-developers] Re: Getting action bar height while minSdkVersion is 7

2012-07-03 Thread limtc
Do you mind showing me a sample code on how this is done? (to get the action bar size) 在 2012年7月3日星期二UTC+8下午9时25分43秒,RichardC写道: The action bar can also change size with custom (OEM) themes. So I would take a different approach and find the size of the usable window left to your

Re: [android-developers] HELP! Google removed my app with millions of users!

2012-07-03 Thread CVP
I've replied directly to the email, as well as requested support from the link you provided. I got another automated email from the same email address from filling out the support request. For now I'd like to keep the name of the app private as I would rather work with Google to remedy this

Re: [android-developers] Re: Getting action bar height while minSdkVersion is 7

2012-07-03 Thread Latimerius
On Tue, Jul 3, 2012 at 4:45 PM, limtc thyech...@gmail.com wrote: Do you mind showing me a sample code on how this is done? (to get the action bar size) I'm afraid you misunderstand - if you are trying to find out the action bar height just to subtract it from the screen height and see how much

Re: [android-developers] Re: java.lang.IllegalArgumentException: contentIntent required

2012-07-03 Thread Mark Murphy
On Tue, Jul 3, 2012 at 10:40 AM, brandall benrandal...@gmail.com wrote: It seems there is no answer here or on Stackoverflow for this behaviour There should be an error message appearing to the right of the Bad notification for startForeground: portion of your message, based upon the source code

[android-developers] Android 4.1 Jelly Bean GIF Images Not Showing?

2012-07-03 Thread Josh F.
I'm wondering if it is just me or not, but I have a game that has been out for years now that uses GIF files for some of the bigger images (many are PNG, but some are GIF). In the latest Android 4.1 Jelly Bean release, the emulator continues to show these images without any problems in every

[android-developers] Java.Text.DateFormat returns wrong pattern for en-GB in Android 4.0.x

2012-07-03 Thread Edward Lin
Please help me with this date time localization issue. I am trying to use Java.Text.DateFormat to get the default date format for different locale in the following. dateFormatter = DateFormat.getDateInstance(DateFormat.SHORT, Locale.UK); String formattedDateString = dateFormatter.format(new

[android-developers] Re: Java.Text.DateFormat returns wrong pattern for en-GB in Android 4.0.x

2012-07-03 Thread RichardC
From: http://developer.android.com/reference/java/util/Locale.html *Note that locale data is not necessarily available for any of the locales pre-defined as constants in this class except for en_US, which is the only locale Java guarantees is always available.* *It is also a mistake to assume

Re: [android-developers] Re: java.lang.IllegalArgumentException: contentIntent required

2012-07-03 Thread brandall
There should be an error message appearing to the right of the Bad notification for startForeground: portion of your message, based upon the source code that I am reading. Are you sure there is nothing there? Posting the entire stack trace is considered a fairly conventional step when

Re: [android-developers] big bluetooth packets

2012-07-03 Thread bob
Hmmm… I only see the problem on this ICS phone: HTC EVO Design 4G It has never happened with my Galaxy Tab. On Monday, July 2, 2012 4:04:57 PM UTC-5, Latimerius wrote: On Mon, Jul 2, 2012 at 10:43 PM, bob b...@coolfone.comze.com wrote: Has anyone seen the situation where you send out a

[android-developers] Re: Java.Text.DateFormat returns wrong pattern for en-GB in Android 4.0.x

2012-07-03 Thread RichardC
Reading a bit further I found getAvailableLocales () http://developer.android.com/reference/java/util/Locale.html#getAvailableLocales() Try that and see what it returns. On Tuesday, July 3, 2012 4:25:38 PM UTC+1, elin wrote: Please help me with this date time localization issue. I am trying

Re: [android-developers] Give me your suggestions !

2012-07-03 Thread Justin Anderson
Seriously? *[2012-06-26 16:51:25 - SplashScreen] You must perform a full uninstall of the application. WARNING: This will remove the application data!* This doesn't provide enough information about what you need to do to fix the problem? What more do you want? Thanks, Justin Anderson

Re: [android-developers] Android SDK won't install, says can't find Java

2012-07-03 Thread Justin Anderson
First, what can't find Java? Eclipse? The Android SDK installer? Second, did you install the 32 or 64-bit version of the JDK? After adding the path variable, did you try restarting your computer? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed,

[android-developers] TransactionTooLargeException exception calling queryIntentActivities()

2012-07-03 Thread Bryan Ashby
Part of my applications duties are to enumerate launcher activities -- to do this, I call PackageManger.queryIntentActivities(). On some devices this has resulted in a *TransactionTooLargeException*. Is there a way around this? *Example code:* final PackageManager pm = getPackageManager();

[android-developers] Re: Android code to switch to vibrate

2012-07-03 Thread Ali
Hi Zohob, Thanks for your response. I am able to vibrate the device. What I am looking is I want to happen it at certain date/time. You can think of setting reminders in calendars. Just in place of reminder I want the device to switch to Vibrate mode and once that time is over should come back

Re: [android-developers] Re: java.lang.IllegalArgumentException: contentIntent required

2012-07-03 Thread Mark Murphy
On Tue, Jul 3, 2012 at 11:41 AM, brandall benrandal...@gmail.com wrote: Thanks for your response Mark. The rest of the stack trace is: java.lang.IllegalArgumentException: contentIntent required: pkg=com.brandall.nutter id=1079820303

Re: [android-developers] Re: How to: Free to Paid App and retain preference and db files?

2012-07-03 Thread Francisco M. Marzoa Alonso
Hi, Well, your point of view is not statistically relevant, but as android developer what I want -and I think this is actually generalizable- is the most income for my work. And my limitated experience with just one app after two months of its release in both forms, free with ads and payed

Re: [android-developers] Re: Java.Text.DateFormat returns wrong pattern for en-GB in Android 4.0.x

2012-07-03 Thread Edward Lin
Thanks for the reply! Here is the results I got from this line of code: Locale[] allLocales = Locale.getAvailableLocales(); [ar, ar_AE, ar_BH, ar_DZ, ar_EG, ar_IQ, ar_JO, ar_KW, ar_LB, ar_LY, ar_MA, ar_OM, ar_QA, ar_SA, ar_SD, ar_SY, ar_TN, ar_YE, bg, bg_BG, ca, ca_ES, cs, cs_CZ, da, da_DK, de,

Re: [android-developers] TransactionTooLargeException exception calling queryIntentActivities()

2012-07-03 Thread Mark Murphy
On Tue, Jul 3, 2012 at 11:50 AM, Bryan Ashby nuskoo...@gmail.com wrote: Part of my applications duties are to enumerate launcher activities -- to do this, I call PackageManger.queryIntentActivities(). On some devices this has resulted in a TransactionTooLargeException. Is there a way around

[android-developers] Re: Android SDK won't install, says can't find Java

2012-07-03 Thread RichardC
JAVA_HOME should be set to the JKD dir not the JRE dir, such that both: %JAVA_HOME%\bin\java.exe %JAVA_HOME%\bin\javac.exe will work on my machine for example JAVA_HOME=C:\apps\Java\jdk1.6.0_32 If you still get problems then try this: when you get to the page in the installer where it

[android-developers] Re: Give me your suggestions !

2012-07-03 Thread RichardC
Do what it says: *[2012-06-26 16:51:25 - SplashScreen] Please execute 'adb uninstall Ksy.wang.Directory' in a shell.* On Tuesday, June 26, 2012 11:59:17 AM UTC+1, Wang Ksy wrote: Dear All, I am novice in Android Development field and i would like to seek solutions to following errors. I

Re: [android-developers] Re: java.lang.IllegalArgumentException: contentIntent required

2012-07-03 Thread brandall
java.lang.IllegalArgumentException: contentIntent required: pkg=com.brandall.nutter id=1079820303 notification=Notification(vibrate=null,sound=null,defaults=0x0,flags=0x60) There's nothing else relevant in the output. Is that in your null Intent case? The message makes more

Re: [android-developers] Re: How to: Free to Paid App and retain preference and db files?

2012-07-03 Thread Francisco M. Marzoa Alonso
On 01/07/12 16:45, John Coryat wrote: The idea of irritate the user until he agrees to pay just seems wrong to me. In my opinion, it is far better to let users opt out of ads for free than use advertising as some sort of black mail to push users into paying. In our app, only 2.7% of users

Re: [android-developers] Re: Java.Text.DateFormat returns wrong pattern for en-GB in Android 4.0.x

2012-07-03 Thread Edward Lin
The getAvailableLocales returned en-GB locale. So the en-GB should be available on this Samsung device and I can switch it through Settings. In addition, if I choose the other locale on the 4.0.x devices through the Settings, such as Deutsch. It is working perfectly as date shown 03.07.2012, so

Re: [android-developers] Re: java.lang.IllegalArgumentException: contentIntent required

2012-07-03 Thread Mark Murphy
On Tue, Jul 3, 2012 at 12:14 PM, brandall benrandal...@gmail.com wrote: Can't help thinking that there's a glitch in the matrix on some devices where startforeground is 'expected' when firing a notification from a service... Actually, I think that part of the message may be a fluke. There

Re: [android-developers] Re: java.lang.IllegalArgumentException: contentIntent required

2012-07-03 Thread brandall
Actually, I think that part of the message may be a fluke. There appear to be two cases which call the postNotification() where that exception is raised, and only one of those is for a startForeground() scenario, if I am reading the source properly. To clarify, I don't call

[android-developers] Abnormal behavior of media scanner when I renamed a folder which have some media files.

2012-07-03 Thread Hyuck
Hi All, I have develop a kind of file manager app. recently, I have met a strange behavior of media scanner. There was a folder(A) with some media files in it. and I renamed the folder name to B. However, after a re-scanning , there is still folder A, and the folder have media files which

Re: [android-developers] Re: java.lang.IllegalArgumentException: contentIntent required

2012-07-03 Thread Mark Murphy
On Tue, Jul 3, 2012 at 12:46 PM, brandall benrandal...@gmail.com wrote: Actually, I think that part of the message may be a fluke. There appear to be two cases which call the postNotification() where that exception is raised, and only one of those is for a startForeground() scenario, if I am

Re: [android-developers] Abnormal behavior of media scanner when I renamed a folder which have some media files.

2012-07-03 Thread Mark Murphy
How did you do the re-scanning? On Tue, Jul 3, 2012 at 12:53 PM, Hyuck hyuckmin.k...@gmail.com wrote: Hi All, I have develop a kind of file manager app. recently, I have met a strange behavior of media scanner. There was a folder(A) with some media files in it. and I renamed the folder name

Re: [android-developers] Re: java.lang.IllegalArgumentException: contentIntent required

2012-07-03 Thread brandall
No, I was referring to the error message. While it *says* Bad notification for startForeground, it appears that this error might be raised even if *nobody* called startForeground(). Hence, I am telling you to not over-emphasize the Bad notification for startForeground portion of the

Re: [android-developers] Re: java.lang.IllegalArgumentException: contentIntent required

2012-07-03 Thread Mark Murphy
On Tue, Jul 3, 2012 at 1:19 PM, brandall benrandal...@gmail.com wrote: No, nothing... The notification says I'm listening and then is cancelled a few moments later 'on end of speech input' from the service. Is it possible that you are canceling it before it actually gets displayed? IOW, how

Re: [android-developers] GridView with images aligned bottom in a RelativeLayout

2012-07-03 Thread Justin Anderson
So, here is what I think is going on... ImageView is basically a container for your actual image. The scaleType indicates how the image should be scaled to fit inside the ImageView. The alignParentBottom affects the container, not the image. That is why you are getting the results in your

Re: [android-developers] Re: java.lang.IllegalArgumentException: contentIntent required

2012-07-03 Thread brandall
Is it possible that you are canceling it before it actually gets displayed? IOW, how short might a few moments be? I'm just brainstorming possible things that you are doing differently than the norm. The notification is there for at least as long as I set the 'pause before assume

Re: [android-developers] Is it possible?

2012-07-03 Thread Justin Anderson
No, it is not possible. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Jun 28, 2012 at 10:35 PM, Sandeep Venkat sand...@believecreative.in wrote: Hi all, I want to start an application which stores the downloaded items such as

Re: [android-developers] The import cannot be resolved

2012-07-03 Thread Justin Anderson
This may seem like a silly question, but have you downloaded everything you need? And, Google is your friend: http://lmgtfy.com/?q=The+import+android.support+cannot+be+resolved Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Sun, Jun 24, 2012 at 12:27

[android-developers] gotta be a catch?

2012-07-03 Thread bob
Is it possible to catch an error like this? java.lang.NoSuchMethodError: android.bluetooth.BluetoothDevice.createInsecureRfcommSocketToServiceRecord -- 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: NotificationManager, get methods

2012-07-03 Thread Sergey Tolkachov
No answer? -- 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

Re: [android-developers] pull to refresh in scrollview

2012-07-03 Thread Justin Anderson
Google is your friend... You should try it sometime: http://lmgtfy.com/?q=android+pull+to+refresh+tutorial Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Jun 28, 2012 at 6:53 AM, avinash shyam avinashsh...@gmail.comwrote: hi everyone, i m new

[android-developers] Re: HELP! Google removed my app with millions of users!

2012-07-03 Thread FiltrSoft
Wow, where exactly do you have your ads? I have ads at the very bottom of my app, wonder if Google would consider that placement that would cause users to accidentally click on them, since they are near the phone's hardware buttons? They really need to be more specific when they ban apps,

Re: [android-developers] Re: java.lang.IllegalArgumentException: contentIntent required

2012-07-03 Thread Mark Murphy
On Tue, Jul 3, 2012 at 1:44 PM, brandall benrandal...@gmail.com wrote: Or in your experience, are depreciated method bugs pushed to the bottom of a very large pile and therefore pointless...? Well, I don't see any deprecated methods in what you are doing. However, bugs that cannot be

Re: [android-developers] gotta be a catch?

2012-07-03 Thread Kristopher Micinski
Of course it is... Why don't you put a handler around the reflection call... Or... where the heck are you calling this from? kris On Tue, Jul 3, 2012 at 1:53 PM, bob b...@coolfone.comze.com wrote: Is it possible to catch an error like this? java.lang.NoSuchMethodError:

Re: [android-developers] Re: NotificationManager, get methods

2012-07-03 Thread Mark Murphy
Why there is no read methods in NotificationManager? Because an app can keep track of its own notifications, and an app should not have access to other apps' notifications. Is it on purpose? Most likely. Will it be added in future releases? You will find out when the rest of us find out,

Re: [android-developers] Re: java.lang.IllegalArgumentException: contentIntent required

2012-07-03 Thread brandall
Well, I don't see any deprecated methods in what you are doing. However, bugs that cannot be reproduced tend to be problematic in all software development. I'd assumed that the posted method had been depreciated in favour of NotificationBuilder. I see that it hasn't though. I'll get

[android-developers] Dynamically switching text-to-speech engines under ICS?

2012-07-03 Thread blindfold
Has anyone had any success reliably switching among text-to-speech engines and languages on-the-fly under Android 4.03 (ICS)? Under Android 2.3.3 this worked great using the TextToSpeech method setEngineByPackageName(), but that method is now not only deprecated but for some reason it no longer

[android-developers] How much time take for Google certification for apps

2012-07-03 Thread Srinivas Nainala
Hi, I developed one application, I would like to place in the google play. How much google labs take the time for certify my application. BR Srinivas -- 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] How much time take for Google certification for apps

2012-07-03 Thread Mark Murphy
On Tue, Jul 3, 2012 at 3:57 PM, Srinivas Nainala srito...@gmail.com wrote: I developed one application, I would like to place in the google play. How much google labs take the time for certify my application. Google does not certify your application. You are thinking of Apple, or perhaps

[android-developers] Re: HELP! Google removed my app with millions of users!

2012-07-03 Thread CVP
Pretty much the same place. Down by the bottom. On Tuesday, July 3, 2012 2:19:19 PM UTC-4, FiltrSoft wrote: Wow, where exactly do you have your ads? I have ads at the very bottom of my app, wonder if Google would consider that placement that would cause users to accidentally click on them,

Re: [android-developers] Re: HELP! Google removed my app with millions of users!

2012-07-03 Thread Kristopher Micinski
You still haven't said the name of the app, if you're a fairly famous app, I'd be surprised if the Google Play folks didn't respond quickly to you!, At the very least, if you have millions of downloads, other developers here will test your app and confirm or deny whether the ban was completely

[android-developers] Re: HELP! Google removed my app with millions of users!

2012-07-03 Thread John Coryat
If you would identify your app then people will take a look and give you their opinion as to why you were banned. Idle speculation without data is just that. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: activity looses ArrayList items

2012-07-03 Thread RichardC
I don't think Vector is thread safe in the way you expect did you read: *This class is equivalent to ArrayListhttp://developer.android.com/reference/java/util/ArrayList.html with synchronized operations. This has a performance cost, and the synchronization is not necessarily meaningful to your

Re: [android-developers] Re: HELP! Google removed my app with millions of users!

2012-07-03 Thread CVP
Alarm Clock Plus (the free version). I also just called the user support line, which the tech couldn't really help, but said he would forward the information to the dev team email. Nothing I didn't do, but maybe it will carry more weight coming internally? On Tuesday, July 3, 2012 4:18:36 PM

[android-developers] Re: MediaPlayer.setNextMediaPlayer

2012-07-03 Thread b0b
Related to setNextMediaPlayer it would great to have more info such as: - for which codecs will it handle gapless ? Are there restrictions ? - does it work with http URIs passed to setDataSource() ? -- You received this message because you are subscribed to the Google Groups Android

[android-developers] process.destroy() logging exceptions in ICS

2012-07-03 Thread elliotn
When I try to destroy the (short running) process in ICS the System logs the below exception. I'm very puzzled as the code runs fine on Honeycomb. Anybody else seeing this? I/System ( 2369): Failed to destroy process 2412 I/System ( 2369): libcore.io.ErrnoException: kill failed: ESRCH (No

Re: [android-developers] Re: Getting action bar height while minSdkVersion is 7

2012-07-03 Thread limtc
I am doing a painting program and the MotionEvent getY() returns contains the height of action bar. I need to subtract the height away. Any sample code or help will be appreciated! 在 2012年7月3日星期二UTC+8下午10时58分04秒,Latimerius写道: On Tue, Jul 3, 2012 at 4:45 PM, limtc thyech...@gmail.com wrote:

Re: [android-developers] Re: Getting action bar height while minSdkVersion is 7

2012-07-03 Thread Mark Murphy
On Tue, Jul 3, 2012 at 6:53 PM, limtc thyech...@gmail.com wrote: I am doing a painting program and the MotionEvent getY() returns contains the height of action bar. I need to subtract the height away. Really? I would expect that the MotionEvent getY() would be with respect to your View that is

[android-developers] Any way to prevent the Unfortunately, X has stopped message on ICS?

2012-07-03 Thread Keith Johnston
I have only seen this when running our application on ICS. When I bring up the list of running processes and swipe to kill our app, the message, Unfortunately, X has stopped comes up, sometimes twice (once for each service?). I do not see this with other applications, so I am thinking there is

[android-developers] Re: Any way to prevent the Unfortunately, X has stopped message on ICS?

2012-07-03 Thread Keith Johnston
I found the problem - I have a service in my AndroidManifest and ICS is trying to start it. It is throwing a NullPointerException. On Tuesday, July 3, 2012 4:30:56 PM UTC-7, Keith Johnston wrote: I have only seen this when running our application on ICS. When I bring up the list of running

Re: [android-developers] Re: Getting action bar height while minSdkVersion is 7

2012-07-03 Thread limtc
No it does not - at least this is the result of my test. I got an ICS and a Honeycomb devices - the getY() values are exactly 56 pixels too low when the same app run on them. I have to subtract 56 from the getY() to get the correct position. Same code works fine on 2.x and 1.x device. I am

[android-developers] Any Good UI books or online resource?

2012-07-03 Thread Michael Leung
Hi, I wish to improve my Android UI skills,Any Good UI books or online resource you can recommend? Thanks! -- Regards, Michael Leung http://www.itblogs.info - My IT Blog http://diary.skynovel.info - My Blog http://www.michaelleung.info - My Homepage

Re: [android-developers] [ask] android phonegap + jquerymobile performance

2012-07-03 Thread Benedict
Thanks for your reply. I have tried TraceView but there's no information about memory consumption or cpu usage. what must i do to view memory consumption or cpu usage? On Monday, July 2, 2012 6:34:07 AM UTC+7, TreKing wrote: On Sat, Jun 30, 2012 at 10:30 PM, Benedict

Re: [android-developers] Dynamically switching text-to-speech engines under ICS?

2012-07-03 Thread Nikolay Elenkov
On Wed, Jul 4, 2012 at 4:22 AM, blindfold seeingwithso...@gmail.com wrote: Has anyone had any success reliably switching among text-to-speech engines and languages on-the-fly under Android 4.03 (ICS)? Yes. Use the new TextToSpeach constructor that takes an engine package name. Create a new

[android-developers] Ping in android

2012-07-03 Thread Michael Leung
Hi all, I have used isReachable() in InetAddress for Ping. But that is only working in local network unless root my phone. Does anyone work this problem out before? -- Regards, Michael Leung http://www.itblogs.info - My IT Blog http://diary.skynovel.info - My Blog

Re: [android-developers] Re: Getting action bar height while minSdkVersion is 7

2012-07-03 Thread Dianne Hackborn
What you are claiming is happening is... well, you probably need to explain more. If you have an action bar, then by default your content is placed below it, and the coordinate space of events received by the view will be relative to where it is placed. This is true with all views in the

Re: [android-developers] Re: Getting action bar height while minSdkVersion is 7

2012-07-03 Thread limtc
OK, this is part of my code, very simple: public boolean onTouchEvent(MotionEvent event) { int count = event.getPointerCount(); ... int action = event.getAction(); int x = (int) event.getX(); int y = (int) event.getY() - absize; ... return

Re: [android-developers] [ask] android phonegap + jquerymobile performance

2012-07-03 Thread TreKing
On Tue, Jul 3, 2012 at 8:06 PM, Benedict benita.clari...@gmail.com wrote: I have tried TraceView but there's no information about memory consumption or cpu usage. what must i do to view memory consumption or cpu usage? IDK about CPU usage, but this could help with memory:

Re: [android-developers] Abnormal behavior of media scanner when I renamed a folder which have some media files.

2012-07-03 Thread Hyuck
Thank you for your interest. after I renamed a folder. I did re-scanning by sending broadcast intent as below. Context applicationContext = MyApplication.*getInstance* ().getApplicationContext(); applicationContext.sendBroadcast(*new* Intent(Intent.*

Re: [android-developers] Any Good UI books or online resource?

2012-07-03 Thread TreKing
On Tue, Jul 3, 2012 at 7:54 PM, Michael Leung michaelchi...@gmail.comwrote: I wish to improve my Android UI skills,Any Good UI books or online resource you can recommend? http://developer.android.com/design/index.html

Re: [android-developers] Broadcast receiver starts a new thread, do I need to kill it?

2012-07-03 Thread TreKing
On Fri, Jun 22, 2012 at 1:29 PM, Justin Robinson jrob09...@gmail.comwrote: Is this thread killed after 10 secs along with the broadcast receiver or do I need to kill it manually? I don't know about after 10 secs (not sure where you got that number, but yes, once the Thread is done executing,

Re: [android-developers] Using ADT's layout editor from other tool

2012-07-03 Thread TreKing
On Fri, Jun 22, 2012 at 9:34 PM, Niseko jaakko.salmen...@gmail.com wrote: Is ADT designed only to be used with Eclipse or can I use it from my own tool. I would like to use ADT's layout editor that visual shows content of a layout. If this is possible where can I get the interface/API to call

[android-developers] How to handle GPRS disconnection

2012-07-03 Thread Sumedh
Hi, I have developed an application in which 1. I am getting latitude-longitude values by using LocationListener. calling requestLocationUpdates() method for every 1 min 2. Storing the string got from above method into SQLite database 3. For every 5 min accessing those records from database and

  1   2   >