[android-developers] Why doesn't Android API publicly allow to listen for incoming SMS?

2012-02-12 Thread Raffaele Sgarro


Recently a question on SO ported this to my attention. Android doesn't have 
a public API for listening to incoming SMS. There used to be an action
android.provider.Telephony.SMS_RECEIVED, but it has been removed from the 
official API and even if it still works, it's obviously not future-proof. I 
don't need this feature right now, but I may in the future, and I find it 
very strange it's not available because:

   1. Android has always encouraged the deep customization of every little 
   part of the system (think of tha launcher, the dialer, the contact app)
   2. There are plenty of alternatives to the standard SMS app already in 
   the Market (not to mention the vendors' ones)

Maybe I am missing something or maybe there's a technical reason - I admit 
not know how SMS works

Originally posted on StackOverflowhttp://stackoverflow.com/q/9243059/315306

-- 
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] debuggable=false

2012-02-12 Thread fei ji
There are a property called debugable of Avd. You can print by adb shell
get prop. I don't if it is the cause of your problem.
在 2012-2-12 下午1:36,Walid Aly walm...@gmail.com写道:


 I set the debuggable attribute to false but still I can debug using
 eclipse
android:debuggable=false 
 so what is actually its effect.?

 Walid

 --
 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: First, prevoius, next, and last buttons

2012-02-12 Thread Raffaele Sgarro
You need a 
View.OnClickListenerhttp://developer.android.com/reference/android/view/View.OnClickListener.html
 that 
queries the database depending on the 
Buttonhttp://developer.android.com/reference/android/widget/Button.html it's 
attached to.
The SQL part is pretty obvious. Once you have the record, you update the 
interface, and this really depends on the kind of record and the view that 
display it. For example if it's a TextView you can simpy change the text. 
If you want you can use a 
ViewSwitcherhttp://developer.android.com/reference/android/widget/ViewSwitcher.html
 to 
add nice animation.

-- 
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: renderscript texture assertion

2012-02-12 Thread Frustaci
Also the callstack crash i get.

02-12 08:50:31.050: I/DEBUG(14348): *** *** *** *** *** *** *** *** *** *** 
*** *** *** *** *** ***
02-12 08:50:31.050: I/DEBUG(14348): Build fingerprint: 
'samsung/GT-I9000/GT-I9000:4.0.3/IML74K/eng.onecosmic.20120204.223407:user/test-keys'
02-12 08:50:31.050: I/DEBUG(14348): pid: 16621, tid: 16898   
com.frustaci.marbleballs 
02-12 08:50:31.054: I/DEBUG(14348): signal 11 (SIGSEGV), code 1 
(SEGV_MAPERR), fault addr 0003
02-12 08:50:31.058: I/DEBUG(14348):  r0   r1 0005  r2 a000  
r3 
02-12 08:50:31.066: I/DEBUG(14348):  r4 0210e640  r5 0210dfdc  r6 0168  
r7 0001
02-12 08:50:31.066: I/DEBUG(14348):  r8 0210dfc8  r9 0021  10 0216540c  
fp 0003b99c
02-12 08:50:31.070: I/DEBUG(14348):  ip 0148  sp 5303cd98  lr 40030010  
pc 400337b6  cpsr a030
02-12 08:50:31.074: I/DEBUG(14348):  d0  7361622f736b7220  d1  
722f7362696c2f61
02-12 08:50:31.074: I/DEBUG(14348):  d2  656a624f73722f74  d3  
632e657361427420
02-12 08:50:31.078: I/DEBUG(14348):  d4  0b540001  d5  

02-12 08:50:31.082: I/DEBUG(14348):  d6    d7  

02-12 08:50:31.085: I/DEBUG(14348):  d8    d9  

02-12 08:50:31.093: I/DEBUG(14348):  d10   d11 

02-12 08:50:31.093: I/DEBUG(14348):  d12   d13 

02-12 08:50:31.093: I/DEBUG(14348):  d14   d15 

02-12 08:50:31.097: I/DEBUG(14348):  d16   d17 
bfacd50ad5f2d0c6
02-12 08:50:31.097: I/DEBUG(14348):  d18 bf2a00afc2d052e3  d19 
3ec6cd878c3b46a7
02-12 08:50:31.097: I/DEBUG(14348):  d20 bf277189e47f60c5  d21 
3ee5224904685c10
02-12 08:50:31.097: I/DEBUG(14348):  d22   d23 
3ef99342e0ee5069
02-12 08:50:31.097: I/DEBUG(14348):  d24 3ef99342e0ee5069  d25 
1a1a1a1a1a1a1a1a
02-12 08:50:31.097: I/DEBUG(14348):  d26 2424242424242423  d27 
3ef99342e0ee5069
02-12 08:50:31.097: I/DEBUG(14348):  d28 0100010001000100  d29 
0100010001000100
02-12 08:50:31.097: I/DEBUG(14348):  d30   d31 
3fe5
02-12 08:50:31.097: I/DEBUG(14348):  scr 6012
02-12 08:50:33.238: I/DEBUG(14348):  #00  pc 000157b6  
/system/lib/libc.so (dlfree)
02-12 08:50:33.238: I/DEBUG(14348):  #01  pc 00015ea0  
/system/lib/libc.so (free)
02-12 08:50:33.242: I/DEBUG(14348):  #02  pc 09ac  
/system/lib/libstdc++.so (_ZdlPvRKSt9nothrow_t)
02-12 08:50:33.242: I/DEBUG(14348):  #03  pc 000205bc  
/system/lib/libRS.so (_ZN7android12renderscript10AllocationD0Ev)
02-12 08:50:33.242: I/DEBUG(14348):  #04  pc 00025f96  
/system/lib/libRS.so 
(_ZN7android12renderscript10ObjectBase11checkDeleteEPKS1_)
02-12 08:50:33.242: I/DEBUG(14348):  #05  pc 00025ff4  
/system/lib/libRS.so (_ZNK7android12renderscript10ObjectBase9decSysRefEv)
02-12 08:50:33.242: I/DEBUG(14348):  #06  pc 00029940  
/system/lib/libRS.so 
(_ZN7android12renderscript14rsrClearObjectEPKNS0_7ContextEPKNS0_6ScriptEPPNS0_10ObjectBaseE)
02-12 08:50:33.242: I/DEBUG(14348):  #07  pc 0002f998  
/system/lib/libRS.so
02-12 08:50:33.242: I/DEBUG(14348): code around pc:
02-12 08:50:33.242: I/DEBUG(14348): 40033794 433dd106 4022f840 f8c4605d 
e021c018  ..=C@.@]`!.
02-12 08:50:33.246: I/DEBUG(14348): 400337a4 f8502a1f d0023022 f1c20852 
fa160119  .*P.0..R...
02-12 08:50:33.246: I/DEBUG(14348): 400337b4 6858f201 0c03f020 d01b45b4 
31040fd1  ..Xh E.1
02-12 08:50:33.246: I/DEBUG(14348): 400337c4 0021f853 0581eb03 0052b110 
e7f04603  S.!...R..F..
02-12 08:50:33.246: I/DEBUG(14348): 400337d4 c164f8df f8dc44fc 42952010 
f843d305  ..d..D... .B..C.
02-12 08:50:33.246: I/DEBUG(14348): code around lr:
02-12 08:50:33.246: I/DEBUG(14348): 4002fff0 e2166903 1a17 e5945000 
e1a02004  .i...P... ..
02-12 08:50:33.246: I/DEBUG(14348): 4003 e2055a02 e1a5 e3851001 
ebffed4e  .Z..N...
02-12 08:50:33.246: I/DEBUG(14348): 40030010 e350 13856002 1a01 
ea09  ..P..`..
02-12 08:50:33.246: I/DEBUG(14348): 40030020 ebfffe8e e1a01004 e1a6 
ebffed4e  N...
02-12 08:50:33.246: I/DEBUG(14348): 40030030 e1a01005 e1a02006 e3a03000 
e155  . ...0U.
02-12 08:50:33.246: I/DEBUG(14348): stack:
02-12 08:50:33.246: I/DEBUG(14348): 5303cd58  0219b740  [heap]
02-12 08:50:33.246: I/DEBUG(14348): 5303cd5c  4c9b8d90  
/system/vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
02-12 08:50:33.246: I/DEBUG(14348): 5303cd60  0210e7f8  [heap]
02-12 08:50:33.246: I/DEBUG(14348): 5303cd64  02168c28  [heap]
02-12 08:50:33.246: I/DEBUG(14348): 5303cd68  0210e7f0  [heap]
02-12 08:50:33.246: I/DEBUG(14348): 5303cd6c  400664c0  
02-12 08:50:33.246: I/DEBUG(14348): 5303cd70  0028  
02-12 08:50:33.246: I/DEBUG(14348): 5303cd74  40066474  
02-12 08:50:33.246: I/DEBUG(14348): 5303cd78  0210e750  [heap]
02-12 08:50:33.246: I/DEBUG(14348): 5303cd7c  50dc4664  
02-12 

Re: [android-developers] Re: Where can I find installed Apps/Widgets sources?

2012-02-12 Thread Kostya Vasilyev
github, grepcode

 the Chrome plugin (links to github):

http://blog.lardev.com/2011/03/21/android-sdk-reference-search-in-chrome/

Or try VirtualBox with a minimal Linux distro.

-- Kostya

9 февраля 2012 г. 20:26 пользователь BobF bobf8...@gmail.com написал:
 For those of us that would like to view the source without setting up a
 Linux or MacOS box ... ?

 --
 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] practical experience with internationalization.

2012-02-12 Thread decastro
I have recently released my first game app (in English) and am now
considering whether our not I should go to the trouble of converting
it for other languages. I would like to hear about people's practical
experience of the process.. for example, were there any unexpected
problems to look out for. What languages were most/least successful.
Was it worth effort? Has someone written about three process in a blog
somewhere?

-- 
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] Sindhi Language Support on Android

2012-02-12 Thread Mark Murphy
You cannot add language support via the Android SDK, which is the
focus of this list. Language support is added at the firmware level.
You can learn more about Android firmware at
http://source.android.com.

On Thu, Feb 9, 2012 at 8:06 AM, Zubair Chandio zubairchan...@gmail.com wrote:
 Can any one tell me that what is the process to create language
 support in Android? I can see Sindhi language fonts/alphabet letters
 when I a open a Sindhi website or receive an sms but the fonts/
 alphabet letters are separated not in a words form. Thats shows that
 fonts/letters are supported by android but full language support for
 Sindhi is not there. Please note that Sindhi is supported by Unicode
 and runs in Windows, Mac and Linux. But not in Android.

 Can any body guide me on 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



-- 
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 3.7 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] How to close activity exit/enter animation?

2012-02-12 Thread Mark Murphy
Try overridePendingTransition():

http://developer.android.com/reference/android/app/Activity.html#overridePendingTransition(int,
int)

On Fri, Feb 10, 2012 at 5:55 AM, wujun wujun8...@gmail.com wrote:
 Hi:
    I'm new in android.  My app includes several activitys, when
 activity A switch to activity B, I am not want the animation show. How
 to close the activity exit/enter animation. thank!

 --
 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 3.7 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] Android Long Running Service and database

2012-02-12 Thread Mark Murphy
On Thu, Feb 9, 2012 at 11:26 AM, t4ure4n t4ur...@googlemail.com wrote:
 I am working on a program which consists of two parts

 Service component will read various system features (CPU usage, RAM
 usage, Number of Running Tasks, Messages Sent, Calls Made etc) every
 pre determined time interval lets say 15 minutes. And save these
 readings/data in a database.

 Activity component will read the data from SQL database file and
 process the information.

 My Questions are

  1.  What kind of service do I have to create that will stay alive
 forever until stopped by the activity it should also automatically
 restart after system reboot?

