[android-developers] Best strategy in handling location change

2012-09-23 Thread Ichsan
Currently, I'm creating an app which alarms user tasks at specific time. 
The time is automatically calculated based on coarse location. So, when 
users fly miles away, the alarm time has become invalid. So the app needs 
to recalculate the time. FYI, the alarm should be always on (when exiting 
the app, the alarm is still set).

To solve this, I don't want to listen for coarse location change since it 
eats my battery. Instead, my strategy is by starting alarm each 2 hours 
just to start a location listener (to fix the task alarm). What do you 
think of this strategy?

How to prepare an alarm only once? Can I check if I've done it?

Those are my questions.

Thanks...

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] problem using webview?

2012-09-23 Thread Hitendrasinh Gohil
Hi,

I am trying to load google.com with query string but only black screen 
comes. If i load http://www.google.com then it works fine but if i add 
query string then it didnt work.
webView = (WebView) findViewById(R.id.webView1);
webView.getSettings().setJavaScriptEnabled(true);
webView.loadUrl(http://www.google.com/search?q=; + keyword);

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] problem using webview?

2012-09-23 Thread Harri Smått
Hi,

Could you elaborate a little bit more about your setup; mainly Android version 
and/or device if this happens on device only? I ran the same code with my SGS2 
(ICS 4.0.4) without no problems.

--
H

On Sep 23, 2012, at 10:04 AM, Hitendrasinh Gohil hitendrasin...@gmail.com 
wrote:

 I am trying to load google.com with query string but only black screen comes. 
 If i load http://www.google.com then it works fine but if i add query string 
 then it didnt work.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Best strategy in handling location change

2012-09-23 Thread Harri Smått
Hi,

This is a wild guess, totally out of my knowledge, but do you think listening 
to android.intent.action.TIMEZONE_CHANGED gave you means to act accordingly to 
your needs?

--
H

On Sep 23, 2012, at 9:59 AM, Ichsan ich...@gmail.com wrote:
 Currently, I'm creating an app which alarms user tasks at specific time. The 
 time is automatically calculated based on coarse location. So, when users fly 
 miles away, the alarm time has become invalid. So the app needs to 
 recalculate the time. FYI, the alarm should be always on (when exiting the 
 app, the alarm is still set).
 
 To solve this, I don't want to listen for coarse location change since it 
 eats my battery. Instead, my strategy is by starting alarm each 2 hours just 
 to start a location listener (to fix the task alarm). What do you think of 
 this strategy?

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Proper way to communicate service errors to activity

2012-09-23 Thread Gal Ben-Haim
you can use ResultReceiver, create one in your activity and pass it to the 
service then send messages from the Service to the Activity with 
receiver.send()

On Friday, September 21, 2012 5:57:35 PM UTC+3, Cool Frood wrote:

 Hi,

 I'm trying to implement a service that is started by an activity.  When 
 the service starts off, it spawns a worker thread that makes a socket 
 connection.  If the socket connection fails, I want to stop the service. 
  All this is working fine, but I don't have a good handle of how to 
 indicate to the activity that the service could not start successfully, and 
 has, therefore, turned itself off.

 One way to do this is to communicate via a listener that is attached into 
 the service in the onServiceConnected() connection callback.  The problem 
 with this approach is that, depending on when the worker thread notices the 
 error, the onServiceConnected() may or may not have been called, and 
 therefore the listener may or may not have been attached by the time the 
 worker thread decides to shut down the service.

 I was hoping that onServiceDisconnected() would be called, but that is 
 only called in case of an unexpected crash, and isn't really useful when 
 the service and activity exist in the same process.

 My question is, what is the best way to approach something like this?  It 
 seems silly to me that even though the activity and service exist in the 
 same process, the activity cannot figure out the state of the service that 
 easily.  I _can_ use a static state variable within the service, but that 
 still doesn't allow the activity to be notified of the event.

 Thanks!


-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Advertising opt out

2012-09-23 Thread John Coryat



 I don't deny that. But who cares about CPM? If you have the same amount of 
 C's and less M, the R has not increased, in all likelihood. 


Well, I for one care about eCPM. Ours is currently $2.43. If you have a 
better eCPM then perhaps you are right and I am wrong. On the other hand, 
there is no right or wrong, just different approaches.

-John Coryat 

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Testers wanted for new AdMob client app

2012-09-23 Thread Jethro Borsje
Hi all fellow devs,

I've created a new AdMob client app. Amongst other things it has support 
for multiple accounts, a tablet UI and currency conversion. I've tested the 
app myself on my own devices (phones with 2.3.3 and 2.3.5, tablet with 3.1) 
and on the emulator, but I'm curious as to know how the app behaves on more 
devices. I'm mainly interested in people running ICS  JB on phones and / 
or tablets. If you're interested please let me know, the app can be found 
here: 
https://play.google.com/store/apps/details?id=nl.jborsje.android.admobster.

Best regards,
Jethro

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] ICS, invalidateOptionsMenu() and hardware menu key

2012-09-23 Thread b0b
In an ICS app (targetSdkVersion=15) with an action bar,  I'm calling  
invalidateOptionsMenu() to force recreation of the menu.

The behaviour is different whether the Android device has a hardware menu 
key or not.

- if it has a hardware menu key, the overflow menu is not shown. The menu 
is shown when the pressing the hardware menu key.
In that case invalidateOptionsMenu() seems to have no effect:  I can see 
that the menu is recreated (onCreateOptionsMenu() is called), 
but the old menu is always shown no matter what when pressing the menu key.

- if it doesn't have a hardware menu key, the overflow menu is shown. 
invalidateOptionsMenu() works as epected and the overflow menu is updated.

Has anyone noticed this weird behaviour ? 


-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Testers wanted for new AdMob client app

2012-09-23 Thread John Coryat
Personally, I wouldn't want to use a non-official app for AdMob information 
as I would be concerned about security. AdMob's web site works pretty good 
on Android.

-John Coryat

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Testers wanted for new AdMob client app

2012-09-23 Thread Jethro Borsje
The login information gets stored in the Android account manager. 
Furthermore AdMob has a read-only API, so you don't have to be afraid of 
any modifications that can be done by apps.

Op zondag 23 september 2012 15:04:01 UTC+2 schreef John Coryat het volgende:

 Personally, I wouldn't want to use a non-official app for AdMob 
 information as I would be concerned about security. AdMob's web site works 
 pretty good on Android.
  
 -John Coryat


-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] FLASH_MODE_TORCH doesn?t work in Samsung Galaxy Ace

2012-09-23 Thread Jim Graham
On Sat, Sep 22, 2012 at 10:18:48AM -0700, Barragan wrote:
 
 Here my question:
 I?m doing a flash light aplication, and my aplication works in all devices 
 with flash, but it doesn?t work in some Samsung devices, how Samsung Galaxy 
 Ace.
 I searched in Internet but i don?t find anything... and maybe help me here.

