nexus-7

android android.provider.MediaStore.ACTION_VIDEO_CAPTURE return null onActivityResult with nexus 7

限于喜欢 提交于 2019-11-30 09:19:11
I am using intent for record video. so i use following code on recordVideo button's click Videofilepath = ""; Intent intent = new Intent(android.provider.MediaStore.ACTION_VIDEO_CAPTURE); startActivityForResult(intent,REQUEST_VIDEO_CAPTURED); and in onActivityResult protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (resultCode == Activity.RESULT_OK) { switch (requestCode) { case IMAGE_PICK: this.imageFromGallery(resultCode, data); break; case IMAGE_CAPTURE: this.imageFromCamera(resultCode, data); break; case REQUEST_VIDEO_CAPTURED: this.videoFromCamera

Nexus 7 and Kindle Fire HD, think different

穿精又带淫゛_ 提交于 2019-11-30 04:56:18
I'm developing an application for tablet 7 inch Kindle Fire HD and Nexus 7 . These two applications are the same size and the same screen resolution. However, I run my application, it is very different. Why? it seems this is because the nexus 7 is detected as TVDPI, and the Kindle Fire HD is HDPI. How to have a same rendering based on a model 1280 * 800? Thank you Well, it seems you've already discovered why the two have differences, it's because they report different density scale factors: Nexus 7: TVDPI: Scale Factor = 1.333 Kindle Fire HD: HDPI: Scale Factor = 1.5 So why do they report

What NFC tags does the Nexus 7 Support? (2012)

≡放荡痞女 提交于 2019-11-30 03:39:37
I tried the Ultralight C the other day on a friends device, and it wasn't working. I raise these concerns because I know the Mifare Classic tags don't work with Blackberry, and I was trying to find a tag that works on majority of devices. I still haven't tried the Ultralight Tags. Any information anyone has on this issue would be helpful. Nexus 7 contains the same NFC chip (PN544 by NXP Semiconductors) as Nexus S, Galaxy Nexus, Nexus Q, Samsung Galaxy S3, HTC One X and many other Android devices. So all these devices support the tag types in principle (antenna performance may differ, leading

Nexus 7 Support for Android Application Manifest Assembly

自闭症网瘾萝莉.ら 提交于 2019-11-29 02:35:21
问题 I have an Android Application that has the AndroidManifest.xml listed below. After uploading to Google Play, the Nexus 7 is listed as an UNSUPPORTED device and I am trying to figure out why. Of course Google Play doesn't tell you why or what permission or use of the manifest is restricting it from being supported. Any ideas of which part of the code below is causing the Nexus 7 to be listed as unsupported? <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android

Saving files on external storage on Nexus 7 and retrieving from PC

为君一笑 提交于 2019-11-28 12:30:10
For my project I want to be able to save sensor data to a file, and be able to access it from a PC for further analysis. This is the code I have so far and it works successfully: File root = Environment.getExternalStorageDirectory(); File csvfile = new File(root, "Sensor_Data.csv"); FileWriter writer = new FileWriter(csvfile, true); writer.append("Time"); writer.append(','); writer.append("Position"); writer.append('\n'); Number data[] = new Number[4000]; for (int i = 0; i<4000; i+=2){ posHistory.toArray(data); writer.append(String.valueOf(data[i])); writer.append(','); writer.append(String

Play store reports “Your device isn't compatible with this version” but it installs via adb just fine on Nexus7

青春壹個敷衍的年華 提交于 2019-11-28 09:12:08
I have an app I released to a private Google Play beta. I can install this exact same APK to my Nexus 7 just fine with adb pm install but through the Google Play store it is marked for this exact same Nexus7 as Your device isn't compatible with this version. This is the same apk. I can't figure out how to get any information on why the play store thinks it's not compatible. My manifest looks like this: <uses-sdk android:minSdkVersion="10" /> <uses-permission android:name="android.permission.INTERNET"></uses-permission> <uses-permission android:name="android.permission.CAMERA"></uses-permission

ActionBar with navigation tabs changes height with screen orientation

强颜欢笑 提交于 2019-11-28 07:02:25
My goal is to increase the ActionBar height for portrait mode. I currently set android:actionBarSize in my Themes.xml. <?xml version="1.0" encoding="utf-8"?> <resources xmlns:android="http://schemas.android.com/apk/res/android"> <style name="DayTheme" parent="android:style/Theme.Holo.Light"> <item name="android:actionBarSize">@dimen/actionBarHeight</item> <item name="android:actionBarTabTextStyle">@style/tab_indicator_text_dark</item> </style> <style name="NightTheme" parent="android:style/Theme.Holo"> <item name="android:actionBarSize">@dimen/actionBarHeight</item> <item name="android

Cocos2D-x game fresh off the Play Store can't even open

不想你离开。 提交于 2019-11-28 05:34:56
问题 I just finished my first cocos2d-x game. I've tested it on my GNexus 4.1 and other lower devices, including tablets. However, when bought and downloaded to a Nexus 7, it won't even open. It's running 4.2, could that be the issue? Any help would be appreciated. crash report: java.lang.ExceptionInInitializerError at java.lang.Class.newInstanceImpl(Native Method) at java.lang.Class.newInstance(Class.java:1319) at android.app.Instrumentation.newActivity(Instrumentation.java:1054) at android.app

Gallery has stopped while cropping image in kitkat Nexus7

只谈情不闲聊 提交于 2019-11-27 14:31:44
Problem: I am fetching image from gallery and after that cropped that image and its working perfect in all device. But it is giving me error while running in Nexus 7 kitkat since i have checked build version for it with "Gallery Stopped" error. I have implemented code and all other neccessary permission in manifest file still not getting response. So can anybody resolve this? Here is my Code: final String[] items = new String[] { "Take from camera", "Select from gallery" }; ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.select_dialog_item, items); AlertDialog

Saving files on external storage on Nexus 7 and retrieving from PC

梦想与她 提交于 2019-11-27 07:10:37
问题 For my project I want to be able to save sensor data to a file, and be able to access it from a PC for further analysis. This is the code I have so far and it works successfully: File root = Environment.getExternalStorageDirectory(); File csvfile = new File(root, "Sensor_Data.csv"); FileWriter writer = new FileWriter(csvfile, true); writer.append("Time"); writer.append(','); writer.append("Position"); writer.append('\n'); Number data[] = new Number[4000]; for (int i = 0; i<4000; i+=2){