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

Can I connect any android device with ubuntu?
Under linux no driver is needed for adb connectivity. Although a little setup is required to change the adb device file permissions to make it accessible by non-root users. Personally I use this universal udev rule which works for all android devices regardless of the manufacturer: ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:ff420?:*", MODE="0666" Also for some noname devices you might need to add their VendorID to the ~/.android/adb_usb.ini. Just run the following commands with the device plugged in: find -L /sys/bus/usb/devices -maxdepth 2 -path "*/modalias" -printf "%h " -exec cat {} ; | awk -F: '/icFFisc42ip01/ {print $1}' | xargs -i cat {}/idVendor | awk '{print" 0x"$1}' >>~/.android/adb_usb.ini grep ^0x ~/.android/adb_usb.ini | so

Categories : Android

Connect Android Device (PhoneGap) in Eclipse to 127.0.0.1
You can use 127.0.0.1 to reach the emulator's host, if you are in the same machine. If you want to reach the development machine, you can use 10.0.2.2. Refer to How to get the Android Emulator's IP address? Hope it helps.

Categories : Javascript

Use NFC to connect android device to wifi without any 3rd party software
Why not just put a download link for your app on the NFC tag? If the device has an internet connection, tapping the tag will launch the browser (or the Google Play app) and follow the download link. It's not really up to you to demand that the device connects to a wifi network first.

Categories : Android

worklight server root URL fial to connect in android device
worklightServerRootURL should point to the public IP address of the host machine, not to the device IP. The device and Worklight Server must be in the same network (public Internet, wifi...).

Categories : Android

Android: Listening and fire the App anytime device connect to internet
You need a broadcast receiver to be notified when the internet connection state is changed. Take a look at this and this.

Categories : Android

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

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

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

can not connect my device to eclipse
I keep getting 11-13 09:35:51.999: E/DataRouter(95): Opening of the USB File failed fd is -1 & errno is 2 as well, however this doesnt stop me from attaching my device to my computer. One of these may work for you Restart your phone Restart eclipse Update eclipse to the latest version Download the latest APIs (currently API 19) Download latest drivers (this may be needed if you have upgraded your phone/device software recently)

Categories : Android

Connect to a bluetooth device?
You can try adding bluetooth using that Mac Address. Go to bluetooth and look for connect to device (Manual or something) and enter the address. Trying switching reboot your device as well as phone.

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

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

fastboot connect remote device
You have to check your bootloader and make sure that your fastboot is correctly configred. It must be able to bring up the wifi/ethernet interface and perform a DHCP or set a static ip address before you can connect to it. If you are sure that the device could get an IP address in fastboot mode, plese try to get connected to it firstly by ping its ip address. If you got no react, try to use wireshark to capture some trace to see if there is something wrong (firewall issue?).

Categories : Android

Cannot connect Rockchip 3066 device to adb on mac os
I tried to do the same on several Windows machines and on a Mac with another, also very much cheap Chineese but nice device. It turns out that the main problem is in adp. If the device is listed in a device manager or system report and displays the "connected for debugging" notification, then it is recognized and there are no driver related problems. This is easy to acheive on both Mac and Windows. However, "adb devices" does not show the device. In Windows, I just followed an advice from the Net and used adb version .26 and it worked. The lack of support for Rockchip is evidently intentional. I do not know who maintains adb, but if it is Google et. allies, then they just do not like cheap devices.

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

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

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

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

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

CoreBluetooth: Can you connect to a peripheral device that is not advertising
No, it cannot. To create a connection to any peripheral device, that device would have to advertise using connectable advertising. The device that wants to connect, will then have to reply to one of the advertisements with a connection request.

Categories : IOS

auto connect bluetooth to last connected device
Wrote this using gEdit since, I don't have eclipse atm. So if there is some coding error please don't hesitate to edit this. For ease of explanation I haven't used SharedPreferences here, if you want to use don't hesitate it. //Assuming that you have device address and is connected private String partnerDevAdd="00:11:22:AA:BB:CC"; private boolean isConnected=true; IntentFilter filter = new IntentFilter(); filter.addAction(BluetoothDevice.ACTION_FOUND); filter.addAction(BluetoothDevice.ACTION_ACL_CONNECTED); filter.addAction(BluetoothDevice.ACTION_ACL_DISCONNECTED); registerReceiver(mReceiver, filter); // Create a BroadcastReceiver for bluetooth related checks private final BroadcastReceiver mReceiver = new BroadcastReceiver() { public void onReceive(Context context, Intent intent)

