[android-developers] deleteIntent not sent on NotificationManager.cancel method

2013-02-07 Thread Sergey Tolkachov
Hi, From NotificationManagerService.cancelNotificationWithTaghttp://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/app/INotificationManager.java#INotificationManager.cancelNotificationWithTag%28java.lang.String%2Cjava.lang.String%2Cint%29 I can

Re: [android-developers] Re: Mechanoid - open source productivity plugin for Android

2013-02-07 Thread Ian Warwick
Thanks for the clarification Kris, my only intention was to make Mechanoid better and work for others, at the moment it solves my needs, with community feedback I can make it much, much better :) On Thursday, 7 February 2013 05:57:27 UTC, Kristopher Micinski wrote: I disagree: this looks like

[android-developers] Get full size of insatlled applications

2013-02-07 Thread Bajrang Asthana
I'm trying to figure out how to get the size of an installed. I read this article http://www-jo.se/f.pfleger/android-package-size but did not get sussess. Any suggestion, Thanks in advance. -- -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] start AsyncTask from a background thread

2013-02-07 Thread dashman
I'm in a worker thread and would like to start an AsynTask execution. Preferably w/o starting a new thread. Help! Also, is java threads as in (new Thread()) frowned upon in android. I think i read somewhere .notify() .wait() etc. should not be used. -- -- You received this message because

[android-developers] Re: Custom array adapter

2013-02-07 Thread Seshu
Which problem u r facing in above code?? On Feb 6, 10:35 am, arunkuma...@npcompete.net wrote: Hi, I m create a list-view  sample.i have one problem.i want to display item in list view...my code is given below public class Sliding_listview extends ListActivity {   private static final

Re: [android-developers] Re: How to hide error dialog on MediaPlayer

2013-02-07 Thread Per-Jarle Sæther
Hi That solved it :) Thank you for the help Best regards Per-Jarle On Tue, Feb 5, 2013 at 4:46 PM, Nobu Games dev.nobu.ga...@gmail.com wrote: Have you tried setting a MediaPlayer.OnErrorListenerhttp://developer.android.com/reference/android/media/MediaPlayer.OnErrorListener.htmlthat

Re: [android-developers] start AsyncTask from a background thread

2013-02-07 Thread Dilip Kumar Chaudhary
rea thishttp://dilipdevelopment.blogspot.in/2012/12/android-background-processing-with_31.htmlHope help you lot On Thu, Feb 7, 2013 at 3:34 PM, dashman erjdri...@gmail.com wrote: I'm in a worker thread and would like to start an AsynTask execution. Preferably w/o starting a new thread. Help!

[android-developers] Re: start AsyncTask from a background thread

2013-02-07 Thread Piren
If you're already in a worker thread and you dont want another... why do you want to start an asynctask? On Thursday, February 7, 2013 12:04:38 PM UTC+2, dashman wrote: I'm in a worker thread and would like to start an AsynTask execution. Preferably w/o starting a new thread. Help! Also,

[android-developers] Re: getFragmentManager undefined

2013-02-07 Thread ac
please use getSupportFragmentManager() it is same as getFragmentManager().. On Wednesday, August 24, 2011 7:13:07 PM UTC+5:30, Aaron Visser wrote: I need to get the viewpager up and running for a project I'm working on. SDK 2.2, compatibility v4. It's all working, except...

Re: [android-developers] Re: Wakelock when using startActivityForResult()

2013-02-07 Thread a
The onActivityResult() gets called when the screen is active. Only when I lock the screen I am having the problem. Actually, I am using the startActivityForResult() in the onCreate() method of executeScript(). Can I use like this or in which method should I call the method

[android-developers] Sensors in Android

2013-02-07 Thread a
Hi, I am using Samsung Galaxy S3. When I retrieved the available sensors: I got a result like below: LSM330DLC 3-axis Accelerometer TYPE_ACCELEROMETER AK8975C 3-axis Magnetic field sensor TYPE_MAGNETIC_FIELD iNemoEngine Orientation sensor

[android-developers] which web server should i use???

