galaxy-nexus

app will not launch on device

送分小仙女□ 提交于 2019-12-23 13:24:13
问题 I'm a noob to Java, Eclipse and Android application development. I'm going through the Android app tutorial but can't seem to get the first lesson to launch on my device. After fixing a handful of issue preventing the project from compiling I was able to get it to run on an AVD. But have had no luck on a physical device. The following are the details of my environment and what the console shows me. On the phone I tried looking for the install under apps, downloads and the desktop but don't

How can I attach a virtual device/emulator to Visual Studio Xamarin Android project?

喜欢而已 提交于 2019-12-22 06:59:15
问题 I created an Android app for Ice Cream Sandwich and added nothing to the default code (except changing the text of the "Hello World" message - I couldn't - or wouldn't - help myself). I mashed F5. Nada - no device attached. The dropdown list says "No Devices Attached." So, I set one up via the "Open Android Emulator Manager" button that the Xamarin install added: I mashed F5 again; same problem. It said to pick a device from the dropdown list (I had forgotten to explicitly choose the one I

Android S3 layout vs Galaxy Nexus layout

我与影子孤独终老i 提交于 2019-12-17 19:24:51
问题 I've developed an app that was supposed to target both the Galaxy Nexus and the Galaxy S3. Both have 720 x 1280 screen resolutions and I have only used 'dp' values in my app. The resources exist in the 'layout-xhdpi' and the 'drawable-xhdpi' folders. Layout looks perfectly fine on the Nexus, but the padding values (in dp) is slightly off on the S3. I assume its because of the bigger screen size on S3 and difference in density. How can I create a separate folder for Nexus and S3 so I can take

Show options menu button on Galaxy Nexus (Android 4.1)

£可爱£侵袭症+ 提交于 2019-12-17 18:43:50
问题 I am using options menu in my app. But when I install the app on a Galaxy Nexus, I don't see options menu because by default it doesn't have options menu button. How can I show options menu button in my App for only Galaxy Nexus? With other phones it's fine, and I can get options Menu. 回答1: In Android 3.0, Google switched from having a dedicated menu key to using the ActionBar for menu functionality. If your build target is 3.0 or above, your menu will default to using the ActionBar . If

Which layout is used for Galaxy Nexus

不打扰是莪最后的温柔 提交于 2019-12-13 05:31:22
问题 Which Layout Can I used for Nexus 4 and Galaxy Nexus? There is conflict between Nexus 7(800 x 1280) and Galaxy Nexus(720 x 1280) as attached in screenshot : Nexus S Galaxy Nexus EDIT home_screen.xml <?xml version="1.0" encoding="utf-8"?> <WebView android:id="@+id/web_view" android:layout_width="match_parent" android:layout_height="match_parent" android:visibility="gone" /> <TabHost android:id="@+id/tabHost" android:layout_width="fill_parent" android:layout_height="fill_parent" > <LinearLayout

How can I attach a virtual device/emulator to Visual Studio Xamarin Android project?

痞子三分冷 提交于 2019-12-05 11:38:50
I created an Android app for Ice Cream Sandwich and added nothing to the default code (except changing the text of the "Hello World" message - I couldn't - or wouldn't - help myself). I mashed F5. Nada - no device attached. The dropdown list says "No Devices Attached." So, I set one up via the "Open Android Emulator Manager" button that the Xamarin install added: I mashed F5 again; same problem. It said to pick a device from the dropdown list (I had forgotten to explicitly choose the one I just set up). But...there's nothing in the list. Why not? UPDATE It's working now; I reckon it was not

Get Image from camera into ImageView Android

我的梦境 提交于 2019-12-01 07:40:19
The following code works well to get the thumbnail of a picture taken from the camera. I want to get the full image, not just the thumbnail. I have a Samsung Galaxy Nexus private static final int CAMERA_PIC_REQUEST = 1111; private ImageView mImage; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_my_camera); mImage = (ImageView) findViewById(R.id.imageView1); Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(intent, CAMERA_PIC_REQUEST); } protected void onActivityResult(int

Get Image from camera into ImageView Android

痞子三分冷 提交于 2019-12-01 06:01:30
问题 The following code works well to get the thumbnail of a picture taken from the camera. I want to get the full image, not just the thumbnail. I have a Samsung Galaxy Nexus private static final int CAMERA_PIC_REQUEST = 1111; private ImageView mImage; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_my_camera); mImage = (ImageView) findViewById(R.id.imageView1); Intent intent = new Intent(android.provider.MediaStore.ACTION

EditText with SpannableStringBuilder and ImageSpan doesn't works fine

孤街浪徒 提交于 2019-11-28 18:29:16
I'm trying to put emoticons inside a EditText. I've managed to do it and it works fine but I have a problem when I try to delete these emoticons from the EditText using the soft keyboard. I can't do this action with a single delete button's click. When I insert a new ImageSpan I replace an imageId for it but when I try to delete de icon I have to delete all the imageId characters before delete the image. String fileName = "emoticon1.png"; Drawable d = new BitmapDrawable(getResources(), fileName); String imageId = "[" + fileName + "]"; int cursorPosition = content.getSelectionStart(); int end =

Show options menu button on Galaxy Nexus (Android 4.1)

拜拜、爱过 提交于 2019-11-28 08:48:23
I am using options menu in my app. But when I install the app on a Galaxy Nexus, I don't see options menu because by default it doesn't have options menu button. How can I show options menu button in my App for only Galaxy Nexus? With other phones it's fine, and I can get options Menu. Michael Celey In Android 3.0, Google switched from having a dedicated menu key to using the ActionBar for menu functionality. If your build target is 3.0 or above, your menu will default to using the ActionBar . If there is a menu key on the phone, any run over options that are usually shown by the three dots