Srinivas Nainala | 19 Dec 23:54 2014
Picon

Android Apps force or mandatory installation on the device.

How can we insist user to install app or update app in his/her device whenever it is compulsory for the device. I have one application for my company, all apps are comes as a enterprise release for the device. So we have some update apps after sometime how can we force the users to install the apps.

Please suggest me if there is anyway for this approach.

Thanks in advance for your help.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Doug Gordon | 19 Dec 22:30 2014
Picon

ViewPager pages not drawn

I haven't received any responses on stackoverflow about this, so am 
giving it a shot here.

My app, which is fairly large and complex (hard to post meaningful code) 
uses as its main view a ViewPager with a FragmentPagerAdapter. Since the 
minSDK is 14, I originally wrote it to use the native Fragment and 
related classes (ViewPager from support.v4 and FragmentPagerAdapter from 
support.v13). This has all been working perfectly for a long time.

Recently I decided to build in more compatibility, mainly for themes, by 
using the appcompat.v7 library. However, using this library required 
that I use the Fragment and FragmentPagerAdapter, etc. classes from the 
support.v4 library (meaning that I also had to change my Activity to a 
FragmentActivity, call getSupportFragmentManager, etc.).

Making no more than these changes, my ViewPager comes up as a blank 
screen; all I see is the ViewPager's background color; my fragments' 
views are not displayed! What's really strange is that by putting in 
various breakpoints, I can see that almost everything is working 
underneath as far as my fragments' life-cycle methods being called, etc. 
I can swipe back and forth across the screen and the fragments appear to 
be swapped in and out as expected. It is particularly telling, however, 
that in various custom views that I have, the onMeasure and onDraw 
methods are never called!

Does anyone have any idea of what would be preventing the ViewPager from 
actually drawing its views? If I revert the code to use the native 
fragment support and associated supporting classes, everything shows up, 
which means that if there is something wrong on my end it must be 
extremely subtle.

(Just to throw in some confusion, there is another activity in the app 
that also uses a ViewPager with fragments, and it continues to work with 
either the native or support library classes. (I'm about to throw in the 
towel and just forget this whole update.))

Doug Gordon

--

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bob S | 19 Dec 20:38 2014
Picon

"You need to enter a valid YouTube address"

Hello,

  I'm trying to submit an Android App to Google Play.  The form has a line where you can enter a YouTube video promo.  But I can't get it to accept my URL.  I found this thread where they say you simply have to change "https" to "http", but that does not work for me:

https://groups.google.com/forum/#!searchin/android-developers/You$20need$20to$20enter$20a$20valid$20Youtube$20address/android-developers/ALLqV2zmyZE/qWPy8lIokcgJ

So does anyone know what you have to do to get it to work? 

Thanks
Bob

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
SouthAustin | 19 Dec 20:21 2014
Picon

Read directly from external HID connected via USB OTG

We have a USB barcode scanner that emulates a HID that we've connected to an Android 4.0.3 "Generic"/No name  tablet via USB OTG . We've verified that the tablet does receive scans.

Now we have to write our own app to handle the scans and we were wondering how the app would read the input from the scanner.

The barcode scanner beeps  to confirm that  it has read a code  so we don't need an EditText or similar widget to echo the barcode value on the screen. Our app will do a lookup based on the code provided and display more details

We've connected this barcode scanner to a linux box in the past and were able to open the low level "/dev/... " corresponding to the HID in exclusive mode to get the data.   This  gave our app exclusive access to  the data from the  scanner.

What do  we have to do in Android to read the scanner data  ?  Thks.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Chandra Sekhar Nayak | 19 Dec 19:00 2014
Picon

Official Sample for Fetching Contacts doesn't work properly.

Hi All,

    I am trying to run the ContactsList.zip provided by Google on it's developer site http://developer.android.com/training/contacts-provider/retrieve-names.html. But the problem I found is, it's not fetching all the contacts saved in the Native Contact App.

    I am running this app in Android Lollipop Emulator and I have configured my Live account in my Emulator. I don't know why its not able to fetch all the contacts present in my Live Account. Where as I am able to see all the contacts in Native Contact App.

    Is there anybody who is facing the same issue? Let me know what is the problem with the code?

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 <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
mkw | 19 Dec 12:24 2014
Picon

v7_appcompat error

I have many mistakes. Because of it in the appendix R.java SDK can't be generated I updated to the latest version for android-support-v7-appcompat API 21 put but the mistake didn't disappear.

