w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Exception Connection refused while connecting Android device to PC
You are trying to access http://localhost:8080/project-server/rest/?value=test, but localhost refers to the loopback address 127.0.0.1, so your request is sent to your Android device itself, not to your pc. Change localhost with the ip address of your pc.

Categories : Java

Connecting Android device for debugging
You can check the link below. http://developer.android.com/tools/device.html "the vendor ID is for HTC. The MODE assignment specifies read/write permissions, and GROUP defines which Unix group owns the device node." from android.com

Categories : Android

Connecting to a bluetooth device programatically
There might be a timing problem, onCreate and onResume are called in very short order. In the case that the BT is not enabled the code in onResume might be called before the BT service is online. My advice: Try to delay the initiation a few seconds by putting the code in a Runnable. private Handler mHandler = new Handler(); public void onCreate() { [...] mHandler.postDelayed(new Runnable() { @Override public void run() { btAdapter.enable(); // Set up a pointer to the remote node using it's address. BluetoothDevice device = btAdapter.getRemoteDevice(address); // Two things are needed to make a connection: // A MAC address, which we got above. // A Service ID or UUID. In this

Categories : Android

Android: connecting two device without internet
Socket connection would be a great idea in your situation, you dont need to have Internet to do so. Here is one of many examples if you google it: http://examples.javacodegeeks.com/android/core/socket-core/android-socket-example/ Hope this helps

Categories : Android

Connecting android device over TCPIP
According to a page I just read the server can only start in the ports numbered 5555 to 5585. "One thing to remember is that you can only choose a port number within the range of [5555...5585] (the reason being that ADB Server only works with these ports). So for instance you could do: adb tcpip 5555" (via http://www.chentir.com/?p=1613)

Categories : Android

Connecting IOS Device to IBM DB2 using JDBC Bridge
Yes it is possible to realise such an application. IBM Data Studio allows you to generate a REST or SOAP-based web service that you can then deploy in a Java container of your choice. More details on IBM DeveloperWorks.

Categories : IOS

Connecting my android device to eclipse
Ok, This did it for me. Connected Xperia E to my laptop. Enabled USB Debugging. Went to the Computer > Right Click > Manage > Device Manager > Other Devices > Android ADB Interface > Right Click > Update Driver > Browse my computer for Driver Software > Let me pick from a list of device drivers on my computer .Now, here is the MAIN part. Instead of looking for Android ADB Interface, scroll down & you will find a driver named Sony so0101 . Click next & install it. Now, Eclipse detects my device !! NOTE : USB DEBUGGING must be enabled ,otherwise the device (XPERIA E) will show under portable devices and no Android ADB Interface will be present to update. Hope, it helps someone as it took me two days to figure it out ! Cheers !

Categories : Android

Connecting Your Own Device On Eclipse safely to run Application
It is perfectly safe to test the app (game) on your phone. Eclipse is not actually running on your device. What it does is it sends an install package to your phone that installs your app in much the same manner as if it was installed from anywhere else in normal way. What Eclipse does in addition is that it is sniffing on some log messages that is written by the apps. This is perfectly safe. Since you have already installed Samsung Kies on your computer, you will have the necessary drivers installed. All you need to do is to open your project in Eclipse, and then run as Android Application. Then you are prompted to run on a device, you select your phone from the list of running devices. When you click OK on this, your app will be sent to your phone as an .apk file, and then installed

Categories : Android

Callback on device connecting to Wifi Hotspot
If you don't need to use the AP to connect to the internet but just to communicate in a LAN, you can create a P2P group with WifiP2pManager instance createGroup and listen to WifiP2pManager.WIFI_P2P_CONNECTION_CHANGED_ACTION with a broadcast receiver. Like this: if (WifiP2pManager.WIFI_P2P_CONNECTION_CHANGED_ACTION.equals(action)){ NetworkInfo networkInfo = intent.getParcelableExtra(WifiP2pManager.EXTRA_NETWORK_INFO); if (networkInfo.isConnected()) { Manager.requestConnectionInfo(mChannel, new WifiP2pManager.ConnectionInfoListener(){ @Override public void onConnectionInfoAvailable(final WifiP2pInfo info) { if (info.isGroupOwner) { mManager.requestGroupInfo(mChannel, new WifiP2pManager.GroupInfoLi

Categories : Android

Connecting Android to a device with an Unknown UUID
UUID is meant to identify services , not devices. Devices are recognized by a bluetooth address which is exactly like a MAC address for Laptops/PCs. Frankly, the answer to your question is very huge considering your lack of knowledge about the subject. I suggest you start with some basic understanding of bluetooth programming. You could start with this: Bluetooth Essentials for Programming by Albert Huang and Larry Rudolph I'm sure you can find this ebook for free online if you look around.

Categories : Android

Automatically connecting to a previous Bluetooth device through Objective C
retrievePeripherals: uses the core bluetooth internal database to return a CBPeripheral. Once you connected to a peripheral, it will be persisted in the database and you can retrieve it. It is not not checked whether the peripheral is turned on or not. Unfortunately, there is no way to determine for what reason a device is not available but you can create your own heuristics: try to connect for a specific time and if you don't receive the didConnectPeripheral: callback in a reasonable time (usually a few seconds), then that peripheral is considered off range and you can go on with the next peripheral. Note that the connectPeripheral will keep on running (even in the background) as long as it does not succeed or not cancelled/terminated. if the peripheral is advertising, then you can try

Categories : Objective C

Unable to get responses from local server when connecting via iOS device
AFJSONRequestOperation will call the failure block: If invalid JSON is returned If the HTTP status code or content-type is incorrect If the connection is cancelled or fails In all of these cases, the error variable is set. In fact, it's the presence of an error that causes the failure block to be called (see [AFJSONRequestOperation -setCompletionBlockWithSuccess:failure:]). If your log isn't outputting anything, try logging error instead of error.localizedDescription. Anyway, it sounds like your server is returning HTTP 200 with an invalid JSON object. You can set a breakpoint in the failure block and then type po operation.responseString in the debugger to inspect.

Categories : Iphone

Python PyBluez connecting to passkey protected device
I meet the same problem,and I have resolved the problem, Maybe you can try it: make a windows tool named pairtool.exe, it help you to pairing with command line. dwRet = BluetoothAuthenticateDevice(NULL, NULL, &btdi, L"1234", 4); if(dwRet != ERROR_SUCCESS) { fprintf(stderr, "BluetoothAuthenticateDevice ret %d ", dwRet); ExitProcess(2); } python code: def connect2Btdev(devName): #found the device addr addr = inquiry(devName) if addr == None: return None #pairing with pairtool.exe cmd=r'%s %s' % ('pairtool.exe',addr) ret = os.system(cmd) if ret <> 0: return None

Categories : Python

Exception while connecting to DB2 in java using JDBC
Cause: If the DB2® instance where InfoSphere Optim Performance Manager is running has the authentication configuration parameter set to DATA_ENCRYPT, you cannot log in to the web console. Resolving the problem: Do the following steps: On the DB2 instance where Optim Performance Manager is running, set the authentication configuration parameter to SERVER by issuing the following command: db2 update dbm cfg using authentication server Restart the DB2 instance and InfoSphere Optim Performance Manager. For more details visit here.

Categories : Java

Exception in connecting to DB2 source using Java JDBC driver
You will have to use a SecurityProvider. BouncyCastleProvider can be a good option for you. All you have to do is, as a first step in getConnection() method use below line: Security.addProvider(new BouncyCastleProvider());

Categories : Java

Exception connecting to Remote Solr Instance (407 error)
HTTP code 407 implies Proxy Authentication Required, you need to set authentication information while making connection to server via HttpClient: httpclient.getCredentialsProvider().setCredentials( AuthScope.ANY, new UsernamePasswordCredentials(username, password)); solrServer = new HttpSolrServer(solrUrl, httpclient);//with credentials you may like to check similar discussions: Solr - instantiate HttpSolrServer with Httpclient Solr 4 with basic authentication

Categories : Java

Entity Framework 6 in Mono 3.0.10 connecting SqlServer throws a Provider Incompatible Exception
I did the same thing and got the same error. My solution was to compile EntityFramework from the source (Codeplex, version 6.1.0alpha) and change a line of code in SqlProviderManifest.cs private static XmlReader GetXmlResource(string resourceName) { //return XmlReader.Create(typeof(SqlProviderManifest).Assembly().GetManifestResourceStream(resourceName), null, resourceName); return XmlReader.Create(typeof(SqlProviderManifest).Assembly().GetManifestResourceStream(resourceName), null, String.Empty); } Not nice, but solved my problem until I tried some really weird lamba query or tried to write something to the database.

Categories : Sql Server

Exception thrown when connecting Neo4j+HA and Spring Data- "Missing Mandatory Setting ha.initial_hosts"
The config of bean haDatabase is incomplete. Neo4j 1.9.x does not use ha.coordindator, use ha.initial_hosts instead. ha.coordinator was used up to 1.8.x.

Categories : Neo4j

Selenium Webdriver: INFO: I/O exception (java.net.BindException) caught when connecting to the target host: Address already in use: connect
This question solves this problem It's the info-level message. Don't worry about it.

Categories : Java

Exception in read() when USB device is disconnected?
The difference in behavior here probably has to do with the difference in implementation of surprise removal between the devices/drivers. When a device is removed while using the Silabs driver then requests sent to the driver from that point on will fail, because the device is not longer available. It's possible that your new device, which operates as a CDC devices, does not implement the same policy on removal and doesn't fail certain functions, or in the same way as the Silabs driver will. The proper way to deal with this in either case is to implement surprise removal detection for your USB-to-serial converter. Unfortunately there is not a straightforward approach to this in Java, but here is some sample C++ code that demonstrates the events you can wait on.

Categories : Java

Ok in simulator but throwing exception in ios device
First, you need to set an exception breakpoint in Xcode - there are many posts here on how to do that. Second, after each of you statements where an object is created or returned, add an assert: NSURL *foo = ... assert(foo); Doing this will help you find the first issue not the last one.

Categories : Iphone

getChildFragmentManager raise NoSuchMethod exception on 4.0.3 device but not on 4.2.2
getChildFragmentManager() is only available via the Android Support package's backport of fragments, or on API Level 17+ for native fragments. Hence, if you are trying to use native fragments on API Level 15 or 16, and you are also trying to use getChildFragmentManager(), you will get this error.

Categories : Android

IBM Worklight - exception when trying to open application in Android device
In addition to what I have mentioned in my comment to your question, the most common cause to this is using Worklight 5.0.5/6.x in conjunction with ADT v22. To fix the issue, follow these steps: Right-click on your generated Android project and choose "properties". From the left pane, choose "Java Build Path' Tick the "Android Private Libraries" checkbox Refresh the project / re-build the app As for changing the name of the application, see instructions in this SO question: IBM Worklight - how to rename an application and change its icon, splash image

Categories : Android

getting FATAL Exception while getting email address from device contacts
change below line c.moveToFirst(); with if(!c.moveToFirst()) return; Here C is cursor, Do same with other cursors as well like "emails" you are trying to fetch values from empty cursor.

Categories : Android

Exception loading pocketsphinx_jni while running PocketSphinxDemo on Android device
When I go to the pocketsphinx_jni folder, located in /PocketSphinxAndroidDemo/obj/local/armeabi/objs-debug, it appears to be empty. System.loadLibrary doesn't load a folder, it loads a library. libpocketsphinx_jni.so is a library built with ndk-build during the build process. objs-debug/pocketsphinx_jni is a temporary folder used to build this library, its supposed to contain temporary files. The library itself must be located in Demo/libs/armeabi/ libpocketsphinx_jni.so Is there anything that should be in this folder? In this particular folder you should have files like pocketsphinx_wrap.o.d. Those files are created with ndk-build. What is causing this error? You didn't run ndk-build or there were errors during ndk-build and you ignored them.

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

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

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

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

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

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

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

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

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

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



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