[android-developers] Re: I want to make an application can do automated testing.

2013-12-02 Thread 12169
Hi, 

I am able to programmatically inject  keys on the other applications but 
problem how  programmatically i record the events that occur on the screen. 
 

On Monday, December 2, 2013 1:06:38 AM UTC+5:30, 12169 wrote:

 Hi,

 In android i want to make an application that can do automated testing of 
 android applications.
 for this my first step is to record the testing steps that i done on the 
 application and after i have the repeat that steps. 
 any suggestion will be appreciated.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To 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] With Updated APK, Can't Purge Previous Data

2013-12-02 Thread Cayce
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.


[android-developers] Re: ViewPager does not respect WRAP_CONTENT?

2013-12-02 Thread Streets Of Boston
The ViewPager specified WRAP_CONTENT as its width.
What content?

The ViewPager can show more than one page and only one is visible at a 
time. If it had to choose the 'content' to use to figure out how wide the 
WRAP_CONTENT width should be, which page should it use?
WRAP_CONTENT doesn't make sense for a ViewPager.

ViewPager should have a fixed width, either through MATCH_PARENT or through 
a set number of pixels (dpi). If the ViewPager shouldn't occupy the entire 
width of the screen, you could (for example) use a horizontal LinearLayout 
with three child views: Two plain Views; one on the left, one on the right; 
One ViewPager in the middle. Set the layout_widths to all of them to 0dp 
and assign an appropriate layout_weight to all three of them. 


On Friday, November 22, 2013 3:11:43 PM UTC-5, Ab wrote:

 I would like to create a ViewPager whose width wrap's to its contents, and 
 is centered horizontally in it's parent.  The first code snippet uses a 
 LinearLayout to create this effect, as shown in the first screenshot.  The 
 second code snippet is my attempt to do this with a ViewPager instead of 
 the LinearLayout, but the result is not the desired behavior, as shown in 
 the second screenshot.

 Any suggestions as to how I create the first effect, but using a ViewPager?

   @Override
 protected void onCreate(Bundle savedInstanceState) 
 {
 super.onCreate(savedInstanceState);
 
 textView = new TextView(this);
 textView.setLayoutParams(new 
 ViewGroup.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, 
 LinearLayout.LayoutParams.WRAP_CONTENT));
 textView.setText(abcabcabcabcabc);
 textView.setBackgroundColor(Color.YELLOW);
 
 LinearLayout llayout = new LinearLayout(this);
 llayout.setBackgroundColor(Color.BLUE);
 RelativeLayout.LayoutParams layoutParams = new 
 RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, 
 RelativeLayout.LayoutParams.MATCH_PARENT);
 layoutParams.addRule(RelativeLayout.CENTER_HORIZONTAL);
 llayout.setLayoutParams(layoutParams);
 llayout.addView(textView);
 
 layout = new RelativeLayout(this);
 layout.setLayoutParams(new 
 ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 
 ViewGroup.LayoutParams.MATCH_PARENT));
 layout.setBackgroundColor(Color.GREEN);
 layout.addView(llayout);
 
 setContentView(layout);
 }
 
 
 @Override
 protected void onCreate(Bundle savedInstanceState) 
 {
 super.onCreate(savedInstanceState);
 
 textView = new TextView(this);
 textView.setLayoutParams(new 
 ViewGroup.LayoutParams(ViewPager.LayoutParams.WRAP_CONTENT, 
 ViewPager.LayoutParams.WRAP_CONTENT));
 textView.setText(abcabcabcabcabc);
 textView.setBackgroundColor(Color.YELLOW);
 
 ViewPager pager = new ViewPager(this);
 pager.setBackgroundColor(Color.BLUE);
 RelativeLayout.LayoutParams layoutParams = new 
 RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, 
 RelativeLayout.LayoutParams.FILL_PARENT);
 layoutParams.addRule(RelativeLayout.CENTER_HORIZONTAL);
 pager.setLayoutParams(layoutParams);
 pager.setAdapter(new ViewPagerAdapter());
 
 layout = new RelativeLayout(this);
 layout.setLayoutParams(new 
 ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 
 ViewGroup.LayoutParams.MATCH_PARENT));
 layout.setBackgroundColor(Color.GREEN);
 layout.addView(pager);
 
 setContentView(layout);
 }
 
 class ViewPagerAdapter extends PagerAdapter
 {
 @Override
 public int getCount() 
 {
 return 1;
 }
 
 public Object instantiateItem(ViewGroup collection, int 
 position) 
 {
 collection.addView(textView, 0);
 return textView;
 }
 
 @Override
 public void destroyItem(ViewGroup collection, int position, 
 Object view) 
 {
 collection.removeView((View) view);
 }
 
 @Override
 public boolean isViewFromObject(View view, Object object) 
 {
 return (view==object);
 }
 
 @Override
 public void finishUpdate(ViewGroup arg0) {}
 
 
 @Override
 public void restoreState(Parcelable arg0, ClassLoader arg1) {}
 
 @Override
 public Parcelable saveState() 
 {
 return null;
 }
 
 @Override
 public void startUpdate(ViewGroup arg0) {}
 }

 ![enter image description here][1]

 ![enter image description here][2]


   [1]: http://i.stack.imgur.com/6Ajm7.png
   [2]: http://i.stack.imgur.com/qWYQY.png


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