You don't. For work every 15 minutes, you use AlarmManager and an IntentService.

   2.  Has anyone got an example of service writing data to database?

That would be no different than writing data to a database from
anywhere else in an Android app.

   3.  Can I invoke the parent activity from the service?

Services do not have a parent activity.

-- 
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 3.7 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] new sd card directories

2012-02-12 Thread Mark Murphy
Use mkdir() or mkdirs() methods on File, the way you create
directories anywhere else in a Java-language app.

On Thu, Feb 9, 2012 at 12:06 PM, Dr. Porkenheimer sternhag...@ripon.edu wrote:
 Hey everybody, I saw the discussion on how to create directories in
 android, what is not clear is if you can create a directory within
 external storage like the sd card. I want to make an app that uses a
 special location in the sd card for storing camera captured images but
 I am confused on what the best way to do this is. There seem to be a
 lot of file operations but I do not know which ones to use and what I
 have tried does not 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



-- 
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 3.7 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] ActionBar + Fragments

2012-02-12 Thread Mark Murphy
On Wed, Feb 8, 2012 at 7:29 PM, Stacy Young st...@uberity.com wrote:
 but seeing
 as the outer container must be a fragment

You are mistaken.

 and the limitation of not
 being able to put fragments inside of fragments (if that assumption is
 correct)

That part is correct.

 I'm not seeing how the heck the actionbar tabs is even
 remotely useful on tablets ?!

When the user presses a tab, you replace the current fragment(s) with
different ones. That works whether the main activity area is one
fragment, two fragments, three fragments, four fragments, ..., where
the fragments can be in whatever containers you so choose (e.g.,
LinearLayout).

-- 
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 3.7 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] Re: problem: play pre recorded audio in out going call

2012-02-12 Thread Mark Murphy
On Wed, Feb 8, 2012 at 10:01 PM, Mike NJ dieselmike...@gmail.com wrote:
 It has to be possible if this guy put together an app for an auto call
 answer:

 https://market.android.com/details?id=com.devindia.acrfeature=search_result

 I need the same function...

If you would take the time to read the comments on that app, you will
notice that the app does not work as expected. Most likely, the
developer expected users to use speakerphone mode but forgot to tell
them that. The only way for a device to add audio to the in-call audio
stream is via speakerphone mode.

-- 
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 3.7 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] Use CalendarProvider in android API 10

2012-02-12 Thread Mark Murphy
There is no ContentProvider supporting the contract defined by
CalendarContract on an API Level 10 device.

On Thu, Feb 9, 2012 at 3:40 PM, cb29 chervine@gmail.com wrote:
 Hi,
 I'm currently developing a calendar application using API 15 and the
 CalendarProvider API.
 However, I don't have the required mobile phone to test it.

 So, I'm trying to run it under API 10.
 I added the classes for CalendarProvider (I got them from
 http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.0.1_r1/android/provider/CalendarContract.java)

 Before runtime, i dont have any error in the project, but at runtime I
 get nullpointer exceptions.

 Am I doing something totally wrong? is it even possible?

 --
 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 3.7 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] Questions on creating X509v3Certificate on Android

2012-02-12 Thread Nikolay Elenkov
On Sun, Feb 12, 2012 at 1:31 PM, Qin Ding qindi...@gmail.com wrote:
 I have a need to generate X509v3Certificate on Android device.
 ...
 ...  First the android
 dumps so many ambicuouse classes message and discovered old classes and
 block the code message in the catlog.  All these message are related to the
 bouncycastle.  Then there are a few messages related to my code, generally,
 it does not recognize some methods, and static fields

The Bouncy Castle libs in Android are not part of the public API, and not all
classes are included. Use Spongy Castle to include the full BC provider in your
app and use it to generate certificates, etc. It's exactly the same, only
package names and the provider name have been changed. Details here:

https://github.com/rtyley/spongycastle

-- 
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] Monkey on Android 4.0 (UI/Application Execrciser monkey)

2012-02-12 Thread fei ji
I think you should post the log or the appearance then others can help you.
 在 2012-2-12 下午1:36,Android Tester xswq...@gmail.com写道:

 Hi

 Has anyone tried to run the monkey tool on Android Ice Cream Sandwich?
 I am having trouble running the tool. I am new to Android and would
 like to know the reason behind this issue.

 Has anyone experienced the same issue?

 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

-- 
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: Why are new apps not featured on Android market anymore?

2012-02-12 Thread MobileVisuals
So where can I get an answer? Have you also noticed the change in the
new applications list that I described?

On Feb 11, 10:00 pm, TreKing treking...@gmail.com wrote:
 On Sat, Feb 11, 2012 at 8:11 AM, MobileVisuals 
 eyv...@astralvisuals.comwrote:

  I just want to know why the new and updated apps are not featured anymore?

 You're not going to get an answer to that questions.
 The people that can answer that neither participate in this list nor would
 answer you if they did.

 -
 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] Hello everyone, i am developing an android bluetooth App

2012-02-12 Thread Soyer
Hello folks,


I am developing an android app and i am facing a unexpected
error,try again alter error message, could any have a look on it
and please tell me what i missed.

This is my Code, manifest and main files  and the Logcat bellow:


package android.mgo.helloandroid;

import java.util.Set;

import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;

public class BTDdetecetwithV7Activity extends Activity {
/** Called when the activity is first created. */
// Debugging
private static final String TAG = DeviceListActivity;
private static final boolean D = true;

// Return Intent extra
public static String EXTRA_DEVICE_ADDRESS = device_address;

// Member fields
private BluetoothAdapter mBtAdapter;
private ArrayAdapterString mPairedDevicesArrayAdapter;
private ArrayAdapterString mNewDevicesArrayAdapter;




@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

// Setup the window
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.main);


// Set result CANCELED in case the user backs out
setResult(Activity.RESULT_CANCELED);

// Initialize the button to perform device discovery
Button scanButton = (Button) findViewById(R.id.button_scan);
scanButton.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
doDiscovery();
v.setVisibility(View.GONE);
}
});

// Initialize array adapters. One for already paired devices
and
// one for newly discovered devices
mPairedDevicesArrayAdapter = new ArrayAdapterString(this,
R.layout.main);
mNewDevicesArrayAdapter = new ArrayAdapterString(this,
R.layout.main);

// Find and set up the ListView for paired devices
ListView pairedListView = (ListView)
findViewById(R.id.paired_devices);
pairedListView.setAdapter(mPairedDevicesArrayAdapter);

// Find and set up the ListView for newly discovered devices
ListView newDevicesListView = (ListView)
findViewById(R.id.new_devices);
newDevicesListView.setAdapter(mNewDevicesArrayAdapter);


// Register for broadcasts when a device is discovered
IntentFilter filter = new
IntentFilter(BluetoothDevice.ACTION_FOUND);
this.registerReceiver(mReceiver, filter);


// Register for broadcasts when discovery has finished
filter = new
IntentFilter(BluetoothAdapter.ACTION_DISCOVERY_FINISHED);
this.registerReceiver(mReceiver, filter);

// Get the local Bluetooth adapter
mBtAdapter = BluetoothAdapter.getDefaultAdapter();


// Get a set of currently paired devices
SetBluetoothDevice pairedDevices =
mBtAdapter.getBondedDevices();


// If there are paired devices, add each one to the
ArrayAdapter
if (pairedDevices.size()  0) {
 
findViewById(R.id.title_paired_devices).setVisibility(View.VISIBLE);

for (BluetoothDevice device : pairedDevices) {
mPairedDevicesArrayAdapter.add(device.getName() + \n
+ device.getAddress());
}

} else {
String noDevices =
getResources().getText(R.string.none_paired).toString();
mPairedDevicesArrayAdapter.add(noDevices);
}
}

@Override
protected void onDestroy() {
super.onDestroy();


// Make sure we're not doing discovery anymore
if (mBtAdapter != null) {
mBtAdapter.cancelDiscovery();
}


// Unregister broadcast listeners
this.unregisterReceiver(mReceiver);
}

/**
 * Start device discover with the BluetoothAdapter
 */
private void doDiscovery() {
if (D) Log.d(TAG, doDiscovery());


// Indicate scanning in the title
setProgressBarIndeterminateVisibility(true);
setTitle(R.string.scanning);


// Turn on sub-title for new devices
 
findViewById(R.id.title_new_devices).setVisibility(View.VISIBLE);

// If we're already discovering, stop it
if (mBtAdapter.isDiscovering()) {
mBtAdapter.cancelDiscovery();
}



// Request discover from BluetoothAdapter
mBtAdapter.startDiscovery();

}
// The BroadcastReceiver that listens for discovered devices
and
// changes the title when discovery is finished
private final BroadcastReceiver mReceiver = new
BroadcastReceiver() {
   

Re: [android-developers] practical experience with internationalization.

2012-02-12 Thread Kostya Vasilyev
The Market Console has download statistics broken down per language and 
per country, for your app, vs. all apps in the same category. That would 
be a good starting point with deciding which language to support next.


Other than that, I'd consider German (largest economy in Europe), and 
Spanish (potential users all around the world, including the US).


Once you've got the initial localization done, you can use the new (as 
of ADT 16) Lint tool to find missing translations as you add more 
baseline, US-English strings.


The language-based resource qualifiers do work exactly as advertised, so 
there aren't really any technical challenges here (or at least I haven't 
run into them with my apps).


-- Kostya

12.02.2012 15:29, decastro пишет:

I have recently released my first game app (in English) and am now
considering whether our not I should go to the trouble of converting
it for other languages. I would like to hear about people's practical
experience of the process.. for example, were there any unexpected
problems to look out for. What languages were most/least successful.
Was it worth effort? Has someone written about three process in a blog
somewhere?



--
Kostya Vasilyev

--
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: How to hide three-dot indicator(Option menu indicator) on ICS handsets?

2012-02-12 Thread Kostya Vasilyev

That may or may not be a bug when using the pre-Holo theme, but ...

... the superfluous overflow indicator doesn't show if using one of the 
new Holo themes, and that includes subclasses of PreferenceActivity 
mentioned in the original email.


-- Kostya

11.02.2012 10:52, Zsolt Vasvari пишет:
I think he's saying that the overflow button (top-right corner) is 
showing even if there is nothing to overflow. --

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 


--
Kostya Vasilyev

--
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] Hello everyone, i am developing an android bluetooth App

2012-02-12 Thread Kostya Vasilyev

Here it is.

12.02.2012 18:17, Soyer пишет:

java.lang.RuntimeException: Binary XML file line #14: You must supply
a layout_width attribute.


--
Kostya Vasilyev

--
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 ProgressBar with threads

2012-02-12 Thread niko20
Actually you can update the UI from another thread with either
AsyncTask , or use what is called a Handler, and post a runnable to
the handler. The runnable will then contain the code to update the
progressbar. I usually use the Handler / Runnable method.

-niko

On Feb 10, 2:18 pm, TreKing treking...@gmail.com wrote:
 On Fri, Feb 10, 2012 at 2:14 PM, Isuru Madusanka isurum@gmail.comwrote:

  I am working on ProgressBar class in android, but I can't make it
  progress through 5 seconds and load the application. Everything works
  but the progress bar not progressing.

 You can't update the UI in a different thread. Use an AsyncTask.

 -
 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] Re: Please guide me how to send data(datastream, not files) from a PC to a real android phone via USB.