2013-02-07 Thread Muhammad Sahil
Hi All, i am a beginner to android, i want to make client/ server, client is my android, but i don't know on which language i create a web server, mean on java, php, or Dot Net. Please suggest me which web server is best to intract with Android mobile?? I am waiting for your kind

Re: [android-developers] Re: Wakelock when using startActivityForResult()

2013-02-07 Thread skink
i asked so how do you acquire the wake lock? i mean your java code pskink -- -- 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

Re: [android-developers] Re: Wakelock when using startActivityForResult()

2013-02-07 Thread Archana r
I have a class Globals: class Globals{ public static WakeLock myWakeLock = null; public static WifiLock myWifiLock = null; } In my ConnectService, onCreate() method, I acquire the wakelock using: wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, My Lock);

[android-developers] Re: which web server should i use???

2013-02-07 Thread Alessandro Pellizzari
Il Thu, 07 Feb 2013 04:39:17 -0800, Muhammad Sahil ha scritto: Please suggest me which web server is best to intract with Android mobile?? The one you know. Just encode your data in JSON when you transmit them. On Android it is easier to encode/decode. Bye. -- -- You received this

Re: [android-developers] Get sorted list android applications on basis of rarely used

2013-02-07 Thread Dan
On Wednesday, February 6, 2013 11:46:36 PM UTC-5, TreKing wrote: On Wed, Feb 6, 2013 at 12:00 AM, Bajrang Asthana asthana...@gmail.comjavascript: wrote: Is anyone have any idea about how to get last run and flushing mechanism of logcat file. An app only has access to its own logs in

Re: [android-developers] Re: Wakelock when using startActivityForResult()

2013-02-07 Thread skink
Archana r wrote: I have a class Globals: ¿and do you see in the logcat: Wake lock is acquired successfull ? pskink -- -- 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: Wakelock when using startActivityForResult()

2013-02-07 Thread Archana r
Ya I m able to see in Logcat. On Thu, Feb 7, 2013 at 3:48 PM, skink psk...@gmail.com wrote: Archana r wrote: I have a class Globals: ¿and do you see in the logcat: Wake lock is acquired successfull ? pskink -- -- You received this message because you are subscribed to

[android-developers] Traslate Animation in ListView (like Google Plus App)

2013-02-07 Thread Gianluca Cacace
Has anyone idea to how to replicate the Google Plus listview behaviour, when scrolling down the list? I want that each new cell is traslating from the bottom to it's final position smoothly. -- -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Daemon Threads in Android

2013-02-07 Thread Streets Of Boston
I agree; Unless your code creates the threads/thread-pools, i.e. if your code doesn't own these threads, avoid calling 'setDaemon(...)'. On Wednesday, February 6, 2013 8:08:47 PM UTC-5, Nathan wrote: On Wednesday, February 6, 2013 4:52:00 PM UTC-8, Streets Of Boston wrote: It's mostly

[android-developers] Re: unable to connect host server pc

2013-02-07 Thread bob
This is the correct format: clientSocket = new Socket(192.168.0.100,PORT); I doubt you could get that exception if you were using that format. On Wednesday, February 6, 2013 9:54:04 PM UTC-6, Ananda Krishna wrote: hi Robert Greenwalt, *I have given the ip address of the my pc which is the

[android-developers] Re: which web server should i use???

2013-02-07 Thread bob
You don't need to write your own web server. Just use Apache or an existing server. Or pay 5.95 a month to get a virtual server at a place like vervehosting.com. On Thursday, February 7, 2013 6:39:17 AM UTC-6, Muhammad Sahil wrote: Hi All, i am a beginner to android, i

[android-developers] Re: Galaxy Nexus has died - did my app kill it?

2013-02-07 Thread bob
What was the approximate temperature when you were snowshoeing with the device? On Wednesday, February 6, 2013 5:07:38 PM UTC-6, Nathan wrote: On Wednesday, February 6, 2013 2:47:38 PM UTC-8, bob wrote: Do you ever bring your phone into a sauna? This can be bad for it. No. It's been

[android-developers] Re: Daemon Threads in Android

