Re: [android-developers] Re: MediaPlayer suddenly stopped working in Android 4.2

2013-02-20 Thread Jeff Sharkey
Starting in Android 4.2, processes may have different views of the filesystem depending on which user they're running as. For example, /sdcard/foo.mp3 could refer to different files for different users. To correctly disambiguate filesystem paths, you'll need to open the file in your app process

[android-developers] loading .swf file in webview, my code works for 2.3.3 but not working for 4.0.4

2013-02-20 Thread Gaurav Wable
having a.swf file in assets folder. this code is working for os 2.3.3 but not for 4.0.4 i have set the parameter android:hardwareaccelerated = true onCreate() { String html = object width=\250\ height=\200\ + param name=\movie\ value=\file:///android_asset/a.swf\ embed

Re: [android-developers] How use my app's notifications instead of calendar app's?

2013-02-20 Thread don rhummy
But how do I get calendar events to set off my notifications? For example, if they have a google calendar and they set an event with a reminder in a web browser, this would still set off a nromal calendar notification on the device. But how would I get that to set off my notification?

[android-developers] Re: Creating new intent with data android:scheme...

2013-02-20 Thread ntt broken
is there anybody out there? On Thu, Feb 14, 2013 at 7:21 PM, ntt broken nttbro...@gmail.com wrote: can someone share more info on this one? thank you! On Mon, Jan 28, 2013 at 9:56 AM, ntt broken nttbro...@gmail.com wrote: Hi, How can i create an intent (Java code) that will be compatible

[android-developers] login screen

2013-02-20 Thread broc . haskamp
I am trying to create a login screen for your basic hello world program. I do not need a database for this so I hard coded the username and password directly into the code. The problem I am having is when I enter the correct username and password, I get my error message stating that either one

Re: [android-developers] Re: NFC Secure Element

2013-02-20 Thread Factionwars
Might take a look at this url: http://intrepidusgroup.com/insight/2011/09/a-brave-new-wallet-first-look-at-decompiling-google-wallet/ He notices a debug menu in a old version of google wallet. On Friday, April 6, 2012 4:16:12 PM UTC+2, Nikolay Elenkov wrote: On Fri, Apr 6, 2012 at 10:06 PM,

Re: [android-developers] IP address

2013-02-20 Thread Jxn
Den tisdagen den 19:e februari 2013 kl. 18:30:45 UTC+1 skrev Nobu Games: Bob was asking for the string representation of an integer IP number. His solution is correct, straightforward and does not require the instantiation of three intermediate objects just for getting a simple string. Your

[android-developers] Re: gradle and libs

2013-02-20 Thread Daniel Rindt
You already have dependencies { compile fileTree(dir: 'libs', include: '*.jar') } you have to put all *.jar file inside the libs directory. If any *.jar file outside of the libs folder wouldn't be compiled. The documentation says that compile is only using the classes on compile

Re: [android-developers] login screen

2013-02-20 Thread Παύλος-Πέτρος Τουρνάρης
Trim those edittexts and use userName.equals(userName1) for Strings! On Sun, Feb 3, 2013 at 10:20 PM, broc.hask...@us.army.mil wrote: I am trying to create a login screen for your basic hello world program. I do not need a database for this so I hard coded the username and password directly

[android-developers] Re: login screen

2013-02-20 Thread Tamilarasi Sivaraj
you use equals() method for string comparison. Because java supports this method for strings... Try this: EditText editText1 = (EditText) findViewById(R.id.editText1); String userName = editText1.getText().toString().trim(); EditText editText2 = (EditText)

[android-developers] redirection link in android app

2013-02-20 Thread Jose Ayerdis
Hello folks, I have encounter the following problem I have been going around on how to make a web app link be opened in a native app for instance I have a link and if I have the app would be nice to present the user the option of open it with the app. Nevertheless in case the app is not available

[android-developers] Posts from new users not passing through moderation?

2013-02-20 Thread Mark Carter
I posted a new topic here a couple of weeks ago using a new google account. Unfortunately it never appeared here :( Can anyone confirm the moderation queue is being actively processed? -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To

Re: [android-developers] Posts from new users not passing through moderation?

2013-02-20 Thread Mark Murphy
I haven't seen a moderation queue flush in some time, though they may have less volume than before and therefore are not quite as noticeable, at least to me. I was thinking about this just a few days ago, when I was mentioning this group to some students. On Wed, Feb 20, 2013 at 6:09 AM, Mark

Re: [android-developers] Re: Creating new intent with data android:scheme...

2013-02-20 Thread Mark Murphy
new Intent(Uri.parse(myapp://path)) On Wed, Feb 20, 2013 at 4:47 AM, ntt broken nttbro...@gmail.com wrote: is there anybody out there? On Thu, Feb 14, 2013 at 7:21 PM, ntt broken nttbro...@gmail.com wrote: can someone share more info on this one? thank you! On Mon, Jan 28, 2013 at 9:56

Re: [android-developers] Posts from new users not passing through moderation?

2013-02-20 Thread Mark Murphy
There may be other problems, though. Jeff Sharkey -- a Googler, no less -- appears to have had a post on Brill Pappin's MediaPlayer thread delayed by a few days for some reason. It's from Jeff's normal google.com account, so I would assume his post wasn't held up for moderation. On Wed, Feb 20,

Re: [android-developers] loading .swf file in webview, my code works for 2.3.3 but not working for 4.0.4

2013-02-20 Thread Mark Murphy
Bear in mind that Flash is no longer available for Android. On Wed, Feb 20, 2013 at 4:39 AM, Gaurav Wable gswa...@gmail.com wrote: having a.swf file in assets folder. this code is working for os 2.3.3 but not for 4.0.4 i have set the parameter android:hardwareaccelerated = true onCreate() {

[android-developers] Include layout problem

2013-02-20 Thread dashman
I've got a RelativeLayout One TextView at the top and below that I'd like to include a separate layout. Unfortunately when the layout is included - it starts displaying from the top of the display - i.e. top edge is aligned with the top of the screen... What i'd like is the top of the included

[android-developers] Application Licensing to implement promo codes

2013-02-20 Thread Strickidinho
Hello, I've got a question and I need a quick answer. Is it possible to do some sort of promo code feature with Application Licensing service? Thanks in advance Sandro -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Include layout problem

2013-02-20 Thread dashman
I enclosed the include inside a LinearLayout and it works. Apparently there's an issue with Include/Merge with RelativeLayouts. My friend google told me that. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

Re: [android-developers] Application Licensing to implement promo codes

2013-02-20 Thread Nikolay Elenkov
On Wed, Feb 20, 2013 at 11:16 PM, Strickidinho stsandr...@googlemail.com wrote: Hello, I've got a question and I need a quick answer. Is it possible to do some sort of promo code feature with Application Licensing service? No, but you can do it with in-app billing. -- -- You received this

Re: [android-developers] Application Licensing to implement promo codes

2013-02-20 Thread Sandro Stricker
I thought so too, but as far as I know you can't set the code for the promotion yourself. And you can't set the price to $0. Or can you do that with in-app billing. Did I miss something? Am 20.02.2013 um 15:35 schrieb Nikolay Elenkov nikolay.elen...@gmail.com: On Wed, Feb 20, 2013 at 11:16

Re: [android-developers] Re: MediaPlayer suddenly stopped working in Android 4.2

2013-02-20 Thread Brill Pappin
I'm actually using a dynamically generated path based on what the OS says is the user's partition, so it's unlikely that the path is incorrect. What i discovered is that the MediaPlayer refuses to play a file in a custom directory under the apps external directory, but will play it if I put it

Re: [android-developers] Application Licensing to implement promo codes

2013-02-20 Thread Nikolay Elenkov
On Wed, Feb 20, 2013 at 11:41 PM, Sandro Stricker stsandr...@googlemail.com wrote: I thought so too, but as far as I know you can't set the code for the promotion yourself. And you can't set the price to $0. Or can you do that with in-app billing. Did I miss something? With in-app billing,

[android-developers] Touch events not saving to arraylist

2013-02-20 Thread Numair Qadir
i'm trying to add the touch events X Y axis to arraylist. But it shows me empty in logcat (X:[] Y:[] ) where am i making mistake?? help me please!!! *@Override* * public boolean onTouch(View bg, MotionEvent event) {* * // TODO Auto-generated method stub* * dumpEvent(event);* * ArrayListString

Re: [android-developers] Application Licensing to implement promo codes

2013-02-20 Thread Sandro Stricker
For this behavior I wouldn't need in-app billing. I just present the user a dialog to enter the code and if it's correct I make the app a premium version. Therefore the user would need to remember the promo code if he wants to install the app on another device or deinstall/reinstall it. I need

[android-developers] Re: Android Canvas development

2013-02-20 Thread bob
I second this recommendation. It was a fun read, and I learned a lot. On Tuesday, February 19, 2013 11:53:55 PM UTC-6, Stephen Lebed wrote: I highly recommend this book Beginning Android Games by Mario Zechner. He explains things very well and if you're new to Android, this is the

[android-developers] Re: How to do sketch by programmatically in Android?

2013-02-20 Thread bob
I believe the image you posted was sketched by pencil on paper: http://www.jwjonline.net/pencil2/painting/Fist/ I have never seen a computer able to accurately replicate pencil shading. If you need such stuff, you should probably get a pencil, some paper, and a scanner. On Tuesday,

Re: [android-developers] Re: How to do sketch by programmatically in Android?

2013-02-20 Thread Meena Rengarajan
Nice joke. Thats fine. Have you looked at that Video ? See that video. How to do that. Just share your knowledge or ideas. Any ideas / suggestions would be appreciated . On Wed, Feb 20, 2013 at 9:19 PM, bob b...@coolfone.comze.com wrote: I believe the image you posted was sketched by pencil on

Re: [android-developers] Application Licensing to implement promo codes

2013-02-20 Thread Nikolay Elenkov
On Thu, Feb 21, 2013 at 12:31 AM, Sandro Stricker stsandr...@googlemail.com wrote: For this behavior I wouldn't need in-app billing. I just present the user a dialog to enter the code and if it's correct I make the app a premium version. Therefore the user would need to remember the promo

Re: [android-developers] Re: How to do sketch by programmatically in Android?

2013-02-20 Thread Lew
Meena Rengarajan wrote: Nice joke. Thats fine. Have you looked at that Video ? See that video. How to do that. Just share your knowledge or ideas. My, my, aren't we the imperious one? Any ideas / suggestions would be appreciated . Apparently not. bob wrote: I believe the image

Re: [android-developers] login screen

2013-02-20 Thread Lew
Paul-Peter Tournaris wrote: Trim those edittexts [sic] and use userName.equals(userName1) for Strings! OP: This is fundamental Java, not specifically Android. broc.h...@us.army.mil javascript: wrote: I am trying to create a login screen for your basic hello world program. I do not need

Re: [android-developers] Application Licensing to implement promo codes

2013-02-20 Thread Sandro Stricker
I thought that this could be achieved via Application Licensing. I read it on stackoverflow, but I don't know how. Am 20.02.2013 um 17:08 schrieb Nikolay Elenkov nikolay.elen...@gmail.com: On Thu, Feb 21, 2013 at 12:31 AM, Sandro Stricker stsandr...@googlemail.com wrote: For this behavior I

Re: [android-developers] IP address

2013-02-20 Thread Nobu Games
WifiInfo.getIpAddress() does not return IPv6 addresses. They do not fit into a Java int. On Wednesday, February 20, 2013 4:11:42 AM UTC-6, Jxn wrote: Den tisdagen den 19:e februari 2013 kl. 18:30:45 UTC+1 skrev Nobu Games: Bob was asking for the string representation of an integer IP

[android-developers] Re: New SDK release for Egnos

2013-02-20 Thread Leonardo Costa
Hello everybody again, I've interesting news from the European Commission about Egnos, which is the launch of the third version of the EGNOS SDK for app developers! The EGNOS SDK enables to improve the GPS positioning performance of smartphones by providing enhanced positioning accuracy

Re: [android-developers] How use my app's notifications instead of calendar app's?

2013-02-20 Thread TreKing
On Wed, Feb 20, 2013 at 3:41 AM, don rhummy donrhu...@yahoo.com wrote: But how would I get that to set off my notification? Check the calendar API. I'd assume there would be a way to query if an event has a reminder attached. Get that and set your own alarm.

Re: [android-developers] How use my app's notifications instead of calendar app's?

2013-02-20 Thread don rhummy
Thanks for the reply! The problem with that is it requires my app to wake up and poll frequently. That can use the battery. If instead, there was a way to register for something (a broadcast) or insert my own intent, that would work better. Is that possible?

Re: [android-developers] How use my app's notifications instead of calendar app's?

2013-02-20 Thread Mark Murphy
On Wed, Feb 20, 2013 at 12:15 PM, don rhummy donrhu...@yahoo.com wrote: The problem with that is it requires my app to wake up and poll frequently. Use AlarmManager to get control at the event time. This does not require your app to wake up and poll frequently. If instead, there was a way to

[android-developers] Help required understanding cursor lifetime in CursorLoaders

2013-02-20 Thread saladbowl
Hello there, I am trying to get my head around CursorLoaders and would appreciate some help. I have a ListFragment which loads list data in a background thread via a CursorLoader/implementing the LoaderManager.LoaderCallbacksCursor interfaces. The data in the list comes from a database via

Re: [android-developers] Re: Creating new intent with data android:scheme...

2013-02-20 Thread don rhummy
//Create the filter with the action IntentFilter filter = new IntentFilter( android.intent.action.View ); //Set the categories filter.addCategory( android.intent.category.DEFAULT ); filter.addCategory( android.intent.category.BROWSABLE ); //Set the data info (host is dataAuthority in Java)

Re: [android-developers] IP address

2013-02-20 Thread Nobu Games
Hm, I'm a bit reluctant to post here, because when I wrote my previous post on this thread I felt like letting off a bit of steam in defense of Bob. I couldn't see what's so horribly wrong with his solution given this particular context. I agree with what you say and in general you're right

[android-developers] Android socket timeouts

2013-02-20 Thread bob
I'm trying to set the timeout for socket activities in Android: System.setProperty(sun.net.client.defaultReadTimeout, 1000); System.setProperty(sun.net.client.defaultConnectTimeout, 1000); Does anyone know if this works? I tried to test it by setting the values real low and seeing if the

[android-developers] How do I get the calendar eventID from the notification's broadcast intent?

2013-02-20 Thread don rhummy
I have a broadcast receiver that listens for a calendar reminder event (when it pops up in the notification tray). It gets the Intent and the intent's action (android.intent.action.EVENT_REMINDER), but I don't know how to get information about the calendar event from that intent. How do I get

Re: [android-developers] How use my app's notifications instead of calendar app's?

2013-02-20 Thread don rhummy
Use AlarmManager to get control at the event time. This does not require your app to wake up and poll frequently. But that only works on the device they created the event on. What about if they have another device (a tablet for example) that also has my app? There wouldn't be a way for it to

Re: [android-developers] How use my app's notifications instead of calendar app's?

2013-02-20 Thread Mark Murphy
On Wed, Feb 20, 2013 at 12:35 PM, don rhummy donrhu...@yahoo.com wrote: But that only works on the device they created the event on. What about if they have another device (a tablet for example) that also has my app? There wouldn't be a way for it to know that event was created unless it polls

[android-developers] Reboot after settings database change?

2013-02-20 Thread avi
Hi, If I update the settings database (either through adb shell or settings.jar), settings app doesn't seem to reflect the new value until I reboot the device. For example, if I change the volume settings in /data/data/com.android.providers.settings/databases/settings.db (system table), I

[android-developers] Re: Alternative SQLite

2013-02-20 Thread Tim
Dear Sagar, Could I suggest you have a look at the MobiForms Developer. MobiForms is a rapid application development tool for Android apps and includes an embedded HSQLDB database engine. HSQLDB is very similar to SQLite and will run on a range of desktop and mobile platforms. With MobiForms

[android-developers] Automatied Environment for Android Building and Testing

2013-02-20 Thread Jaison Brooks
Hey fellow Android Guru's, Im starting this topic because im unsure of how to setup a continues, automated building environment for Android Development. First ill tell you what i have, Im using Eclipse on Mac OS X 10.7 with ADT and the SDK installed. Im using JGit for integration with my git

Re: [android-developers] Automatied Environment for Android Building and Testing

2013-02-20 Thread Mark Murphy
It you really want a continuous integration server, there is a recipe for Android app builds and tests using Jenkins: https://wiki.jenkins-ci.org/display/JENKINS/Building+an+Android+app+and+test+project On Wed, Feb 20, 2013 at 6:39 PM, Jaison Brooks jaisonbro...@gmail.com wrote: Hey fellow

[android-developers] Re: Automatied Environment for Android Building and Testing

2013-02-20 Thread Jaison Brooks
After these tests i want to send the results or data to the Go server, Or if i can run these tests in the Go server directly. I dont know, im very unsure and not as familiar with Go Server's. Just curious what other developers have used and how and what they use. -- -- You received this

Re: [android-developers] Abridged summary of android-developers@googlegroups.com - 47 Messages in 22 Topics

2013-02-20 Thread Bill Lahti
Uhtq On Feb 20, 2013 2:41 AM, android-developers@googlegroups.com wrote: Today's Topic Summary Group: http://groups.google.com/group/android-developers/topics How to do sketch by programmatically in Android? [1 Update] Android Canvas development [4 Updates] Refund [1 Update] about jni

[android-developers] Re: How do I get the calendar eventID from the notification's broadcast intent?

2013-02-20 Thread don rhummy
Unfortunately, that doesn't help. The only info I've been able to get from the intent is the alarmTime and android.intent.extra.ALARM_COUNT. How would I get the eventID from that? Or is there some other info hidden somewhere in the intent? From: Mark

Re: [android-developers] Re: Automatied Environment for Android Building and Testing

2013-02-20 Thread don rhummy
I don't know GO Server but this all sounds like the perfect case for an Ant project. http://ant.apache.org/ They have plugins for jUnit (a testing framework) From: Jaison Brooks jaisonbro...@gmail.com To: android-developers@googlegroups.com Sent:

[android-developers] How identify calendar event across devices?

2013-02-20 Thread don rhummy
Is there a GUID that I can use to identify events across different devices on the same calendar account? The _id seems to be a local Id. -- -- 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] Is Android OS supports RLE (Run Length Encoding) compression and decompression?

2013-02-20 Thread Mars P
I am developing Android application for my embedded project. In that my android application receiving Data packet which contains JPEG image + 150 characters from the input stream (from TCP Socket). Is it possible to receive and decompress the RLE format images from the input stream. And is

Re: [android-developers] Is Android OS supports RLE (Run Length Encoding) compression and decompression?

2013-02-20 Thread Παύλος-Πέτρος Τουρνάρης
http://www.oocities.org/morris_hirsch/java/RLE.java http://www.oocities.org/morris_hirsch/java/compression.html On Thu, Feb 21, 2013 at 8:36 AM, Mars P marugene...@gmail.com wrote: I am developing Android application for my embedded project. In that my android application receiving Data

[android-developers] Re: Android socket timeouts

2013-02-20 Thread Tamilarasi Sivaraj
Hi bob, I don't know what you need exactly? that's like you want *Socket timeout or HTTP timeout*. So i give the both timeout code for below you try this way. *Socket Timeout: * Try this: try { s = new DatagramSocket(); byte[] buf = new byte[1000];

[android-developers] Re: DialogPreference - Background remove

2013-02-20 Thread Tamilarasi Sivaraj
Try this link: This is for DialogPreference http://stackoverflow.com/questions/5722531/how-to-access-widgets-in-a-custom-dialogpreference-with-a-inflated-layout And also you set background for layout Which you set the layout for DialogPreference I hope this will help to you Regards Android

[android-developers] How to launch a process as a different user?

2013-02-20 Thread Put_tiMe
I want to launch a native process, from Java code, using RuntimeInstance.exec. But the problem is, the new native process gets launched under user me. I want the new process to run as user shell. How do I do it? -- -- You received this message because you are subscribed to the Google