2012-02-12 Thread vvis
Some words ware typed to be wrong, like WORD, it is WORK.

Sorry..

-- 
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: Unable to execute Bluetooth HDP Demo

2012-02-12 Thread Ming
Thx ALL of you! I get it finally!

On Feb 12, 3:54 pm, Ming ming030...@gmail.com wrote:
 Thx all, with the effort of two days, now I can read the data from the
 device
 But Do you all can get the same data displayed on the screen? I
 cannot  parse the data correctly.
 As I know, the data should follow the ieee100407,but it seems that it
 does not follow 100%...
 I search for the Internet and find the parser implemented in python
 code ,https://gitorious.org/hdpy/hdpy/blobs/master/src/hdp/dummy_ieee10407a...
 I port the code in Java, and I have a list of blood pressure.
 The pressure make senses (SP  MP DP), but all the value is just not
 the value printed on the screen of device.

 Best Regards.

 On Feb 9, 11:04 pm, jfernandez jorge.fernandez.gonza...@gmail.com
 wrote:







  Hi Chenchen and Ming,

  Sorry for the delay. I think you are right Chenchen, I obtain the same
  behaviour, so, I guess the problem is in the Android source code...
  Well, we will wait for a new Android release solving this issue.

  Regards.

  On 9 feb, 15:58, Ming ming030...@gmail.com wrote:

   Exactly same problem with you.
   I am using UA-767-PBT-C
   After connected to the device, I can see the Connection State is
   Connected and Reading data... and a green icon.
   However, I can never see data.
   In log ,I keep receiving dalvikm - GC_CONCURRENT freed 494K ..., and
   sometime even reboot!
   Do u solve the problem? Thank You.

   On Feb 2, 7:05 pm, jfernandez jorge.fernandez.gonza...@gmail.com
   wrote:

Hi all,

I have observed a strange and undesirable behaviour that I'm going to
describe. When anHDPchannel is stablished, the Android system starts
a long proccess of freeing memory (I have lots of Logcat messages like
dalvikm - GC_CONCURRENT freed 494K ...), even in some occasions, the
system crashes and the smartphone is rebooted. I don't know if this is
a problem of my ROM/smartphone (I'm using Android 4.0.3 ICS). Does
anybody has the same problem?

Thanks and regards!

On 15 dic 2011, 18:30, jfernandez jorge.fernandez.gonza...@gmail.com
wrote:

 Hi all,

 I'm executing the BluetoothHDPDemo [1]  (offered from Android 4.0
 Ice Cream Sandwich) in my Android smartphone. When I have registered
 the application in order to receive data, and I have paired the
 biomedical device with the smartphone, I try to open the channel
 connection and I can see that the device starts sending data to the
 smartphone. However, the smartphone isunableto open the channel
 connectionHDP.

 At the end of this message you can see the output obtained in the
 LogCat.

 Has anybody achieved to run successfully this sample about the use of
 theBluetoothHealth Profile API? Any ideas?

 Thanks. Regards.

 [1]http://developer.android.com/resources/samples/BluetoothHDP/index.html

 This is the log that I obtain:

 12-15 16:40:54.048: I/BluetoothHDPService(1105): connectChannel()
 12-15 16:40:54.068: D/BluetoothService(147): CONNECTION_STATE_CHANGE:
 00:80:25:14:A1:BC: 0 - 1
 12-15 16:40:55.169: D/ConnectivityService(147):
 handleInetConditionHoldEnd: net=1, condition=0, published condition=0
 12-15 16:40:59.393: D/BluetoothEventLoop(147): Device property
 changed: 00:80:25:14:A1:BC property: Connected value: true
 12-15 16:41:00.024: D/BluetoothEventLoop(147): Health Device :
 devicePath: 
 /org/bluez/278/hci0/dev_00_80_25_14_A1_BC:channelPath:/org/
 bluez/278/hci0/dev_00_80_25_14_A1_BC/chan3115:existstrue
 12-15 16:41:00.034: E/BluetoothService.cpp(147):
 getChannelApplicationNative
 12-15 16:41:00.044: E/bluetooth_common.cpp(147):
 dbus_func_args_timeout_valist: D-Bus error in Acquire:
 org.bluez.Error.HealthError (Cannot reconnect: MDL is not closed)
 12-15 16:41:00.044: E/BluetoothHealthProfileHandler(147): Error
 obtaining fd for channel:/org/bluez/278/hci0/dev_00_80_25_14_A1_BC/
 chan3115
 12-15 16:41:00.074: E/BluetoothService.cpp(147): destroyChannelNative
 12-15 16:41:00.074: E/BluetoothEventLoop.cpp(147):
 onHealthDeviceConnectionResult: D-Bus error:
 org.bluez.Error.HealthError (Mdl is not created)
 12-15 16:41:00.074: D/BluetoothEventLoop(147):
 onHealthDeviceConnectionResult 2 6001
 12-15 16:41:00.214: D/BluetoothEventLoop(147):
 onHealthDeviceConnectionResult 2 6000
 12-15 16:41:00.214: D/BluetoothEventLoop(147): Health Device : Name of
 Property is: MainChannel Value:/org/bluez/278/hci0/
 dev_00_80_25_14_A1_BC/chan3115

-- 
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: Why are new apps not featured on Android market anymore?

2012-02-12 Thread Harri Smått
On Feb 12, 2012, at 3:14 PM, MobileVisuals wrote:
 So where can I get an answer? Have you also noticed the change in the
 new applications list that I described?

You can always try asking via market.android.com/support but it's possible they 
do not have a proper answer for you. As for myself, I'm rather new to 
publishing applications on Android Market but based on the few apps I've added 
I haven't been exactly happy with the download rate etc. Can't put all the 
blame on users though but can't get away with the fact I was expecting more 
feedback and downloads either.

--
H

-- 
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 ProgressBar with threads

2012-02-12 Thread TreKing
On Sun, Feb 12, 2012 at 9:04 AM, niko20 nikolatesl...@yahoo.com wrote:

 Actually you can update the UI from another thread


Just to be clear, you cannot update the UI from another thread.
What you do, either via an AsyncTask, Handler, or whatever, is indirectly
update the UI via some messaging mechanism that tells the UI to update in
its main thread.

I know this is what you meant, just making it clear for the OP.

-
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] Need full screen after WebView

2012-02-12 Thread atcal
My app has two activities. The main activity uses WebView to interact
with the user. When the user has selected certain options the second
activity is intented.

WebView creates a top margin in the emulator showing battery state and
time (among other things). Under this is the title bar of the web
page. Under this is the web page. When the second activity launches
and the next view is drawn, it only gets access to the area previously
used by the web page (ie not the top margin or title bar). How can I
get to draw on the full 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] Hello everyone, i am developing an android bluetooth App

2012-02-12 Thread Mohamed Gougam
Hello Kostya, sorry i dint get your suggestion, could u instruct me more?

On Sun, Feb 12, 2012 at 7:01 PM, Kostya Vasilyev kmans...@gmail.com wrote:

 Here it is.

 12.02.2012 18:17, Soyer пишет:

  java.lang.RuntimeException: Binary XML file line #14: You must supply
 a layout_width attribute.


 --
 Kostya Vasilyev

 --
 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.comandroid-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://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] Hello everyone, i am developing an android bluetooth App

2012-02-12 Thread Kostya Vasilyev

The error message is quite self-descriptive:


   java.lang.RuntimeException: Binary XML file line #14: *You must
   supply a layout_width attribute*.



And it occurrs on line 14 in your XML file.

So, open your XML layout file and make sure you have layout_width (and 
layout_height) attributes for every view.


-- Kostya


On 02/12/2012 08:02 PM, Mohamed Gougam wrote:

Hello Kostya, sorry i dint get your suggestion, could u instruct me more?

On Sun, Feb 12, 2012 at 7:01 PM, Kostya Vasilyev kmans...@gmail.com 
mailto:kmans...@gmail.com wrote:


Here it is.

12.02.2012 18:17, Soyer пишет:

java.lang.RuntimeException: Binary XML file line #14: You must
supply
a layout_width attribute.


-- 
Kostya Vasilyev


-- 
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
mailto:android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
mailto:android-developers%2bunsubscr...@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] Need full screen after WebView

2012-02-12 Thread Mark Murphy
On Sun, Feb 12, 2012 at 10:59 AM, atcal alan.williams...@ya.com wrote:
 My app has two activities. The main activity uses WebView to interact
 with the user. When the user has selected certain options the second
 activity is intented.

 WebView creates a top margin in the emulator showing battery state and
 time (among other things).

That has nothing to do with WebView. That is the status bar.

 Under this is the title bar of the web
 page. Under this is the web page. When the second activity launches
 and the next view is drawn, it only gets access to the area previously
 used by the web page (ie not the top margin or title bar). How can I
 get to draw on the full screen?

Add android:theme=@android:style/Theme.NoTitleBar.Fullscreen to the
activity in the manifest.

However:

-- On Android 3.0+, you cannot get rid of the system bar

-- On Android 3.0+, this will get rid of the action bar, which may
mean the user will no longer be able to access your options menu items

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

Android 4.0 Programming Books: http://commonsware.com/books

-- 
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: Need full screen after WebView

2012-02-12 Thread atcal


On Feb 12, 5:36 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Sun, Feb 12, 2012 at 10:59 AM, atcal alan.williams...@ya.com wrote:
  My app has two activities. The main activity uses WebView to interact
  with the user. When the user has selected certain options the second
  activity is intented.

  WebView creates a top margin in the emulator showing battery state and
  time (among other things).

 That has nothing to do with WebView. That is the status bar.

  Under this is the title bar of the web
  page. Under this is the web page. When the second activity launches
  and the next view is drawn, it only gets access to the area previously
  used by the web page (ie not the top margin or title bar). How can I
  get to draw on the full screen?

 Add android:theme=@android:style/Theme.NoTitleBar.Fullscreen to the
 activity in the manifest.

 However:

 -- On Android 3.0+, you cannot get rid of the system bar

 -- On Android 3.0+, this will get rid of the action bar, which may
 mean the user will no longer be able to access your options menu items

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

 Android 4.0 Programming Books:http://commonsware.com/books


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] Hello Grid View Tutorial don't work

2012-02-12 Thread Asaf Nassi
I tray the Hello Grid View Tutorial, I using eclipse (even to copy and
paste from the android developer site
http://developer.android.com/resources/tutorials/views/hello-gridview.html
),
but its don't work I get to match error , i don't know what else to
do...

-- 
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] ActionBar + Fragments

2012-02-12 Thread Stacy Young
Thanks Mark, I've since clued in (took a while for first msg to post to the
list) Thanks for the reply!


On Sun, Feb 12, 2012 at 7:16 AM, Mark Murphy mmur...@commonsware.comwrote:

 On Wed, Feb 8, 2012 at 7:29 PM, Stacy Young st...@uberity.com wrote:
  but seeing
  as the outer container must be a fragment

 You are mistaken.

  and the limitation of not
  being able to put fragments inside of fragments (if that assumption is
  correct)

 That part is correct.

  I'm not seeing how the heck the actionbar tabs is even
  remotely useful on tablets ?!

 When the user presses a tab, you replace the current fragment(s) with
 different ones. That works whether the main activity area is one
 fragment, two fragments, three fragments, four fragments, ..., where
 the fragments can be in whatever containers you so choose (e.g.,
 LinearLayout).

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


-- 
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] Hello everyone, i am developing an android bluetooth App