2013-02-07 Thread G. Blake Meike
Yeah. In the JVM, your applications owns the process in which it runs. On Android, the Android framework owns your process and all of the threads in it. The difference between a thread set daemon and not is pretty much invisible. Developers try endless stuff to try to keep their

[android-developers] Re: start AsyncTask from a background thread

2013-02-07 Thread bob
Maybe do a Handler.post? On Thursday, February 7, 2013 4:04:38 AM UTC-6, dashman wrote: I'm in a worker thread and would like to start an AsynTask execution. Preferably w/o starting a new thread. Help! Also, is java threads as in (new Thread()) frowned upon in android. I think i

Re: [android-developers] Re: ALL DEVELOPERS PIRATED APPLICATION ALL OVER!

2013-02-07 Thread Digipom
My take on things is that the less you piss off your users, the better. Unfortunately, Google's default licensing mechanism is not only cracked in 5 seconds, but it also pisses off users if they try to use your app outside of a network connection. You can still stay with Google's method, but

[android-developers] Re: start AsyncTask from a background thread

2013-02-07 Thread G. Blake Meike
You should say something about what you are trying to accomplish. Starting an AsyncTask from a background thread is already a bit odd... waiting for it to complete (which you imply with your comments about .wait and .notify) is downright nuts. Did you know that onPostExecute will be run on

[android-developers] Unable to obtain Google Maps Android v1 API Key

2013-02-07 Thread Simon Giddings
I have followed the instructions to create a private key and then obtain the MD5 signature. I paste this signature into the signup input field and click submit. I then get a page which says that the MD5 signature is incorrect ! Tried with and without the colons (:). Has the key generation been

[android-developers] Re: Get sorted list android applications on basis of rarely used

2013-02-07 Thread Nobu Games
This is pretty similar to the battery optimization app problem. Dan suggests the proper API methods for querying what's running right now. In order to track what's least used on the phone you need to keep track of what is used most. And keeping track means that you need to poll that data in

[android-developers] Re: Get full size of insatlled applications

2013-02-07 Thread Nobu Games
It looks like the described approach in your linked article is the way to go. So what exactly does not work? Did you get some compile or runtime error? If you are targeting rooted devices you could sum up file sizes by going through an app's directories. There are common locations for APKs,

Re: [android-developers] Unable to obtain Google Maps Android v1 API Key

2013-02-07 Thread Mark Murphy
It just worked for me. Make sure that you are using MD5 -- if you have Java 7 installed, you might be getting the SHA-1 hash instead, for example. On Thu, Feb 7, 2013 at 10:28 AM, Simon Giddings mr.s.giddi...@gmail.com wrote: I have followed the instructions to create a private key and then

Re: [android-developers] Unable to obtain Google Maps Android v1 API Key

2013-02-07 Thread Simon Giddings
Yep, you are right, I am getting the SHA-1 hash. Looked at the command line options and cannot see how I can force MD5 output. Can you help here ? On Thursday, 7 February 2013 17:02:50 UTC+1, Mark Murphy (a Commons Guy) wrote: It just worked for me. Make sure that you are using MD5 -- if you

Re: [android-developers] Unable to obtain Google Maps Android v1 API Key

2013-02-07 Thread Mark Murphy
Add -v to your list of command-line switches. On Thu, Feb 7, 2013 at 11:13 AM, Simon Giddings mr.s.giddi...@gmail.com wrote: Yep, you are right, I am getting the SHA-1 hash. Looked at the command line options and cannot see how I can force MD5 output. Can you help here ? On Thursday, 7

[android-developers] Connecting to a wifi device from the android application

2013-02-07 Thread Raneez
My application (supports 2.2 and later) needs to connect with a *wifi device * like FlashAir http://www.toshiba-components.com/FlashAir/index.html after scanning networks using WifiManagerhttp://developer.android.com/reference/android/net/wifi/WifiManager.html . Is it possible to connect to a

Re: [android-developers] Re: unable to connect host server pc