Re: [android-developers] testing app from PC on attached phone

2013-12-02 Thread Justin Anderson
What version of Android is the new Experia running?  On newer versions the
developer options are hidden by default... You need to enable them by going
to Settings  About Phone/Tablet/Device and then tapping on the Build
number setting several times... You should get toast notifications telling
you when you have enabled the developer features.

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


On Sat, Nov 30, 2013 at 9:04 PM, peter gottlieb gottlieb...@gmail.comwrote:

 I finally got the adb to recognize my old Experia, after I made sure the
 USB debugging was turned on.  The new Experia doesn't seem to have that
 option available or any other Development options.  I will have to talk to
 Sony support about that.


 On Fri, Nov 29, 2013 at 9:46 AM, Kostya Vasilyev kmans...@gmail.comwrote:

 Not in any particular order:

 - You need drivers.

 Sony Ericsson makes their adb drivers available in the Windows Driver
 Download center (or whatever it's called), but not every manufacturer does
 this. For those, you'll need to either install their own (manufacturer
 specific, and potentially device specific) drivers, or get the generic
 Google's adb driver and hack its UPNP IDs before installing.

 - The adb debugging setting should be enabled (checked) on your
 non-virtual devices (system settings - developer options).

 - Some manufacturers / devices seem to require an entry in adb_usb.ini,
 or you'll get permission denied.

 -  Android 4.2 and higher requires an on-device confirmation before it
 allows adb connections.

 - I'd recommend trying to get adb devices to work first, before jumping
 into Eclipse.

 -- K

 On Friday, November 29, 2013 8:27:44 PM UTC+4, peter gottlieb wrote:

 I'm not sure what you mean by a response from ADB.  I can debug from
 Eclipse on the virtual device, but Eclipse android plug in won't even
 recognize the hardware phone.


 On Fri, Nov 29, 2013 at 8:11 AM, Kristopher Micinski 
 krismi...@gmail.com wrote:

 Can you get any response from ADB?

 Kris



 On Fri, Nov 29, 2013 at 10:52 AM, peter gottlieb gottl...@gmail.comwrote:

 Bad guess.  I clearly stated that the windows 7 setup had already
 worked with the Sony Erickson, but now doesn't.  For all PC-phone
 interactions (browse files on the phone from the PC, update phone software
 from the PC, etc) the connections work perfectly fine.  Only the Eclipse
 connection from the PC has the problem.  My only thought is a virus, but I
 have run Norton, and everything seems fine.  It could be some new virus
 that only effects certain software.   As a last resort I will try to get
 Norton assistance.


 On Fri, Nov 29, 2013 at 1:05 AM, TreKing treki...@gmail.com wrote:


 On Fri, Nov 29, 2013 at 12:45 AM, peter gottlieb 
 gottl...@gmail.comwrote:

 The windows 7 has worked in the past, but doesn't work now.  The
 windows 8 setup hasn't been used for this purpose before.  I have made 
 sure
 to set debug = true in the manifest, and that the phones (a new Sony
 Xperia, and an old Sony-Erickson Xperia) are set to accept apps from
 non-verified sources.  I cannot get either phone to show up as a 
 connected
 Android device chooser.


 Does anyone have any idea what could be wrong?


 First guess would be you haven't installed the proper drivers.

 
 -
 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-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 a topic in
 the Google Groups Android Developers group.
 To unsubscribe from this topic, visit https://groups.google.com/d/
 topic/android-developers/ESKcfB1nTiU/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-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.


 

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

