w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
android device does not show up under Android Device Chooser
Make sure you are using the correct android API and SDK version compatible with your device's version in the code. (In the android SDK for eclipse this is in Android Manifest.xml) If the two don't match up, then they won't show up when you try to test it on the device.

Categories : Android

How to connect Android device to an iOS device over BLE (Bluetooth Low Energy)
I've written a simple working example, well relatively simple, and included it open-source on Github: https://github.com/GitGarage. So far it has only been tested with an Android Nexus 9 and an iPhone 5s, but I presume it would also work with a Nexus 6 and various iPhone types. So far it is set up explicitly to communicate between one Android and one iPhone, but I presume it is tweakable to do much more.

Categories : Android

Android Device device shows Unknown (?????) in eclipse
You need to add vendor ID to android.rules file. Please follow this link to know about particular vendor id & how to do this. http://developer.android.com/tools/device.html

Categories : Android

How to track the device location (iOS and Android) device using Phonegap
The first thing to say is that creating a Phonegap app that receives location updates while running in the background is entirely possible, but not trivial. I've done it myself and released apps on both the Android and iOS platforms. If you need accurate and regular position updates, I'd suggest using the GPS receiver on the target devices. In Phonegap, you can do this setting the "highAccuracy" flag when requesting position updates. The watchPosition() function will deliver new position information as and when the device receives updates from the GPS receiver, so you use it something like this: navigator.geolocation.watchPosition(successCallback, errorCallback, { enableHighAccuracy: true, timeout: 10000, maximumAge: 0 }); See the Phonegap geolocation API documentation for more d

Categories : Android

How can i create new virtual mouse device on my android device?
From what i see you should create your own virtual device with your own driver , Fortunately there is an easy way to do so using uinput There is an easy guide for getting started here , and this question can be a good guide to write your own virtual driver. I thought this can only be done if you have access to kernel , and create your own ( i dont think modifying user rom is a good solution ) , but after reading this , it is clear that Uinput can run in user mode. Note : I agree with recommendition to use touch events ; as this solution is more common and makes sense , check second suggestion is this answer

Categories : Android

How can i Write data from Android device on c2540c device?
Might this solve your problem?

Categories : Android

What is difference between android device id and device token?
Both are completely different. Secure.ANDROID_ID A 64-bit number (as a hex string) that is randomly generated on the device's first boot and should remain constant for the lifetime of the device. (The value may change if a factory reset is performed on the device.) And GCMRegistrar.register(this.context, CommonUtilities.SENDER_ID); Gives you the registartion id of device from GCM. By which, GCM uniquely identifies the device. Another difference is Secure.ANDROID_ID may change when factory reset is performed on the device. And Registration id gets changes periodically. And if you are asking about CommonUtilities.SENDER_ID then This is your project number, and it will be used later on as the GCM sender ID

Categories : Android

does the target SDK option in android SDK have to be the same as the test device Android version? (Android SDK basic)
You should set the minimum SDK required to whatever API is required for all code to work correctly. Some API methods are not available until later versions and some have been deprecated in current versions (though the deprecated methods should still work as expected). No devices that I know of require API 1-3. Most devices all have 8 or higher. The target SDK is the code you are targeting when you program so say if new APIs have become available and you are using them in your code then you won't get a compile time error saying the method/class doesn't exist. You should also be aware that if you target a higher API then will be running on the device, you may have run time errors of methods/classes not existing.

Categories : Android

Access one android device to another android device
It is not mandatory. You can also implement this as a server client solution, where the data transfer between the clients takes through the server. If you didn't try it yet, that will be a tedious task for the particular solution. Both side should keep services to monitor and transfer data. But if you intent a real time solution, I'll prefer Bluetooth for faster response.

Categories : Misc

android application directly login using saved account credential in android device
This is an in-depth look into how you can authenticate based on the users Android credentials, has an example of how things work and how the UI should be try this use some refrence api also available link You can get help from android developer blog link

Categories : Android

Phonegap android project works on emulator and in some devices but not in a 2.2 android device
Thanks to @Raoul George i discovered what was the problem. When you make: var visitedList = JSON.parse(window.localStorage.getItem("visited")); in an android 4 nothing happens, but if you work with an android 2.2 you need to be sure that window.localStorage.getItem("visited") has a value.

