[android-developers] Re: Avoid app force closed issue.

2013-12-03 Thread 12169
Hi,

first  make your http connection in AsynTask and then properly debugg your 
application. 

On Tuesday, December 3, 2013 10:38:40 AM UTC+5:30, sree wrote:

 Hi friends,
 some times i am faceing a problum.That is when i am getting data from 
 server using web services ,some times my app is force closed due to low 
 internet peers(Low internet signals).how can i handle this problum and how 
 can i avoid app force close problum.

 when my app app is force close at that time alert will display,when i 
 press that alert i will navigate to home screen.


 thank you in advance.


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


[android-developers] Re: RelativeLayout: use layout_below, layout_centerVertical, android:layout_alignParentBottom

2013-12-03 Thread 12169
Hi,
can you please provide the complete code and image what  you want to made.

On Monday, November 18, 2013 5:06:23 PM UTC+5:30, Alex Andro wrote:

 Hi,

 It is my first post here, so if do mistakes like wrong place to post or 
 improper question please forgive me.
 I want to put view1 below view2 that has the property 
 layout_centerVertical=true in a RelativeLayout. I also have an another 
 view, view3 that has the property  android:layout_alignParentBottom .When 
 I set this property to true it invalidates this rule of view1: 

 android:layout_below=@id/view2
 If I change it to false everything is going normal again. Here is the full 
 code: As you can see view3 has nothing to do with any other view so I don't 
 know where cames the dependency from.

   
 ImageView
 android:id=@+id/view2
 android:layout_height=wrap_content
 android:layout_width=wrap_content
 android:adjustViewBounds=true
 android:padding=10dp
 android:layout_alignParentRight=true
 android:layout_centerVertical=true
 android:src=@drawable/image1/

 ImageView
 android:id=@+id/view1
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:layout_alignParentRight=true
 android:layout_below=@id/view2
 android:adjustViewBounds=true
 android:src=@drawable/image2 /

 View
 android:id=@+id/view3
 android:layout_width=10dip
 android:layout_height=10dip
 android:layout_alignParentBottom=true
 android:layout_alignParentRight=true
 android:background=#fff /



-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] BLE support in Android

2013-12-03 Thread Guillermo Polonsky
@MagouyaWare

I've a few words for you too...I'm a computer engineer and I do know how to 
search and google, thanks for those links but they are NOT helpful at all. 
BLE chip comes in 2 different flavor, BLE only and dual which can talk to 
bluetooth 2.1 and BLE as well.
Next time you try to be so smart with those links, use google yourself.
Thanks. Guillermo.

El lunes, 2 de diciembre de 2013 14:29:43 UTC-3, MagouyaWare escribió:

 I have two links for you:

- 

 http://android-dev-tips-and-tricks.blogspot.com/2012/08/so-you-need-help.html
- http://lmgtfy.com/?q=android+BLE+support


 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Tue, Nov 26, 2013 at 4:27 AM, Guillermo Polonsky 
 polo...@gmail.comjavascript:
  wrote:

 Hi, Which is the first Android version with BLE support?
 In particular, Does Samsung galaxy s2 support BLE?
 Thanks in advance. Guillermo

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




-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] need external trigger device

2013-12-03 Thread Dennis
Hi

im working on a game, and i need some sort of trigger attached to the 
android device through the audio inlet or USB.

it only needs to be 1 or 2 microswitches that i can read the state of from 
the app.

i have seen some info on ADK and IOIO (yo-yo) but it seems like overkill.

ideas are welcome. :-)

regards
Dennis

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] GCM Server API key Expiration time

2013-12-03 Thread Bunty syed
Hi all,

Hope doing well..

I want to know whether GCM server API key generated for push notification 
using google project has expiry date/time ??

Thanks  Regards,
Bunty Syed

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] RelativeLayout: use layout_below, layout_centerVertical, android:layout_alignParentBottom

2013-12-03 Thread Alex Andro


https://lh4.googleusercontent.com/-qMFSF96RRwo/Up3ZL-y_jhI/AIg/nfxA0p75EkY/s1600/Untitled.png


https://lh3.googleusercontent.com/-9U7LyAUTDcA/Up3ZV0WuVgI/AIo/3ftZTRdUu-w/s1600/Untitled2.png


Ok, I will post 2 images, I think is the best explanation. 
In the first one, view3 has the attribute  android:layout_alignParentBottom=
false  and view1 is below view2, as it should be.
 In the second image, the only change is on view3 attribute 
android:layout_alignParentBottom=true  and in the image, you can see that 
view1 is not below view2 anymore and somewhere much above it, even the 
attribute android:layout_below=@id/view2 is set, as you can see in the 
print screen. I want view3 to be android:layout_alignParentBottom=true while 
view1 to be android:layout_below=@id/view2 and view2 to be 
android:layout_centerVertical=true. Simple, in the theory!

view1 = pink, view2 = blue, view3 = green.


@12169 The image has no importance. I  used View instead of ImageView in 
the example and the result is the same.