[2014-12-19 16:55:08 - Picsfab All] C:\Android\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:75: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'.
[2014-12-19 16:55:08 - Picsfab All] C:\Android\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:79: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.CloseMode'.
[2014-12-19 16:55:08 - Picsfab All] C:\Android\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:83: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.Overflow'.
[2014-12-19 16:55:08 - Picsfab All] C:\Android\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:29: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabView'.
[2014-12-19 16:55:08 - Picsfab All] C:\Android\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:33: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabText'.
[2014-12-19 16:55:08 - Picsfab All] C:\Android\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:41: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'.
[2014-12-19 16:55:08 - Picsfab All] C:\Android\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:65: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Title'.
...

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Nathan | 19 Dec 06:59 2014
Picon

Migrating Android Library projects to Android Studio

Okay, well maybe the rest of you have been able to just push a button and your projects build in Android Studio instead of Eclipse. Hasn't happened for me.

I think I'm having an extra amount of trouble because I've used an Android Library project, with two other projects that depend on it.
Android Studio doesn't seem to handle this well, at least not the same.

The latest problem is that the library can't have the same package name as a project that includes it. That seems fair.

So I went into the manifest of the library files and changed
com.company.product
to
com.company.product.library

Fine so far.

Of course I got a gazillion errors

I couldn't find any way to do this in refactoring tool, so I went through every single affected source file and
changed
import com.company.product.R;
to
import com.company.product.library.R;

I figured that would do the trick.
Nope.

I still have 103 errors stating.
 error: package R does not exist

Now I am not sure why R does not exist. Won't they generate it in library projects?

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 <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Bill Morgan | 19 Dec 03:42 2014

logcat within AndroidStudio

is there any way to capture the locat info
within AndroidStudio ?

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 <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

deepak | 18 Dec 10:47 2014
Picon

Libnice for Android P2P

I am trying to implement P2P live video streaming from IP Camera to Android. For this i am planning to compile libnice for android using the http://insembedded.wordpress.com/2014/04/09/import-libnice-on-android/ . But i am getting build errors given below 

stunagent.c: Assembler messages: stunagent.c:160: Error: no such instruction: `rev %eax,%eax' stunagent.c:676: Error: no such instruction: `rev16 %ax,%ax'I am stuck up with this. It would be very helpful if someone could guide me on what is wrong or could help me with a compiled version of libnice for Android.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Nathan | 17 Dec 21:22 2014
Picon

Dex Limit workarounds- ADT or Android Studio only?

I was wondering what all the fuss was over the Dex limit, till I included Google Play Services. 

Right away, I got the dreaded error:
Conversion to Dalvik format failed:
Unable to execute dex: method ID not in [0, 0xffff]: 65536So now I am referring to the official guide:

Building Apps with Over 65K Methods:
https://developer.android.com/tools/building/multidex.html

It says, I think, that on Android 5.0 I will be fine.
Good so far.
On pre 5.0, use the multidex support library.
Okay, so I included android-support-multidex.jar in libs folder.

The next section is
Configuring Your App for Multidex with Gradle
Hmm, no section for Configuring Your App for Multidex with ADT/Eclipse
They weren't kidding about dropping support for ADT like a rock.

A colleague found this 
http://stackoverflow.com/questions/13439882/android-error-in-eclipse-unable-to-execute-dex-cannot-merge-new-index-65799-i
Suggesting that we should use
dex.force.jumbo=true
in each project.properties.
It seemed to work for him
I don't know if this applies to the android libraries like appcompat and Google Play Services.

I tried it. Didn't help.
Still getting this when I try to debug:Conversion to Dalvik format failed:
Unable to execute dex: method ID not in [0, 0xffff]: 65536Saw this article too:
http://android-developers.blogspot.com/2014/12/google-play-services-and-dex-method.html
Hmm, these instructions are also only for Gradle. No way to do it in ADT?

So my questions are:
Can I get around this in ADT/Eclipse or should I speed up the migration to Android Studio. ?

I see this note at the bottom:

 Note: Use of multidex for creating a test APK is not currently supported

Does this mean no more debugging my code?
Just ship it to Google Play and hope for the best?
We are all Klingon warriors now - we do not debug - our software does not coddle the weak. ;)

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 <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Shri | 17 Dec 20:37 2014
Picon

Can an ActionProvider be used in an ActionMode (contextual action bar)

I am able to use a ShareActionProvider in a normal action bar to show a Share button. Clicking on it drops down a menu with a list of apps that I can share too. Now, I am trying to use the ShareActionProvider in an ActionMode (contextual action bar shown when you long-press an item). This does not work. Clicking on the menu button does not drop down a menu. Is this supposed to work?

As a workaround, I think I can use Intent.createChoser() to get a dialog box with the list of apps. However, it would be preferable if I can get the drop down menu.

Thanks,
Shri

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> 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+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gmane