w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
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

Casting without dongle and multi device "screen sharing"
I suspect you are confusing chrome the web browser (https://en.wikipedia.org/wiki/Google_Chrome) with chrome the operating system (http://en.wikipedia.org/wiki/Chrome_OS). Chromecast as currently available is only good for accepting comands from compatible software (chrome the browser, the youtube app on android or ios etc) at which point it then streams the requested data from the internet, not from your phone/tablet/computer. Your idea is not supported, which is stunning as Android has had built in support for screen mirroring via miracast since v4.2. There's also no mention of direct content streaming, for instance via DLNA, an open protocol designed for EXACTLY THAT. In fact, a better approach here would have been to make the chromecast dongle a DLNA device and then implement support

Categories : Google Chrome

Android Virtual Device Manager
if you want to run AVD from eclipse , you need to install plugin. Below link will guide you. http://developer.android.com/sdk/installing/installing-adt.html

Categories : Android

Android Virtual Device Manager quit unexpectedly
Start the emulator instead by using emulator -avd emulator_device_name & where you fill in emulator_device_name with the name of the emulator you see when you run android avd.

Categories : Android

Android Development - Command "adb devices" not listing my device
For the sake of anyone else still struggling with this, I found a driver package that works. I recently purchased an Ainol Novo Hero 10 II for development purposes and faced the same problem as you. This solution works for me: Source: http://www.slatedroid.com/topic/70585-adb-drivers/ If you have already installed any previous drivers but your ADB doesn't recognise it, go to your Device Mangers to uninstall and remove all existing drivers associated with your new device. Download modified USB driver from here: http://yadi.sk/d/54lX5c2O386XU This driver is UNSIGNED so install at your own risk (although it seems to work for me). Windows has a Driver Signature Enforcement that you need to disable. A google search will lead you to instructions (sorry not enough rep points to post more t

Categories : Android

What are the basic requirements for Android device driver development?
Here is the link that might help you http://mobilesystemsengineering.appspot.com/staticdocs/AdvancedMobileSystemsEngineering/lecturenotes/Chapter4.pdf

Categories : Android

Open remote Device file manager using bluetooth [Android]
You can use FTP profile(file transfer profile) which uses OBEX, can find code at here. Thanks to QCOM for open-source code, check if you need to have RFCOMM channel registration and other details

Categories : Android

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

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

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 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 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

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

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

Device Manager Interaction Sendkeys
I suggest you use the UI Automation technology instead. It's adapted to this kind of situation, here is a sample that opens the "Keyboards" node, selects the first keyboard node and simulate a key press on ENTER: static void Main(string[] args) { // this code needs a reference to UIAutomationClient and UIAutomationTypes Process process = Process.Start("devmgmt.msc"); do { process.Refresh(); Thread.Sleep(100); } while (process.MainWindowHandle == IntPtr.Zero); // get root element that corresponds to the process main window AutomationElement mainWindow = AutomationElement.FromHandle(process.MainWindowHandle); // get the first tree view control by its class name AutomationElement

Categories : C#

Normal iOS Development on Jailbroken device
No. Jailbreaking does not remove functionality, only adds some. As for the "compilcations" or "weird behavior", you don't have to expect those either - the changes jailbreaking makes to the system does not directly affect the userland, let alone the AppStore apps (and those which are being tested).

Categories : IOS

Test device for DirectShow development
There is no standard test device, you might possibly find a third party virtual video source capable of delivering video in multiple formats, however the reliably working but time consuming path is to take PushSource sample from Windows SDK and update it appropriately to convert it into a test source device.

Categories : Windows

iOS Device Test Mode and old iOS development
As far as I know, there is no limitation in "test mode". If your application is developed for iOS 6, then it should still work on iOS 7 as well, but with the iOS 6 look & feel. However, it is always best to test it on a real device with iOS 7, of course.

Categories : IOS

How to disable all the physical buttons present on a tablet device
Hide elements in ActionBar: If you want to disable the Up-Button you should to this: getActionBar().setHomeButtonEnabled(false); If you don't want a OptionsMenu than delete your onCreateOptionsMenu Method. UPDATE 2013 11 22: Hide System Navigation: View rootView = getWindow().getDecorView().getRootView(); rootView.setSystemUiVisibility( View.SYSTEM_UI_FLAG_HIDE_NAVIGATION ); But please read the API of this FLAG: http://developer.android.com/reference/android/view/View.html#SYSTEM_UI_FLAG_HIDE_NAVIGATION

Categories : Android

Access to Application Support Directory on the device during development
Take a look at http://developer.apple.com/library/mac/#recipes/xcode_help-devices_organizer/articles/copy_app_data_from_sandbox.html This should provide you with a package of all data within the App's sandbox

Categories : IOS

Load different stylesheet if keyboard is present on device (javascript detect)
That's not how you create elements, you have to do it like this : var normalCss = document.createElement('link'); normalCss.href = 'css/main.css'; normalCss.setAttribute('rel', 'stylesheet');

Categories : Javascript

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

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

Not showing my mobile device in eclipse but show in Window 8 (portable device part)
Download usb driver for samsung from here : http://developer.samsung.com/android/tools-sdks/Samsung-Andorid-USB-Driver-for-Windows

Categories : Android

iOS Project runs on simulator, physical device, but can't build or archive anymore for "iOS Device"
After this happening a few times, I figured out the issue. When my iPhone is hooked up to my Mac and tethering is on, this problem occurs. When I turn tethering off, or disconnect the phone, I can archive again. Not sure why this, but I hope it helps someone at some point.

Categories : Iphone

The method "device.press" or "device.touch" of MonkeyRunner doesn't take effect
You could try to replace 'DOWN_AND_UP' with MonkeyDevice.DOWN_AND_UP. And you could also add some MonkeyRunner.sleep(time_in_seconds) to pause the script between the interactions. To test if the device object was properly created you could use device.wake() which lights up the device's display. If this works, the touch and press methods should work also.

Categories : Android

Trying to retrieve previously paired bluetooth device in IOS app will not respond with failure if device is off
Two points you need to know about retrievePeripherals: and connectPeripheral: 1.) retrievePeripherals: attempts to retrieve the CBPeripheral object associated with the uuid you supply. Even if the ble device is off (or on the other side of the country) retrievePeripherals: will still return an instance of CBPeripheral that you can call connectPeripheral: on. This is done intentionally so that you can issue a call to a peripheral that is not even around and still automatically connect to it when it comes back into range. It basically creates a marker inside the system bluetooth so that when the device is actually seen, it will know it should connect to it. 2.)connectPeripheral: will not time out unless the communication channel is broken with the actual device. If the iOS device has not s