Categories : Android

Android JUnit testing while executing OpenCV functionality on PC instead of android device
To separate this two tasks, you need to realize (for example) REST client on android and server on the desktop. Client should connect to server Server pings client and client sends him screenshots. Perhaps, you will need to create separate thread in test. Client should do the following: When you need to take screenshot: Object res = null; res = new File(takeScreenShot(solo)); Then public static String takeScreenShot(Solo _solo) { solo = _solo; String dir = "/sdcard/Robotium-Screenshots/"; String fileName = "screenshot"; java.io.File file = new java.io.File(dir, fileName); if (file.exists()) { file.delete(); } solo.takeScreenshot(fileName); solo.sleep(2000); return "/sdcard/Robotium-Screenshots/" + fileName + ".jpg"; } You need

Categories : Java

Wrong build being deployed on Android device using Visual Studio 2012 Xamarin.Android
I have no idea why it does this, I had this issue before. I also noticed that the device log was somewhat behind (ie, at 3.30pm, the last record on the device log was 11.00am). Uninstalling the app from the device and re-deploying it seems to correct it. Note: I had this issue in VS, didn't check with XS. I would look at the difference in your deployment settings in VS and XS (I think it may have something to do with the Fast Deployment option).

Categories : Visual Studio 2012

Android virtual Device not starting on a fresh android sdk installation
make sure : Create a environment variable called: ANDROID_SDK_HOME and set it to C:UsersAdministrator Open Eclipse > Window > Preferences and click in Run/Debug and String Substitution Add a new variable called: user.home and set it to C:UsersAdministrator Create an AVD and run it. Alternate solution i would suggest u is use android app player : Bluestack OR YouWave

Categories : Android

Is it possible to write an Android app that uses Google Maps on android device with OGL1.1?
My device does not have OGL 2 - so is it now physically impossible to write an app that uses a Map? You cannot use Maps V2. You are welcome to use OpenStreetMap or other mapping engines.

Categories : Android

Android : Capturing HTTP Requests with non-rooted android device
You could install Charles(an HTTP proxy / HTTP monitor / Reverse Proxy that enables a developer to view all of the HTTP and SSL / HTTPS traffic between their machine and the Internet) on you PC or MAC. Config steps: Let your phone and PC or MAC in a same LAN Launch Charles which you installed (default proxy port is 8888) Setup your phone's wifi configuration: set the ip of delegate to your PC or MAC's ip, port of delegate to 8888 Lauch your app in your phone. And monitor http requests on Charles.

Categories : Android

Declared Shared Preferences in Android causes error when run on Android device?
SharedPreferences value = getApplicationContext().getSharedPreferences("Values", MODE_PRIVATE); SharedPreferences.Editor editor = value.edit(); Move this two lines to the function Store. In your case When the class is created it will try to access the context of the application using getApplicationContext function by the time the context wont be created so wait for the onCreate to happen and then save these two values. Hope this will help. It is clear from the crash log that the context is not created. See this line Caused by: java.lang.NullPointerException 08-29 01:42:59.390: E/AndroidRuntime(29985): at android.content.ContextWrapper.getApplicationContext(ContextWrapper.java:101) Do some thing like this instead. SharedPreferences value; SharedPreferences.Editor editor; @Overri

Categories : Android

Android Logcat is empty when debug with device in android studio
As of 0.4.0 I have noticed that the logcat tab does not work in the debugger window - only in the Android DDMS window (hit Alt+6 to bring up the working logcat while debugging). Awkward I know :)

Categories : Android

Having issue on Real Device using vector image in android. SVG-android
On newer devices that have hardware rendering turned on by default, you need to explicitly turn on software rendering. imgView.setLayerType(View.LAYER_TYPE_SOFTWARE, null); I suspect this is probably your problem.

Categories : Android

use adb to get the device name of android device
You can get shell access to your Android device via the following command. adb shell The application data is stored in the directory "/data/data/package_of_your_app". // Assume the gesture file exists on your Android device adb pull /sdcard/gestures ~/test // Now copy it back adb push ~/test/gesture /sdcard/gestures2 It will work for you.

