galaxy

How to use camera flash/led as torch on a Samsung Galaxy Tab?

故事扮演 提交于 2019-11-27 11:23:37
I'm facing to a problem with a Samsung Galaxy Tab. I want to use the camera flash as torch. Does anyone know how to enable it ? Hereby a code that works to enable/disable the camera flash on a HTC Desire but fails on Samsung Galaxy Tab. FlashLight.java : package com.example.FlashLight; import android.app.Activity; import android.hardware.Camera; import android.hardware.Camera.Parameters; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class FlashLight extends Activity { private final

Bluetooth 4.0 / Smart / Low energy on Samsung Galaxy S3

淺唱寂寞╮ 提交于 2019-11-27 10:52:29
问题 I'm trying to develop a bluetooth 4.0 app for S3. The problem is, the phone behaves like it doesn't even have bluetooth 4.0. It doesn't discover 4.0 devices, and isn't discoverable with 4.0 devices. I tried both in the settings of the phone and in an app, using the Broadcom-ble API. The Broadcom API doesn't have any extra functionality for finding/discovering 4.0 devices, rather it uses the regular BluetoothAdapter functionality and claims that it will be augmented in 4.0 phones to also

Samsung Galaxy S II AVD (Android Virtual Device) Basic Settings?

一曲冷凌霜 提交于 2019-11-27 10:34:12
I would like to create an AVD of the Samsung Galaxy S II. The sole purpose is to test websites with it's default web browser to see how they look in both portrait and landscape mode. As it's now the most popular Android smartphone, I'd like to test it with my websites. I would just like to know the most basic settings so I can get at least a rough idea. I'm using the Andriod SDK with the GUI frontend. I'm looking for those settings that come up after you click "New" in the Andriod Virtual Device Manager. For example: Target: SD Card: Skin: Hardware: Abstracted LCD Density Max VM application

How to connect the device to Eclipse?

我是研究僧i 提交于 2019-11-27 08:59:09
I am not able to resolve this simple issue. I am trying to connect my device to Eclipse via USB cable. On my PC, I have installed Eclipse and the Android SDK and running the program on the emulator is working fine. I have downloaded and installed Samsung Kies on my PC. It shows my device if connected via USB to the PC. But I dont know how to connect the device with the emulator. Connect means, I want to run the Eclipse code on my device instead of emulator. I am using Samsung Galaxy Ace GT-S5830i . Please help me out to resolve this issue. Comment is lack of formatting so i add an answer.

Turn ON/OFF Camera LED/flash light in Samsung Galaxy Ace 2.2.1 & Galaxy Tab

巧了我就是萌 提交于 2019-11-27 07:39:49
I am turning ON Camera LED light using FLASH_MODE_ON . Samsung Galaxy Ace have only three flash modes : on, off and auto. FLASH_MODE_TORCH not working in Samsung Galaxy Tab & Samsung Galaxy Ace 2.2.1 Here is my code how i am turning ON my Camera LED Camera cam; cam = Camera.open(); Parameters params = cam.getParameters(); params.setFlashMode(Parameters.FLASH_MODE_ON); cam.setParameters(params); cam.startPreview(); cam.autoFocus(new AutoFocusCallback() { public void onAutoFocus(boolean success, Camera camera) { } }); And turning it off by using : cam.stopPreview(); cam.release(); Code Reference

Understanding Samsung Galaxy Tab screen density

≯℡__Kan透↙ 提交于 2019-11-27 02:22:37
问题 One would say that if the Galaxy Tab screen resolution (in portrait mode) is 600px and the screen width is 3.55inch , the screen density would be 600/3.55 = 169 dpi . Knowing that and keeping in mind the way the device independent pixels (dp) is computed (http://developer.android.com/guide/practices/screens_support.html): px = dp * (dpi / 160); 600 = dp * (169 / 160); dip = 568 So drawing a horizontal line of 568dp (device independent pixels) width starting at position 0 must exactly match

SDCard content exist but cant see them

点点圈 提交于 2019-11-27 02:03:11
I am having very Strange problem with my Samsung Nexus with Android 4.0.2. I wrote a simple program which basically create file each time user presses a button. My program is working great on other devices where as on Galaxy Nexus Windows/Mac can not see those files on SD card, but when i do adb shell i see all files on SD Card. I retest this on another Nexus which has Android 4.0.4 but still same result. What could be the reason? You probably need to index your files via MediaScannerConnection . Quoting myself from a blog post from last year : ...the MTP contents are not based on the literal

Samsung Galaxy s3 emulator settings

对着背影说爱祢 提交于 2019-11-27 00:20:45
问题 Can anyone with galaxy s3 access confirm the below emulator settings for Galaxy s3? Target: Google APIs - API Level 15 Skin: Built-in WXGA720 Hardware Back/Home: yes Abstracted LCD density: 320 Keyboard lid support: no Max VM application heap size: 48 Device ram size: 1024 回答1: I had to set the device ram to 512 in emulator. Above configs were the best possible match I could get after comparing with the real Galaxy S3 device. 回答2: It work for me with 768MB RAM. On Windows, emulating RAM

android: I get no stacktrace, phone just hangs

岁酱吖の 提交于 2019-11-26 20:18:29
问题 My phone crashes after i pause my camera app, then switching back and take a picture. This only happens on my Samsung Galaxy S, on my Huwai device it totally works. I have found the lines of code which lead to the error. Unfortunately those lines are quite useful, so I can't strip them: public void surfaceDestroyed(SurfaceHolder holder) { // <14> Log.d(TAG,"surfaceDestroyed()"); if(this.camera != null){ camera.stopPreview(); // the next two lines lead to the error after switching back to the

Samsung Galaxy S II AVD (Android Virtual Device) Basic Settings?

泪湿孤枕 提交于 2019-11-26 15:14:20
问题 I would like to create an AVD of the Samsung Galaxy S II. The sole purpose is to test websites with it's default web browser to see how they look in both portrait and landscape mode. As it's now the most popular Android smartphone, I'd like to test it with my websites. I would just like to know the most basic settings so I can get at least a rough idea. I'm using the Andriod SDK with the GUI frontend. I'm looking for those settings that come up after you click "New" in the Andriod Virtual