Categories : IOS

why doesn't MPMoviePlayerController play in simulator but not in device if the format is valid for the device?
Solved! I am forcing it playing even if the mute is on, moviePlayer.useApplicationAudioSession = NO; [self presentMoviePlayerViewControllerAnimated:moviePlayer]; that's what itunes store does if the mute is on for the preview songs when you tap it

Categories : Iphone

how to use the same image of 160ppi and 1280X800 ressolution device in 800X1280 and 214ppi device
1280 x 800 160ppi is MDPI devices 800 x 1280 214PPi us TVDPI devices //you need to supply different density Images like MDPI and HDPI images TVDPI devices will pick from HDPI image and auto scale them //you can also supply different drawable for large and xlarge drawables.

Categories : Android

Sending image (.jpg) byte data to an iOS device from a .NET web service, then on the iOS device, encoding it to its respective file type (.jpg)
Been there, but on the iOS end. What we did to solve this problem was to have the .NET server send the image as a base64 encoded string, just as you said. In the iOS end, the dev must then use a base64 decoding class (there are plenty on the internet, this one for example: http://www.imthi.com/wp-content/uploads/2010/08/base64.zip), transform that into NSData and then create the image with that data. Should look something like this: NSString *b64string = @"string to decode"; NSData *imgData = [DecoderClass decodeBase64FromString:b64String]; UIImage *image = [UIImage imageWithData:imgData]; If the data is correct, it should work. UIImage is a high-level class and should handle image types (jpg, png, etc) automatically, as long as the data is consistent.

Categories : C#

how to record the voice from bluetooth device mic and play in device speaker
yes above concept is correct and very helpful for me(but there is little bit addition or modification done) but routing to speaker(device-speaker)required new session to create for taking input from Bluetooth we have create session like //// create and set up the audio session AVAudioSession* audioSession = [AVAudioSession sharedInstance]; [audioSession setDelegate:self]; [audioSession setCategory: AVAudioSessionCategoryRecord error: nil]; [audioSession setActive: YES error: nil]; // set up for bluetooth microphone input UInt32 allowBluetoothInput = 1; AudioSessionSetProperty (kAudioSessionProperty_OverrideCategoryEnableBluetoothInput,sizeof (allowBluetoothInput),&allowBluetoothInput); and when ever u want to paly the sound not in bluetoothdevice speaker at that time override

Categories : Iphone

Using the accelerometer in a Windows Phone 8 device to determine if device is not moving
From my point of view, it really depends where do you want to use your app. If it is an outdoor application then as Igrali mentioned using GPS would be a better option. However, if you are still sure that you want to use accelerometer one way that I tried before was save last few results of the accelerometer every time then check them with previous results. if the result was same it means the system is stopped otherwise it is moving. That may not be a good way but it works.

Categories : Windows Phone 8

Changing device orientation settings by Device in Rubymotion
You won't be able to do that in your Rakefile, as far as I know. You need to specify that you provide both orientations and then programmatically tell iOS whether an orientation is supported or not. Your UIViewControllers and/or UINavigationController(s) should look like this: def ipad? NSBundle.mainBundle.infoDictionary["UIDeviceFamily"].include?("2") end def shouldAutorotate false # I think? end def supportedInterfaceOrientations if ipad? UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight else UIInterfaceOrientationMaskPortrait end end def preferredInterfaceOrientationForPresentation ipad? ? UIInterfaceOrientationMaskLandscapeLeft : UIInterfaceOrientationMaskPortrait end Haven't tested this code, but I've used similar in th

Categories : IOS

What will registering an apple device a developer device do to it?
Yes you can still use it as a regular device. All registering does is enable the Developer section in Settings, allow you to install iOS beta releases, debug builds directly from Xcode, and ad hoc app builds. Also to elaborate on the Developer section in the Settings app, as of iOS 6 and above, that gives you access to the network link conditioner so you can simulate for instance 3G or EDGE speeds when on Wifi. Very useful.

Categories : IOS

WP7 app, MethodAccessException on WP7 device but works fine on WP8 device
Try this private Uri GetFacebookLoginUrl(string appId, string extendedPermissions) { var fb = FacebookClient(); var parameters = new Dictionary<string, object>(); parameters["client_id"] = appId; parameters["redirect_uri"] = "https://www.facebook.com/connect/login_success.html"; parameters["response_type"] = "token"; parameters["display"] = "touch"; // add the 'scope' only if we have extendedPermissions. if (!string.IsNullOrEmpty(extendedPermissions)) { // A comma-delimited list of permissions parameters["scope"] = extendedPermissions; } return _fb.GetLoginUrl(parameters); } You Need to Give App ExtendedPermissions private const string ExtendedPermission

Categories : C#

C# detect usb device ClassCode (usb device type)
You can download USB View Source as a starting point. This loops through all USB devices on a PC (C#) and pulls information about each. To get the Class code, Subclass code, and Protocol type fields, you'll need to modify it slightly. Change the below and run it and you'll get the information on each USB device by clicking on the item in the tree view (information will appear in the right panel). Modifications to USB.cs: // Add the following properties to the USBDevice class // Leave everything else as is public byte DeviceClass { get { return DeviceDescriptor.bDeviceClass; } } public byte DeviceSubClass { get { return DeviceDescriptor.bDeviceSubClass; } } public byte DeviceProtocol { get { return DeviceDescriptor.bDeviceProtocol; } } Modifications to fmMain.cs // Add th

Categories : C#

Using GCM for device to device app data sync
you dont necessarily need to use GCM or any messaging service, all gcm is meant to do is notify a device that something has changed on your server and that you need to go get all the new stuff. that being said all you need to do is just have a sync button that the user can manually sync the list from the server to the device and vice versa which would get rid of the need for GCM. if you wanted automatic syncing then GCM or any other messaging service would be what you want

Categories : Android

How to update the view of an app on ios device b from device a
when the application is open, is there a way for when the admin application to be notified straight away as soon as a sale has been made There are ways. One way is to open a connection to the server and keep it open, so that the server can write to it whenever it has new information to share. Another way is to implement a tiny web server in your app, tell your data server about it, and let the data server connect to it as necessary. If the server and the admin device are expected to be on the same network, you might be able to use Bonjour to make it easy for the server to discover and connect to the admin device. The nice thing about APNS is that it lets you avoid constant use of the network. Whether you keep an open connection to a server or have your app listen for connections

Categories : Objective C

Device not Recognize AVD Device on Usb Debugging
I also faced the same problem for a Samsung device.I installed the required Samsung Kies and USB drivers but still it doesn't show in the AVD chooser screen. So I downloaded a driver installer software.After installing that, it showed that a updated version of Samsung Kies is available then I updated it and everything worked fine.You can download that software from here

Categories : Android

How to create an event# device for a virtual input device (/dev/input/js3) in linux kernel module?
Here is an example, you can use 1. class_create to create the class specified for the device, 2. device_create to create the device node 3. cdev_init to initialize and 4. cdev_add to add the device to the /dev list For example you can refer the below link :Create a device node in kernel module

Categories : Linux



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