Categories : Android

Android device is not connected to USB for debugging (Android studio)
If you are on windows, many times it will not recognize the device fully and because of driver issues, the device won't show up. go to settings control panel hardware and sound device manager And look for any devices showing an error. Many androids will show as an unknown USB device. Select that device and try to update the drivers for it.

Categories : Android

Working with android:layout_alignStart and a real Android Device
Your problem is layout_alignStart is supported from Android 4.2 (API level 17), but Galaxy Note II is 4.1.2 (API level 16). If you go to http://developer.android.com/reference/android/R.attr.html#layout_alignStart and change the API level (in the top left corner of the page) to 16 or lower, you'll see layout_alignStart entry become grayed out.

Categories : Android

How to modify android Source code and use that into Android device?
Your question is so generic. So I just suppose that you have already got to know how to build and flash your customized firmware. And here is the answer for your original requirement: To disable the navigation buttons, you should modify the file YOURANDORIDROOT/framework/base/core/res/res/values/config.xml and change the value <bool name="config_showNavigationBar">true</bool> to <bool name="config_showNavigationBar">false</bool> And some more information for your reference, you can go to framework/base/package/systemui directory and there you can find the source code of the status bar.

Categories : Android

Finding and Android NSD-Service from a non-Android Device
The protocol you are after is http://www.dns-sd.org/ - DNS Service Discovery (DNS-SD) That seems to be the only protocolType in the current Android framework.

Categories : Java

Can Android NFC Peer2Peer communicate with a non-Android NFC Device (NOT Tag)?
Yes,It's possible.I developed one project like that before. In non-android device, you should implement LLCP and SNEP(or NPP) protocol. And for the phone, you should develop your own application to provide the message. In last project, we use libnfc to drive the PN532 chip on PC, then use libllcp for the LLCP layer, and implemented SNEP stack. At last develop our own service and application. Maybe you can have a try like this way, or implement the protocols I mentioned above.

Categories : Android

My app won't show up on android emulator and android device
You have missed to put the action in your launcher activity <action android:name="android.intent.action.MAIN" /> your correct code look like <activity android:name="com.example.trial1.Splash" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.SPLASH" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>

Categories : Android

android- how to lock the device (in android 1.6+)
You can use something like this which exploits DevicePolicyManager: public class SMSMessagingActivity extends Activity { /** * Called when the activity is first created. */ public static DevicePolicyManager mDPM; public static ComponentName devAdminReceiver; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mDPM = (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE); devAdminReceiver = new ComponentName(context, deviceAdminReceiver.class); } public static void LockNow() { mDPM.lockNow(); } @Override public void onResu

Categories : Android

Is there a way to see how much ram a android device has?
Is there a way to see how much ram the device has so i can use both resultion and memory to determin what size bitmap to use? The device RAM does not matter. The available memory for your process matters. To find out the memory class of your app, call getMemoryClass() on ActivityManager -- that basically returns the amount of available RAM for your process in MB.

Categories : Android

Display Android SDK Manager, Android Virtual Device manager buttons in eclipse?
Try this: window->customize perspective->command groups availability->andriod and avd managers (CHECK this option) and then Tool bar visibility->andriod and avd managers(CHECK this option) Hope it helps..:)

Categories : Android

What happens on an android device when the app updates?
From what I could find in researching this, it seems as though the App needs to be closed in order for the files to be reachable for update. Once closed, Google Play updates only the changed pieces of the apk to save time and cost. There are several forum posts I have found that teach you how to rollback app options from flashed ROM (which happens all the time with rooted devices). Perhaps the user attempted to rollback after receiving the update. Either that, or the ID that was in the crash is referenced in part of your apk that was not updated. Sources: Notification of Update What Happens When You Update an App Google Play Saves Cost & Time

Categories : Android