2013-12-02 Thread Justin Anderson
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);
 //return i;
 }
 }

 Intent chooserIntent =
 Intent.createChooser(targetedShareIntents.remove(0), Select app to Call);
 chooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS,
 targetedShareIntents.toArray(new Parcelable[targetedShareIntents.size()]));

 return chooserIntent;
 }

 I tried this code to get Intent.EXTRA_INITIAL_INTENTS . but not got
 success. its giving always blank parcelable list.

 Intent intent = CallUtils.callfromDefaultDialer(ctxt,dat[1]);
 Parcelablehttp://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.3.4_r1/android/os/Parcelable.java#Parcelable%5B%5D
 [] pa = 
 intent.getParcelableArrayExtrahttp://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.3.4_r1/android/content/Intent.java#Intent.getParcelableArrayExtra%28java.lang.String%29
 (Intenthttp://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.3.4_r1/android/content/Intent.java#Intent.0EXTRA_INITIAL_INTENTS
 .EXTRA_INITIAL_INTENTShttp://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.3.4_r1/android/content/Intent.java#Intent.0EXTRA_INITIAL_INTENTS
 );

 Intent 
 http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.3.4_r1/android/content/Intent.java#Intent%5B%5D[]
  initialIntents = null;

 if (pa != null) {

 initialIntents = new Intent 
 http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.3.4_r1/android/content/Intent.java#Intent[pa.length];

 for (int i=0; ipa.length; i++) {

 if (!(pa[i] instanceof Intent 
 http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.3.4_r1/android/content/Intent.java#Intent))
  {

 Log.w 
 

Re: [android-developers] testing app from PC on attached phone

2013-12-02 Thread peter gottlieb
That took care of it.  Thanks very much.


On Mon, Dec 2, 2013 at 8:49 AM, Justin Anderson magouyaw...@gmail.comwrote:

 What version of Android is the new Experia running?  On newer versions the
 developer options are hidden by default... You need to enable them by going
 to Settings  About Phone/Tablet/Device and then tapping on the Build
 number setting several times... You should get toast notifications telling
 you when you have enabled the developer features.

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


 On Sat, Nov 30, 2013 at 9:04 PM, peter gottlieb gottlieb...@gmail.comwrote:

 I finally got the adb to recognize my old Experia, after I made sure the
 USB debugging was turned on.  The new Experia doesn't seem to have that
 option available or any other Development options.  I will have to talk to
 Sony support about that.


 On Fri, Nov 29, 2013 at 9:46 AM, Kostya Vasilyev kmans...@gmail.comwrote:

 Not in any particular order:

 - You need drivers.

 Sony Ericsson makes their adb drivers available in the Windows Driver
 Download center (or whatever it's called), but not every manufacturer does
 this. For those, you'll need to either install their own (manufacturer
 specific, and potentially device specific) drivers, or get the generic
 Google's adb driver and hack its UPNP IDs before installing.

 - The adb debugging setting should be enabled (checked) on your
 non-virtual devices (system settings - developer options).

 - Some manufacturers / devices seem to require an entry in adb_usb.ini,
 or you'll get permission denied.

 -  Android 4.2 and higher requires an on-device confirmation before it
 allows adb connections.

 - I'd recommend trying to get adb devices to work first, before
 jumping into Eclipse.

 -- K

 On Friday, November 29, 2013 8:27:44 PM UTC+4, peter gottlieb wrote:

 I'm not sure what you mean by a response from ADB.  I can debug from
 Eclipse on the virtual device, but Eclipse android plug in won't even
 recognize the hardware phone.


 On Fri, Nov 29, 2013 at 8:11 AM, Kristopher Micinski 
 krismi...@gmail.com wrote:

 Can you get any response from ADB?

 Kris



 On Fri, Nov 29, 2013 at 10:52 AM, peter gottlieb 
 gottl...@gmail.comwrote:

 Bad guess.  I clearly stated that the windows 7 setup had already
 worked with the Sony Erickson, but now doesn't.  For all PC-phone
 interactions (browse files on the phone from the PC, update phone 
 software
 from the PC, etc) the connections work perfectly fine.  Only the Eclipse
 connection from the PC has the problem.  My only thought is a virus, but 
 I
 have run Norton, and everything seems fine.  It could be some new virus
 that only effects certain software.   As a last resort I will try to get
 Norton assistance.


 On Fri, Nov 29, 2013 at 1:05 AM, TreKing treki...@gmail.com wrote:


 On Fri, Nov 29, 2013 at 12:45 AM, peter gottlieb gottl...@gmail.com
  wrote:

 The windows 7 has worked in the past, but doesn't work now.  The
 windows 8 setup hasn't been used for this purpose before.  I have made 
 sure
 to set debug = true in the manifest, and that the phones (a new Sony
 Xperia, and an old Sony-Erickson Xperia) are set to accept apps from
 non-verified sources.  I cannot get either phone to show up as a 
 connected
 Android device chooser.


 Does anyone have any idea what could be wrong?


 First guess would be you haven't installed the proper drivers.

 
 -
 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-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 a topic in
 the Google Groups Android Developers group.
 To unsubscribe from this topic, visit https://groups.google.com/d/
 topic/android-developers/ESKcfB1nTiU/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-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,

Re: [android-developers] BLE support in Android

2013-12-02 Thread Justin Anderson
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 polons...@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-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] Cannot peek value from TypedArray

2013-12-02 Thread Justin Anderson
What happens if you use this version of obtainStyledAttributes()?


*final TypedArray a = theme.obtainStyledAttributes(R.style.MyText, attrs); *

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


On Sat, Nov 23, 2013 at 10:10 AM, Y2i yur...@gmail.com wrote:

 I have  a style

 style name=MyText
 item name=android:background#ffc0c0c0/item
 item name=android:textColor#8080/item
 /style

 which I am trying to introspect in my ocde.  I use this code to retrieve
 typed array:

 final Resources.Theme theme = getActivity().getTheme();
 final int[] attrs = {android.R.attr.textColor, android.R.attr.background,};
 final TypedArray a = theme.obtainStyledAttributes(null, attrs, 0,
 R.style.MyText);
 try {
 Log.d(TAG, length:  + a.length());
 for (int i = 0; i  a.length(); ++i) {
 final TypedValue v = a.peekValue(i);
 if (v != null) {
 Log.d(TAG, type:  + v.type);
 }
 Log.d(TAG, -);
 }

 } finally {
 a.recycle();
 }

 The output is:

 D/PlaceholderFragment( 3391): length: 2
 D/PlaceholderFragment( 3391): type: 28
 D/PlaceholderFragment( 3391): -
 D/PlaceholderFragment( 3391): type: 28
 D/PlaceholderFragment( 3391): -

 Everything seems fine at this point.  But when I change the order of the
 attribute in the array from

 final int[] attrs = {android.R.attr.textColor, android.R.attr.background,};

 to

 final int[] attrs = {android.R.attr.background,
 android.R.attr.textColor,};

 the output becomes

 D/PlaceholderFragment( 3528): length: 2
 D/PlaceholderFragment( 3528): type: 28
 D/PlaceholderFragment( 3528): -
 D/PlaceholderFragment( 3528): -

 The second TypedValue returned by the peekValue() method becomes null in
 the second case.  Why?  What am I doing wrong?

 Thank you!

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To 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] Re: Eclipse not starting since last ADT update

2013-12-02 Thread Justin Anderson
I have been using Android Studio at work for about a month now and haven't
run into any major problems.  I still have some personal projects on
Eclipse and IntelliJ (I just haven't taken the time to switch them over
yet) and have found myself many times missing some of the features of
Android Studio...

I recommend the switch (though I can't guarantee it will be painless)... :-)

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


On Sat, Nov 23, 2013 at 1:44 AM, Michael Schollmeyer mich...@mictale.comwrote:

 1. Try to start Eclipse on the command line with the -clean switch
 2. Remove .metadata/.plugins from your workspace
 3. Remove .metadata/
 4. Reinstall Eclipse (Use the standard version, not the JEE one if you can)

 Try 1-4 until you succeed.

 I'm having the same issue occasionally, on top of this Eclipse deadlocks
 multiple times a day. Working with Eclipse is getting more and more painful.


 On Thursday, November 21, 2013 11:51:14 PM UTC+1, Nathan wrote:

 https://lh6.googleusercontent.com/-wz7hhXdR_68/Uo6NYaBqVyI/Bos/JcKhX5bC-44/s1600/eclipsenotstarting.tiff
 Since I got the ADT updates last week, Eclipse doesn't start consistently

 As of now, it is not starting at all.

 It is stuck on loading the ADT for hours.

 Has Eclipse now been officially deprecated as a development environment
 and I didn't get the memo?

 I don't know how to make any changes to it if it won't even start.

 Nathan


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To 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] Problem with image gallery selection dialog

2013-12-02 Thread Justin Anderson

 *Any fix ?*


Without seeing your code? No...

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


On Wed, Nov 20, 2013 at 7:03 AM, Brakkar webko...@gmail.com wrote:

 Hi,
 I have a problem that's been plaguing my android app for years.
 App is a simple photo editor tool: user tap on button to select image from
 device gallery, standard android, then after he selected his image, he is
 brought to an app screen where he can crop image.
 Problem is after user selects image, he is correctly brought to crop
 screen, but the select galery dialog box popup again on top of the crop
 screen as if the process was reset.

 This does not provoques any crash, and affects users totally randomly:
 some never experience this issue, some do. I was able to reproduce it only
 once, in house, but I'm enable to detect what causes this.

 Does anyone has any experience with this issue ? Any fix ?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To 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] Determine Application State (Foreground/Background) when onNewIntent() is called due to URL scheme

2013-12-02 Thread Justin Anderson
According to the docs for onNewIntent():

*An activity will always be paused before receiving a new intent, so you
can count on onResume()
http://developer.android.com/reference/android/app/Activity.html#onResume()
being
called after this method.*

The docs for onPause() state this:

Called as part of the activity lifecycle when an activity is going into
the background, but has not (yet) been killed. The counterpart to
onResume()http://developer.android.com/reference/android/app/Activity.html#onResume()
.

Given this information I would say your app is ALWAYS in the background
when the new intent is received... There is no way around this.

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


On Tue, Nov 19, 2013 at 6:55 PM, Piyush Hari piyush.h...@gmail.com 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.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To 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] Retrieving Contacts from ContactsList device

2013-12-02 Thread Justin Anderson

 Ok, this way I have contacts. But when i get de details, phone number, for
 example. Show repeated numbers:

What do you mean by repeated numbers?  Are you seeing the same number
over and over again or are you seeing lots of different numbers?

Maybe this will help:
http://stackoverflow.com/questions/15243278/android-get-all-contacts-telephone-number-in-arraylist

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


On Tue, Nov 19, 2013 at 8:49 AM, Turim turim_thi...@hotmail.com wrote:

 I need to retrive the contacts from device, but i need the contacts from
 ContactsList aplication.

 I'm get que Contacts:

 Cursor cursor = cr.query(ContactsContract.Contacts.CONTENT_URI, new
 String[] { ContactsContract.Contacts._ID,
 ContactsContract.Contacts.DISPLAY_NAME,
 ContactsContract.Contacts.HAS_PHONE_NUMBER },
 ContactsContract.Contacts.IN_VISIBLE_GROUP +  = ?, new String[] { 1 },
 null);

 Ok, this way I have contacts. But when i get de details, phone number, for
 example. Show repeated numbers:

 Cursor cursor =
 context.getContentResolver().query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI,
 null,
  ContactsContract.CommonDataKinds.Phone.CONTACT_ID +  = ?, new String[]
 { String.valueOf(contato.getAndroidId()) },
 ContactsContract.CommonDataKinds.Phone.NUMBER +  COLLATE LOCALIZED ASC);

 why this happens?

 I need to retrive the contacts and details as the ContactsList application
 device.


 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 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] Trivial Drive: Various errors