2012-02-12 Thread Mohamed Gougam
Thanks for the reply Kostya, what could the following error refer to,
relating to my code:

02-12 16:33:33.763: E/AndroidRuntime(512): java.lang.RuntimeException:
Unable to start activity
ComponentInfo{android.mgo.helloandroid/android.mgo.helloandroid.BTDdetecetwithV7Activity}:
java.lang.UnsupportedOperationException: addView(View, LayoutParams) is not
supported in AdapterView


On Sun, Feb 12, 2012 at 8:35 PM, Kostya Vasilyev kmans...@gmail.com wrote:

  The error message is quite self-descriptive:



  java.lang.RuntimeException: Binary XML file line #14: *You must supply a
 layout_width attribute*.



 And it occurrs on line 14 in your XML file.

 So, open your XML layout file and make sure you have layout_width (and
 layout_height) attributes for every view.

 -- Kostya



 On 02/12/2012 08:02 PM, Mohamed Gougam wrote:

 Hello Kostya, sorry i dint get your suggestion, could u instruct me more?

 On Sun, Feb 12, 2012 at 7:01 PM, Kostya Vasilyev kmans...@gmail.comwrote:

 Here it is.

 12.02.2012 18:17, Soyer пишет:

  java.lang.RuntimeException: Binary XML file line #14: You must supply
 a layout_width attribute.


   --
 Kostya Vasilyev

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


-- 
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] installing APK without eclipse/android SDK

2012-02-12 Thread John Goche
Hello,

I would like to send my APK to someone by email so that they
may install it using WIndows Vista. I have searched for info on
how they can install the .apk but only found a pointer to downloading
the Astro file manager and installing from there after copying the apk
to the phone's file system eg. via usb. But when the application is
clicked on the message is: the application is not installed. The
phone is a Samsung Galaxy S Plus. Any ideas? (I have already enabled
USB debugging and installation of non market apps in the settings).
Installing to the phone via eclipse works, but I want to be able to do
this from the phone's PC which does not have eclipse.

I would like to be able to just compile the Dalvik APK in eclipse and
send it via email for the user to install it from windows vista.

Any ideas?

Thanks,

JG

-- 
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] installing APK without eclipse/android SDK

2012-02-12 Thread Kostya Vasilyev
Don't they have email configured on their phone?

If so, they can just tap the attachment to start the installation process.

If you insist on them doing it from Windows, there this, The Android
Central Sideload Wonder Machine:

http://www.androidcentral.com/swm

-- K

12 февраля 2012 г. 22:30 пользователь John Goche
johngoch...@googlemail.com написал:
 Hello,

 I would like to send my APK to someone by email so that they
 may install it using WIndows Vista. I have searched for info on
 how they can install the .apk but only found a pointer to downloading
 the Astro file manager and installing from there after copying the apk
 to the phone's file system eg. via usb. But when the application is
 clicked on the message is: the application is not installed. The
 phone is a Samsung Galaxy S Plus. Any ideas? (I have already enabled
 USB debugging and installation of non market apps in the settings).
 Installing to the phone via eclipse works, but I want to be able to do
 this from the phone's PC which does not have eclipse.

 I would like to be able to just compile the Dalvik APK in eclipse and
 send it via email for the user to install it from windows vista.

 Any ideas?

 Thanks,

 JG

 --
 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: Supporting Galaxy Note Issues Due To It Displaying Itself as a LARGE screen layout.

2012-02-12 Thread albnok
Hmmm I just realized that the Samsung Galaxy Tab 7.0 Plus was
released with 3.2 so we can use the -sw qualifier - initially I was
thinking great we gotta do the qualifier dance around the 7.0 Plus
because the Samsung Galaxy Tab 10.1 I have is still stuck on 3.1 and
I thus assumed all Samsung Honeycomb tablets would be at 3.1.

I had access to one of those knockoff 800x480 7 Android 2.2 tablets
(but it is not with me anymore). I don't remember if it acted like the
mdpi device that it should.


On Feb 8, 8:33 am, Dianne Hackborn hack...@android.com wrote:
 On Sun, Feb 5, 2012 at 5:42 AM, albnok alb...@gmail.com wrote:
  Er... since when could we do that? As far as I know the exact
  qualifiers only came about in Android 3.2.

  layout-large-port-xhdpi-1280x800

  I am thinking layout-large-port-xhdpi would make sense, though.

 You should never, ever see a resource qualifier like that.  That is,
 frankly, insane.

 Also mixing density with screen size almost certainly means you are doing
 something on.  I can guarantee that you that there will be device
 configurations in the future that break with such things, because density
 has *nothing* to do with screen size.

 The first this is please, please read the documentation and my blog post
 here:http://android-developers.blogspot.com/2011/07/new-tools-for-managing...

 The blog post includes examples of how to use the new selectors in a
 compatible way with older devices.

 Also, yes, the large size bucket is problematic, as the blog post
 discusses.  There isn't anything we can do to help this for older versions
 of the platform. My suggestion if you need to deal with this is to just
 fall back on doing it programmatically -- define two layouts that are not
 qualified by screen size, and when your code runs look at the actual screen
 size (converted to dp units) and pick the one to use based on that.

 Or alternatively, just forget about large, code against xlarge and the new
 -sw qualifier, and make sure your normal layout resizes reasonably when
 running on a larger screen.

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

-- 
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 do I open a jpeg to use/edit as a bitmap?

2012-02-12 Thread Jim Graham
I've tried loading it as a resource into BitmapFactory, loading it from
assets, res/drawable, res/raw (that one force closed), and God only knows
what else (I lost track).

What I'm trying to to is open a jpeg (one or more of many) as a filter
that will be applied over the camera preview (and after the picture is
taken, applied to the actual result).  Before I can use it, however, I
need to resize it to match the preview size (and later the image size)
and, using a ColorMatrix (such as the one below) to change the image to
be somewhat transparent, and allow the user to adjust it further).

Here's the matrix I think (if I've understood things correectly) will
make the jpeg more or less transparent (I'll be playing around with the
exact values once I get this working):

   1 0 0 0 0
   0 1 0 0 0
   0 0 1 0 0
   0 0 0 0.25 0

I know I'm missing something obvious on loading the jpeg as a bitmap,
but after spending a couple of days in the developers guide, whatever
it is, I've probably seen it and missed it over and over again.

Can anyone please point me in the right direction?

Thanks,
   --jim

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

   Saw something on TV about Psych-os.
 H, Psych OS.  Perhaps the next freeware OS   --me

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] Customizing Select-All / Cut after InputFilter

2012-02-12 Thread Jan Burse

Dear All

I have an EditText with an InputFilter. The InputFilter
restricts the editable area of the edit text to everything
above inputoffset:

public CharSequence filter(CharSequence source, int start, int end,
   Spanned dest, int dstart, int dend) {
if (dstart = inputoffset) {
return null;
} else {
return dest.subSequence(dstart, dend);
}
}

The above works fine, I can indeed not edit anything
above inputoffset. But the system edit action bar
still thinks the full edit text is editable. Namely:

- Cut Action is enabled, even if selection is above input offset.

- Select All Action selects full text, in the present case
  it is desired that only the range inputoffset - text.length
  is selected.

How can I programmatically customize the select all action
and the cut action?

Bye

--
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: Customizing Select-All / Cut after InputFilter

2012-02-12 Thread Jan Burse

Jan Burse schrieb:

- Cut Action is enabled, even if selection is above input offset.

Corr.:
- Cut Action is enabled, even if selection is below input offset.


--
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] installing APK without eclipse/android SDK

2012-02-12 Thread poncho

Hi,

Does this helps?
http://developer.android.com/guide/publishing/app-signing.html#releasecompile

/Poncho
On 02/12/2012 08:30 PM, John Goche wrote:

Hello,

I would like to send my APK to someone by email so that they
may install it using WIndows Vista. I have searched for info on
how they can install the .apk but only found a pointer to downloading
the Astro file manager and installing from there after copying the apk
to the phone's file system eg. via usb. But when the application is
clicked on the message is: the application is not installed. The
phone is a Samsung Galaxy S Plus. Any ideas? (I have already enabled
USB debugging and installation of non market apps in the settings).
Installing to the phone via eclipse works, but I want to be able to do
this from the phone's PC which does not have eclipse.

I would like to be able to just compile the Dalvik APK in eclipse and
send it via email for the user to install it from windows vista.

Any ideas?

Thanks,

JG



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

2012-02-12 Thread aikidoguy
This is my first android app and I feel like it should be simple but I
had my code working then I added two button in my xml file and added a
switch/case clause  and now im getting an error... eclipse error log
is not recording what the error is and no other error messages... the
way my app works is it collects username, password and group and them
it switches to my main xml where I am getting the error... any help
would be appreciated

?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:orientation=vertical android:layout_width=fill_parent
android:layout_height=fill_parent
Button android:id=@+id/retrieve_location_button
android:text=Retrieve Location
android:layout_width=wrap_content
android:layout_height=wrap_content /

TextView android:id=@+id/tvMessage
android:layout_width=wrap_content
android:layout_height=wrap_content android:text=TextView /



TextView android:id=@+id/tvPassworded
android:layout_width=wrap_content
android:layout_height=wrap_content android:text=TextView /


TextView android:id=@+id/tVLast
android:layout_width=wrap_content
android:layout_height=wrap_content android:text=TextView /
TextView android:text=TextView android:id=@+id/tvLat
android:layout_width=wrap_content
android:layout_height=wrap_content/TextView
TextView android:text=TextView android:id=@+id/tvLong
android:layout_width=wrap_content
android:layout_height=wrap_content/TextView
TextView android:text=TextView android:id=@+id/tvconnecting
android:layout_width=wrap_content
android:layout_height=wrap_content/TextView
Button android:text=Pause android:id=@+id/bPause
android:layout_width=fill_parent
android:layout_height=wrap_content/Button
Button android:text=Resume android:id=@+id/bResume
android:layout_width=fill_parent
android:layout_height=wrap_content/Button
Button android:text=Quit android:id=@+id/bQuit
android:layout_width=fill_parent
android:layout_height=wrap_content/Button

/LinearLayout

and I added a switch and case to my  LbsGeocodingActivity class

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;

import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.HttpClient;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.message.BasicNameValuePair;

import android.app.Activity;
import android.content.Context;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.RadioGroup;
import android.widget.RadioGroup.OnCheckedChangeListener;
import android.widget.TextView;
import android.widget.TextView.BufferType;
import android.widget.Toast;

public class LbsGeocodingActivity extends Activity implements
OnClickListener,
OnCheckedChangeListener {

private static final long MINIMUM_DISTANCE_CHANGE_FOR_UPDATES = 1; //
in

// Meters
private static final long MINIMUM_TIME_BETWEEN_UPDATES = 1000; // in

// Milliseconds

protected LocationManager locationManager;

protected Button retrieveLocationButton;
protected Button resumebutton;
protected Button pausebutton;
protected Button quitbutton;

public double longi;
public double lati;
TextView question, test, pwrd, longitudinal, lititudinal;
static TextView connecting;

String gotBread, teat, lockerroom, spotX, spotY;

@Override
public void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);
setContentView(R.layout.main);

retrieveLocationButton = (Button)
findViewById(R.id.retrieve_location_button);
resumebutton =(Button)findViewById(R.id.bResume);
pausebutton=(Button)findViewById(R.id.bPause);
quitbutton=(Button)findViewById(R.id.bQuit);

locationManager = (LocationManager)
getSystemService(Context.LOCATION_SERVICE);


locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,
MINIMUM_TIME_BETWEEN_UPDATES,

Re: [android-developers] unknown error

2012-02-12 Thread TreKing
On Sun, Feb 12, 2012 at 2:18 PM, aikidoguy clayrichmo...@gmail.com wrote:

 now im getting an error...

the way my app works is it collects username, password and group and them
 it switches to my main xml where I am getting the error...


You posted a lot but you failed to mention the actual error you're seeing.
That would be useful information for someone trying to help you.

-
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] Re: unknown error

2012-02-12 Thread aikidoguy
Eclipse is not throwing an error ... when I goto run my app in the
emulator it says it has encountered and error 

On Feb 12, 4:12 pm, TreKing treking...@gmail.com wrote:
 On Sun, Feb 12, 2012 at 2:18 PM, aikidoguy clayrichmo...@gmail.com wrote:
  now im getting an error...

 the way my app works is it collects username, password and group and them

  it switches to my main xml where I am getting the error...

 You posted a lot but you failed to mention the actual error you're seeing.
 That would be useful information for someone trying to help you.

 -
 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: unknown error

2012-02-12 Thread Mark Murphy
On Sun, Feb 12, 2012 at 4:20 PM, aikidoguy clayrichmo...@gmail.com wrote:
 Eclipse is not throwing an error ... when I goto run my app in the
 emulator it says it has encountered and error 

Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
LogCat and look at the stack trace associated with your error.

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

Android 4.0 Programming Books: http://commonsware.com/books

-- 
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: unknown error

2012-02-12 Thread aikidoguy
Event Details says:

Invalid preference page path: XML Syntax

Exception stack trace
An exception stack trace is not available.

On Feb 12, 4:22 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Sun, Feb 12, 2012 at 4:20 PM, aikidoguy clayrichmo...@gmail.com wrote:
  Eclipse is not throwing an error ... when I goto run my app in the
  emulator it says it has encountered and error 

 Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
 LogCat and look at the stack trace associated with your error.

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

 Android 4.0 Programming Books:http://commonsware.com/books

-- 
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: unknown error

2012-02-12 Thread aikidoguy
02-12 16:37:04.666: ERROR/AndroidRuntime(272):
java.lang.RuntimeException: Unable to resume activity
{com.javacodegeeks.android.lbs/
com.javacodegeeks.android.lbs.LbsGeocodingActivity}:
android.app.SuperNotCalledException: Activity
{com.javacodegeeks.android.lbs/
com.javacodegeeks.android.lbs.LbsGeocodingActivity} did not call
through to super.onResume()


On Feb 12, 4:22 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Sun, Feb 12, 2012 at 4:20 PM, aikidoguy clayrichmo...@gmail.com wrote:
  Eclipse is not throwing an error ... when I goto run my app in the
  emulator it says it has encountered and error 

 Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
 LogCat and look at the stack trace associated with your error.

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

 Android 4.0 Programming Books:http://commonsware.com/books

-- 
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: unknown error

2012-02-12 Thread Jonathan S
@Override
public void onResume(){
super.onResume();
showCurrentLocation(); 
} 

-- 
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] Updating the contact list

2012-02-12 Thread Robert Thau
Your update seems to be written on the assumption that there's a single row
in ContactsContract.Data which has both the structured name fields and the
phone number, and which is identified by the contact ID.  Unfortunately,
none of that is true:

First off, the name and the phone number will generally be in separate
ContactsContract.Data rows.  (If there is only one phone number; there may
be none, or there may be more than one, in which case there will be one
ContactsContract.Data row for each, with the mime type set to the value of
ContactsContract.CommonDataKinds.Phone.CONTENT_TYPE to distinguish it from
rows containing, say, email addresses, postal addresses, or ... well,
names.)

Second, you can't set the Contact ID for a ContactsContract.Data row
directly.  You can, instead, set the Raw Contact ID.  Raw Contacts are
contact information associated with a given account.  If you have only one
account on the phone (or none), these will almost always be associated with
distinct Contacts.  However, if you have more than one account (say, a
personal Gmail account and an office exchange account), it's possible that
you'll have an entry for the same person in each account.  In that case,
the contacts ContentProvider will represent the two as separate
RawContacts, but synthesize a single aggregated Contact that includes data
from both.  (How does it know?  By similarity of names, common email
addresses, etc. --- which is not exactly foolproof!)

Some stuff that might be helpful:  A general overview of the data model
(from back when this API was first introduced; the earlier, simpler API it
mentions is deprecated and only partially functional on most modern devices
--- it'll break if there's more than one account):

  http://developer.android.com/resources/articles/contacts.html

A sample app which inserts a new contact:

  http://developer.android.com/resources/samples/ContactManager/index.html

You might also want to review the Javadoc for ContactsContract and its
components, particularly the recommendations for batch updates, etc.

Good luck...

rst

On Sat, Feb 11, 2012 at 1:16 AM, darrinps darri...@gmail.com wrote:

 I am having...mmmdifficulty let's say, updating the contact list.
 I can add to it just fine, but when I go to update it, it processes,
 but makes no change.  Here is my code:

private void continueHandleEdit()
{
ArrayListContentProviderOperation ops = new
 ArrayListContentProviderOperation();

String displayName = firstNameEdit.getText().toString() +  
 + lastNameEdit.getText().toString();
String phoneNumber = phoneNumberEdit.getText().toString();



 ops.add(ContentProviderOperation.newUpdate(ContactsContract.Data.CONTENT_URI)
 .withSelection(Data._ID + =?, new String[]
 {mContactId})
 .withValue(StructuredName.DISPLAY_NAME, displayName)
 .withValue(Phone.NUMBER, phoneNumber)
 .build());

try
{
Log.d(TAG, Applying:  + ops);

ContentProviderResult[] res =
 getContentResolver().applyBatch(ContactsContract.AUTHORITY, ops);

if (res!=null  res[0]!=null)
{
int updated = res[0].count;


Log.d(TAG, Updated  + updated +  row(s));
}
else
{
Log.e(TAG, Contact not updated.);
}

}
catch (RemoteException e)
{
Log.e(TAG, RemoteEception caught:  + e.getMessage() +
 \nCause:  + e.getCause());
}
catch (OperationApplicationException e)
{
Log.e(TAG, OperationApplicationEception caught:  +
 e.getMessage() + \nCause:  + e.getCause());
}

finish();
}

 Now the funny thing is that the log is showing the following:

 [mType: 2, mUri: content://com.android.contacts/data, mSelection:
 _id=?, mExpectedCount: null, mYieldAllowed: false, mValues:
 data1=544687, mValuesBackReferences: null,
 mSelectionArgsBackReferences: null]

 Updated 1 row(s)

 I know that the mContactId value holds the ID of the row as I verified
 it. Also notice that the phone number is in there (544687) but
 where is the display name? I know the variable held the right data as
 I stepped through it and verified that.

 What am I doing wrong?

  It shouldn't be this much of a pain to update a contact! Grr.

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

Re: [android-developers] Re: unknown error

2012-02-12 Thread TreKing
On Sun, Feb 12, 2012 at 3:41 PM, aikidoguy clayrichmo...@gmail.com wrote:

 *com.javacodegeeks.android.lbs.**LbsGeocodingActivity} did not call
 through to super.onResume()*


You should read the stack trace you posted :-)

-
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] J2ME vs Android Java

2012-02-12 Thread Leigh McRae
The java on Android is pretty much j2se.  Some other mobile platforms 
use j2me.  The popularity of j2me seems to be on the down swing.  
Broadly speaking, the difference is that j2se is a super set of j2me. 
The biggest difference that I have found is that j2me doesn't have 
generics and also doesn't support stuff like @Override.


You might consider sticking to j2me if you intend to be sharing some of 
the code on another platform.  That is what I do, sadly, in order to 
support BlackBerry.



On 11/01/2012 7:04 AM, YinKhwin.O wrote:

can someone clear my doubts.
does android have anything to do with J2ME?  Android has its core
java. J2ME is also meant for mobile phones. All are same and why am i
supposed to get confused by these two?  whatif i chose android
platform, do i necessarily need to deal with J2ME?

Thanks for help.



--
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: NFC Emulation mode

2012-02-12 Thread Cadu Silvestre
Without patching and recompiling android source code, none.

Have a look at this discussion, it will clear out all you need to know
about card emulation mode.

http://groups.google.com/group/android-developers/browse_thread/thread/d5fc35a9f16aa467/aa3d01204f83925a#aa3d01204f83925a

On Feb 9, 12:47 pm, Diop Elhadji Bougouma elhadjibougo...@gmail.com
wrote:
 Hi
 I want to know which Phones support NFC Card Emulation mode.

-- 
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] What do you all use for automated testing?

2012-02-12 Thread Todd Grigsby
I use a college kid.  He's getting intern credits.  Highly recommended.
On Jan 9, 2012 1:28 PM, darrinps darri...@gmail.com wrote:

 I'm doing a little research into automated testing and curious to know
 what the folks here use.

 What I am looking for is a tool to allow testers the ability to just
 hit a button to begin recording, bring up our app as normal, input the
 data, and then save the test off by a button click. This of course
 will be done for a LOT of tests that will then be run against new code
 pushes.

 I know there are a couple tools out there that do this sort of thing
 (SeeTest being the one I have looked at today) but I'm wondering if
 there are other alternatives (open source ones in particular...these
 things are big $$$).

 Again, I'm not looking for something that I have to program the tests
 with (plenty of tools for that) but rather something testers without
 programming experience can use to record their tests.

 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

-- 
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]what can i do for account suspension?

2012-02-12 Thread a a
Account suspension
Grounds for suspension

To ensure a positive user experience of all our users, Google Payments
specialists will periodically review merchant accounts. If your account is
found to be in violation of our Terms of
Servicehttps://checkout.google.com/customer/tos/viewdocument.html?family=0.sellertosgl=US
 and 
Policieshttps://support.google.com/checkout/sell/bin/answer.py?answer=1387953,
you will be notified via email of any changes you need to make for your
account to remain in good standing.

Failure to make the requested changes to your account or provide documents
necessary to verify your account or within the stipulated time period may
result in the suspension of your Google Payments account.

What happens when you've been suspended

*Account access*
You will still have access to view all details in your account, including
orders details and your identification information. Please review the email
from our specialists detailing the steps required to restore your account.

*No future transactions accepted*
You will not be able to process any future transactions. However, you may
continue to charge and ship any orders you received prior to the suspension
of your account.

*Limited future payouts*
You may still receive payouts for any outstanding orders. Once you have
been paid out for all your remaining orders, you will not receive any
future payouts.

Terms of service

Per Google Checkout's Terms of Service (U.s. Section 2.3), GPC has the
right (i) to change, suspend or discontinue the Service, in whole or in
part, as necessary to perform maintenance or updates to the Service and
(ii) to impose limits on certain features or restrict access to parts or
all of the Service without notice and without liability. GPC may decline to
process any Payment Transaction in connection with, among other reasons,
fraud prevention activities, applicable law, or GPC policies.

https://support.google.com/checkout/sell/bin/answer.py?hl=enhlrm=zh-Hansanswer=26494#

-- 
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 can i import or export the contacts phone into txt file

2012-02-12 Thread fei ji
I think it's not very hard. Just read the content from ContactsProvider and
write to file using xml lib.

On Fri, Feb 10, 2012 at 2:57 PM, Ketin Febrina ketin.febr...@gmail.comwrote:

 im actually trying to develope import export contacts phone ... can
 you teach us and bring the source code about it ?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@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]what can i do for account suspension?

