[android-developers] 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@googlegroups.com To unsubscribe from this group, 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/d/optout.
Re: [android-developers] ViewPager pages not drawn
Have you tried debugging into ViewPager code? To see if your fragments' views are actually there and how they're laid out? Another thing I often use in cases like this -- is to set the background color of various views to distinct noticeable colors, like pink, cyan, etc. In this case, I'd try the view pager itself, its parent view, and your fragments' views. -- K 2014-12-20 0:30 GMT+03:00 Doug Gordon : > 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@googlegroups.com > To unsubscribe from this group, 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/d/optout. > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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/d/optout.
[android-developers] 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@googlegroups.com To unsubscribe from this group, 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/d/optout.
[android-developers] "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@googlegroups.com To unsubscribe from this group, 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/d/optout.
[android-developers] 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@googlegroups.com To unsubscribe from this group, 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/d/optout.
[android-developers] 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@googlegroups.com To unsubscribe from this group, 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/d/optout.
Re: [android-developers] v7_appcompat error
Hi, There is small setting change that you need to make in your support package. 1. Right click "v7\appcompat" package, and go to properties. 2. Go to Android -> Select API Level 21 ( Android 5.0). 3. Clean all solutions. 4. Done Regards, Krishna On Fri, Dec 19, 2014 at 4:54 PM, mkw wrote: > > 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@googlegroups.com > To unsubscribe from this group, 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/d/optout. > -- -- .\\\/// . /\ . | \\ // | .( | (.) (.) |) --o00o--(_)--o00o- "Yesterday is not ours to recover, but tomorrow is ours to win or to lose." ---ooo0--- . ( ) 0ooo . \ ( ( ) .\_) ) / . (_/ -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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/d/optout.