2013-12-02 Thread Justin Anderson

 So today our Trivial Drive app starts working.

Sounds to me like today is the day your Trivial Drive app stopped
working... :-)

How are we supposed to help you out with the amount of data you gave us?
There could be any number of reasons for the problems you are having.

Based on your description I'm ASSUMING you are talking about in-app
purchases... So, here is the first step in solving your problem:
http://lmgtfy.com/?q=android+in+app+purchase+signature+verification+failed

Before you ask another question I would suggest you read this post:
http://android-dev-tips-and-tricks.blogspot.com/2012/08/so-you-need-help.html

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


On Tue, Nov 19, 2013 at 8:29 AM, greno gr...@verizon.net wrote:

 So today our Trivial Drive app starts working.

 However, we are seeing a number of errors.

 First is when we make a purchase.  The purchase succeeds but at the very
 end it pops an error message saying signature verification error.

 Then when we reload the app it gets signature verification error trying to
 query the inventory of items owned.

 But it does seem to know what is owned however because when you try to buy
 gas twice it comes back with error that the item is already owned.

 So I drive and then purchase an infinite gas subscription which succeeds
 but still gives me the signature verification error.

 The gas tank shows full now so I try and drive some more.  But it pops an
 error msg saying Oh no your out of gas, Try buying some.  But when I try to
 Buy Gas it says item already owned so the app is now stuck.


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To 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.