Did you check to see if torch mode is SUPPORTED by its camera device?
See getSupportedFlashModes() in Camera.Parameters
(http://developer.android.com/reference/android/hardware/Camera.Parameters.html)
for more information.

You should ALWAYS check to see if a camera parameter you're trying to set
is supported for that device BEFORE you try and set it, or you might
cause a force close with the camera open, which in most Androids will[1]
lock the camera until the user reboots their Android, which, in turn, can
lead to a whole lot of p*ssed off users, 1-star ratings, etc.

Later,
   --jim

[1] While my Acer Iconia A500 tablet was still running Honeycomb, if I
had an uncaught exception in my camera app (which is now on-hold
until the election in November, after which, it may be pointless to
release it at all), a force close would NOT lock the camera.  Once
it upgraded to ICS, that changed, and it DOES get locked up now.  So
I know it doesn't always happen, but you can bet that it will on most
Androids.

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997   Running Mac OS X Lion 
spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W

 No, I'm not going to explain it.  If you can't figure it
 out, you didn't want to know anyway...  --Larry Wall

Android Apps Listing at http://www.jstrack.org/barcodes.html

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Help: My app has violated the spam provisions of the Content Policy

2012-09-23 Thread FiltrSoft
Maybe if Google's search results in the Play Store actually worked, devs 
wouldn't have to resort to tactics like these to get their apps to show up 
correctly in searches.

On Friday, August 31, 2012 2:27:19 PM UTC-4, TreKing wrote:

 On Fri, Aug 31, 2012 at 1:33 AM, Terry ter...@gmail.com javascript:wrote:

 Yes, there are some keywords, but the same number of keywords - and even 
 more - can be found in most apps (?)


 The fact that other apps also do the wrong thing does not somehow excuse 
 you from also doing the wrong thing.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago 
 transit tracking app for Android-powered devices



-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Displaying menu icon in ICS

2012-09-23 Thread dashman
How can I display a menu icon (3 vertical dots) in ICS devices and
yet maintain compatibility  with android v1.6+.

On some apps, this icon is displayed on the top-right corner and when
pressing the physical hardware menu button - the menu pops up below
the icon - also when touching the icon.

I think this is a relatively new feature - but I'd like to maintain 
compatibility
with older oses.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Displaying menu icon in ICS

2012-09-23 Thread Mark Murphy
On Sun, Sep 23, 2012 at 10:18 AM, dashman erjdri...@gmail.com wrote:
 How can I display a menu icon (3 vertical dots) in ICS devices and
 yet maintain compatibility  with android v1.6+.

Have a targetSdkVersion of 11 or higher, and probably 14 or higher.

This will give you an action bar (vs. the classic title bar) on API
Level 11+ devices. Your former options menu will either appear via a
tap on the ... overflow menu affordance, or by pressing an off-screen
MENU button, depending on the device. Older devices will continue to
display the classic options menu.

If you wish, consider using ActionBarSherlock, to have the ICS
behavior working back to API Level 7.

Further reading:

- http://android-developers.blogspot.com/2012/01/say-goodbye-to-menu-button.html
- http://commonsware.com/blog/2012/06/08/removing-rogue-menus.html

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 4.1 Available!

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Displaying menu icon in ICS

2012-09-23 Thread dashman
ActionBarSherlock???

is that right spelling...sounds like a nuveau sheakespearean play.


On Sunday, September 23, 2012 10:31:00 AM UTC-4, Mark Murphy (a Commons 
Guy) wrote:

 On Sun, Sep 23, 2012 at 10:18 AM, dashman erjd...@gmail.com javascript: 
 wrote: 
  How can I display a menu icon (3 vertical dots) in ICS devices and 
  yet maintain compatibility  with android v1.6+. 

 Have a targetSdkVersion of 11 or higher, and probably 14 or higher. 

 This will give you an action bar (vs. the classic title bar) on API 
 Level 11+ devices. Your former options menu will either appear via a 
 tap on the ... overflow menu affordance, or by pressing an off-screen 
 MENU button, depending on the device. Older devices will continue to 
 display the classic options menu. 

 If you wish, consider using ActionBarSherlock, to have the ICS 
 behavior working back to API Level 7. 

 Further reading: 

 - 
 http://android-developers.blogspot.com/2012/01/say-goodbye-to-menu-button.html
  
 - http://commonsware.com/blog/2012/06/08/removing-rogue-menus.html 

 -- 
 Mark Murphy (a Commons Guy) 
 http://commonsware.com | http://github.com/commonsguy 
 http://commonsware.com/blog | http://twitter.com/commonsguy 

 _The Busy Coder's Guide to Android Development_ Version 4.1 Available! 


-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Displaying menu icon in ICS

2012-09-23 Thread dashman
thanks.

well if you want to be picky - i was off on my shakespeare also.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers]

2012-09-23 Thread doopza


Specialenforch

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Adsense and WebView

2012-09-23 Thread Ildar Nigmatzyanov
Hello. Please, help me )

I try to create app. It is like RSS reader, but we use our own rss feeds. 
It works together with WebView. Also, we use adsenes in feedburner, but 
then i start my app I see feed (like html page), but dont see adsense.

Is it possible to see adsense in app on android?

Thanks.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] EditText lose focus when appears keyboard in ListView

2012-09-23 Thread biosstar
Try to set
android:windowSoftInputMode=adjustPan
for your activity in the AndroidManifest.xml

That solved the problem for me


Am Donnerstag, 29. April 2010 05:12:23 UTC+2 schrieb krekar:

 Hi, all :D 

 I make ListView that has some items that has one EditText and one 
 ImageButton. 

 When touch the EditText in ListView's Item, Keyboard was appeared but 
 EditText lose focus. 

 what can i do for resolve this problem? 

 ps: I can use ScrollView instead of ListView by addView in ScrollView. 

  And in ScrollView, when i touch the EditText, keyboard was 
 appeared and EditText keep the focus. 

  but I must optimize the list because the list may has many items. 

  in ListView, I can optimize list in getView. But in ScrollVIew, 
 there was not way to optimaize list. 

  so, I must use ListView. 

 -- 
 You received this message because you are subscribed to the Google 
 Groups Android Developers group. 
 To post to this group, send email to 
 android-d...@googlegroups.comjavascript: 
 To unsubscribe from this group, send email to 
 android-developers+unsubscr...@googlegroups.com javascript: 
 For more options, visit this group at 
 http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Android “mmap failed: Out of memory” with large APK

2012-09-23 Thread Allen


My Android app APK is fairly large at ~480 MB. I can install the app just 
fine but on Android OS 2.2 when the app is launched I get this error (int 
logcat):

09-21 00:04:12.855: W/dalvikvm(3178): mmap(480331001, RO, FILE|SHARED, 28, 0) 
failed: Out of memory
09-21 00:04:12.855: W/dalvikvm(3178): Map of 
'/data/app/com.mycompany.myapp-1.apk' failed
09-21 00:04:12.855: D/AndroidRuntime(3178): Shutting down VM
09-21 00:04:12.855: W/dalvikvm(3178): threadid=1: thread exiting with uncaught 
exception (group=0x4001d828)
09-21 00:04:12.859: E/AndroidRuntime(3178): FATAL EXCEPTION: main
09-21 00:04:12.859: E/AndroidRuntime(3178): java.lang.RuntimeException: Unable 
to instantiate activity 
...

This does not happen on OS 4.0+. Some users are reporting a crash on 
startup in 2.3.4 and 2.3.7, which I suspect is the same problem. Why is 
mmap failing on my APK?

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How to screen capture through fb0 on galaxy nexus?

2012-09-23 Thread Bin Wang
I have same issue too!!! Do you figure it out?

On Thursday, February 16, 2012 11:11:40 AM UTC+8, Prolific MI wrote:

 I cat dev/graphics/fb0  /data/local/picture 
 Nexus S with Android 4.0.3 is OK. 
 but galaxy nexus is failed.(all raw data is zero) 
 Can you tell me how to get fb0 on galaxy nexus? 
 Thanks!

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Suggestion of Augmented Reality SDK?

2012-09-23 Thread Henry
The book PRO Android Augmented  Reality.

Greetings

El miércoles, 12 de septiembre de 2012 09:17:19 UTC-5, Duygu Kahraman 
escribió:

 I am interested in augmented reality but i am newbei about this topic.I 
 read some suggesstion about SDK.I download metaio,wikitude,vuforia sdk but 
 i can not run sample of them.Can anybody face this problem?

 if it is not can anybody suggest some SDK about AR? OR some link related 
 AR step by step?


-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: cannot cancel a subscription via RESTFUL web service

2012-09-23 Thread Zamees
Were you ever able to get this working?