On Monday, December 2, 2013 11:43:58 PM UTC+2, MagouyaWare wrote:

 You did not provide enough information... In what way does the rule for 
 view 1 get invalidated?  What does the layout look like in both cases?  
 Without knowing these things it is going to be very difficult to help, 
 which is probably why you haven't had a response yet...

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Mon, Nov 18, 2013 at 4:36 AM, Alex Andro 
 alexandru...@gmail.comjavascript:
  wrote:

 Hi,

 It is my first post here, so if do mistakes like wrong place to post or 
 improper question please forgive me.
 I want to put view1 below view2 that has the property 
 layout_centerVertical=true in a RelativeLayout. I also have an another 
 view, view3 that has the property  android:layout_alignParentBottom .When 
 I set this property to true it invalidates this rule of view1: 

 android:layout_below=@id/view2
 If I change it to false everything is going normal again. Here is the full 
 code: As you can see view3 has nothing to do with any other view so I don't 
 know where cames the dependency from.


   
 ImageView
 android:id=@+id/view2
 android:layout_height=wrap_content
 android:layout_width=wrap_content
 android:adjustViewBounds=true
 android:padding=10dp
 android:layout_alignParentRight=true
 android:layout_centerVertical=true
 android:src=@drawable/image1/

 ImageView
 android:id=@+id/view1
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:layout_alignParentRight=true
 android:layout_below=@id/view2
 android:adjustViewBounds=true
 android:src=@drawable/image2 /

 View
 android:id=@+id/view3
 android:layout_width=10dip
 android:layout_height=10dip
 android:layout_alignParentBottom=true
 android:layout_alignParentRight=true
 android:background=#fff /

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




-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Confusing with getGlobalVisibleRect, different values

2013-12-03 Thread Emanuel Zienecker
I'm try to zoom a FrameLayout with the following example from der android 
developers site: http://developer.android.com/training/animation/zoom.html

My concrete Problem, in the first time the animation is right, is expand 
from the thumbView, in the second time the animation comes from 'somewhere' 
(middle/top to the center).

i have nearly the same, the differents are, i have an Framelayout instead 
an ImageView and i extract the function to minimize the View back in an 
extra Method. now thats looks like so:

private void zoomImageFromThumb(final View thumbView) {
   
if (mCurrentAnimator != null) {
mCurrentAnimator.cancel();
}

// here i building my custome layout

startBounds = new Rect();
final Rect finalBounds = new Rect();
final Point globalOffset = new Point();

thumbView.getGlobalVisibleRect(startBounds);
findViewById(R.id.container)
.getGlobalVisibleRect(finalBounds, globalOffset);
startBounds.offset(-globalOffset.x, -globalOffset.y);
finalBounds.offset(-globalOffset.x + 15, -globalOffset.y + 60);

float startScale;
if ((float) finalBounds.width() / finalBounds.height()
 (float) startBounds.width() / startBounds.height()) {

startScale = (float) startBounds.height() / 
finalBounds.height();
float startWidth = startScale * finalBounds.width();
float deltaWidth = (startWidth - startBounds.width()) / 2;
startBounds.left -= deltaWidth;
startBounds.right += deltaWidth;
} else {
   
startScale = (float) startBounds.width() / finalBounds.width();
float startHeight = startScale * finalBounds.height();
float deltaHeight = (startHeight - startBounds.height()) / 2;
startBounds.top -= deltaHeight;
startBounds.bottom += deltaHeight;
}

thumbView.setAlpha(0f);
expandedImageView.setVisibility(View.VISIBLE);

expandedImageView.setPivotX(0f);
expandedImageView.setPivotY(0f);

AnimatorSet set = new AnimatorSet();
set
.play(ObjectAnimator.ofFloat(expandedImageView, View.X,
startBounds.left, finalBounds.left))
.with(ObjectAnimator.ofFloat(expandedImageView, View.Y,
startBounds.top, finalBounds.top))
.with(ObjectAnimator.ofFloat(expandedImageView, 
View.SCALE_X,
startScale, 
1f)).with(ObjectAnimator.ofFloat(expandedImageView,
View.SCALE_Y, startScale, 1f));
set.setDuration(mShortAnimationDuration);
set.setInterpolator(new DecelerateInterpolator());
set.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {
mCurrentAnimator = null;
}

@Override
public void onAnimationCancel(Animator animation) {
mCurrentAnimator = null;
}
});
set.start();
mCurrentAnimator = set;
}

the startBounds Variable is global, cause i need this to know where the 
position is for the minimize process. Here the minimize Method:

private void minimizeViewFromThumb(final View thumbView) {
if (mCurrentAnimator != null) {
mCurrentAnimator.cancel();
}

AnimatorSet set = new AnimatorSet();
set.play(ObjectAnimator
.ofFloat(expandedImageView, View.X, 
startBounds.left))
.with(ObjectAnimator
.ofFloat(expandedImageView, 
View.Y,startBounds.top))
.with(ObjectAnimator
.ofFloat(expandedImageView, 
View.SCALE_X, 
startScaleFinal))
.with(ObjectAnimator
.ofFloat(expandedImageView, 
View.SCALE_Y, 
startScaleFinal));
set.setDuration(mShortAnimationDuration);
set.setInterpolator(new DecelerateInterpolator());
set.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {


thumbView.setAlpha(1f);
expandedImageView.setVisibility(View.GONE);
mCurrentAnimator = null;
}

@Override
public void onAnimationCancel(Animator animation) {

Re: [android-developers] help need

2013-12-03 Thread Vo Trung Liem
@Josphat, Please pay for me before asking other pay for you.


On Sat, Jun 8, 2013 at 5:12 PM, Josphat Muchiri jmuchir...@gmail.comwrote:

 all the best


 On Sat, Jun 8, 2013 at 2:52 AM, ramesh babu rameshbabu...@gmail.comwrote:

 google would offer me a better way bro


 On Sat, Jun 8, 2013 at 3:13 PM, Josphat Muchiri jmuchir...@gmail.comwrote:

 have the code but u must pay


 On Sat, Jun 8, 2013 at 2:36 AM, ramesh babu rameshbabu...@gmail.comwrote:

 any guide to code seek/progress bar in mp3 player or sen source code

 --
 --
 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 unsubscribe from this group and stop receiving emails from it, send
 an email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




  --
 --
 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 unsubscribe from this group and stop receiving emails from it, send
 an email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




  --
 --
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




  --
 --
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] How to call from Android Native Dialers, ignore other dialers

2013-12-03 Thread Justin Anderson
While that package name may be correct on the devices you tested, there is
no guarantee that it will be correct on ALL Android devices.  Here is an
example from StackOverflow where the OP was having a problem using the
com.android.phone package:

http://stackoverflow.com/questions/11038286/android-phone-application-intent

Hardware manufacturers can modify the Android OS pretty much however they
want.  If they happen to use the com.android.phone package name then that
is merely a coincidence... nothing is stopping them from changing it to
something else should they choose to do so.

I understand that there are product requirements that sometimes tie your
hands... However, in general I have found that when I receive a product
requirement that goes against Android best practices I am usually able to
explain why it isn't a good idea and am able to get the product requirement
changed.  Sometimes I am successful but there have been times it didn't
work... it would be worth a try.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Mon, Dec 2, 2013 at 10:21 PM, Iqbal Ahmed ask2iq...@gmail.com wrote:

 Hi Mr. Anderson,

 Thanks for your reply,

 I think the package name (com.android.phone) is same on all devices as I
 checked or debug but the dialer package names are different. As I got this
 package name have one OutgoingCallBroadcast class which broadcast the
 Intent.ACTION_CALL and android system find the dialers which implement this
 Intent as per my Knowledge, *If I am saying anything wrong please correct
 me.*

  And I hardcoded the package name because I did not get any option to do
 this task so I used this way. Actually call from the native dialer is a
 product requirement. So I have to implement. If you have any sample code
 related to this, please share with me

 Thanks


 On 2 December 2013 22:57, Justin Anderson magouyaw...@gmail.com wrote:

 Perhaps you should rethink forcing the user to use the native dialer...
 especially where you are hard-coding the package name. Not only is that
 just plain bad practice and really annoying for your end user, but the
 native dialer may not have the same package name on all devices...

 Here is a real-world example: I used to use Google Voice as my default
 option for making phone calls.  I explicitly set it up that way.  If I ever
 came across an app that didn't respect the way I wanted to use my phone it
 was immediately uninstalled and I gave the app an automatic 1 star rating.


 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Wed, Nov 27, 2013 at 10:34 PM, Johnny ask2iq...@gmail.com wrote:



 *Target: Call from native dialer only , bypass all dialers.*

 This is my method to call from Native Dialer , this method bypass the
 chooser dialog as I experienced.

 Intent i = CallUtils.callfromDefaultDialer(ctxt,dat[1]);
 ctxt.startActivity(i);


 public static Intent callfromDefaultDialer(Context ctxt, String no) {

 Intent i = new Intent();
 i.setAction(Intent.ACTION_CALL);
 i.setData(Uri.parse(tel: + no));
 PackageManager pm = ctxt.getPackageManager();
 ListResolveInfo list = pm.queryIntentActivities(i, 0);
 for (ResolveInfo info : list) {
 String pkgnam = info.activityInfo.packageName;
 if (pkgnam.toLowerCase().equals(com.android.phone)) {
 i.setClassName(pkgnam, info.activityInfo.name);
 return i;
 }
 }

return i;
 }


 But some time it gives me option to choose . It gives me two dialog two
 choose, you can see the images in attachment.But second dialog
 (chooser_win.png) I bypass using above code. but when when i get the first
 dialog(call_win.png) then the second dialog(chooser_win.png) auto come
 up(you can say its root of chooser dialog).


 But using below code I bypass the first dialog (call_win.png). But not
 second dialog(chooser_win.png)

 public static Intent callfromDefaultDialer(Context ctxt, String no) {

 ListIntent targetedShareIntents = new ArrayListIntent();

 Intent i = new Intent();
 i.setAction(Intent.ACTION_CALL);
 //i.addCategory(Intent.ACTION_DEFAULT);
 i.setData(Uri.parse(tel: + no));
 PackageManager pm = ctxt.getPackageManager();
 ListResolveInfo list = pm.queryIntentActivities(i, 0);
 for (ResolveInfo info : list) {
 String pkgnam = info.activityInfo.packageName;
 Intent targetedShareIntent = new Intent(Intent.ACTION_CALL);
 if (pkgnam.toLowerCase().equals(com.android.phone)) {
 targetedShareIntent.setData(Uri.parse(tel: + no));
 targetedShareIntent.setClassName(pkgnam,
 info.activityInfo.name);
 targetedShareIntents.add(targetedShareIntent);
 //return targetedShareIntent;
 //i.setClassName(pkgnam, info.activityInfo.name);
 

Re: [android-developers] BLE support in Android

2013-12-03 Thread Justin Anderson

 I've a few words for you too...I'm a computer engineer and I do know how
 to search and google, thanks for those links but they are NOT helpful at
 all.

That's very interesting...  Because the first link in the lmgtfy.com link
tells me that Android 4.3 is the first version of Android that supports
BLE.  That answers your first question.

Since the Galaxy S2 came out BEFORE Android 4.3 then by common sense and
the answer to the first question, it would seem to me that the S2 would not
have BLE regardless of whether the hardware supports it because the S2
is not running Android 4.3.  The S3 isn't even running Android 4.3.  That
answers your second question...

Seems like the links were pretty helpful to me...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Tue, Dec 3, 2013 at 4:06 AM, Guillermo Polonsky polons...@gmail.comwrote:

 @MagouyaWare

 I've a few words for you too...I'm a computer engineer and I do know how
 to search and google, thanks for those links but they are NOT helpful at
 all. BLE chip comes in 2 different flavor, BLE only and dual which can talk
 to bluetooth 2.1 and BLE as well.
 Next time you try to be so smart with those links, use google yourself.
 Thanks. Guillermo.

 El lunes, 2 de diciembre de 2013 14:29:43 UTC-3, MagouyaWare escribió:

 I have two links for you:

- http://android-dev-tips-and-tricks.blogspot.com/2012/08/
so-you-need-help.html
- http://lmgtfy.com/?q=android+BLE+support


 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Tue, Nov 26, 2013 at 4:27 AM, Guillermo Polonsky polo...@gmail.comwrote:

  Hi, Which is the first Android version with BLE support?
 In particular, Does Samsung galaxy s2 support BLE?
 Thanks in advance. Guillermo

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-d...@googlegroups.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 unsubscribe from this group and stop receiving emails from it, send
 an email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


  --
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] BLE support in Android

2013-12-03 Thread Guillermo Polonsky
@MagouyaWare

Android is software, BLE chip is hardware. The cellphone itself can have
the dual chip but the software might not be ready to go at the time of
release, so it can have Android X.X and then in an upgrade make use of BLE
and make full use of BLE dual chip (in case it has it). It would not be the
first time to happen.




On Tue, Dec 3, 2013 at 12:28 PM, Justin Anderson magouyaw...@gmail.comwrote:

 I've a few words for you too...I'm a computer engineer and I do know how
 to search and google, thanks for those links but they are NOT helpful at
 all.

 That's very interesting...  Because the first link in the lmgtfy.com link
 tells me that Android 4.3 is the first version of Android that supports
 BLE.  That answers your first question.

 Since the Galaxy S2 came out BEFORE Android 4.3 then by common sense and
 the answer to the first question, it would seem to me that the S2 would not
 have BLE regardless of whether the hardware supports it because the S2
 is not running Android 4.3.  The S3 isn't even running Android 4.3.  That
 answers your second question...

 Seems like the links were pretty helpful to me...

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Tue, Dec 3, 2013 at 4:06 AM, Guillermo Polonsky polons...@gmail.comwrote:

 @MagouyaWare

 I've a few words for you too...I'm a computer engineer and I do know how
 to search and google, thanks for those links but they are NOT helpful at
 all. BLE chip comes in 2 different flavor, BLE only and dual which can talk
 to bluetooth 2.1 and BLE as well.
 Next time you try to be so smart with those links, use google yourself.
 Thanks. Guillermo.

 El lunes, 2 de diciembre de 2013 14:29:43 UTC-3, MagouyaWare escribió:

 I have two links for you:

- http://android-dev-tips-and-tricks.blogspot.com/2012/08/
so-you-need-help.html
- http://lmgtfy.com/?q=android+BLE+support


 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Tue, Nov 26, 2013 at 4:27 AM, Guillermo Polonsky 
 polo...@gmail.comwrote:

  Hi, Which is the first Android version with BLE support?
 In particular, Does Samsung galaxy s2 support BLE?
 Thanks in advance. Guillermo

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-d...@googlegroups.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 unsubscribe from this group and stop receiving emails from it, send
 an email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


  --
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


  --
 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 a topic in the
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/android-developers/YtRsQ2U8Xhs/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to 

Re: [android-developers] BLE support in Android

2013-12-03 Thread Justin Anderson
Right... but as I pointed out, the S2 is not running Android 4.3 so it
doesn't matter if the hardware supports it.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Tue, Dec 3, 2013 at 8:48 AM, Guillermo Polonsky polons...@gmail.comwrote:

 @MagouyaWare

 Android is software, BLE chip is hardware. The cellphone itself can have
 the dual chip but the software might not be ready to go at the time of
 release, so it can have Android X.X and then in an upgrade make use of BLE
 and make full use of BLE dual chip (in case it has it). It would not be the
 first time to happen.




 On Tue, Dec 3, 2013 at 12:28 PM, Justin Anderson magouyaw...@gmail.comwrote:

 I've a few words for you too...I'm a computer engineer and I do know how
 to search and google, thanks for those links but they are NOT helpful at
 all.

 That's very interesting...  Because the first link in the lmgtfy.comlink 
 tells me that Android 4.3 is the first version of Android that
 supports BLE.  That answers your first question.

 Since the Galaxy S2 came out BEFORE Android 4.3 then by common sense and
 the answer to the first question, it would seem to me that the S2 would not
 have BLE regardless of whether the hardware supports it because the S2
 is not running Android 4.3.  The S3 isn't even running Android 4.3.  That
 answers your second question...

 Seems like the links were pretty helpful to me...

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Tue, Dec 3, 2013 at 4:06 AM, Guillermo Polonsky 
 polons...@gmail.comwrote:

 @MagouyaWare

 I've a few words for you too...I'm a computer engineer and I do know how
 to search and google, thanks for those links but they are NOT helpful at
 all. BLE chip comes in 2 different flavor, BLE only and dual which can talk
 to bluetooth 2.1 and BLE as well.
 Next time you try to be so smart with those links, use google yourself.
 Thanks. Guillermo.

 El lunes, 2 de diciembre de 2013 14:29:43 UTC-3, MagouyaWare escribió:

 I have two links for you:

- http://android-dev-tips-and-tricks.blogspot.com/2012/08/
so-you-need-help.html
- http://lmgtfy.com/?q=android+BLE+support


 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Tue, Nov 26, 2013 at 4:27 AM, Guillermo Polonsky 
 polo...@gmail.comwrote:

  Hi, Which is the first Android version with BLE support?
 In particular, Does Samsung galaxy s2 support BLE?
 Thanks in advance. Guillermo

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-d...@googlegroups.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 unsubscribe from this group and stop receiving emails from it, send
 an email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


  --
 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 unsubscribe from this group and stop receiving emails from it, send
 an email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


  --
 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 a topic in the
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/android-developers/YtRsQ2U8Xhs/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 android-developers+unsubscr...@googlegroups.com.

 For more options, visit https://groups.google.com/groups/opt_out.


  --
 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] BLE support in Android

2013-12-03 Thread Justin Anderson
And the S2 will likely never get that update...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Tue, Dec 3, 2013 at 8:56 AM, Justin Anderson magouyaw...@gmail.comwrote:

 Right... but as I pointed out, the S2 is not running Android 4.3 so it
 doesn't matter if the hardware supports it.

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Tue, Dec 3, 2013 at 8:48 AM, Guillermo Polonsky polons...@gmail.comwrote:

 @MagouyaWare

 Android is software, BLE chip is hardware. The cellphone itself can have
 the dual chip but the software might not be ready to go at the time of
 release, so it can have Android X.X and then in an upgrade make use of BLE
 and make full use of BLE dual chip (in case it has it). It would not be the
 first time to happen.




 On Tue, Dec 3, 2013 at 12:28 PM, Justin Anderson 
 magouyaw...@gmail.comwrote:

 I've a few words for you too...I'm a computer engineer and I do know how
 to search and google, thanks for those links but they are NOT helpful at
 all.

 That's very interesting...  Because the first link in the lmgtfy.comlink 
 tells me that Android 4.3 is the first version of Android that
 supports BLE.  That answers your first question.

 Since the Galaxy S2 came out BEFORE Android 4.3 then by common sense and
 the answer to the first question, it would seem to me that the S2 would not
 have BLE regardless of whether the hardware supports it because the S2
 is not running Android 4.3.  The S3 isn't even running Android 4.3.  That
 answers your second question...

 Seems like the links were pretty helpful to me...

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Tue, Dec 3, 2013 at 4:06 AM, Guillermo Polonsky 
 polons...@gmail.comwrote:

 @MagouyaWare

 I've a few words for you too...I'm a computer engineer and I do know
 how to search and google, thanks for those links but they are NOT helpful
 at all. BLE chip comes in 2 different flavor, BLE only and dual which can
 talk to bluetooth 2.1 and BLE as well.
 Next time you try to be so smart with those links, use google
 yourself.
 Thanks. Guillermo.

 El lunes, 2 de diciembre de 2013 14:29:43 UTC-3, MagouyaWare escribió:

 I have two links for you:

- http://android-dev-tips-and-tricks.blogspot.com/2012/08/
so-you-need-help.html
- http://lmgtfy.com/?q=android+BLE+support


 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Tue, Nov 26, 2013 at 4:27 AM, Guillermo Polonsky polo...@gmail.com
  wrote:

  Hi, Which is the first Android version with BLE support?
 In particular, Does Samsung galaxy s2 support BLE?
 Thanks in advance. Guillermo

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-d...@googlegroups.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 unsubscribe from this group and stop receiving emails from it,
 send an email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


  --
 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 unsubscribe from this group and stop receiving emails from it, send
 an email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


  --
 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 a topic in the
 Google Groups Android Developers group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/android-developers/YtRsQ2U8Xhs/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 android-developers+unsubscr...@googlegroups.com.

 For more options, visit https://groups.google.com/groups/opt_out.


  --
 You received this message because you are subscribed to the Google
 

[android-developers] How long will Android/Google Maps v1 be supported?

2013-12-03 Thread Joe Plante
Hi Folks,

I was just wondering how long we have to migrate apps over to Maps v2 
before Google shuts it off. I am already in the process of updating an app 
to v2, but if there's a date (even ball-parked), it could help with setting 
up deadlines. Thanks.

-- Joe

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: With Updated APK, Can't Purge Previous Data

2013-12-03 Thread Streets Of Boston
If your updated APK has its own SQLite database and your app uses a 
sub-class of SQLiteOpenHelper, you could increase your database version 
each time your update your app (increase version value in SQLiteOpenHelper 
constructor) and implement that sub-class' onUpgrade method to clear out 
data (e.g. delete files or caches, etc). 

http://developer.android.com/reference/android/database/sqlite/SQLiteOpenHelper.html

Note that your implementing the onUpgrade is mainly meant to upgrade the 
SQLite database(s) of your app, but you could do other stuff as well, such 
as deleting files, clearing SharedPreferences, etc.
 

On Monday, December 2, 2013 7:03:58 AM UTC-5, Cayce wrote:

 This is making me crazy. I'm having an app built that is initially 
 downloaded as an empty carrier for different regions of data. The person 
 using the app will then choose the region/data to be purchased, make that 
 in-app purchase, and the region/data loads into the app shell. I have to 
 test each updated APK by going through the process of purchasing a region 
 of data. The problem is that even after deleting the previous install of 
 the previous APK, the newly updated APK shows the previous APK's purchases.

 The only way I've been able to work around this is to create a whole new 
 GMail account with each updated APK, delete the previous accounts on my 
 testing devices, and start over. Aside from the time consuming process this 
 entails, Google requires telephone (voice or text) verification of each 
 newly created GMail account, and only allows one phone number to be used a 
 certain number of times before it won't allow that number any longer. It's 
 about 5 times, I think. I've run out of phone numbers.

 The question: How are other developers dealing with this? How can I purge 
 the data from a previously installed APK? The data isn't in the device, 
 because I did a factory reset this morning thinking I would just do that 
 each time, reloaded a new APK, and the previous in-app purchases showed up.

 Any help would be appreciated.

 Thanks.

 Cayce


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] How long will Android/Google Maps v1 be supported?

2013-12-03 Thread TreKing
On Tue, Dec 3, 2013 at 10:26 AM, Joe Plante joseph.ct...@gmail.com wrote:

 I was just wondering how long we have to migrate apps over to Maps v2
 before Google shuts it off.


You're unlikely to get an official answer, but I don't think it's being
shut off:
https://developers.google.com/maps/documentation/android/v1/
*However, apps using v1 will continue to work on devices.*

If they ever shut if off, apps that have been released but are no longer
updated or maintained, yet are perfectly usable, would break.

-
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Re: With Updated APK, Can't Purge Previous Data

2013-12-03 Thread Mukesh Srivastav
Basically on upgrade move the data to the same DB and let say,if you add
new filed in your sqlite, just update the version of the DB that helps in
retaining the old data.


On Wed, Dec 4, 2013 at 3:45 AM, Streets Of Boston
flyingdutc...@gmail.comwrote:

 If your updated APK has its own SQLite database and your app uses a
 sub-class of SQLiteOpenHelper, you could increase your database version
 each time your update your app (increase version value in SQLiteOpenHelper
 constructor) and implement that sub-class' onUpgrade method to clear out
 data (e.g. delete files or caches, etc).


 http://developer.android.com/reference/android/database/sqlite/SQLiteOpenHelper.html

 Note that your implementing the onUpgrade is mainly meant to upgrade the
 SQLite database(s) of your app, but you could do other stuff as well, such
 as deleting files, clearing SharedPreferences, etc.


 On Monday, December 2, 2013 7:03:58 AM UTC-5, Cayce wrote:

 This is making me crazy. I'm having an app built that is initially
 downloaded as an empty carrier for different regions of data. The person
 using the app will then choose the region/data to be purchased, make that
 in-app purchase, and the region/data loads into the app shell. I have to
 test each updated APK by going through the process of purchasing a region
 of data. The problem is that even after deleting the previous install of
 the previous APK, the newly updated APK shows the previous APK's purchases.

 The only way I've been able to work around this is to create a whole new
 GMail account with each updated APK, delete the previous accounts on my
 testing devices, and start over. Aside from the time consuming process this
 entails, Google requires telephone (voice or text) verification of each
 newly created GMail account, and only allows one phone number to be used a
 certain number of times before it won't allow that number any longer. It's
 about 5 times, I think. I've run out of phone numbers.

 The question: How are other developers dealing with this? How can I purge
 the data from a previously installed APK? The data isn't in the device,
 because I did a factory reset this morning thinking I would just do that
 each time, reloaded a new APK, and the previous in-app purchases showed up.

 Any help would be appreciated.

 Thanks.

 Cayce

  --
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] issue with google play game services