[android-developers] OpenGL ES 2.0 - glGenQueries() - function from extension

2013-12-02 Thread Arm7
Hi,
 
How do you call a function whose doesn't exist in GLES2/gl2ext.h [ex.: 
glGenQueries() ] ?
 
This function is implemented in the device (because the driver return the 
string GL_EXT_occlusion_query_boolean) but I've no any idea how to call 
it.
 
Thank you for your light!
 
Eric

 

 

 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To 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] Cannot peek value from TypedArray

2013-12-02 Thread Y2i
Exactly the same story :(

On Monday, December 2, 2013 9:44:15 AM UTC-8, MagouyaWare wrote:

 What happens if you use this version of obtainStyledAttributes()?


 *final TypedArray a = theme.obtainStyledAttributes(R.style.MyText, attrs); 
 *

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



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To 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] Cannot peek value from TypedArray

2013-12-02 Thread Justin Anderson
Have you tried obtainAttributes?  I know it may not be what you want, but
if obtainAttributes works then that means there is something going on in
the logic of obtainStyledAttributes that is causing weird behavior...
Perhaps you found an Android bug...

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


On Mon, Dec 2, 2013 at 12:45 PM, Y2i yur...@gmail.com wrote:

 Exactly the same story :(


 On Monday, December 2, 2013 9:44:15 AM UTC-8, MagouyaWare wrote:

 What happens if you use this version of obtainStyledAttributes()?


 *final TypedArray a = theme.obtainStyledAttributes(R.style.MyText,
 attrs); *

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

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To 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] RelativeLayout: use layout_below, layout_centerVertical, android:layout_alignParentBottom