2013-02-07 Thread Robert Greenwalt
As Bob said, the socket constructor just does InetAddress.getAllByName on the destination name you provided. If the name provided is a valid ip string no dns lookup is performed and UnknownHostException shouldn't be possible. Could you perhaps have badly formated the string (used a comma instead

[android-developers] Re: Connecting to a wifi device from the android application

2013-02-07 Thread bob
I think you call this function in WifiManager: boolean *enableNetwork*(int netId, boolean disableOthers) Allow a previously configured network to be associated with. On Thursday, February 7, 2013 10:35:51 AM UTC-6, Raneez wrote: My application (supports 2.2 and later) needs to connect with a

Re: [android-developers] Re: Get sorted list android applications on basis of rarely used

2013-02-07 Thread Kristopher Micinski
Of course, the caveat here is that you're also going to waste a good amount of battery. kris On Thu, Feb 7, 2013 at 10:30 AM, Nobu Games dev.nobu.ga...@gmail.com wrote: This is pretty similar to the battery optimization app problem. Dan suggests the proper API methods for querying what's

[android-developers] Re: Android Bluetooth: I get Connection Refused after unpairing two devices, invoke user pairing, and accepting/listening connections.

2013-02-07 Thread tom_mai78101
I did a Pastebin for those who don't want to download the attachment. For your convienence. Pastebin http://pastebin.com/jFDjWTc7 -- -- 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: Connecting to a wifi device from the android application

2013-02-07 Thread Kostya Vasilyev
That's half of it. The other half is calling WifiManager.startScan() to actually trigger the {re}connect. -- K On Thursday, February 7, 2013 8:52:05 PM UTC+4, bob wrote: I think you call this function in WifiManager: boolean *enableNetwork*(int netId, boolean disableOthers) Allow a

[android-developers] Re: market? issue

2013-02-07 Thread Kostya Vasilyev
Did you check how many devices your app is compatible with in the Play console? Especially if you're using the new UI -- which seems to 1) be more strict with its manifest parsing and 2) has poor error reporting. I once got burned by this, where a small omission in the manifest (IIRC, I forgot

Re: [android-developers] Re: ALL DEVELOPERS PIRATED APPLICATION ALL OVER!

2013-02-07 Thread Rob H
I think if you're interested in protecting your app from piracy the best way to do it is via the in-app purchase system. If you're making a game, put it up there with level 1 for free. Thousands of people will check it out. If they want to continue on to the other levels, well here's an

[android-developers] Re: Android Bluetooth: I get Connection Refused after unpairing two devices, invoke user pairing, and accepting/listening connections.

2013-02-07 Thread bob
Why not call accept with no timeout? socket = mmServerSocket.accept(); That makes more sense. On Thursday, February 7, 2013 11:13:21 AM UTC-6, tom_mai78101 wrote: There is an attachment that contains an Android application project for Eclipse, zipped nicely in a ZIP folder. *Problem:*

[android-developers] Re: Connecting to a wifi device from the android application

2013-02-07 Thread bob
I don't think you need to call startScan after calling enableNetwork. Here's what my book says: To use a particular network configuration, use the enableNetwork method, passing in the network ID to use and specifying true for the disableAllOthers parameter: // Get a list of available

[android-developers] Re: Connecting to a wifi device from the android application

2013-02-07 Thread Kostya Vasilyev
I don't know what Reto's book says, but it's just that I've done a bit of work with WiFi on Android and that's my experience... ( most useless post of the day? ) -- K On Thursday, February 7, 2013 10:48:13 PM UTC+4, bob wrote: I don't think you need to call startScan after calling

[android-developers] Bluetooth maximum connection capability.

2013-02-07 Thread Srinivas Nainala
Hi All, I would like to know how many (maximum capacity) blue devices could connect to my Android tablet. My friends have different OS like Android, iOS and Windows devices. They want to connect to my Android device and I would like to connect their device mutually. Thanks in advance for your

[android-developers] Re: Bluetooth maximum connection capability.

2013-02-07 Thread Nobu Games
I'm not 100% sure but as far as I can remember from my previous job the iOS Bluetooth feature is locked down to certified devices only. I don't think you can easily make Android and iOS devices talk to each other without a server in between. Maybe you are lucky with exploiting some hidden iOS