2013-12-03 Thread Mohan Krishna
Hi Everyone,

i have started using google play game services recently,

and i am facing the following error while trying to generate client id, 
please help me figure out what is the pause.

Here is the exception shown : This client ID is globally unique and is 
already in use..

Thanks in advance.


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


[android-developers] Integrate BBM in Android Apps

2013-12-03 Thread Ratheesh Valamchuzhy
Hi All

I am working on Android app in which has an option to connect with BBM
contact(PIN). Is there any API is available for achieve this. How we can do
this in Android . Any help is thankful
-- 
-- 
ωιтн яєgαя∂ѕ
Ratheesh ...

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] issue with google play game services

2013-12-03 Thread TreKing
On Wed, Dec 4, 2013 at 12:30 AM, Mohan Krishna 
mohankrishnayarragu...@gmail.com wrote:

 Here is the exception shown : This client ID is globally unique and is
 already in use..


Did you try doing a search for that error ... ?

-
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: Determine Application State (Foreground/Background) when onNewIntent() is called due to URL scheme

2013-12-03 Thread Piren
Try checking how much time passed between the onPause and onNewIntent, Not 
 100% accurate, but should work for you.

On Wednesday, November 20, 2013 3:55:35 AM UTC+2, Piyush Hari wrote:

 onNewIntent() of MainActivity with launchMode 'singleTop' is called when 
 application is invoked using its registered URL scheme. 

 The order of call is :

 onPause (app is entering in background)
 onNewIntent (open url intent passed)
 onResume (app is in foreground)

 In onNewIntent(), how can one determine if application was running in 
 foreground when the open url intent arrived ?

 If I decide to track the state using a flag inForeground that is 
 initialized to false and set to false in onPause and true in 
 onResume, applicationState will always be background (inForeground will be 
 false in onPause).


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] How to call from Android Native Dialers, ignore other dialers