2013-12-02 Thread Justin Anderson
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.andro...@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-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] Re: android how to use one view in multiple layouts files.

2013-12-02 Thread Justin Anderson
You can do it this way but you may have to set the text programatically...

However, a better way would be to create a style for your text view and
apply the style wherever you want a textview that looks the same.

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


On Fri, Nov 15, 2013 at 12:01 PM, 12169 ashish.a...@gmail.com wrote:

 Hi,

 After search i found include tag does not know about the view to which it
 is creating ,so it does not know about the properties of the child view to
 which it is creating.so the way you mention is not feasible ..


 On Friday, November 15, 2013 10:03:29 AM UTC-8, MathieuB wrote:

 Well, i'm not gonna come and do it for you. There's no reason it's not
 working. If you are not willing to learn the basic first...i'm outta here

 Learn to read the error, the console, logcat, etc.

 On Friday, November 15, 2013 11:58:14 AM UTC-5, 12169 wrote:

 It is not working...

 On Friday, November 15, 2013 8:53:19 AM UTC-8, 12169 wrote:

 Hi ,

 android:text=”Your new text string”

 eclipse is not showing this option in ctrl+space


 On Wednesday, November 13, 2013 7:51:47 AM UTC-8, MathieuB wrote:

 Let's say you named this layout, with your textview tv_layout. Use
 that in your other layout to include it. Note that you can override other
 value like layout_width, id, etc. :

 include android:text=”Your new text string”

  layout=”@layout/tv_layout”/


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To 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] Re: android how to use one view in multiple layouts files.

