Re: [android-developers] Parse JSON using GSON library

2012-02-18 Thread Kristopher Micinski
http://lmgtfy.com/?q=gson+example kris On Sun, Feb 19, 2012 at 2:16 AM, Passion Android wrote: > this is my JSON     --      {\"id\":12,\"name\":12,\"status\":\"ok\", > \"volumes\":[{\"id\":17592,\"name\":\"root\",\"status\":\"ok\"}]} > i want to parse it by using GSON how to do it just give me

[android-developers] Parse JSON using GSON library

2012-02-18 Thread Passion Android
this is my JSON -- {\"id\":12,\"name\":12,\"status\":\"ok\", \"volumes\":[{\"id\":17592,\"name\":\"root\",\"status\":\"ok\"}]} i want to parse it by using GSON how to do it just give me the demo.If u provide me the sample code it will be easier. Thanks Rickky Litao -- You received this m

[android-developers] Re: Recognizing Motion Event

2012-02-18 Thread kumar raja
Please somebody help me with this. On 19 February 2012 11:12, kumar raja wrote: > i have an application which has the following layout. > > a b c d e > f g h i j > > and one string,.say str > > and i am implementing ontouchlistener and using ontouch(View V,MotionEvent > M) > > my task is to

[android-developers] Re: Get the PCM data of the songs currently playing in the android phone

2012-02-18 Thread Doug
On Feb 16, 11:10 pm, dev_alb wrote: > I am planning to fetch the decoded PCM data of a currently playing > song in the android phone. Can we do it from the application layer? No. > Meanwhile it would be really helpful if any one of you could suggest > me an audio decoder in java. Try Google. I

Re: [android-developers] Re: Proxy Authetication support in Android

2012-02-18 Thread Kristopher Micinski
This project contains a few hundred lines of source so far... Was it..., really worth spamming the list *five times* with the exact same thing to advertise it? kris On Sat, Feb 18, 2012 at 10:54 AM, Marco Pagliari wrote: > Have a look here. I'm working on that. Please be patient. If you want to

Re: [android-developers] How to get total call duration of last call as well as all call duration

2012-02-18 Thread fei ji
Have you ever move cursor to next? Since the orginal cursor is reference to -1, so if you get the data directly before moving one step next, it will always give this error. I found there is getLastOutgoingCall

Re: [android-developers] Get call duration.

2012-02-18 Thread fei ji
You can use the class called SimpleDateFormat to format the output of time. 6258 is actually counted in millis. So you have to change the millis to seconds and output. On Wed, Feb 15, 2012 at 3:05 PM, Jagruti Sangani < jagruti.sang...@inextrix.com> wrote: > Hello, > Iam using the below code and

Re: [android-developers] Re: sound player

2012-02-18 Thread Felix Long
you need call mp.prepare before mp.start 在 2012-2-19 上午3:13,"Mark Turkel" 写道: > > Here's code that I am using repeatedly in several apps... hope this > helps! :) > > final class PlaySound { >public static boolean playing=false; > >private static HashSet mpSet = new > HashSet(); > >

Re: [android-developers] Nexus S

2012-02-18 Thread TreKing
On Sat, Feb 18, 2012 at 8:02 AM, Satyajit Sarangi wrote: > Does anyone have a Google Nexus S for sale in India? http://www.craigslist.org/about/sites#ASIA http://www.ebay.com/ > Its rather urgent Have you considered going to a store? ---

Re: [android-developers] Method oddly not working, help needed.

2012-02-18 Thread TreKing
On Fri, Feb 17, 2012 at 10:09 PM, Jeresam515 wrote: > Here is my method for part of a calculator app, could someone take a look > and see why it isnt working? > It might help if you explain what "it isn't working" means. ---

[android-developers] Re: Help! Monkeyrunner Press and Touch event

2012-02-18 Thread Diego Torres Milano
I couldn't reproduce the problem with either 2.3 and 4.0 emulators. Perhaps there's something in the part you removed from your code. And move the line HV = D.getHierarchyViewer() outside of the loop. -- You received this message because you are subscribed to the Google Groups "Android Develo

[android-developers] Re: Shy are things not sending/recieving correctly from this database?

2012-02-18 Thread Jeresam515
bump -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, vi

[android-developers] hasSystemFeatures sometimes hides Wi-Fi

2012-02-18 Thread RLScott
What is PackageManager.hasSystemFeatures(PackageManager.FEATURE_WIFI) supposed to return if Wi-Fi exists on the device but is currently turned off? On the devices I have tested it correctly reports that the device does indeed have Wi-Fi. But many of my customers' devices are reporting "no Wi-Fi".

[android-developers] Re: Help with Maps problem on emulator

2012-02-18 Thread Gene
Thanks. It finally started working when I deleted http:// from the Proxy entry in the emulated Android device Access Point proxy settings. When I looked back at my old notes, this is how I had gotten it working originally. I had created a new virtual device and added the http:// by mistake. In

Re: [android-developers] test cases are in a different package

2012-02-18 Thread Ray Tayek
At 10:43 AM 2/18/2012, you wrote: ... That's not true. You want the unit tests (it's important to distinguish what kind of test we're discussing!) in the same package as the classes they test. yes. ... Put the test code in its own source tree, duh. / | | src/ | |--- test/ my

[android-developers] discovering string resources at run-time

2012-02-18 Thread Ray Tayek
hi, i am making an app that has a bunch of questions multiple choice answers. i have these in the strings.xml resources file. my app does not know how many questions or answers there is, so it wants to discover this at runtime. i.e. i want to look for strings or string arrays that look like "

Re: [android-developers] Re: Same codebase, 2 apks, one free, another paid ?

2012-02-18 Thread Kostya Vasilyev
18 февраля 2012 г. 19:08 пользователь androidmediadeveloper написал: > [snip] > One other general issue is the apk size. If all these features are > offered as inapp pieces, the "free" app will have to ship with every > feature built in, but "locked". This is both a security risk as well > as a si

[android-developers] Re: sound player

2012-02-18 Thread Mark Turkel
Here's code that I am using repeatedly in several apps... hope this helps! :) final class PlaySound { public static boolean playing=false; private static HashSet mpSet = new HashSet(); static void play(Context context, int resId) { playing=true; MediaPlayer mp =

[android-developers] HTTP Post Json to IIS Service

2012-02-18 Thread Mark Turkel
Hi All, I have an IIS service (.net) that I'm obviously not passing the correct json message to. I have tried many of the examples I have found on the web, but they all seem to point to PHP services. I'm doing everything as everyone else is...and the json string looks as it should. Can someone

Re: [android-developers] AlarmManager - getAlarms or similar

2012-02-18 Thread Kostya Vasilyev
Regrettably, no - you will need to keep track of alarms in your code, including saving this data to persistent storage in case the process gets killed / restarted. -- K 18 февраля 2012 г. 22:52 пользователь Ted Scott написал: > Is there a way to find out if I have an existing alarm waiting or do

Re: [android-developers] Dynamic icon == widget?

2012-02-18 Thread Kostya Vasilyev
App icons (shortcuts) are drawn by *a* launcher, and there is no way to control / modify their appearance. So yes, if you need to display dynamic info, you build a widget. -- K 18 февраля 2012 г. 22:55 пользователь Ted Scott написал: > I'm running a service that monitors a metric and I want it

[android-developers] Dynamic icon == widget?

2012-02-18 Thread Ted Scott
I'm running a service that monitors a metric and I want it to colorize the app icon dependent on the values. Do I have to build a widget to interact with it or is there some way I can just replace the image? -- You received this message because you are subscribed to the Google Groups "Android

[android-developers] AlarmManager - getAlarms or similar

2012-02-18 Thread Ted Scott
Is there a way to find out if I have an existing alarm waiting or do I have to create some sort of state variable and keep track of it? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developer

[android-developers] Re: Please guide me how to send data(datastream, not files) from a PC to a real android phone via USB.

2012-02-18 Thread Lew
vvis wrote: > Thx [sic] a lot, I will try "reverse tethering" via USB, and connect the > PC > and the mobile phone ag.. I think that is the most immediate way to > go. > What does "ag" mean? Let me remind you: > Lew wrote: > > There are problems with reverse tethering; tread carefully.

Re: [android-developers] test cases are in a different package

2012-02-18 Thread Lew
hongbosb wrote: > > If test cases are put in the same package, then release version will > contain test project. This isn't customer want to see. > That's not true. You want the unit tests (it's important to distinguish what kind of test we're discussing!) in the same package as the classes the

[android-developers] Re: Method oddly not working, help needed.

2012-02-18 Thread Lew
On Saturday, February 18, 2012 6:19:47 AM UTC-8, Jeresam515 wrote: > > Bump > After only ten hours or so? Really? I thought about addressing your question, but your code is so badly formatted and unreadable and crazy with antipatterns that there's no way I'm going near it. Clean it up in acc

Re: [android-developers] ProxyProperties?

2012-02-18 Thread Kostya Vasilyev
ProxyProperties, along with a bunch of other classes and methods, belongs to the new, improved WiFi / networking code that first appeared in Android 3.0 and was revised in 4.0. And yes, all of it is undocumented and marked with @hide. On some firmwares (the original 3.2.1) those undocumented bits

[android-developers] Re: HTTP Proxy Connection

2012-02-18 Thread Marco Pagliari
Have a look here . I'm working on that. Please be patient. If you want to be involved the APL project is FOSS. -- You received this message because you are subscribed to the Google Groups "Android Developers" grou

[android-developers] Re: Proxy Authetication support in Android

2012-02-18 Thread Marco Pagliari
Have a look here . I'm working on that. Please be patient. If you want to be involved the APL project is FOSS. -- You received this message because you are subscribed to the Google Groups "Android Developers" grou

Re: [android-developers] Writing Proxy Settings in Settings.Secure

2012-02-18 Thread Marco Pagliari
Have a look here . I'm working on that. Please be patient. If you want to be involved the APL project is FOSS. -- You received this message because you are subscribed to the Google Groups "Android Developers" group.

[android-developers] Re: ProxyProperties?

2012-02-18 Thread Marco Pagliari
Have a look here . I'm working on that. -- 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 a

[android-developers] Re: proxy setting used by android browser??

2012-02-18 Thread Marco Pagliari
Have a look here . I'm working on that. -- 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 an

[android-developers] Re: Proxy settings for ICS over ethernet

2012-02-18 Thread Marco Pagliari
Have a look here , I'm trying to work on that. -- 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 ema

[android-developers] Re: Same codebase, 2 apks, one free, another paid ?

2012-02-18 Thread androidmediadeveloper
Thanks for the feedback guys, Kostya, TreKing, Mark, each insightful ! As you rightly pointed out The multiple apk approach suffers from the fact that the tablet app cannot be positioned as a paid app. I guess if we use inapp billing, this can be made to work, probably even preferable. I am also

[android-developers] Shy are things not sending/recieving correctly from this database?

2012-02-18 Thread Jeresam515
None of the notes are created and as such I can't do anything with them, help would be appreciated. TestCount always returns 0. package com.real; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import and

[android-developers] Please provide me the Mediarecorder documentation?

2012-02-18 Thread muhammad.ume...@hotmail.com
hi all, Please give me the Mediarecorder documentation or The report on Mediarecorder. Please please i really need it. Thanks and Regards, umer -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to a

[android-developers] Re: No text visible in edittext

2012-02-18 Thread Chris Mawata
The way you have written it that is what should happen -- you have a loop and you keep replacing the text with the substring. Generally in Jave setXXX methods will replace the current value of a property with the new value. Since this looks like homework check the docs for a method that will add to

[android-developers] Re: Method oddly not working, help needed.

2012-02-18 Thread Jeresam515
Bump On Feb 17, 9:09 pm, Jeresam515 wrote: > Here is my method for part of a calculator app, could someone take a > look and see why it isnt working?(PS is parenthases start while PE is > end) > Boolean solve2( int min, int max){ >                 int x = min-1; >                 while(x        

[android-developers] Mounting multiple devices at once

2012-02-18 Thread New Developer
Using Linux I have set up my /etc/fstab to mount using fuse and mtpfs But How do I set up to mount multiple devices at once. Would like to be able to connect two or three tablets and transfer data between them Thanks in advance -- You received this message because you are subscribed to the

Re: [android-developers] Avoiding FAILED BINDER TRANSACTION error when updating lots of widget bitmaps

2012-02-18 Thread YuviDroid
Hi Mark, I actually switched from setImageViewBitmap() to setImageViewUri() because sometimes I need to display large bitmaps which do not work if I use setImageViewBitmap(). Yuvi On Sat, Feb 18, 2012 at 2:57 PM, Mark Murphy wrote: > On Sat, Feb 18, 2012 at 8:40 AM, YuviDroid wrote: > > thank

[android-developers] Nexus S

2012-02-18 Thread Satyajit Sarangi
Does anyone have a Google Nexus S for sale in India? Its rather urgent. Thank you! -- *Satyajit Sarangi* -- 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 unsubscr

Re: [android-developers] Avoiding FAILED BINDER TRANSACTION error when updating lots of widget bitmaps

2012-02-18 Thread Mark Murphy
On Sat, Feb 18, 2012 at 8:40 AM, YuviDroid wrote: > thanks for your reply. The problem is that I'm using > RemoteViews.setImageViewUri(), so I don't have a bitmap object to set the > density. Then switch to setBitmap() or setImageViewBitmap(). -- Mark Murphy (a Commons Guy) http://commonsware.c

Re: [android-developers] Avoiding FAILED BINDER TRANSACTION error when updating lots of widget bitmaps

2012-02-18 Thread YuviDroid
Hi Dianne, thanks for your reply. The problem is that I'm using RemoteViews.setImageViewUri(), so I don't have a bitmap object to set the density. The Uri I'm using is "content://..." which reaches my ContentProvider at the method openFile(Uri,String). I looked at the Android source code and I se

[android-developers] No text visible in edittext

2012-02-18 Thread mohit verma
Hi guys, I am having a string containing some words. Now in a for loop , i traverse the string and according to some condition i set the color and try to display text in this way: while(not reached string length) { if(condition1) my_edittext.setColor(Color.RED); else if(condition2) my_edittext.

Re: [android-developers] test cases are in a different package

2012-02-18 Thread fei ji
> > If test cases are put in the same package, then release version will > contain test project. > who is going to do that? the test cases are in a separate project? In android, test project is usually put in a directory called tests under the tested project. If it is a sub-project of the under t

Re: [android-developers] handled the android.nfc.action.TRANSACTION_DETECTED event

2012-02-18 Thread tarun sablok
Hii Add the DEFAULT Category as well in the Intent filter , i think it will work out for you Well i am also working in NFC making applications on Google Nexus S ... I think you are also working in card Emulation mode.. can you give me some pointers how to go a

[android-developers] Re: Please guide me how to send data(datastream, not files) from a PC to a real android phone via USB.

2012-02-18 Thread vvis
Thx a lot, I will try "reverse tethering" via USB, and connect the PC and the mobile phone ag.. I think that is the most immediate way to go. On 2月14日, 下午12时34分, Lew wrote: > vvis wrote: > > > I want to send data(datastream, not files) from a PC to a real android > > phone via USB. > > > I coded