Categories : Android

connect to device with Bluetooth address on String
First you will have to findout what profile the bluetooth device supports, For instance it could be a medical device that could use HDP profile or it could be using a simple RS232 over bluetooth. It is important to understand how the bluetooth connection is established for various profiles before you start writing code. Here is a good link to start with. Android SDK also comes withe some basic examples that you can start with. http://developer.android.com/guide/topics/connectivity/bluetooth.html EDIT: If your device is paired successfully,you will see the MAC address in the list of paired devices. For instance, you can do this to find the device that matches your device's MAC address : Set<BluetoothDevice> pairedDevices = mBluetoothAdapter .getBondedDevices

Categories : Android

how to connect an ios device to a Hotspot driven by hostapd
if the "circle by the ssid side" keeps showing ,i think your device is still trying to get ip address. could you please provide us with more detail messages? such as your hostapd configure file and your dhcpd configure file.

Categories : IOS

iOS Corebluetooth - Sometimes won't connect to a device until I do a network reset
If your device is only looking for a specific service/characteristic specified in the GATT profile, that could be the problem. For whatever reason, Apple left out of their documentation that the Bluetooth automatically caches the GATT Profile until the bluetooth is turned off and back on. So if you are changing the GATT on your LE device, and your phone is looking for something specific in the GATT, it may not be able to find your device. Unfortunately, I don't believe there is a way to clear the cache programatically, so you'll still have to manually reset bluetooth. However, if you aren't changing the GATT profile, that whole above paragraph doesn't apply to you =P What I would keep in mind is that Bluetooth LE "slaves" (or, as Apple calls them, peripherals) can only have one connecti

Categories : IOS

Google map only show with device connect to my computer
I assume your friend is running the code rather than an .APK you exported. This would mean that the application your friend is running will have a different SHA1 fingerprint. You will have to make sure you added your friend's SHA1 fingerprint as well, in addition to your own. Add a new line to your existing Android Key in Google's API console with the new SHA1 and the same package name. If you're using eclipse you can use go to Window > Preferences > Android > Build. Alternatively, you can also follow the instructions as posted in http://stackoverflow.com/a/5262845/2675446

Categories : Android

unable connect to server from application on device
you are getting android.os.NetworkOnMainThreadException : The exception that is thrown when an application attempts to perform a networking operation on its main thread. This is only thrown for applications targeting the Honeycomb SDK or higher. Applications targeting earlier SDK versions are allowed to do networking on their main event loop threads, but it's heavily discouraged. do your code this way in side AsyncTask

Categories : Android

Connect to a bluetooth device programmatically objective c
Yes if you use Core Bluetooth to discover all devices that are discoverable. Then if it matches a name etc then connect to it. I made a wrapper around Apple's Core Bluetooth framework to make it easier to do these things. https://github.com/steprescott/SCPCoreBluetoothManager

Categories : Objective C

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

how to connect disconnect the camera device using getUserMedia and webRTC
When you are getting your media, in your success callback function you have to keep your localstream in a variable. Then, when you want to stop your stream, you can do localstream.stop(); To start again, you can repeat to call your getUserMedia() method again.

Categories : Node Js

Connect to the device which plug by usb debug, socket programing
If you do not know the exact IP or an resolveable hostname of the device you with to connect to, you cannot use TCP directly. You may think of doing broad- or multicast on the server-side to announce the server in the whole network or do a broad- or multicast to the server to discover its address; but that depends on the Application you're working on.

Categories : Android

iOS connect/reconnect to Bluetooth device when using external-accessory and MFi
Most of the information you are asking for is available on the Apple MFi Website. Most questions cannot be answered because we have to sign an NDA. However i can tell you that once you pair your device with an Apple MFI Bluetooth module, it is up to the Bluetooth Module to keep the connection alive, if you switch your device off and back on the bluetooth module initialises the connection, If you have a loss of connection the module will reconnect. Once connected you can then open the SSP connection from the EAAccessory Framework. Jamie

Categories : IOS

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

Connect to bluetooth device (iPhone) via command line on MacOSX
As far as I know you can only turn on/off bluetooth and check the status in command line (using blueutil or manipulating with launchctl). But you can use your applescript routines via osascript in shell.

Categories : Iphone



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