On Tuesday, July 3, 2012 10:57:33 AM UTC-4, vipremobile wrote:

 Good Morning,
 I am a web developer working on an interface to query (and maybe 
 manage) google subscriptions related to our app purchase.  I've been using 
 this HTTP API interface to list purchases:


 http://developer.android.com/guide/google/play/billing/billing_subscriptions.html#play-dev-api

 Currently they offer an endpoint to get some info for a subscription and 
 to also cancel a subscription. I can get info for a subscription with no 
 problems, but when I try to cancel a subscription I get a weird 500 error 
 with no message.  Any ideas what might be going on?  At first I thought it 
 was an OAuth issue but I was able to use the GET request just fine. Here is 
 the curl -v output. Note that I concealed some of my account info:

 curl -X POST '
 https://www.googleapis.com/androidpublisher/v1/applications/com.ssd.myapp/subscriptions/premium.sku/purchases/mypurchase12345/cancel'
  
 -H 'Authorization: OAuth ya29.MYVALIDTOKEN' -d '' -v
 * About to connect() to www.googleapis.com port 443 (#0)
 *   Trying 74.125.137.95... connected
 * Connected to www.googleapis.com (74.125.137.95) port 443 (#0)
 * SSLv3, TLS handshake, Client hello (1):
 * SSLv3, TLS handshake, Server hello (2):
 * SSLv3, TLS handshake, CERT (11):
 * SSLv3, TLS handshake, Server finished (14):
 * SSLv3, TLS handshake, Client key exchange (16):
 * SSLv3, TLS change cipher, Client hello (1):
 * SSLv3, TLS handshake, Finished (20):
 * SSLv3, TLS change cipher, Client hello (1):
 * SSLv3, TLS handshake, Finished (20):
 * SSL connection using RC4-SHA
 * Server certificate:
 *  subject: C=US; ST=California; L=Mountain View; O=Google Inc; CN=*.
 googleapis.com
 *  start date: 2012-06-14 06:42:53 GMT
 *  expire date: 2013-06-07 19:43:27 GMT
 *  subjectAltName: www.googleapis.com matched
 *  issuer: C=US; O=Google Inc; CN=Google Internet Authority
 *  SSL certificate verify ok.
  POST 
 /androidpublisher/v1/applications/com.ssd.myapp/subscriptions/premium.sku/purchases/mypurchase12345/cancel
  
 HTTP/1.1
  User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 
 OpenSSL/0.9.8r zlib/1.2.5
  Host: www.googleapis.com
  Accept: */*
  Authorization: OAuth ya29.MYVALIDTOKEN
  Content-Length: 0
  Content-Type: application/x-www-form-urlencoded
  
  HTTP/1.1 500 Internal Server Error
  Content-Type: application/json; charset=UTF-8
  Date: Tue, 03 Jul 2012 14:53:37 GMT
  Expires: Tue, 03 Jul 2012 14:53:37 GMT
  Cache-Control: private, max-age=0
  X-Content-Type-Options: nosniff
  X-Frame-Options: SAMEORIGIN
  X-XSS-Protection: 1; mode=block
  Server: GSE
  Transfer-Encoding: chunked
  
 {
  error: {
   code: 500,
   message: null
  }
 }
 * Connection #0 to host www.googleapis.com left intact
 * Closing connection #0
 * SSLv3, TLS alert, Client hello (1):


 Thanks!




-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Eclipse setup question

2012-09-23 Thread Jared Greenwald
So, I'm just trying to get started learning Android development.  I wanted 
to start with something simple, so I'm trying out the My First 
App tutorial app that comes with the Eclipse plugin.  I seem to be running 
into a couple of hurdles. I posted on Stack Overflow, but only got a couple 
minimal responses, so I'm coming here to see if anyone can provide more 
info.

Basically, my setup is Ubuntu 12.10 (amd64) box with Eclipse 3.8.  I have 
two connected devices (Galaxy Nexus  Nexus 7) which are both seen by adb 
(after some udev massaging).  I also have a 4.1 AVD setup, I know this 
works since I've started it up and let it run a few times.

So, my questions are as follows:

1 - The My First App doesn't seem to have come with a build.xml file.  I 
don't know if this is affecting the Run button configuration or not, but I 
can't even get the manual build/push to device working as outlined in the 
instructions (eg ant debug; adb install).  Can someone tell me how to 
create this file?

2 - How do I configure the Run button in Eclipse to run the app either on 
one of my devices or on a configured AVD?  I tried looking through the Run 
configuration settings, but all of the tutorials I've seen out there are 
for older versions of Eclipse that don't seem to have the same menu layout. 
 In the couple replies I got on Stack Overflow, they mention Run - Run 
Configurations, but I don't seem to have that option in my version (see 
image).

https://lh3.googleusercontent.com/-oK05LfyUOzw/UF8OE56kehI/A2M/CRY4XDxyuik/s1600/eclipse_run_menu.png

I tried flipping through the External Tools Configurations... which is a 
setup dialog, but that doesn't seem to be right either.

Any suggestions would be much appreciated.  Thanks!

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Android App - Python+Eclipse

2012-09-23 Thread Alexandre Carlos
Quinta-feira, 20 de Setembro de 2012 22:09:33 UTC+1, Prat escreveu:
 Hello,
 
 
 I am a beginner of android apps. I am using eclipse to develop an android app 
 for samsung galaxy tab. I have installed pydev plugin for eclipse too. 
 However, I am unsure of how to bundle my python files and create a new 
 android app. Basically, I do not know, where to put my python files 
 (src/gen/res etc). Please help me with a reference material that can give 
 detailed notes on the procedure. Thanks.
 
 
 Regards,
 
 
 Prat 

Hi:-) 
The only way I know to execute Python scripts is with SL4A (scripting layer for 
android and Pi4A (Python for Android). This is the project URL 
http://code.google.com/p/python-for-android/;. I only loaded the software and 
run the demo scripts. But everything runs in the Android device, doesn't need a 
PC host with Eclipse. The Pi4A site have a wiki that helps. 
Sorry but I can't remember where I read an article about Python on Android ... 
maybe in a Linux magazine I bought (???)
Hope that be helpful,
Alexandre :-) 

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How long until downloads/sales report?

2012-09-23 Thread Nick Cifonie
We uploaded our 1st apps yesterday and know there have been downloads, but 
none show in the Dev console.  Is there a delay?

Nick

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] KeyEvent sent by custom IME is not being completely parceled.

2012-09-23 Thread Matthew Williams
Hi,

Please see my original posting on StackOverflow 
herehttp://stackoverflow.com/questions/12519856/android-custom-keyevent-not-passing-to-textview
 - I 
couldn't get a response, and I think this problem is specific enough to ask 
here.

What I'm trying to do is capture all the likely keys from the keyboard, 
using int[] keycodes in the onKey(int kc, int[] keycodes) function of the 
example IME given in the SDK.
I 
   setProximityCorrectionEnabled(true) 
in my LatinKeyBoardView.java  so that the keycodes[] array is properly 
initialised coming in to the onKey(...).

I want to send these keys back to my application, which then uses another 
set of touch input to in fact determine which key was pressed.

The way I do this is by using this 
http://developer.android.com/reference/android/view/KeyEvent.html#KeyEvent(long,
 
java.lang.String, int, int)KeyEvent(...) constructor, as shown below.

  onKey(int primaryCode, int[] keyCodes) {

...

String characterString = new String();
  for (int c : keyCodes) {
  characterString += (char)c;
  }
  
  KeyEvent ke = new KeyEvent(SystemClock.uptimeMillis(),
characterString, 0, KeyEvent.FLAG_SOFT_KEYBOARD);
  Log.e(TAG, parceling:  + ke.getCharacters()); 

  // Drop it into a parcel for experimenting.
  Parcel p = Parcel.obtain();
  ke.writeToParcel(p, 0);

  // Construct KeyEvent from this parcel.
  KeyEvent kee = KeyEvent.CREATOR.createFromParcel(p);
  Log.e(TAG, unparceled cstring:  + kee.getCharacters()); // Null

   ...

  }

The last Log output is unparceled cstring: null

I also get null from within my custom TextView onKey(...), although the 
KeyEvent that is passed in from the IME is properly constructed with 
event.getAction() == KeyEvent.ACTION_MULTIPLE, and event.getKeyCode() == 
KeyEvent.KEYCODE_UNKNOWN.

It seems that KeyEvent.writeToParcel(...)/KeyEvent.CREATOR don't 
marshal/unmarshal the internal character array of the KeyEvent. Is this the 
expected behaviour? Or am I missing something.

Thanks a lot,
 Matthew

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Help me: undefined reference to `std::locale::locale()

2012-09-23 Thread Michael.Kang
I try to link LLVM library to build my android NDK application, but
the following link error
appear :
 ERROR MESSAGE ###
/opt/toolchain/android_404/work_dir//out/target/product/generic_x86/obj/STATIC_LIBRARIES//libLLVMCodeGen_intermediates/libLLVMCodeGen.a(RenderMachineFunction.o):
In function `~basic_ios':
/opt/toolchain/android_404/work_dir/external/stlport/stlport/stl/_ios.h:59:
undefined reference to `std::ios_base::~ios_base()'
/opt/toolchain/android_404/work_dir//out/target/product/generic_x86/obj/STATIC_LIBRARIES//libLLVMCodeGen_intermediates/libLLVMCodeGen.a(RenderMachineFunction.o):
In function `~basic_streambuf':
/opt/toolchain/android_404/work_dir/external/stlport/stlport/stl/_streambuf.c:41:
undefined reference to `std::locale::~locale()'
/opt/toolchain/android_404/work_dir/external/stlport/stlport/stl/_streambuf.c:41:
undefined reference to `std::locale::~locale()'
/opt/toolchain/android_404/work_dir//out/target/product/generic_x86/obj/STATIC_LIBRARIES//libLLVMCodeGen_intermediates/libLLVMCodeGen.a(RenderMachineFunction.o):
In function `std::basic_streambufchar, std::char_traitschar
::pubimbue(std::locale const)':
/opt/toolchain/android_404/work_dir/external/stlport/stlport/stl/_streambuf.c:47:
undefined reference to `std::locale::locale(std::locale const)'
/opt/toolchain/android_404/work_dir/external/stlport/stlport/stl/_streambuf.c:48:
undefined reference to `std::locale::operator=(std::locale const)'
/opt/toolchain/android_404/work_dir//out/target/product/generic_x86/obj/STATIC_LIBRARIES//libLLVMCodeGen_intermediates/libLLVMCodeGen.a(RenderMachineFunction.o):
In function `std::basic_ioschar, std::char_traitschar
::imbue(std::locale const)':
/opt/toolchain/android_404/work_dir/external/stlport/stlport/stl/_ios.c:70:
undefined reference to
/opt/toolchain/android_404/work_dir//out/target/product/generic_x86/obj/STATIC_LIBRARIES//libLLVMCodeGen_intermediates/libLLVMCodeGen.a(RenderMachineFunction.o):
In function `std::ios_base::_M_check_exception_mask()':
/opt/toolchain/android_404/work_dir/external/stlport/stlport/stl/_ios_base.h:191:
undefined reference to `std::ios_base::_M_throw_failure()'
/opt/toolchain/android_404/work_dir/external/stlport/stlport/stl/_ios_base.h:191:
undefined reference to `std::ios_base::_M_throw_failure()'
/opt/toolchain/android_404/work_dir/external/stlport/stlport/stl/_ios_base.h:191:
undefined reference to `std::ios_base::_M_throw_failure()'
##
My Android.mk as the following:

  include $(CLEAR_VARS)
  LOCAL_MODULE := testLLVM_LIB_DIR :=
$(ANDROID_SOURCE)/out/target/product/generic_x86
/obj/STATIC_LIBRARIES/
  LLVM_LIBS := $(LLVM_LIB_DIR)/libLLVMCodeGen_intermediates/libLLVMCodeGen.a
  LOCAL_LDLIBS := -L$(ANDROID_SDK) -llog $(LLVM_LIBS) -lstdc++
  LOCAL_SRC_FILES += path.c
  include $(BUILD_SHARED_LIBRARY)

My Application.mk is the following:
  APP_ABI := x86
  APP_STL:=stlport_static
  APP_CFLAGS += -Icommon/include -DMODET
  STLPORT_FORCE_REBUILD := true
  APP_OPTIM :=debug

Anyone has idea to solve such build issues?

Thanks
MK

-- 
www.skyeye.org

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml

2012-09-23 Thread Andreas Geyer


On Monday, 17 September 2012 15:57:12 UTC-7, Alexei Colin wrote:

 On Thursday, November 5, 2009 1:27:55 AM UTC-5, Andrew Pollock wrote:

  it turned out that 
 while I had the sun-java6-bin package installed, the alternatives 
 system was making /usr/bin/java point to the GNU Java bytecode 
 interpreter. Once I did a sudo update-alternatives --config java and 
 selected the Sun Java instead, everything started to work properly. 

 This was exactly the reason in my case on Ubuntu 12.04 (I wish I saw your 
 post earlier). Symptoms do not make the root cause obvious at all. Would be 
 curious to see why exactly the fetch from the repositories fails under the 
 GNU interpreter. 



Holy Cow, what Alexei Colin posted worked out of the box. I am on Debian 
6.0.5. Thanks dude. 

  


-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Hitarea in LinearLayout view

2012-09-23 Thread powder366
Hi,

I have defined a LinearLayout with some TextView's spread out.
Instead of putting a setOnTouchListener on each specific TextView, I
like to divide my LinearLayout in three areas (hitareas).
If I hit the top area I do something (in the middle something else
etc.).
I.e. I'd like to have three listeners for top, middle and bottom and
in each area I have any number of Android TextView's (or possible
other widgets) laid out.

How can I solve this?

Many thanks!

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Convert touch event coords to opengl (without offset)

2012-09-23 Thread Tomas Kislan
Hello, 
I have a problem with implementing touch events on GLSurfaceView
views size is 1280x696, because of android 4 status bar at bottom, (screen 
resolution is 1280x800)
but ontouchlistener is receiving touch events with coords [646.0,739.0], 
and thus my gluunproject method fails to return correct values for opengl
is there a way how to do this right?

Thanks

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Can anybody tell me how can i disable BACK button on android?

2012-09-23 Thread Marty Ballard
Here is how I've done it in one of my apps:

@Override
public void onBackPressed() {
Toast.makeText(this, Back button disabled, press Reset, 
Toast.LENGTH_LONG).show();
}

On Wednesday, September 19, 2012 1:10:52 PM UTC-5, Wajiha Kanwal wrote:

 Can anybody tell me how can i disable BACK button on android? 


-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: importing of jar file problem

2012-09-23 Thread l7777777b
me too need some answers for this..

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: quick action multi row view

2012-09-23 Thread Lucio Savino
Have you solved it?

I have the same problem and I wondering if you can help me.

Thx,
Lucio

Il giorno lunedì 16 aprile 2012 10:28:34 UTC+2, Live Happy ha scritto:

 i used the quick action view  3d  who exist in this site and its work like 
 charm to me 

 http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/comment-page-4/#comment-12086
 but in this sample  there is only one row  of icon  and  i want have multi 
 row of icons 
 they use a linear  layout  and i want update it to table layout and add 
 the linear layout  to table row in this table layout after number of icon 
 given mean add action in the sample

 wish that if someone can help me and thz on advance


-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: text to pdf in android

2012-09-23 Thread Lindsay Manning
If not allowable on the android itself then is it possible for you to 
implement a server side solution?
You could write a webservice that uses something like PDFSharp and feeds 
the PDF back to the device.

Just a thought,

Lins.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Is stereo audio to 3.5 Jack and separate Audio Stream to another output possible?

2012-09-23 Thread Lindsay Manning
I want to use an android device for DJing but I dont want to split the 
Stereo audio out to 2 separate Mono outs to get a separate monitor and a 
live output, which is the way devices seem to do it at the moment.

I searched for DJ apps that might do this already but to no avail so I want 
to write my own.

So: 
Is it possible to have stereo output through the 3.5mm socket for the main 
live output but then to utilise one of the many other outputs (bluetooth, 
USB or even FM transmitter) to output a separate audio stream (this can be 
mono if needs be).

I know when I used to dabble with MP3 mixing on a PC years ago I had 
troubles running 2 audio cards on the one PC, the BIOS always expected one 
soundblaster card and I had to get a custom BIOS for it to allow 2 Audio 
PCI cards to generate and channel 2 separate audio streams to each cards 
3.5mm output sockets.


So my question is:
Is the underlying possibility there for Android to handle 2 separate audio 
streams to output to 2 separate output ports? Or is it only possible to 
address one output port at a time

I know with the Android I can send multiple audio streams to one output 
device (or multiple instances of media player to the one audio output) so I 
don't want to confuse my question, I am specifically interested in 3.5mm 
playing one audio and bluetooth, USB or FM transmitter playing a totally 
different audio.

Cheers for any knowledge on this one,

Lins.



-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] reorder pages in FragmentStatePagerAdapter using getItemPosition(Object object)

2012-09-23 Thread UgglyNoodle
I believe that FragmentStatePagerAdapter does not behave correctly when 
overriding getItemPosition(Object object) with the purpose of reordering 
the pages.

Below is a simple example. In the initial state, the order of the pages is 
{A, B, C}. Upon calling toggleState(), the order of the pages changes to 
{A, C, B}. By overriding getItemPosition(Object object), we ensure that the 
current page being viewed (A, B, or C) does not change.

public static class TestPagerAdapter extends FragmentStatePagerAdapter {
private boolean mState = true;
 public TestPagerAdapter(FragmentManager fragmentManager) {
super(fragmentManager);
}
 @Override
public int getCount() {
return 3;
}
 private void toggleState() {
mState = !mState;
notifyDataSetChanged();
}
 private String getLabel(int position) {
switch (position) {
case 0:
return A;
case 1:
return mState ? B : C;
default:
return mState ? C : B;
}
}
 @Override
public int getItemPosition(Object object) {
String label = ((TestFragment) object).getLabel();
if (label.equals(A)) {
return 0;
} else if (label.equals(B)) {
return mState ? 1 : 2;
} else {
return mState ? 2 : 1;
}
}
 @Override
public CharSequence getPageTitle(int position) {
return getLabel(position);
}
 @Override
public Fragment getItem(int position) {
return TestFragment.newInstance(getLabel(position));
}
}


I have encountered two separate behaviours which seem incorrect.

   1. If I immediately call toggleState() (while viewing page A, before 
   swiping to any other page), the app crashes.
   
   java.lang.IndexOutOfBoundsException: Invalid index 2, size is 2
 at 
   java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:251)
 at java.util.ArrayList.set(ArrayList.java:477)
 at 
   
android.support.v4.app.FragmentStatePagerAdapter.destroyItem(FragmentStatePagerAdapter.java:136)
 at android.support.v4.view.ViewPager.populate(ViewPager.java:867)
 at 
   android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:469)
 at 
   android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:441)
 at android.support.v4.view.ViewPager.dataSetChanged(ViewPager.java:766)
 at 
   
android.support.v4.view.ViewPager$PagerObserver.onChanged(ViewPager.java:2519)
 at 
   android.database.DataSetObservable.notifyChanged(DataSetObservable.java:37)
 at 
   
android.support.v4.view.PagerAdapter.notifyDataSetChanged(PagerAdapter.java:276)
 at 
   
com.ugglynoodle.test.testfragmentstatepageradapter.MainActivity$TestPagerAdapter.toggleState(MainActivity.java:55)
 ...
   
   Looking at the source (FragmentStatePagerAdapter.java), this would be 
   fixed by first checking the size of mFragments (as in lines 113-115) before 
   calling set() in line 136.
   
   2. If I first swipe to page B, then getItem(2) is called, page C is 
   created, and mFragments now has a size of 3 (this will prevent the crash 
   above from happening in a moment). Then I swipe back to page A, and page C 
   is destroyed, as it should be (since it is 2 pages away, and I'm using the 
   default offscreen page limit of 1). Now, I call toggleState(). Page B is 
   now destroyed. However, page C is NOT recreated! This means, when I now 
   swipe to the right, I get an empty page.
   
First, it would be nice to know whether I'm correct and these are in fact 
bugs, or whether I'm doing something wrong. If they are bugs, can anyone 
suggest a workaround (other than debugging and rebuilding the support 
library myself)? Surely somebody must have overridden 
getItemPosition(Object object) successfully (apart from setting everything 
to POSITION_NONE)?

I am using the current revision (10) of the support library.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: [Question] How can I install the Android SDK Linux on Ubuntu 12.04.1

2012-09-23 Thread Mark Ward
Has the file got execute permissions? ls - al should show x for owner a least
On Saturday, 22 September 2012 14:01:13 UTC+12, Raziel23x  wrote:
 I have been trying all morning and half g today trying to get the bloody 
 thing to instill. I have followed the instructions in the txt file inside but 
 when I go into terminal and CD into the folder and type Android like the 
 instructions day it cannot find three file or if I try it as ./tools/android 
 permission denied and I sudoed in before hands so I have root access
 
 Sent from my DROID RAZR CDMA XT912 using Tapatalk 2

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How to install ADT Plugin in Eclipse ? Error in Accessing Help !!!!!!

2012-09-23 Thread Purushotham Kumar
Hi 

Can Any one please help me?

I downloaded every package of eclipse and tried to install android plugin 
(ADT Plugin). Always it install successfully but failed to create android 
projects as the plugin doesn't enable in my system.

My System Configuration

OS : Windows 7 64 bit
Processor : intel Core i7 2.80 GHZ
Ram : 6GB DDR 3
HDD : 500 GB

Here i am adding screenshots after installation. it is installed success 
full but can't find anywhere 



https://lh6.googleusercontent.com/-VTltL4jrcM8/UF0gYnZmCwI/ACU/e7zK89baMVg/s1600/1.JPG

https://lh4.googleusercontent.com/-kVVXS9wOwXU/UF0gd2X7LHI/ACc/6gfF-DIYFHs/s1600/2.JPG

https://lh3.googleusercontent.com/-ow5_ZpvgQNg/UF0gijKrMkI/ACk/8-LiqnnMhDI/s1600/3.JPG

https://lh6.googleusercontent.com/-1-t9JBA8l4k/UF0gn2ldvkI/ACs/XINIS4Ms82g/s1600/4.JPG





-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: SMPP over android

2012-09-23 Thread miya

Hi,

please how i can use SMPP with android for send and receiver the sms?

thks
On Friday, November 11, 2011 10:40:59 AM UTC, Shire Highlands wrote:

 Yes. You  Can 

 On Nov 4, 8:08 am, androidgeek itestandroid@gmail.com wrote: 
  Can I implement SMPP  (Simple message peer-to-peer) over android. If 
  yes, How ? 
  Looking for an early reply  
  
  Regards, 
  AndroidGeek

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Custom DialogPreference and PreferenceManager.setDefaultValues issue

2012-09-23 Thread Gene Wildhart
Your solution works perfectly for me on Gingerbread (Android 2.3.7) and 
below.  However, when trying on ICS (4.0+) or newer, neither the *
onSetInitialValue* or the *onGetDefaultValue* functions are ever called. 
 Can anyone explain why the behavior changed in ICS?

On Friday, July 27, 2012 1:41:50 AM UTC-7, Jens wrote:

 Finally, I've found a solution to this problem!

 The official documentation for the preferences activity has just been 
 updated.
 Check out the paragraph about Building a Custom Preference
 http://developer.android.com/guide/topics/ui/settings.html#Custom

 You have to implemenet both of the following methods the way it is 
 described.
 Now *PreferenceManager.setDefaultValues()* also works for my custom 
 dialog!

 protected void onSetInitialValue(boolean restorePersistedValue, Object 
 defaultValue)

 protected Object onGetDefaultValue(TypedArray a, int index)



 On Sunday, July 15, 2012 2:18:37 PM UTC+2, jdr88 wrote:

 I just came across the same issue and can confirm the same behaviour:

 *android:defaultValue* of a custom DialogPreference is *not* set
 with PreferenceManager.setDefaultValues() method.

 Seems like a bug?
 I'm using now the solution that you proposed...


 On Thursday, 13 October 2011 23:11:27 UTC+2, tlegras wrote:

 Okay, I give up. 
 My preference default value will be copied in the preference access code 
 as well:

 value = sharedPref.getInt(mykey,myDirtyHardcodedDefaultValue );


 If ever someone has a better solution, it will be welcome :)

 Thierry.


  2011/10/11 Thierry Legras tle...@gmail.com javascript:

 Hi Ibendlin,

 Thanks for helping me :)

 I don't think the problem is in SeekBarPreference.onSetInitialValue() 
 function itself as it is never called (I have put a log in it to check). 
 There is certainly an issue somewhere in my implementation; when 
 setDefaultValues is called, only SeekBarPreference constructor is called. 

 I was suspecting the xml, but I don't see any problem in it 
 (android:defaultValue is set and android:persistent as well):

 com.tlegras.tools.SeekBarPreference 
 android:key=preferences_epg_daytostore
 android:title=@string/preferences_epg_daytostore_title
 android:summary=@string/preferences_epg_daytostore_summary
 android:dialogMessage=Nombre de journées à télécharger. 
 Attention, plus ce nombre est élevé, plus le chargement sera long et 
 moins l'application sera réactive.
 android:text= jour(s)
 android:defaultValue=4
 android:max=5
 android:persistent=true 
 /


 2011/10/11 lbendlin lu...@bendlin.us javascript:

 it took me a few weeks to get that right.  here's my example for a 
 boolean value. And yes, .setDefaultValues is actually working, despite 
 what 
 you may think :-/

@Override
 protected void onSetInitialValue(boolean restoreValue, Object 
 defaultValue) {
 boolean temp = restoreValue ? getPersistedBoolean(false) : 
 defaultValue.toString().equals(true) ? true : false;
 if (!restoreValue)
 persistBoolean(temp);
 this.oldValue = temp;
 }

  -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 -- 
 Thierry.




 -- 
 Thierry.
  


-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] ListFragment Issue

2012-09-23 Thread Minh Bui
Hi,

i'm using a ListFragment with an ExpandableListView - which is backed by a 
SimpleCursorTreeAdapter - at the moment and everything was working 
perfectly. I decided at a later stage to switch to the 
support.v4.ListFragment to implement lateral navigation with the ViewPager 
and all of a sudden the ListFragment stopped working. There is no exception 
thrown or anything. The list with all the items is simply not shown. Is the 
support.v4.ListFragment in any way working differently than the normal 
ListFragment or am I missing something else entirely?

Here is the code for the ListFragment:

codepublic class VisuTextFragment extends ListFragment {

private StoragemStorage;

private intmFilterSensortype;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mStorage = Storage.newSQLiteDatabase(getActivity());
mFilterSensortype = -1;
setHasOptionsMenu(true);
}

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
return inflater.inflate(R.layout.l_visu_text, container, false);
}

@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
fillData();
}

@Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
super.onCreateOptionsMenu(menu, inflater);
inflater.inflate(R.menu.textvis, menu);
}

@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.menu_filter:
final Dialog dialog = new Dialog(getActivity());
dialog.setTitle(Filter by sensor type);
dialog.setContentView(R.layout.l_dialog_filter);

Button ok = (Button) dialog.findViewById(R.id.filter_ok);
ok.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View v) {
int filter = Integer.parseInt(((EditText) 
dialog.findViewById(R.id.et_filter)).getText().toString());
mFilterSensortype = filter;
fillData();
dialog.dismiss();
}
});

Button cancel = (Button) 
dialog.findViewById(R.id.filter_cancel);
cancel.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View v) {
dialog.cancel();
}
});


dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
dialog.show();
break;
}
return true;
}

@Override
public void onResume() {
super.onResume();
fillData();
}

public void fillData() {
Log.d(VisuTextFragment, fillData());
Cursor cursor;
if (mFilterSensortype == -1)
cursor = mStorage.queryAllAsCursor();
else
cursor = mStorage.query(mFilterSensortype);

TextVisCursorAdapter adapter = new TextVisCursorAdapter(
getActivity(),
cursor,
R.layout.l_visu_text_group,
new String[] { Storage.ELEMENT_ID, 
Storage.ELEMENT_ENTRIES_DATE, Storage.ELEMENT_ENTRIES_LATITUDE, 
Storage.ELEMENT_ENTRIES_LONGITUDE, Storage.ELEMENT_ENTRIES_SENSORTYPE },
new int[] { R.id.id, R.id.date, R.id.latitude, 
R.id.longitude, R.id.sensortype },
R.layout.l_visu_text_child,
new String[] { Storage.ELEMENT_MEASUREMENTS_VALUE },
new int[] { R.id.value });

ListView lv = (ListView) getListView();
ExpandableListView elv = (ExpandableListView) lv;
elv.setGroupIndicator(null);
elv.setAdapter(adapter);
}
}/code

And this is the layout file:


codeLinearLayout 
xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=fill_parent
android:layout_height=wrap_content
android:orientation=vertical
LinearLayout 
android:layout_width=fill_parent
android:layout_height=fill_parent
TextView
android:gravity=center
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_weight=1
android:text=@string/id/
TextView
android:gravity=center
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_weight=2
android:text=@string/date/
TextView
android:gravity=center
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_weight=2
android:text=@string/latitude/
TextView

[android-developers] Modifying YouTube player streaming behavior

2012-09-23 Thread Shathil Reiut
Hi
 I am trying to modify the progressive download behaviour of the YouTube 
player. The idea is to download the 10MB of the content at once. Then tear 
down the TCP connection. When the playback reaches around 9MB, the player 
will send the request again. Any idea how to proceed ?

Br
Shathil

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Google Voice call logging on Samsung Galaxy S3 T-Mobile (SGH T-999)

2012-09-23 Thread Sandeep Potdar
I have this problem as well. I upgraded my GS2 (TMobile) from 4.0.3 to 
4.0.4 and now Google Voice doesn't log the actual called numbers but rather 
weird (Google Access Numbers). I hate to factory reset. Too much work. And 
neither has anyone guaranteed it will work. Is there anything else that we 
can do? Or can someone confirm if factory resetting will solve this? 
(Though I wonder how will factory resetting help if the bug is with the 
dialer apk) 

On Thursday, August 30, 2012 7:51:13 AM UTC-5, aeromiles wrote:

 Is anyone working on a fix so that Google Voice will properly log calls on 
 the Galaxy S3? All outbound calls are logging as the GV Gateway number, not 
 the actual call recipients number.


-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: how to make textview clickable

2012-09-23 Thread vaish


 hey evry1..

actually i 've tried onClick property on my textview but still it's not 
wrking.. even i've directly used onclicklistener also on my text view, like 
this-

overWtLink=(TextView) findViewById(R.id.textView6);
public void OverWt(View view)
{
if(view.getId()==R.id.textView6)
{
Intent i=new Intent();
i.setClass(getApplicationContext(), overWtDiet.class);
startActivity(i);
}
} 

can any1 pls let me know, is anythg wrong wid this code, or any alternative 
way to solve this query..

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Installing ADT on Eclipse Juno

2012-09-23 Thread SONJAY SINGH
i am unable to install ADT offline / online everytime same error occurs in 
my eclipse juno 

Cannot complete the install because one or more required items could not be 
found.
  Software being installed: Android Native Development Tools 
20.0.3.v201208082019-427395 (com.android.ide.eclipse.ndk.feature.group 
20.0.3.v201208082019-427395)
  Missing requirement: Android Native Development Tools 
20.0.3.v201208082019-427395 (com.android.ide.eclipse.ndk.feature.group 
20.0.3.v201208082019-427395) requires 'org.eclipse.cdt.feature.group 0.0.0' 
but it could not be found

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Published Android App Question

2012-09-23 Thread Young Shakey
Hi 

I have an Android app in the Play Store, what I would like to know, when I 
change my app, say I completely overhaul the app, keeping the same name, 
would the update fully wipe out the previous version, so the app works for 
previous installed customers and new customers as well.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Which API to install for icecream sandwich?

2012-09-23 Thread Shashi Shekhar
My phone is running 4.0.4 but Android SDK is showing only 4.0 and 4.0.3 to 
download which should in download to run apps in my phone?

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Android: nXn metric over an image .. Which Also move with image.

2012-09-23 Thread umesh rathod
I want a metric or a grid over an image of nXn . As I zoom the image this 
should also get zoom. And this grid should also move with the Image move. 
Is there any way to do this in android.

If image is moving out of the screen this grid should also move out of the 
screen. 

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Modifying YouTube player streaming behavior

2012-09-23 Thread Mark Murphy
Since the YouTube player is not open source:

Step #1: Get a job at Google.

Step #2: Attempt to join whichever team is responsible for
implementing the YouTube player (probably the YouTube team)

Step #3: Work with your teammates to implement your desired change

On Sun, Sep 23, 2012 at 10:04 AM, Shathil Reiut shathil.2...@gmail.com wrote:
 Hi
  I am trying to modify the progressive download behaviour of the YouTube
 player. The idea is to download the 10MB of the content at once. Then tear
 down the TCP connection. When the playback reaches around 9MB, the player
 will send the request again. Any idea how to proceed ?

 Br
 Shathil

 --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 4.1 Available!

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Hitarea in LinearLayout view

2012-09-23 Thread powder366

Possible solutions:

http://stackoverflow.com/questions/12554805/hitarea-in-linearlayout-view

On Sunday, September 23, 2012 8:07:36 PM UTC+2, powder366 wrote:

 Hi, 

 I have defined a LinearLayout with some TextView's spread out. 
 Instead of putting a setOnTouchListener on each specific TextView, I 
 like to divide my LinearLayout in three areas (hitareas). 
 If I hit the top area I do something (in the middle something else 
 etc.). 
 I.e. I'd like to have three listeners for top, middle and bottom and 
 in each area I have any number of Android TextView's (or possible 
 other widgets) laid out. 

 How can I solve this? 

 Many thanks! 


-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Hitarea in LinearLayout view

2012-09-23 Thread powder366

Possible solution:

http://stackoverflow.com/questions/12554805/hitarea-in-linearlayout-view

On Sunday, September 23, 2012 8:07:36 PM UTC+2, powder366 wrote:

 Hi, 

 I have defined a LinearLayout with some TextView's spread out. 
 Instead of putting a setOnTouchListener on each specific TextView, I 
 like to divide my LinearLayout in three areas (hitareas). 
 If I hit the top area I do something (in the middle something else 
 etc.). 
 I.e. I'd like to have three listeners for top, middle and bottom and 
 in each area I have any number of Android TextView's (or possible 
 other widgets) laid out. 

 How can I solve this? 

 Many thanks! 


-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Eclipse setup question

2012-09-23 Thread Harri Smått
Hi,

What happens if you right-click on your project in package explorer? This 
screenshot is from OSX though; http://imgur.com/OrEBt

--
H

On Sep 23, 2012, at 4:27 PM, Jared Greenwald greenwaldja...@gmail.com wrote:
 
 2 - How do I configure the Run button in Eclipse to run the app either on one 
 of my devices or on a configured AVD?  I tried looking through the Run 
 configuration settings, but all of the tutorials I've seen out there are for 
 older versions of Eclipse that don't seem to have the same menu layout.  In 
 the couple replies I got on Stack Overflow, they mention Run - Run 
 Configurations, but I don't seem to have that option in my version (see 
 image).

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Which API to install for icecream sandwich?

2012-09-23 Thread Harri Smått
Hi,

My phone is 4.0.4 too but I'm usually developing with API level 8. And use API 
15 sometimes also.

--
H

On Sep 23, 2012, at 9:33 AM, Shashi Shekhar shashi.carbo...@gmail.com wrote:

 My phone is running 4.0.4 but Android SDK is showing only 4.0 and 4.0.3 to 
 download which should in download to run apps in my phone?

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Advertising opt out

2012-09-23 Thread Francisco Marzoa
You could have -or simply claim to have, since there is no way for us to 
check it- an eCPM of $200 and you will be still wrong: the problem has 
nothing to see with your eCPM, the problem is that you are clearly miss 
understanding the meaning and calculation of such metrics.


On the other hand let me make you a proposal that I did the other time:

Instead of putting an option for disabling ads, just set them DISABLED 
BY DEFAULT, and put an option for enabling them.


This way you could be sure that the 100% of people that enables the ads 
are very interested on those, so your CTR should be increased to the 
highest values ever, and so you will understand why your theory about 
higher CTR meaning higher income is fully WRONG.


Best regards,


On 09/23/2012 02:08 PM, John Coryat wrote:



I don't deny that. But who cares about CPM? If you have the same
amount of C's and less M, the R has not increased, in all likelihood.


Well, I for one care about eCPM. Ours is currently $2.43. If you have 
a better eCPM then perhaps you are right and I am wrong. On the other 
hand, there is no right or wrong, just different approaches.


-John Coryat
--
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, visit this group at
http://groups.google.com/group/android-developers?hl=en 


--
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Help: My app has violated the spam provisions of the Content Policy

2012-09-23 Thread FiltrSoft
lol, it's do as I say, not as I do, with The Google.

On Friday, August 31, 2012 5:25:40 AM UTC-4, b0b wrote:

 For your enjoyment here's what can be found in the description of the 
 Google Maps app:

 Keywords: maps, navigation, places, latitude, directions, indoor maps, 
 local search, Street View, traffic, transit



-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Help: My app has violated the spam provisions of the Content Policy

2012-09-23 Thread Harri Smått
Hi,

I've never played around with keywords but I have to admit I tend to see
huge difference in Google Maps keywords and the application in question
here. For me the latter list seems more of a list of synonyms.

--
H
On Sep 23, 2012 11:48 PM, FiltrSoft kri...@gmail.com wrote:

 lol, it's do as I say, not as I do, with The Google.

 On Friday, August 31, 2012 5:25:40 AM UTC-4, b0b wrote:

 For your enjoyment here's what can be found in the description of the
 Google Maps app:

 Keywords: maps, navigation, places, latitude, directions, indoor maps,
 local search, Street View, traffic, transit

  --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Help: My app has violated the spam provisions of the Content Policy

2012-09-23 Thread b0b
Does it mean that making a list with all words of the dictionary that are 
not synonyms is ok ?

On Sunday, 23 September 2012 22:59:14 UTC+2, Harri Smått wrote:

 Hi,

 I've never played around with keywords but I have to admit I tend to see 
 huge difference in Google Maps keywords and the application in question 
 here. For me the latter list seems more of a list of synonyms.



-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Help: My app has violated the spam provisions of the Content Policy

2012-09-23 Thread Harri Smått
Hi,

I'd like to see application that required the whole dictionary as keywords
to explain it. Otherwise I see keywords were something you need to find a
few good ones only. But as said, I'm not familiar with how keywords affect
searches and it's best I end this discussion on my behalf here.

--
H
On Sep 24, 2012 12:06 AM, b0b pujos.mich...@gmail.com wrote:

 Does it mean that making a list with all words of the dictionary that are
 not synonyms is ok ?

 On Sunday, 23 September 2012 22:59:14 UTC+2, Harri Smått wrote:

 Hi,

 I've never played around with keywords but I have to admit I tend to see
 huge difference in Google Maps keywords and the application in question
 here. For me the latter list seems more of a list of synonyms.

  --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Help: My app has violated the spam provisions of the Content Policy

2012-09-23 Thread Kostya Vasilyev
Market searches are pretty weird, even if you don't consider additional
keywords.

My pet peeve: trying to find, by name, an app that happens to support
themes results in an endless list of Britney Spears Theme for App Name
Pro and the like... The app itself is then buried somewhere on the
zillionth page.

-- K

2012/9/24 Harri Smått har...@gmail.com

 Hi,

 I'd like to see application that required the whole dictionary as keywords
 to explain it. Otherwise I see keywords were something you need to find a
 few good ones only. But as said, I'm not familiar with how keywords affect
 searches and it's best I end this discussion on my behalf here.

 --
 H
 On Sep 24, 2012 12:06 AM, b0b pujos.mich...@gmail.com wrote:

 Does it mean that making a list with all words of the dictionary that are
 not synonyms is ok ?

 On Sunday, 23 September 2012 22:59:14 UTC+2, Harri Smått wrote:

 Hi,

 I've never played around with keywords but I have to admit I tend to see
 huge difference in Google Maps keywords and the application in question
 here. For me the latter list seems more of a list of synonyms.

  --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en

  --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] FLASH_MODE_TORCH doesn?t work in Samsung Galaxy Ace

2012-09-23 Thread Barragan
I haven´t tryed if torch mode is supported, but for example, the aplication 
Tiny flashlight works in Samsung Galaxy Ace, and i don´t know the reason...
I guess that i will have use other mode to use FLASH_MODE_TORCH, but i 
don´t know...

El domingo, 23 de septiembre de 2012 15:58:05 UTC+2, Spooky escribió:

 On Sat, Sep 22, 2012 at 10:18:48AM -0700, Barragan wrote: 
  
  Here my question: 
  I?m doing a flash light aplication, and my aplication works in all 
 devices 
  with flash, but it doesn?t work in some Samsung devices, how Samsung 
 Galaxy 
  Ace. 
  I searched in Internet but i don?t find anything... and maybe help me 
 here. 

 Did you check to see if torch mode is SUPPORTED by its camera device? 
 See getSupportedFlashModes() in Camera.Parameters 
 (
 http://developer.android.com/reference/android/hardware/Camera.Parameters.html)
  

 for more information. 

 You should ALWAYS check to see if a camera parameter you're trying to set 
 is supported for that device BEFORE you try and set it, or you might 
 cause a force close with the camera open, which in most Androids will[1] 
 lock the camera until the user reboots their Android, which, in turn, can 
 lead to a whole lot of p*ssed off users, 1-star ratings, etc. 

 Later, 
--jim 

 [1] While my Acer Iconia A500 tablet was still running Honeycomb, if I 
 had an uncaught exception in my camera app (which is now on-hold 
 until the election in November, after which, it may be pointless to 
 release it at all), a force close would NOT lock the camera.  Once 
 it upgraded to ICS, that changed, and it DOES get locked up now.  So 
 I know it doesn't always happen, but you can bet that it will on most 
 Androids. 

 -- 
 THE SCORE:  ME:  2  CANCER:  0 
 73 DE N5IAL (/4)MiSTie #49997   Running Mac OS X Lion  
 spook...@gmail.com javascript:ICBM/Hurr.: 30.44406N 
 86.59909W 

  No, I'm not going to explain it.  If you can't figure it 
  out, you didn't want to know anyway...  --Larry Wall 

 Android Apps Listing at http://www.jstrack.org/barcodes.html 



-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Can anybody tell me how can i disable BACK button on android?

2012-09-23 Thread Lew
Marty Ballard wrote:
 Wajiha Kanwal wrote:

 Can anybody tell me how can i disable BACK button on android? 

 

  Here is how I've done it in one of my apps:
  
  @Override
   public void onBackPressed() {
  Toast.makeText(this, Back button disabled, press Reset, 
 Toast.LENGTH_LONG).show();
   }


This evades the question of whether you should disable the back button.

To which the answer pretty much always is No.

Assuming you don't want to piss off your users.

-- 
Lew
 

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: SIP DEMO

2012-09-23 Thread vaggos von karajan
* sorry for my mistake.  university.  It's a project for a 
lesson. 

Τη Σάββατο, 22 Σεπτεμβρίου 2012 11:51:25 π.μ. UTC+3, ο χρήστης vaggos von 
karajan έγραψε:

 I have installed the application to my phone (ver 2.3.3) but when i'm 
 calling someone nothing happens the app does not sending requests to my 
 sip server (trixbox)..

 Although i can receive calls fine..

 Can anyboby help me...??? It is a project which i must finish for 
 univercity purposes


-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

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

2012-09-23 Thread Agbenyo koami Edem


-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Access Web Services via SOAP on password-protected server from an Android App

2012-09-23 Thread solnichko
Hi guys,

Does anyone know how I could make it possible to access Web Services via 
SOAP on password-protected server from an Android App.

I am in the process of developing an app that used to access those services 
and suddenly it stopped working. I've tried everything and when I finally 
thought of checking the web service functions from my PC's web browser, it 
asked me for the login details(which it didn't before).
I have spoken to the person who made those changes to the server configs, 
he advised there should be a way around it. 

Please help if you know how I could do so. This is needed for the 
development and testing, the final app will access public web services.

Thanks a lot to everyone.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] text to pdf in android

2012-09-23 Thread Kristopher Micinski
On Sat, Sep 22, 2012 at 7:19 AM, Harri Smått har...@gmail.com wrote:
 Hi,

 I don't want to sound harsh but did you check e.g StackOverflow before
 asking here? Good thing about StackOverflow is that well-formed questions
 asked there show high on Google searches too; android convert text to pdf.

 That said, hope this answer provides some help;

 http://stackoverflow.com/questions/5726411/is-it-possible-to-convert-text-into-pdf-in-android


The comment in the answer to this question is just absolutely priceless.

kris

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Access Web Services via SOAP on password-protected server from an Android App

2012-09-23 Thread TreKing
On Sun, Sep 23, 2012 at 8:19 PM, solnichko lari...@gmail.com wrote:

 I have spoken to the person who made those changes to the server configs,
 he advised there should be a way around it.


Perhaps you can have them advise you what that way around it is, since,
you know, they made the changes. This has nothing to do with Android
specifically.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Which API to install for icecream sandwich?

2012-09-23 Thread TreKing
On Sun, Sep 23, 2012 at 1:33 AM, Shashi Shekhar
shashi.carbo...@gmail.comwrote:

 My phone is running 4.0.4 but Android SDK is showing only 4.0 and 4.0.3 to
 download which should in download to run apps in my phone?


It doesn't matter. Use the latest.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Published Android App Question

2012-09-23 Thread TreKing
On Fri, Sep 21, 2012 at 1:07 PM, Young Shakey williedevonsm...@gmail.comwrote:

 would the update fully wipe out the previous version, so the app works for
 previous installed customers and new customers as well.


What else would an update do?

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How long until downloads/sales report?

2012-09-23 Thread TreKing
On Sat, Sep 22, 2012 at 2:48 PM, Nick Cifonie appsahoymob...@gmail.comwrote:

 We uploaded our 1st apps yesterday and know there have been downloads, but
 none show in the Dev console.  Is there a delay?


http://support.google.com/googleplay/android-developer/bin/answer.py?hl=enanswer=136601

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Displaying menu icon in ICS

2012-09-23 Thread TreKing
On Sun, Sep 23, 2012 at 11:43 AM, dashman erjdri...@gmail.com wrote:

 thanks.

 well if you want to be picky - i was off on my shakespeare also.


Well, if you want to be picky - thanks, well, i, and shakespeare
should all be capitalized.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Best strategy in handling location change

2012-09-23 Thread TreKing
On Sun, Sep 23, 2012 at 1:59 AM, Ichsan ich...@gmail.com wrote:

 Currently, I'm creating an app which alarms user tasks at specific time.
 The time is automatically calculated based on coarse location.


Why are you calculating time based on location? If you better explain your
use case you'll probably get a better response.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Oject Size Measurment

2012-09-23 Thread TreKing
On Fri, Sep 21, 2012 at 11:59 PM, Haris haris...@gmail.com wrote:

 My question is does android have any utility other the opencv for doing
 this...?


No.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] problem in service

2012-09-23 Thread TreKing
On Fri, Sep 21, 2012 at 7:52 AM, rathod kantilal rathod3...@gmail.comwrote:

 I use service in android, I want to do when my application is in
 background, my service is start automatically, but when my application is
 foreground, my service is stop automatically.

 Please if u have any idea or any code, reply me


Activty.onStop() and onStart().
Context.startService() and stopService().

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] using color.xml definitions in string.xml

2012-09-23 Thread TreKing
On Fri, Sep 21, 2012 at 11:40 AM, Robert Greenwalt rgreenw...@google.comwrote:

 Is there a syntax that allows me to reference a color defined in color.xml
 in my string.xml file?


I don't know, but consider using a style that you apply to whatever
TextView or other View you're showing that text in.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: android.app.Application NullPointerException

2012-09-23 Thread TreKing
On Wed, Sep 19, 2012 at 6:54 AM, Heila van der Merwe heilam...@gmail.comwrote:

 So just to clarify: the advantage of using a Singleton object will be that
 if the app is killed, the Singleton object can just be recreated when it is
 needed. So you could use a Singleton object in the Application class to
 assure that it will be initialised when it is needed and the Singleton
 object is still global?


Yes, that's the gist.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Eclipse setup question

2012-09-23 Thread Jared Greenwald
Ah, yes, that seems to be along the lines of what I was looking for.  I was 
able to change the Run Configurations so that it would ask me where I want 
to run the app each time.  Works pretty well, but is there a way to pin 
this to the toolbar?  Not to sound lazy or anything, but this is kinda 
buried.

On Sunday, September 23, 2012 2:52:34 PM UTC-4, Harri Smått wrote:

 Hi, 

 What happens if you right-click on your project in package explorer? This 
 screenshot is from OSX though; http://imgur.com/OrEBt 

 -- 
 H 

 On Sep 23, 2012, at 4:27 PM, Jared Greenwald 
 greenwa...@gmail.comjavascript: 
 wrote: 
  
  2 - How do I configure the Run button in Eclipse to run the app either 
 on one of my devices or on a configured AVD?  I tried looking through the 
 Run configuration settings, but all of the tutorials I've seen out there 
 are for older versions of Eclipse that don't seem to have the same menu 
 layout.  In the couple replies I got on Stack Overflow, they mention Run 
 - Run Configurations, but I don't seem to have that option in my version 
 (see image). 



-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Best strategy in handling location change

2012-09-23 Thread Muhammad Ichsan
To simplify, this is an application which set off alarm by location. The
alarm is determined by user coarse location.
On Sep 24, 2012 10:22 AM, TreKing treking...@gmail.com wrote:

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Best strategy in handling location change

2012-09-23 Thread Kristopher Micinski
wait so then why are you concerned about the time...

kris

On Mon, Sep 24, 2012 at 12:25 AM, Muhammad Ichsan ich...@gmail.com wrote:
 To simplify, this is an application which set off alarm by location. The
 alarm is determined by user coarse location.

 On Sep 24, 2012 10:22 AM, TreKing treking...@gmail.com wrote:

 --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Oject Size Measurment

2012-09-23 Thread Haris
Thanks.

On Saturday, 22 September 2012 10:29:01 UTC+5:30, Haris wrote:


  Hai all...

  I need to develop an application like measure the size of an object with 
 a reference object using camera.That is I need to measure the size 
 of an unknown object by putting a known size object at the same 
 distanceI think I need to use some image processing technique using 
 opencv.. My question is does android have any utility other the opencv 
 for doing this...? 

 Thanks in advance..  


-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Android Battry Usage

2012-09-23 Thread Haris

Hai all.

I have create some application for my android phone and I successfully 
installed it and ran itBut when I look at my battery usage it showing 
my application consumes  22 % of battery. I thought it was running in back 
ground but it's not...Why this happening.. is it my coding problem.

Thanks in advance.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Best strategy in handling location change

2012-09-23 Thread TreKing
On Sun, Sep 23, 2012 at 11:25 PM, Muhammad Ichsan ich...@gmail.com wrote:

 To simplify, this is an application which set off alarm by location. The
 alarm is determined by user coarse location.

Providing less information does not simplify anything.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Android Battry Usage

2012-09-23 Thread Kristopher Micinski
It's hard to tell without more details about your app.. But it's very
possible that your app might not be using that much of the battery,
and you're just not... using much on your device.  That's the danger
of percents...

kris

On Mon, Sep 24, 2012 at 1:10 AM, Haris haris...@gmail.com wrote:

 Hai all.

 I have create some application for my android phone and I successfully
 installed it and ran itBut when I look at my battery usage it showing my
 application consumes  22 % of battery. I thought it was running in back
 ground but it's not...Why this happening.. is it my coding problem.

 Thanks in advance.

 --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Access Web Services via SOAP on password-protected server from an Android App

2012-09-23 Thread William Ferguson
If the Request requires authentication then you're going to have to 
authenticate.
Sounds like you'll need to provide username/password in the Request header.

William

On Monday, September 24, 2012 11:19:14 AM UTC+10, solnichko wrote:

 Hi guys,

 Does anyone know how I could make it possible to access Web Services via 
 SOAP on password-protected server from an Android App.

 I am in the process of developing an app that used to access those 
 services and suddenly it stopped working. I've tried everything and when I 
 finally thought of checking the web service functions from my PC's web 
 browser, it asked me for the login details(which it didn't before).
 I have spoken to the person who made those changes to the server configs, 
 he advised there should be a way around it. 

 Please help if you know how I could do so. This is needed for the 
 development and testing, the final app will access public web services.

 Thanks a lot to everyone.


-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] using color.xml definitions in string.xml

2012-09-23 Thread UgglyNoodle
Another option is to define the string resource as:
string name=my_stringfont fgcolor=#%hSTRING: /font/string

Then, you can insert the colour using:
String.format(getString(R.string.tasksnotify_format_colourful), 
getColor(R.color.my_color_defintion))


On Sunday, September 23, 2012 8:36:04 PM UTC-7, TreKing wrote:

 On Fri, Sep 21, 2012 at 11:40 AM, Robert Greenwalt 
 rgree...@google.comjavascript:
  wrote:

 Is there a syntax that allows me to reference a color defined in 
 color.xml in my string.xml file?


 I don't know, but consider using a style that you apply to whatever 
 TextView or other View you're showing that text in.


-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] usbfs: interface 0 claimed by usbfs while 'vcsFPService' sets config #1

2012-09-23 Thread chain_chelliah
When i start up my service through hyper terminal window the following 
error has been occurred.

*   [  460.987579] usb 1-1.4: usbfs: interface 0 claimed by usbfs while 
'vcsFPService' sets config #1*
*
*
*1. How to fix this error?*
*2. Kindly share why it was happened?*
*
*
*I'm using ,*
*
*
*   Android 4.0 *
*   Kernel version 3.2*
*
*
*Service info,*
*
*
*  This service is useful for invoking the sensor , that connected via 
USB.*
*
*
*
*
*Thanks in advance.*

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en