2012-02-12 Thread Kristopher Micinski
The market people do not follow this list, so anything here will be purely
speculative.

If you account was in violation of the terms of service, it is unlikely
that it will be reinstated: it would be better to just start over with a
new account and new apps..

I believe it is technically possible to get accounts reinstated once you
have proven that nothing in your apps violates any terms of service, though
it is exceedingly rare, from my experience.

As the past has shown, this most frequently happens to people doings things
like selling other people's trademarked images as wallpaper, music, etc..,
through the market.

(For example, I've seen tons of apps get shut down because they were clocks
with backgrounds from some large university, etc...)

kris

On Sun, Feb 12, 2012 at 8:56 PM, a a harvey.a...@gmail.com wrote:


  Account suspension
 Grounds for suspension

 To ensure a positive user experience of all our users, Google Payments
 specialists will periodically review merchant accounts. If your account is
 found to be in violation of our Terms of 
 Servicehttps://checkout.google.com/customer/tos/viewdocument.html?family=0.sellertosgl=US
  and 
 Policieshttps://support.google.com/checkout/sell/bin/answer.py?answer=1387953,
 you will be notified via email of any changes you need to make for your
 account to remain in good standing.

 Failure to make the requested changes to your account or provide documents
 necessary to verify your account or within the stipulated time period may
 result in the suspension of your Google Payments account.

 What happens when you've been suspended

 *Account access*
 You will still have access to view all details in your account, including
 orders details and your identification information. Please review the email
 from our specialists detailing the steps required to restore your account.

 *No future transactions accepted*
 You will not be able to process any future transactions. However, you may
 continue to charge and ship any orders you received prior to the suspension
 of your account.

 *Limited future payouts*
 You may still receive payouts for any outstanding orders. Once you have
 been paid out for all your remaining orders, you will not receive any
 future payouts.

 Terms of service

 Per Google Checkout's Terms of Service (U.s. Section 2.3), GPC has the
 right (i) to change, suspend or discontinue the Service, in whole or in
 part, as necessary to perform maintenance or updates to the Service and
 (ii) to impose limits on certain features or restrict access to parts or
 all of the Service without notice and without liability. GPC may decline to
 process any Payment Transaction in connection with, among other reasons,
 fraud prevention activities, applicable law, or GPC policies.


 https://support.google.com/checkout/sell/bin/answer.py?hl=enhlrm=zh-Hansanswer=26494#

 --
 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: Is this android app possible?

2012-02-12 Thread albnok
I am not sure if this will do the job, but it looks like it has
potential:

https://market.android.com/details?id=com.jrummy.liberty.toolboxpro

Of course, you'd want to root the device first - so you set it to
install your app on boot, and restore the app data for the Launcher,
Browser and Contacts. (Though Contacts might be a lesson in futility,
since it will sync Contacts later...)



On Jan 12, 10:57 am, Yar Lag ya...@hotmail.com wrote:
 My employer asked me to write an Android app for a demo device in our
 store front. He wants the app to do the following (essentially a video
 demo app):

 The app will show a video after it has been idle for a while.
 When a user touches the demo video, it stops and goes to home screen.
 Prevents a user from uninstalling this app.
 Hide the app from the applications list on the home screen.
 At each midnight resets the device to a default configuration (home
 screens, browser history and contacts information)

 Are these 5 things possible?

-- 
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: Image button Issue

2012-02-12 Thread mark2011
Dear fei ji :

Thanks for your kindly response.

I had tried to use dip instead of px, but it doesm't work.

Should I add anything except dip?

BR,
Mark

On Feb 10, 7:31 pm, fei ji ufo22940...@gmail.com wrote:
 Did you use dip when setting height and width of ImageButton?



 On Fri, Feb 10, 2012 at 7:19 PM, mark2011 androidmark2...@gmail.com wrote:
  Dear All :

     I set up the background image, it will automatically adjust to
  match the diffent screens of different devices. But the image set for
  the button is not. Is there any method that I don't need to adjust the
  position of the ImageButton to match the different devices?

  Thanks in advanced.

  BR,
  Mark

  --
  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- Hide quoted text -

 - Show quoted text -

-- 
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: NFC Secure Element

2012-02-12 Thread s.rawat
is  *nfc_jni_transaction_callback() *inside the (HAL)Libnfc-nxp or
framewrok code.?Where is it?Which Android Version?*ICS?? PLz post *
*
*
*Rgds,*
*Saurabh
*..pain is temporary.quitting lasts forever..



On Sat, Feb 11, 2012 at 5:11 PM, Michael Roland mi.rol...@gmail.com wrote:

 Hallo malls,

  I could listen to AID_SELECTED event from NfcService. I am trying to
  send data to SE. I get error that External RF Field detected, what
  does this mean.

 It means that you are trying to access the secure element from two sides
 simultaneously (from an external reader and from the application
 processor). You can only communicate through one interface at a time.

 br
 Michael

 --
 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] 找工作

2012-02-12 Thread ttgdz
  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


Re: [android-developers] 找工作

2012-02-12 Thread fei ji
为什么找得到工作

2012/2/13 ttgdz ttgdztu...@gmail.com

  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

-- 
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] 找工作

2012-02-12 Thread James W.
 你找个,便宜一点的啊!
有了经验就好了

2012/2/13 fei ji ufo22940...@gmail.com:
 为什么找得到工作


 2012/2/13 ttgdz ttgdztu...@gmail.com

  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


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

2012-02-12 Thread mark2011
Dear All :

   I want to write a application to display some information  the
users can set up some data while they click some buttons. If I want to
install this apk into different screen size devices without too much
effort, what kind of layout should I use?

Thanks in advanced.

BR,
Mark

-- 
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] Force close while opening an imageView from a bitmap

2012-02-12 Thread Jim Graham
Background:  what I'm trying to do here is create a bitmap with only one color
at a set alpha channel value (making the bitmap somewhat transparent) for
the entire bitmap.  Unfortunately, when the new bitmap (bmp) is passed to
an imageView, it's NULL (according to logcat).

The following code is from my app, and the error is somewhere in here:

   Bitmap bmp = Bitmap.createBitmap(2048, 1536, Bitmap.Config.ARGB_);
   Canvas mcanvas = new Canvas(bmp);
   Paint paint = new Paint();
   mcanvas.drawBitmap(bmp, 0, 0, paint);
   paint.setARGB(10,28,0,0);
   Matrix matrix = new Matrix();
   matrix.setValues(new float[] {
   1, 0, 0,
   0, 1, 0,
   0, 0, 1
   });
   mcanvas.drawBitmap(bmp, matrix, paint);

   imageView.setImageBitmap(bmp);  // bmp is NULL --- FORCE CLOSE

Can anyone help me spot where I went wrong?  I've been digging through
Bitmap, Bitmap.Config, Paint, Canvas, imageView, example SDK code, and
the book I'm working from, and am not seeing it.

Thanks,
   --jim

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

   Now what *you* need is a proper pint of porter poured in a proper
   pewter porter pot.. --Peter Dalgaard in alt.sysadmin.recovery

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] Re: Modify Audio Settings when my phone gets a call from a specific number

2012-02-12 Thread Jagruti Sangani
Hello,
Is it work for sip calling?Because in that i have still not use
theTelephonyManager  and now i want to get cthe state of calling.So please
reply is it work for sip calling.

On Sat, Feb 11, 2012 at 11:58 PM, Nitin Sethi sethi.5...@gmail.com wrote:

 here it is.. full code I have pasted down... Specifically this line I
 added.

 ((TelephonyManager) context

  .getSystemService(Context.TELEPHONY_SERVICE)).getCallState() ==
 TelephonyManager.CALL_STATE_RINGING

 if (((TelephonyManager) context

  .getSystemService(Context.TELEPHONY_SERVICE)).getCallState() ==
 TelephonyManager.CALL_STATE_RINGING) {

String number = intent

  .getStringExtra(TelephonyManager.EXTRA_INCOMING_NUMBER);

 if (number.equals(+919663487031) ||
 number.equals(9742431366))
 { // My


  // Gf's


  // Number


  // :D
 AudioManager vAudioManager =
 (AudioManager) context

  .getSystemService(Context.AUDIO_SERVICE);
int maxVolume = vAudioManager

  .getStreamMaxVolume(AudioManager.STREAM_RING);


  vAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);

  vAudioManager.setStreamVolume(AudioManager.STREAM_RING,
maxVolume,
 AudioManager.FLAG_SHOW_UI);
} else {
Toast.makeText(context, Forget it,
 Toast.LENGTH_LONG).show();
}

}

 On Feb 11, 6:50 pm, Jagruti Sangani jagruti.sang...@inextrix.com
 wrote:
  Canyou please post the cade about getcallstate()
 
 
 
 
 
 
 
  On Sat, Feb 11, 2012 at 6:16 PM, Nitin Sethi sethi.5...@gmail.com
 wrote:
   Hi All,
 
   I could finally sort out this issue. It so turns out that the
   Broadcast Intent i want to receive doesn't linger for long enough for
   your receiver to consume it and process it. In technical words, the
   intent is NOT STICKY. Hence, I had to get the state using the method
   getCallState() to process the Intent. :)
 
   On Feb 11, 3:59 pm, Nitin Sethi sethi.5...@gmail.com wrote:
Hi All,
 
I have been trying very hard to get it work in my Gingerbread 2.3.5
phone but with no success. I have read all the posts and have come up
with the below code which works very rarely. I suspect it has
permissions issue but could not zero in on the issue which is bugging
me for long.
 
My Manifest:
 
?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
package=utils.self.puttu
android:versionCode=1
android:versionName=1.0 
 
uses-sdk android:minSdkVersion=10 /
 
uses-permission
android:name=android.permission.MODIFY_AUDIO_SETTINGS /
uses-permission
android:name=android.permission.READ_PHONE_STATE /
 
application 
receiver android:name=.PersonalisedSetting 
intent-filter 
action
android:name=android.intent.action.PHONE_STATE /
/intent-filter
/receiver
/application
 
/manifest
 
My Receiver:
 
package utils.self.puttu;
 
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.media.AudioManager;
import android.telephony.TelephonyManager;
import android.widget.Toast;
 
public class PersonalisedSetting extends BroadcastReceiver {
// private PhoneStateListener myListener = null;
@Override
public void onReceive(Context context, Intent intent) {
 
// if
   (intent.getStringExtra(TelephonyManager.EXTRA_STATE) ==
// TelephonyManager.CALL_STATE_RINGING)
 
String number = intent
 
   .getStringExtra(TelephonyManager.EXTRA_INCOMING_NUMBER);
 
if (number.equals(+919742431366) ||
   number.equals(9742431366))
{ // My Gf's Number :D
AudioManager vAudioManager = (AudioManager)
   context
 
   .getSystemService(Context.AUDIO_SERVICE);
int maxVolume = vAudioManager
 
   .getStreamMaxVolume(AudioManager.STREAM_RING);
 
   vAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);
 
   vAudioManager.setStreamVolume(AudioManager.STREAM_RING, maxVolume,
AudioManager.FLAG_SHOW_UI);
} else {
Toast.makeText(context, Forget it,
   Toast.LENGTH_LONG).show();
}
 
}
 
}
 
   --
   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 

回复: Re: [android-developers] 找工作

2012-02-12 Thread underalight
一线城市人口压力大,不过最关键的还是要靠自己的嘴……

2012-02-13



underalight



发件人:James W.
发送时间:2012-02-13 12:40
主题:Re: [android-developers] 找工作
收件人:android-developers
抄送:

 你找个,便宜一点的啊! 