2013-12-02 Thread Justin Anderson
@MathieuB
Before chastising others, at least make sure you know what you are talking
about.  When using the include tag you are only able to change the layout
attributes... you are not able to change any other attributes.  The
solution did not work.

From *Re-using Layouts with include /*:
You can also override all the layout parameters (any android:layout_*
attributes)
of the included layout's root view by specifying them in the include/ tag.


(
http://developer.android.com/training/improving-layouts/reusing-layouts.html
)


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


On Mon, Dec 2, 2013 at 2:47 PM, Justin Anderson magouyaw...@gmail.comwrote:

 You can do it this way but you may have to set the text programatically...

 However, a better way would be to create a style for your text view and
 apply the style wherever you want a textview that looks the same.

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


 On Fri, Nov 15, 2013 at 12:01 PM, 12169 ashish.a...@gmail.com wrote:

 Hi,

 After search i found include tag does not know about the view to which it
 is creating ,so it does not know about the properties of the child view to
 which it is creating.so the way you mention is not feasible ..


 On Friday, November 15, 2013 10:03:29 AM UTC-8, MathieuB wrote:

 Well, i'm not gonna come and do it for you. There's no reason it's not
 working. If you are not willing to learn the basic first...i'm outta here

 Learn to read the error, the console, logcat, etc.

 On Friday, November 15, 2013 11:58:14 AM UTC-5, 12169 wrote:

 It is not working...

 On Friday, November 15, 2013 8:53:19 AM UTC-8, 12169 wrote:

 Hi ,

 android:text=”Your new text string”

 eclipse is not showing this option in ctrl+space


 On Wednesday, November 13, 2013 7:51:47 AM UTC-8, MathieuB wrote:

 Let's say you named this layout, with your textview tv_layout. Use
 that in your other layout to include it. Note that you can override other
 value like layout_width, id, etc. :

 include android:text=”Your new text string”


  layout=”@layout/tv_layout”/


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To 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.


[android-developers] Anyone from Google reading this group? (Was: Wrong stack behaviour in Android 4.4)

2013-12-02 Thread BoD
Ping.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To 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] Android 4.1.2

2013-12-02 Thread Justin Anderson
Ummm... what?

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


On Sat, Nov 9, 2013 at 11:14 AM, tman balageet...@gmail.com wrote:

 When will be the Android 4.1.2 get the new update to have the function to
  Move App to SD card?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To 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] BitmapMesh Refreshing

2013-12-02 Thread Justin Anderson
Remove the code that removes your warp changes.  Without more details
you're out of luck.  Also... maybe, just maybe, you might want to try to
fix it first (and let us know what you tried).

http://android-dev-tips-and-tricks.blogspot.com/2012/08/so-you-need-help.html

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


On Mon, Nov 4, 2013 at 9:50 PM, ashwini vandanapu 
ashwini.vandan...@gmail.com wrote:


 Dear All,


   In my android application, i want to apply image warp effect
 for image. For that i use BitmapMesh from api demos. The problem is that,
 it's not saving warped image. Whenever i touch image, it refresh the image
 and doesn't save my previously warped image.I want to save that image
 whenever user perform warp operation. If any one know kindly share with and
 help me out.

 ThanksRegards,
 Ashwini V.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To 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] With Updated APK, Can't Purge Previous Data

2013-12-02 Thread Mukesh Srivastav
I have done this in one of my product and but i am dealing with my sqlite
data, not sure, if you are using the same.





On Mon, Dec 2, 2013 at 5:33 PM, Cayce ca...@cayceweb.com 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] Avoid app force closed issue.

2013-12-02 Thread sree android
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.


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

2013-12-02 Thread Iqbal Ahmed
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);
 //return i;
 }
 }

 Intent chooserIntent =
 Intent.createChooser(targetedShareIntents.remove(0), Select app to Call);
 chooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS,
 targetedShareIntents.toArray(new Parcelable[targetedShareIntents.size()]));

 return chooserIntent;
 }

 I tried this code to get Intent.EXTRA_INITIAL_INTENTS . but not got
 success. its giving always blank parcelable list.

 Intent intent = CallUtils.callfromDefaultDialer(ctxt,dat[1]);
 Parcelablehttp://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.3.4_r1/android/os/Parcelable.java#Parcelable%5B%5D
 [] pa = 
 intent.getParcelableArrayExtrahttp://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.3.4_r1/android/content/Intent.java#Intent.getParcelableArrayExtra%28java.lang.String%29
 (Intenthttp://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.3.4_r1/android/content/Intent.java#Intent.0EXTRA_INITIAL_INTENTS
 

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

2013-12-02 Thread Mukesh Srivastav
For force close, there could be two reasons.

1. Your application logic might depends on the data you get from the
webserver, there you might be doing a parsing with the Null or incorrect
data which is causing the force close.

2. While handling the HTTP Connections, make sure you also handle the
timeout and show a valid message to the user rather then FORCE CLOSE.



On Tue, Dec 3, 2013 at 10:38 AM, sree android
android.sreeni...@gmail.comwrote:

 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.




-- 
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] Re: Avoid app force closed issue.

2013-12-02 Thread Sourav Howlader


 Hi Sree,


Most important thing is, you should do all of your long running processes 
in child thread.
If you do your web services operations in main thread, then you will get 
ANR as its a time consuming process and may not complete the operation in 
time.

Regards,
Sourav

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To 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: Avoid app force closed issue.

2013-12-02 Thread Martin Krischik


Am Dienstag, 3. Dezember 2013 06:08:40 UTC+1 schrieb sree:

 how can i handle this problum and how can i avoid app force close problum.


It is not *a* problem. If you have to ask on that general level it might be 
a multitude of problems all resulting from writing sloppy code.  (Side-note: 
The fact that you did not use a spell checker for the posting to have 
«problum» corrected supports my assertion that you work sloppy)

   1. You should check for Null Pointers. All IDEs have a system which uses 
   @Nullable and @NotNull annotations to aid you in finding null pointer 
   problems. USE IT. You can also find null pointer problms in the log-cat but 
   proactive search is better.
   2. You should check the log-cat for exceptions and handle them 
   *appropriately*. That is don't fall for the Error 
hidinghttp://en.wikipedia.org/wiki/Error_hiding anti 
   pattern.

 Martin.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To 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.