[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 lewbl...@gmail.com wrote: vvis wrote: I want to send data(datastream, not files) from a PC to a real android phone via USB.

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 action android:name=android.nfc.action.TRANSACTION_DETECTED / category android:name=android.intent.category.DEFAULT / /intent-filter Well i am also working in NFC making

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

[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)

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 see

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 yuvidr...@gmail.com 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)

[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

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 mmur...@commonsware.comwrote: On Sat, Feb 18, 2012 at 8:40 AM,

[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

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

2012-02-18 Thread Jeresam515
Bump On Feb 17, 9:09 pm, Jeresam515 jeremyschiff...@gmail.com 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;              

[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

[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

[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

[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] Re: Proxy settings for ICS over ethernet

2012-02-18 Thread Marco Pagliari
Have a look here http://www.android-proxy.com/, 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 email

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

2012-02-18 Thread Marco Pagliari
Have a look here http://www.android-proxy.com/. 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

[android-developers] Re: ProxyProperties?

2012-02-18 Thread Marco Pagliari
Have a look here http://www.android-proxy.com/. 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

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

2012-02-18 Thread Marco Pagliari
Have a look here http://www.android-proxy.com/. I'm working on that. Please be patient. If you want to be involved the APL http://code.google.com/p/android-proxy-library/project is FOSS. -- You received this message because you are subscribed to the Google Groups Android Developers group. To

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

2012-02-18 Thread Marco Pagliari
Have a look here http://www.android-proxy.com/. I'm working on that. Please be patient. If you want to be involved the APL http://code.google.com/p/android-proxy-library/project is FOSS. -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: HTTP Proxy Connection

2012-02-18 Thread Marco Pagliari
Have a look here http://www.android-proxy.com/. I'm working on that. Please be patient. If you want to be involved the APL http://code.google.com/p/android-proxy-library/project is FOSS. -- You received this message because you are subscribed to the Google Groups Android Developers group. To

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

[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

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 they

[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. Make sure

[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-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

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 t...@hootinholler.com написал: I'm running a service that monitors a

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 t...@hootinholler.com написал: Is there a way to find out if I have an

[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

[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 HashSetMediaPlayer mpSet = new HashSetMediaPlayer(); static void play(Context context, int resId) { playing=true;

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

2012-02-18 Thread Kostya Vasilyev
18 февраля 2012 г. 19:08 пользователь androidmediadeveloper kamathaj...@gmail.com написал: [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

[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] 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. project/ | | src/ | |---

[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

[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: 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,

[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

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

2012-02-18 Thread TreKing
On Fri, Feb 17, 2012 at 10:09 PM, Jeresam515 jeremyschiff...@gmail.comwrote: 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.

Re: [android-developers] Nexus S

2012-02-18 Thread TreKing
On Sat, Feb 18, 2012 at 8:02 AM, Satyajit Sarangi writetosatya...@gmail.com 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] Re: sound player

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

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] 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

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 pis...@gmail.com wrote: Have a look here. I'm working on that. Please be patient.

[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 albintha...@gmail.com 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

[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 rajkumar.cs...@gmail.com 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)

[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 message because you

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 passion4andr...@gmail.com 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