How to tell if android device detected by ADB?
By using ddmlib.jar, which is also used by Eclipse plugins, you can monitor the device connect/disconnect event. The ddmlib is usually found in the tools/lib directory in Android SDK. But there is no the official documents about how to use it. Below is the code example. You have to include the ddmlib.jar and change the adb location according to your environment. import java.io.IOException; import com.android.ddmlib.AndroidDebugBridge; import com.android.ddmlib.AndroidDebugBridge.IDeviceChangeListener; import com.android.ddmlib.IDevice; public class Main { public static void main(String[] args) throws IOException { AndroidDebugBridge.init(false); AndroidDebugBridge debugBridge = AndroidDebugBridge.createBridge("D:\android-sdk\platform-tools\adb.exe", true);

Categories : Java

How to keep awake my android device
Hi I've already fix my problem, the problem was in the wifi, it was sleeping after some time so I added a wifilock and in the constructor of the class in I'm using WIFI_MODE_FULL_HIGH_PERF this flag avoid the device turn off the wifi wifilock = manager.createWifiLock(3,TAG);// WIFI_MODE_FULL_HIGH_PERF The only problem is this flag is only available since API 12, but for now is not a big deal into my project. If you want more information in this linkWIFI_MODE_FULL_HIGH_PERF

Categories : Android

Does a android GCM device id ever change?
yes it is possible for the ID to change. If you take a look at the tutorial in the SDK, every time the app is updated to a new version it will go and get a new ID because the previous ID is not guaranteed to work. specifically take a look at this page http://developer.android.com/google/gcm/client.html Check if app was updated; if so, it must clear the registration ID since the existing regID is not guaranteed to work with the new app version.

Categories : Android

Locking android device from app
Before Lock the screen you need to Enable Admin Permission.You can check whether device admin is active or not like deviceManger.isAdminActive(compName); if not then you have to enable it first, and then you can lock the device using deviceManger.lockNow(); For further information you can refer this: Lock Screen programmatically

Categories : Android

Why won't my android app install on this one device out of many?
I completely rolled back my tools from r22 to r22 and it fixed the issue, but this doesn't seem like a viable long-term solution. Rolling back isn't easy! It involves overwriting my android-sdk/tools/ dir with a downloaded copy of r21's tools (you have to guess this URL, google doesn't publish it. check out http://developer.android.com/sdk/index.html). Then open the SDK manager and re-install the platform tools. For eclipse, I needed to delete, re-install, then import a zipped copy of the ADT plugin (again check out the website and guess the link!). Uninstalling and then re-installing the rolled-back plugin caused issues.

Categories : Android

android - unique device ID
The difference is written in the descriptions of both methods... However, I think using IMEI number is much more reliable because it identifies the device itself. What if the device has to restore default configuration ? You'd have to check if it doesn't generate a new number if you take your 2nd option. More information about IMEI can be found here : http://en.wikipedia.org/wiki/International_Mobile_Equipment_Identity

Categories : Android

Unique ID for Android device
You can use the ANDROID_ID but in certain devices it is a bug and it seems to return the same id. Check the reference for the same https://groups.google.com/forum/#!topic/android-developers/U4mOUI-rRPY. As a fall back i do the following: String deviceId = Secure.getString(ActivationActivity.this.getContentResolver(), Secure.ANDROID_ID); if ("9774d56d682e549c".equals(deviceId)) { deviceId= UUID.randomUUID().toString(); }

Categories : Android

Android device(4.0 or above) GPS turn on/off
After Android 2.3 it is no longer possible. Only apps signed with manufacturer platform certificate can use that permission. The correct thing is to send the user to the location settings page, and let him enable GPS if he wish. e.g., Intent i = new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS); startActivity(i);

Categories : Android

Android APK cannot be installed on device
You forgot to lunch before building. That's why it's building in out/target/product/generic instead of out/target/product/vision. It looks like your generic build is set up to build odexed apks, which is why there is no classes.dex inside the apk. . build/envsetup.sh lunch vision-userdebug # or -eng or -user mmm packages/apps/Contacts

Categories : Java

Can I run Simulink on an Android device?
Afaik you can only connect your android device with a MATLAB session running on a computer. Refering to this page it is possible to use SIMULINK as well. Here is a short introduction by MATHWORKS how it works.

Categories : Android



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.