[android-developers] Re: Bluetooth maximum connection capability.

2013-02-07 Thread Srinivas Nainala
Whats the max connection capability between Android to Android devices ( Android (master) and Android devices (slaves/clients)). Right now I am not bothering about other OS tablets or mobile devices. BR Srinivas On Thursday, February 7, 2013 2:21:54 PM UTC-6, Nobu Games wrote: I'm not 100%

[android-developers] Re: Widget like SlidingDrawer

2013-02-07 Thread Nathan
Thought someone would chime in. It looks like it will work if I take the source and suspend the calls to performFling. I'll try that. Nathan -- -- 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: start AsyncTask from a background thread

2013-02-07 Thread dashman
I have a main background thread that's doing work that's needed to be done relatively quickly...i.e. update the screen. But there are times where I might have to do some additional work (that's not that much of a priority - i was thinking of making that an AsyncTask. The notify/wait was a

Re: [android-developers] Re: Connecting to a wifi device from the android application

2013-02-07 Thread Irfan Sheriff
A scan is active at the framework and in the wpa_supplicant at a certain interval. So, you do not really need to start a scan to connect - but doing an explicit scan may start the connection right away. On Thu, Feb 7, 2013 at 11:37 AM, Kostya Vasilyev kmans...@gmail.com wrote: I don't know

[android-developers] Re: start AsyncTask from a background thread

2013-02-07 Thread G. Blake Meike
Yah. Check out http://developer.android.com/reference/android/os/Looper.html Initialize your background thread as a Looper, and then just create AsyncTasks on it. They will run doInBackground in an executor thread pool and then call onPostExecute back on the background thread, the one on

Re: [android-developers] Google spreadsheet workaround

2013-02-07 Thread Keith Zettler
yes but the suitable app is Drive. Within the drive app on my android device charts and drop downs are not available on the spreadsheets. On Sunday, February 3, 2013 7:15:09 PM UTC-5, Fred Niggle wrote: yes, install dropbox or other sync-able remote storage software on both desktop and

Re: [android-developers] Re: asynctask vs. FragmentRetainInstance.java in API demo

2013-02-07 Thread Hand Green
Thank you. It is very useful. 2013/2/6 Streets Of Boston flyingdutc...@gmail.com Instead of Threads or AsyncTasks that do the background work getting the data from the server, use Loader (AsyncLoader). You can use the LoaderManager to initially load them and also to restart them. Restarting

[android-developers] Canvas Android

2013-02-07 Thread janvi
Hello all I need small info,I have drawn a rectangle using canvas in android now i want to fill this rectangle with lines instead of solid color Plz help me out to solve this Which gradient is useful in this case?? as per my knowledge linear and radial gradient fill complete solid color

[android-developers] Paid apps with trial and payments

2013-02-07 Thread Harish Kachoria
Dear all, Need your opinion for listing my app to play store. I have a medical app which we are planning to sell using various distribution channel in bulk volume. We already have license checking mechanism with our site. and we will manage license with our support team. We give our app 1 week

[android-developers] Re: Canvas Android

2013-02-07 Thread skink
janvi wrote: Hello all I need small info,I have drawn a rectangle using canvas in android now i want to fill this rectangle with lines instead of solid color Plz help me out to solve this Which gradient is useful in this case?? see all the Shaders available on the platform:

[android-developers] Re: Connecting to a wifi device from the android application

2013-02-07 Thread Raneez
I am able to connect to the device ,only if the target device's wificonfiguration is once saved. Is it possible to create the wificonfiguration programatically and connect to it? On Thursday, 7 February 2013 22:05:51 UTC+5:30, Raneez wrote: My application (supports 2.2 and later) needs to

Re: [android-developers] Paid apps with trial and payments

2013-02-07 Thread TreKing
On Thu, Feb 7, 2013 at 11:44 PM, Harish Kachoria hkacho...@gmail.comwrote: Or If I list my app free on market and after 7 days user will pay using our payment channel does it violates developer agreement ? That's a question for a lawyer - but probably.