有了经验就好了 

2012/2/13 fei ji ufo22940...@gmail.com: 
 为什么找得到工作 
 
 
 2012/2/13 ttgdz ttgdztu...@gmail.com 
 
  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 
 
 
 -- 
 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

[android-developers] Re: multicasting in android

2012-02-12 Thread sangram
Can someone help with the above query?

regards,
sangram

On Feb 9, 5:06 pm, sangram desais...@gmail.com wrote:
 Hi,
 We have enabled multicast streaming in one of our machines using VLC
 server. We use the following URL for streaming the multicast data.
 rtp://239.1.2.11:5004  udp://239.1.2.11:1234

 But when we pass these links to the VideoView or mediaplayer inandroid, we 
 get the message as Sorry, the video can not be played.

 Is it the case that multicast streaming is not supported inandroid?
 (Though multicastsocket class is present in library) or are we missing
 anything?
 The links play well on the VLC client so we don't think there is any
 issue in VLC server. We are usingandroidv2.3 for development.
 We used the androidsupported Video/audio formats for encoding.
 Here is the brief log output:

 V/PlayerDriver(   95): Completed command PLAYER_SETUP
 status=PVMFSuccess
 V/PVPlayer(   95): setDataSource(rtp://239.1.2.11:5004)
 V/PVPlayer(   95): setVideoSurface(0x55be8)
 V/PVPlayer(   95): setVideoSurface(0x55b90)
 V/PVPlayer(   95): prepareAsync
 V/PVPlayer(   95):   data source = rtp://239.1.2.11:5004
 V/PlayerDriver(   95): Send player code: 3
 V/PlayerDriver(   95): handleSetDataSource
 V/PlayerDriver(   95): handleSetDataSource- scanning for extension
 V/PlayerDriver(   95): HandleInformationalEvent:
 PVMFInfoErrorHandlingStart
 V/PlayerDriver(   95): HandleInformationalEvent: type=26 UNHANDLED
 W/MediaPlayer( 5687): info/warning (1, 26)
 V/PlayerDriver(   95): CommandCompleted
 V/PlayerDriver(   95): Completed command PLAYER_SET_DATA_SOURCE
 status=PVMFErrNotSupported
 E/PlayerDriver(   95): Command PLAYER_SET_DATA_SOURCE completed with
 an error or info PVMFErrNotSupported
 E/MediaPlayer( 5687): error (1, -4)
 V/PVPlayer(   95): run_init s=-2147483648, cancelled=0
 V/PlayerDriver(   95): HandleInformationalEvent:
 PVMFInfoErrorHandlingComplete
 W/PlayerDriver(   95): PVMFInfoErrorHandlingComplete
 I/ActivityManager(  171): Displayed activity
 com.Videostreamingdemo/.VideoViewDemo: 164 ms (total 164 ms)
 I/MediaPlayer( 5687): Info (1,26)
 E/MediaPlayer( 5687): Error (1,-4)
 D/VideoView( 5687): Error: 1,-4

 Regards,
 Sangram

-- 
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 it possible to revert back to Honeycomb without rooting the Mototrola Xoom which got upgraded to ICS?

2012-02-12 Thread Pritam
I upgraded Motorola Xoom to official update of Icecream Sandwich 4.0.3
Now, for some reason I need Honeycomb back on Xoom. How should this be
achieved ?

I did a Factory reset , but this only went back to 4.0.3 with all apps
and settings deleted. I need an official and recommended way which
will not void any warranty or broke the device.
If someone can point to a page/link officially from Google, which
gives steps for this, that would completely answer this question.

-- 
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: Modify Audio Settings when my phone gets a call from a specific number

2012-02-12 Thread Nitin Sethi
I guess it would not work for SIP. You can have a look at the below
link.

http://developer.android.com/reference/android/net/sip/SipSession.State.html


On Feb 13, 9:52 am, Jagruti Sangani jagruti.sang...@inextrix.com
wrote:
 Hello,
 Is it work for sip calling?Because in that i have still not use
 theTelephonyManager  and now i want to get cthe state of calling.So please
 reply is it work for sip calling.







 On Sat, Feb 11, 2012 at 11:58 PM, Nitin Sethi sethi.5...@gmail.com wrote:
  here it is.. full code I have pasted down... Specifically this line I
  added.

  ((TelephonyManager) context

   .getSystemService(Context.TELEPHONY_SERVICE)).getCallState() ==
  TelephonyManager.CALL_STATE_RINGING

  if (((TelephonyManager) context

   .getSystemService(Context.TELEPHONY_SERVICE)).getCallState() ==
  TelephonyManager.CALL_STATE_RINGING) {

                         String number = intent

   .getStringExtra(TelephonyManager.EXTRA_INCOMING_NUMBER);

                          if (number.equals(+919663487031) ||
  number.equals(9742431366))
  { // My

                   // Gf's

                   // Number

                   // :D
                                  AudioManager vAudioManager =
  (AudioManager) context

   .getSystemService(Context.AUDIO_SERVICE);
                                 int maxVolume = vAudioManager

   .getStreamMaxVolume(AudioManager.STREAM_RING);

   vAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);

   vAudioManager.setStreamVolume(AudioManager.STREAM_RING,
                                                 maxVolume,
  AudioManager.FLAG_SHOW_UI);
                         } else {
                                 Toast.makeText(context, Forget it,
  Toast.LENGTH_LONG).show();
                         }

                 }

  On Feb 11, 6:50 pm, Jagruti Sangani jagruti.sang...@inextrix.com
  wrote:
   Canyou please post the cade about getcallstate()

   On Sat, Feb 11, 2012 at 6:16 PM, Nitin Sethi sethi.5...@gmail.com
  wrote:
Hi All,

I could finally sort out this issue. It so turns out that the
Broadcast Intent i want to receive doesn't linger for long enough for
your receiver to consume it and process it. In technical words, the
intent is NOT STICKY. Hence, I had to get the state using the method
getCallState() to process the Intent. :)

On Feb 11, 3:59 pm, Nitin Sethi sethi.5...@gmail.com wrote:
 Hi All,

 I have been trying very hard to get it work in my Gingerbread 2.3.5
 phone but with no success. I have read all the posts and have come up
 with the below code which works very rarely. I suspect it has
 permissions issue but could not zero in on the issue which is bugging
 me for long.

 My Manifest:

 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
     package=utils.self.puttu
     android:versionCode=1
     android:versionName=1.0 

     uses-sdk android:minSdkVersion=10 /

     uses-permission
 android:name=android.permission.MODIFY_AUDIO_SETTINGS /
     uses-permission
 android:name=android.permission.READ_PHONE_STATE /

     application 
         receiver android:name=.PersonalisedSetting 
             intent-filter 
                 action
 android:name=android.intent.action.PHONE_STATE /
             /intent-filter
         /receiver
     /application

 /manifest

 My Receiver:

 package utils.self.puttu;

 import android.content.BroadcastReceiver;
 import android.content.Context;
 import android.content.Intent;
 import android.media.AudioManager;
 import android.telephony.TelephonyManager;
 import android.widget.Toast;

 public class PersonalisedSetting extends BroadcastReceiver {
         // private PhoneStateListener myListener = null;
         @Override
         public void onReceive(Context context, Intent intent) {

                 // if
(intent.getStringExtra(TelephonyManager.EXTRA_STATE) ==
                 // TelephonyManager.CALL_STATE_RINGING)

                 String number = intent

.getStringExtra(TelephonyManager.EXTRA_INCOMING_NUMBER);

                 if (number.equals(+919742431366) ||
number.equals(9742431366))
 { // My Gf's Number :D
                         AudioManager vAudioManager = (AudioManager)
context

.getSystemService(Context.AUDIO_SERVICE);
                         int maxVolume = vAudioManager

.getStreamMaxVolume(AudioManager.STREAM_RING);

vAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);

vAudioManager.setStreamVolume(AudioManager.STREAM_RING, maxVolume,
                                         AudioManager.FLAG_SHOW_UI);
                 } else {
                         Toast.makeText(context, Forget it,
Toast.LENGTH_LONG).show();
                 }

         }

 }

--
You 

[android-developers] serbian language

2012-02-12 Thread Max Kim
Hello

I thought I posted this message but maybe it failed so I am trying
again

these days, our company is considering to support Serbian languages,
both Serbian Cyrillic and Serbian Latin.

in the sdk page(http://developer.android.com/sdk/android-4.0.3.html),
it says
Locale
 Serbian (sr_RS)

I think sr_RS is for Serbian Cyrillic because people say Serbian
Cyrillic is offical
and strings in values-sr of android ICS source look like Serbian
Cyrillic.

now then what locale should be used for Serbian Latin in order to
support it on android manufacturer side ?

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

2012-02-12 Thread fei ji
Using dip instead of px, then the size will change according the dpi value
of specific device. then put your image files in  drawable-mdpi -hdpi
-ldpi, Then android will get the most suitable image when needed. Then
layout is the same as image.

On Mon, Feb 13, 2012 at 12:48 PM, mark2011 androidmark2...@gmail.comwrote:

 Dear All :

   I want to write a application to display some information  the
 users can set up some data while they click some buttons. If I want to
 install this apk into different screen size devices without too much
 effort, what kind of layout should I use?

 Thanks in advanced.

 BR,
 Mark

 --
 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: Re: [android-developers] 找工作

2012-02-12 Thread 涂涛
随便的都找不到,简历石沉大海啊。悲催。

2012/2/13 underalight underali...@163.com

 **
 一线城市人口压力大,不过最关键的还是要靠自己的嘴……

 2012-02-13
  --
  underalight
  --
  *发件人:*James W.
 *发送时间:*2012-02-13 12:40
 *主题:*Re: [android-developers] 找工作
 *收件人:*android-developers
 *抄送:*

   你找个,便宜一点的啊!
 有了经验就好了

 2012/2/13 fei ji ufo22940...@gmail.com:
  为什么找得到工作
 
 
  2012/2/13 ttgdz ttgdztu...@gmail.com
 
   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
 
 
  --
  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


-- 
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] 找工作

2012-02-12 Thread nainfanta
为什么要找工作,自己做应用赚钱




nainfanta

发件人: James W.
发送时间: 2012-02-13 12:38
收件人: android-developers
主题: Re: [android-developers] 找工作
 你找个,便宜一点的啊!
有了经验就好了

2012/2/13 fei ji ufo22940...@gmail.com:
 为什么找得到工作


 2012/2/13 ttgdz ttgdztu...@gmail.com

  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


 --
 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: Re: [android-developers] 找工作

2012-02-12 Thread 涂涛
求教了???android market?

2012/2/13 nainfanta nainfa...@gmail.com

 **
 为什么要找工作,自己做应用赚钱

 --
 nainfanta

  *发件人:* James W. wjn...@gmail.com
 *发送时间:* 2012-02-13 12:38
 *收件人:* android-developers android-developers@googlegroups.com
 *主题:* Re: [android-developers] 找工作
   你找个,便宜一点的啊!
 有了经验就好了

 2012/2/13 fei ji ufo22940...@gmail.com:
  为什么找得到工作
 
 
  2012/2/13 ttgdz ttgdztu...@gmail.com
 
   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
 
 
  --
  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


-- 
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] 找工作

2012-02-12 Thread 微μ漫岭云天
先找个公司,不给钱也给他干。 等干2月熟悉了。 钱自然就来了、

 
 