2013-12-03 Thread Piren
Although i agree with your statement that such an app can be really 
annoying, depending on what needs to be done. this might be mandatory.
A good example of that is a number verification process, where the app 
needs to verify the phone number used on the device. The best way to avoid 
getting the 1 star rating is explain to the user that the outgoing call 
with be through the native dialer and that this is mandatory for the app to 
operate. A reasonable user shouldn't get pissed over that :)

On Tuesday, December 3, 2013 5:23:40 PM UTC+2, MagouyaWare wrote:

 While that package name may be correct on the devices you tested, there is 
 no guarantee that it will be correct on ALL Android devices.  Here is an 
 example from StackOverflow where the OP was having a problem using the 
 com.android.phone package:


 http://stackoverflow.com/questions/11038286/android-phone-application-intent 

 Hardware manufacturers can modify the Android OS pretty much however they 
 want.  If they happen to use the com.android.phone package name then that 
 is merely a coincidence... nothing is stopping them from changing it to 
 something else should they choose to do so.

 I understand that there are product requirements that sometimes tie your 
 hands... However, in general I have found that when I receive a product 
 requirement that goes against Android best practices I am usually able to 
 explain why it isn't a good idea and am able to get the product requirement 
 changed.  Sometimes I am successful but there have been times it didn't 
 work... it would be worth a try.

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Mon, Dec 2, 2013 at 10:21 PM, Iqbal Ahmed ask2...@gmail.comjavascript:
  wrote:

 Hi Mr. Anderson,

 Thanks for your reply,

 I think the package name (com.android.phone) is same on all devices as I 
 checked or debug but the dialer package names are different. As I got this 
 package name have one OutgoingCallBroadcast class which broadcast the 
 Intent.ACTION_CALL and android system find the dialers which implement this 
 Intent as per my Knowledge, *If I am saying anything wrong please 
 correct me.*

  And I hardcoded the package name because I did not get any option to do 
 this task so I used this way. Actually call from the native dialer is a 
 product requirement. So I have to implement. If you have any sample code 
 related to this, please share with me

 Thanks


 On 2 December 2013 22:57, Justin Anderson magou...@gmail.comjavascript:
  wrote:

 Perhaps you should rethink forcing the user to use the native dialer... 
 especially where you are hard-coding the package name. Not only is that 
 just plain bad practice and really annoying for your end user, but the 
 native dialer may not have the same package name on all devices...

 Here is a real-world example: I used to use Google Voice as my default 
 option for making phone calls.  I explicitly set it up that way.  If I ever 
 came across an app that didn't respect the way I wanted to use my phone it 
 was immediately uninstalled and I gave the app an automatic 1 star rating.


 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Wed, Nov 27, 2013 at 10:34 PM, Johnny ask2...@gmail.comjavascript:
  wrote:

 

 *Target: Call from native dialer only , bypass all dialers.*

 This is my method to call from Native Dialer , this method bypass the 
 chooser dialog as I experienced.

 Intent i = CallUtils.callfromDefaultDialer(ctxt,dat[1]);
 ctxt.startActivity(i);


 public static Intent callfromDefaultDialer(Context ctxt, String no) {
 
 Intent i = new Intent();
 i.setAction(Intent.ACTION_CALL);
 i.setData(Uri.parse(tel: + no));
 PackageManager pm = ctxt.getPackageManager();
 ListResolveInfo list = pm.queryIntentActivities(i, 0);
 for (ResolveInfo info : list) {
 String pkgnam = info.activityInfo.packageName;
 if (pkgnam.toLowerCase().equals(com.android.phone)) {
 i.setClassName(pkgnam, info.activityInfo.name);
 return i;
 }
 }
 
return i;
 }


 But some time it gives me option to choose . It gives me two dialog two 
 choose, you can see the images in attachment.But second dialog 
 (chooser_win.png) I bypass using above code. but when when i get the first 
 dialog(call_win.png) then the second dialog(chooser_win.png) auto come 
 up(you can say its root of chooser dialog).


 But using below code I bypass the first dialog (call_win.png). But not 
 second dialog(chooser_win.png)

 public static Intent callfromDefaultDialer(Context ctxt, String no) {
 
 ListIntent targetedShareIntents = new ArrayListIntent();
 
 Intent i = new Intent();
 i.setAction(Intent.ACTION_CALL);
 //i.addCategory(Intent.ACTION_DEFAULT);
 i.setData(Uri.parse(tel: + no));
   

Re: [android-developers] RelativeLayout: use layout_below, layout_centerVertical, android:layout_alignParentBottom

2013-12-03 Thread Piren
You checked this doesn't work on a device right?

You haven't posted the RelativeLayout that holds them, i'm assuming it 
using match_parent and not wrap_content for the height. Either way, try 
wrapping the Relative Layout with a FrameLayout and pass View3 to that 
layout. 

On Tuesday, December 3, 2013 3:17:29 PM UTC+2, Alex Andro wrote:


 https://lh4.googleusercontent.com/-qMFSF96RRwo/Up3ZL-y_jhI/AIg/nfxA0p75EkY/s1600/Untitled.png



 https://lh3.googleusercontent.com/-9U7LyAUTDcA/Up3ZV0WuVgI/AIo/3ftZTRdUu-w/s1600/Untitled2.png


 Ok, I will post 2 images, I think is the best explanation. 
 In the first one, view3 has the attribute  android:layout_
 alignParentBottom=false  and view1 is below view2, as it should be.
  In the second image, the only change is on view3 attribute 
 android:layout_alignParentBottom=true  and in the image, you can see 
 that view1 is not below view2 anymore and somewhere much above it, even 
 the attribute android:layout_below=@id/view2 is set, as you can see in 
 the print screen. I want view3 to be android:layout_alignParentBottom=true 
 while view1 to be android:layout_below=@id/view2 and view2 to be 
 android:layout_centerVertical=true. Simple, in the theory!

 view1 = pink, view2 = blue, view3 = green.


 @12169 The image has no importance. I  used View instead of ImageView in 
 the example and the result is the same.



 On Monday, December 2, 2013 11:43:58 PM UTC+2, MagouyaWare wrote:

 You did not provide enough information... In what way does the rule for 
 view 1 get invalidated?  What does the layout look like in both cases?  
 Without knowing these things it is going to be very difficult to help, 
 which is probably why you haven't had a response yet...

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Mon, Nov 18, 2013 at 4:36 AM, Alex Andro alexandru...@gmail.comwrote:

 Hi,

 It is my first post here, so if do mistakes like wrong place to post or 
 improper question please forgive me.
 I want to put view1 below view2 that has the property 
 layout_centerVertical=true in a RelativeLayout. I also have an 
 another view, view3 that has the property  
 android:layout_alignParentBottom .When I set this property to true it 
 invalidates this rule of view1: 

 android:layout_below=@id/view2
 If I change it to false everything is going normal again. Here is the full 
 code: As you can see view3 has nothing to do with any other view so I don't 
 know where cames the dependency from.


   
 ImageView
 android:id=@+id/view2
 android:layout_height=wrap_content
 android:layout_width=wrap_content
 android:adjustViewBounds=true
 android:padding=10dp
 android:layout_alignParentRight=true
 android:layout_centerVertical=true
 android:src=@drawable/image1/

 ImageView
 android:id=@+id/view1
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:layout_alignParentRight=true
 android:layout_below=@id/view2
 android:adjustViewBounds=true
 android:src=@drawable/image2 /

 View
 android:id=@+id/view3
 android:layout_width=10dip
 android:layout_height=10dip
 android:layout_alignParentBottom=true
 android:layout_alignParentRight=true
 android:background=#fff /

  -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-d...@googlegroups.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 unsubscribe from this group and stop receiving emails from it, send 
 an email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.