-- 原始邮件 --
发件人: 涂涛ttgdztu...@gmail.com;
发送时间: 2012年2月13日(星期一) 下午2:04
收件人: android-developersandroid-developers@googlegroups.com; 

主题: Re: Re: [android-developers] 找工作

 
求教了???android market?

2012/2/13 nainfanta nainfa...@gmail.com
   为什么要找工作,自己做应用赚钱
  
 
 nainfanta
  
   发件人: James W.
 发送时间: 2012-02-13 12:38
 收件人: android-developers
 主题: Re: [android-developers] 找工作


   你找个,便宜一点的啊!
 有了经验就好了
  
 2012/2/13 fei ji ufo22940...@gmail.com:
  为什么找得到工作
 
 
  2012/2/13 ttgdz ttgdztu...@gmail.com
 
   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
 
 
  --
  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



 

 -- 
 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: 回复: Re: [android-developers] 找工作

2012-02-12 Thread TU QINGHONG
我们公司在找人,有兴趣,可以聊聊啊,专做Android平台开发

 

From: android-developers@googlegroups.com
[mailto:android-developers@googlegroups.com] On Behalf Of 微μ漫岭云天
Sent: Monday, February 13, 2012 2:22 PM
To: android-developers
Subject: 回复: Re: [android-developers] 找工作

 


先找个公司,不给钱也给他干。 等干2月熟悉了。 钱自然就来了、

 

 

-- 原始邮件 --

发件人: 涂涛ttgdztu...@gmail.com;

发送时间: 2012年2月13日(星期一) 下午2:04

收件人: android-developersandroid-developers@googlegroups.com; 

主题: Re: Re: [android-developers] 找工作

 

求教了???android market?

2012/2/13 nainfanta nainfa...@gmail.com

为什么要找工作,自己做应用赚钱

 

  _  

nainfanta

 

发件人: James W. mailto:wjn...@gmail.com 

发送时间: 2012-02-13 12:38

收件人: android-developers mailto:android-developers@googlegroups.com 

主题: Re: [android-developers] 找工作

 你找个,便宜一点的啊!

有了经验就好了

 

2012/2/13 fei ji ufo22940...@gmail.com:

 为什么找得到工作

 

 

 2012/2/13 ttgdz ttgdztu...@gmail.com

 

  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
mailto:android-developers%2bunsubscr...@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
mailto:android-developers%2bunsubscr...@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
mailto:android-developers%2bunsubscr...@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
mailto:android-developers%2bunsubscr...@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

-- 
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: serbian language

2012-02-12 Thread Zsolt Vasvari
Have you tried sr_RS_Latn or sr_RS_Latin?

On Feb 13, 1:48 pm, Max Kim blurr...@gmail.com wrote:
 Hello

 I thought I posted this message but maybe it failed so I am trying
 again

 these days, our company is considering to support Serbian languages,
 both Serbian Cyrillic and Serbian Latin.

 in the sdk page(http://developer.android.com/sdk/android-4.0.3.html),
 it says
 Locale
  Serbian (sr_RS)

 I think sr_RS is for Serbian Cyrillic because people say Serbian
 Cyrillic is offical
 and strings in values-sr of android ICS source look like Serbian
 Cyrillic.

 now then what locale should be used for Serbian Latin in order to
 support it on android manufacturer side ?

-- 
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: practical experience with internationalization.

2012-02-12 Thread Zsolt Vasvari
In my experience, Russian and Portuguese seem to do very well, much
better than German.  Android seems to be popular in both of those
countries, and people tend to speak no English.

There is a lot more to localization than translation   The
translation part is easy.



On Feb 12, 10:39 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 The Market Console has download statistics broken down per language and
 per country, for your app, vs. all apps in the same category. That would
 be a good starting point with deciding which language to support next.

 Other than that, I'd consider German (largest economy in Europe), and
 Spanish (potential users all around the world, including the US).

 Once you've got the initial localization done, you can use the new (as
 of ADT 16) Lint tool to find missing translations as you add more
 baseline, US-English strings.

 The language-based resource qualifiers do work exactly as advertised, so
 there aren't really any technical challenges here (or at least I haven't
 run into them with my apps).

 -- Kostya

 12.02.2012 15:29, decastro пишет:

  I have recently released my first game app (in English) and am now
  considering whether our not I should go to the trouble of converting
  it for other languages. I would like to hear about people's practical
  experience of the process.. for example, were there any unexpected
  problems to look out for. What languages were most/least successful.
  Was it worth effort? Has someone written about three process in a blog
  somewhere?

 --
 Kostya Vasilyev

-- 
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] calling a servlet from android

2012-02-12 Thread chander
hi all,

i am creating an application, in this i want to use a Servlet which
performs certain action suppose from android client i am passing a
Registration form and then form data will go to the server and then
server gives response to the android client.

i don't have much experience with HttpClient and servlets so please
help me and explain me how i proceed and how i setup all things needed
for this communication?
i am using eclipse JEE edition and in that i have setup a tomcat
server.
if possible please give me some example so that i can understand the
flow.


Thanks
Chandra

-- 
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] Why doesn't Android API publicly allow to listen for incoming SMS?

2012-02-12 Thread DONG HONGJIE
Usually Broadcast Receiver is used to listen to incoming sms, put
android.provider.Telephony.SMS_RECEIVED as your intent filter and your
receiver will catch it.

On Sun, Feb 12, 2012 at 2:21 AM, Raffaele Sgarro
raffaelesga...@gmail.comwrote:

 Recently a question on SO ported this to my attention. Android doesn't
 have a public API for listening to incoming SMS. There used to be an action
 android.provider.Telephony.SMS_RECEIVED, but it has been removed from the
 official API and even if it still works, it's obviously not future-proof. I
 don't need this feature right now, but I may in the future, and I find it
 very strange it's not available because:

1. Android has always encouraged the deep customization of every
little part of the system (think of tha launcher, the dialer, the contact
app)
2. There are plenty of alternatives to the standard SMS app already in
the Market (not to mention the vendors' ones)

 Maybe I am missing something or maybe there's a technical reason - I admit
 not know how SMS works

 Originally posted on StackOverflowhttp://stackoverflow.com/q/9243059/315306

 --
 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: multicasting in android

2012-02-12 Thread Sumedh Jiwane
Hi Sangram,
It seems from the log that handleDataSource is trying to find some
extension in the URL, like .sdp or .m3u8. Since it is missing it is not
able to play. I suggest you to specify RTSP url with .sdp as extension and
then specify your multicast ports in sdp file. I am just guessing. Let me
know whether it works.

Regards,

Sumedh

On Mon, Feb 13, 2012 at 10:50 AM, sangram desais...@gmail.com wrote:

 Can someone help with the above query?

 regards,
 sangram

 On Feb 9, 5:06 pm, sangram desais...@gmail.com wrote:
  Hi,
  We have enabled multicast streaming in one of our machines using VLC
  server. We use the following URL for streaming the multicast data.
  rtp://239.1.2.11:5004  udp://239.1.2.11:1234
 
  But when we pass these links to the VideoView or mediaplayer inandroid,
 we get the message as Sorry, the video can not be played.
 
  Is it the case that multicast streaming is not supported inandroid?
  (Though multicastsocket class is present in library) or are we missing
  anything?
  The links play well on the VLC client so we don't think there is any
  issue in VLC server. We are usingandroidv2.3 for development.
  We used the androidsupported Video/audio formats for encoding.
  Here is the brief log output:
 
  V/PlayerDriver(   95): Completed command PLAYER_SETUP
  status=PVMFSuccess
  V/PVPlayer(   95): setDataSource(rtp://239.1.2.11:5004)
  V/PVPlayer(   95): setVideoSurface(0x55be8)
  V/PVPlayer(   95): setVideoSurface(0x55b90)
  V/PVPlayer(   95): prepareAsync
  V/PVPlayer(   95):   data source = rtp://239.1.2.11:5004
  V/PlayerDriver(   95): Send player code: 3
  V/PlayerDriver(   95): handleSetDataSource
  V/PlayerDriver(   95): handleSetDataSource- scanning for extension
  V/PlayerDriver(   95): HandleInformationalEvent:
  PVMFInfoErrorHandlingStart
  V/PlayerDriver(   95): HandleInformationalEvent: type=26 UNHANDLED
  W/MediaPlayer( 5687): info/warning (1, 26)
  V/PlayerDriver(   95): CommandCompleted
  V/PlayerDriver(   95): Completed command PLAYER_SET_DATA_SOURCE
  status=PVMFErrNotSupported
  E/PlayerDriver(   95): Command PLAYER_SET_DATA_SOURCE completed with
  an error or info PVMFErrNotSupported
  E/MediaPlayer( 5687): error (1, -4)
  V/PVPlayer(   95): run_init s=-2147483648, cancelled=0
  V/PlayerDriver(   95): HandleInformationalEvent:
  PVMFInfoErrorHandlingComplete
  W/PlayerDriver(   95): PVMFInfoErrorHandlingComplete
  I/ActivityManager(  171): Displayed activity
  com.Videostreamingdemo/.VideoViewDemo: 164 ms (total 164 ms)
  I/MediaPlayer( 5687): Info (1,26)
  E/MediaPlayer( 5687): Error (1,-4)
  D/VideoView( 5687): Error: 1,-4
 
  Regards,
  Sangram

 --
 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: 找工作

2012-02-12 Thread Eric Wong (hdmp4.com)
什么背景? 学历? 经验?

我手上有好多Android开发和周边的活,没找到合适的人做。

要是你的价格合理,而你也做得出来,我们可以谈谈。。
不过价格是按项目的,不是按时间付的。

On Feb 12, 11:08 pm, ttgdz ttgdztu...@gmail.com wrote:
   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

Re: [android-developers] Re: 找工作

2012-02-12 Thread 涂涛
经验一年以下,2011毕业的,学历是本科,郑州大学毕业。

2012/2/13 Eric Wong (hdmp4.com) ericwon...@gmail.com

 什么背景? 学历? 经验?

 我手上有好多Android开发和周边的活,没找到合适的人做。

 要是你的价格合理,而你也做得出来,我们可以谈谈。。
 不过价格是按项目的,不是按时间付的。

 On Feb 12, 11:08 pm, ttgdz ttgdztu...@gmail.com wrote:
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


-- 
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: Layout

2012-02-12 Thread mark2011
Dear  fei ji :

   I had tried. But the result isn't what I want. Maybe I
misunderstand your meaning. Could you give me an example? Thanks.

Br,
Mark

On Feb 13, 1:49 pm, fei ji ufo22940...@gmail.com wrote:
 Using dip instead of px, then the size will change according the dpi value
 of specific device. then put your image files in  drawable-mdpi -hdpi
 -ldpi, Then android will get the most suitable image when needed. Then
 layout is the same as image.

 On Mon, Feb 13, 2012 at 12:48 PM, mark2011 androidmark2...@gmail.comwrote:



  Dear All :

    I want to write a application to display some information  the
  users can set up some data while they click some buttons. If I want to
  install this apk into different screen size devices without too much
  effort, what kind of layout should I use?

  Thanks in advanced.

  BR,
  Mark

  --
  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- Hide quoted text -

 - Show quoted text -

-- 
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 start Intent of Packet data network

2012-02-12 Thread Dhaval Varia
My application required to have internet connection.

I need two things:

1.  Check Weather Internet (GPRS Not wifi) is on??
2. If it is off then make it on. OR start Intent to make it on...

Please help...

-- 
Thanks  Best Regards.

Dhaval varia
Assistant Professor
Govt Engineering College,Modasa
(9924343883)

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