General :: Automatically Connect To VPN On Device Startup
Feb 1, 2014
I have an android device: it's a stick connected to my TV, running android 4.1 rooted. The stick is an MK808B. The stick is connected to my TV's USB so that when I turn the TV on, the stick boots and when I turn the TV off, it shuts down completely.
I am looking for something that automatically connect the stick to VPN when I boot it. I would preferably use VPN over L2DP, although I'll take PPTP if there's no other option. I can't use openVPN because my ROM's kernel doesn't have TUN. There are two ways to approach this: one way is to connect it on boot, another way is to connect to VPN when the stick connects to a wireless network because my stick is stationary and always connects to the same wi-fi network.
View 1 Replies
Mar 29, 2009
I am porting android to my own device now. I checkout the latest source code from android.git.kernel.org. I have successfully compilated filesystem images and burn those images to my devices. But i couldn't automatically mount my sdcard when android startup. The / sdcard directory is empty when i used 'ls /sdcard' command. I have copied the vold.conf file from development/data/etc direcotry to my device(/system/etc), but it's invalidated. When i read the source code(vold), i found the vold daemon relate to switch driver, device mapper driver and android gadget driver. Are there some document or information about how to configurate android kernel to support vold new volume management and wirte right vold.conf configuration file?
View 2 Replies
View Related
Mar 3, 2010
I've noticed that some users have not found my app's preferences sub menu, so I want to show that sub menu when the user first-time-ever starts the app.
Since onCreateOptionsMenu() would not have been called yet, how can I programmatically show such a sub menu?
BTW: openOptionsMenu() is not what I want because I want to open a sub menu. I suppose its part of the solution though. However, I get an exception when I call it:
Caused by: android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running? at android.view.ViewRoot.setView(ViewRoot.java:468) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java: 177) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java: 91) at android.view.Window$LocalWindowManager.addView(Window.java:424)
even though, at the same point in the code, I can successfully open new AlertDialogs.
View 5 Replies
View Related
Apr 9, 2009
how to define a service that launch automatically at startup and / or when installation without having to go through "activity". I look beautiful everywhere, I do found that the functions and BindService but StartService which requires action outside.
View 5 Replies
View Related
Aug 18, 2011
I want to select preferred network operators automatically from device. After I search for it, I found following:
Code:
final int EVENT_AUTO_SELECT_DONE = 300;
Message msg = mHandler.obtainMessage(EVENT_AUTO_SELECT_DONE);
phone.setNetworkSelectionModeAutomatic(msg);
So I need an instance of class "Phone". I tried this:
Code:
String phoneFactoryName = "com.android.internal.telephony.PhoneFactory";
String phoneName = "com.android.internal.telephony.Phone";
Class phoneFactoryClass = Class.forName(phoneFactoryName);
Class phoneClass = Class.forName(phoneName);
Method getDefaultPhone = phoneFactoryClass.getMethod("getDefaultPhone");
Object phoneObject = getDefaultPhone.invoke(null);
But the method "getDefaultPhone" can only called by looper.
Next I tried this:
Code:
String phoneAppName = "com.android.phone.PhoneApp";
Class phoneAppClass = Class.forName(phoneAppName);
Method getInstanceMethod = phoneAppClass.getMethod("getInstance");
Object phoneObject = getInstanceMethod.invoke(null);
But I get a ClassNotFoundException.
View 2 Replies
View Related
Oct 8, 2012
I am looking for an app/widget to add a tiny bit of convenience to my life. I want the ability to tap on an icon on my homescreen that will trigger a (Bluetooth) connect to a device that I have paired with in the past. A one-tap-and-you're-done widget would be perfect. I have a Bluetooth dongle in my car that I connect to quite often that plays music over a stereo system (HTC Stereoclip A100). The device is paired with my phone, but I must go to Bluetooth Settings and click on the device to connect every time I get into my car.
I have tried a few apps in the Marketplace with no luck. I am using ICS (HTC EVO 4G LTE). One specific app that worked, but no longer works in ICS: Bluetooth Profile Widget [URL]
View 2 Replies
View Related
Aug 21, 2013
I have rooted my iball slide 3g 7334i ( it runs on jelly bean 4.1.2) using following procedure :
http:[code]...
I have experienced following problems with my tablet :
1. When connected as usb storage device it restarts automatically.
2. Bluetooth once switched off can't be switched on unless device is restarted.
View 3 Replies
View Related
Feb 24, 2014
I had an old HTC Desire in a drawer at home and thought I'd try let it serve as a Spotify Connect device attached to my Hifi. With the new Spotify Connect feature you can remotely connect to and control another device on your network to play music - perfect for me - without needing to buy a pricey new receiver with the feature built in!
It works remarkably well, much better than DLNA from my HTC One, with one caveat: after a period of inactivity it no longer shows up in the list of Connect devices in Spotify and I need to physically switch the screen on and select the Spotify app from the task list.
It's running CM 7.1 and turned Wifi power saving off in Wifi advanced settings. What else I could do to force it out of any power saving mode, seeing as it's connected to mains at all times?
View 2 Replies
View Related
Jan 27, 2014
How to connect my Android device via file manager (personally I use FileMaster) to my Windows laptop? It requires a login and password that I haven't.
View 5 Replies
View Related
Dec 25, 2013
Google services on my PC works perfectly fine, but there is something wrong with my network, google apps wont connect on any device connected to my home modem. I have tried it on my Phone, tablets, on my brothers phone, it just wont connect. However, when I connected my phone with the network of my University, I worked the first time but the second time, same no connection problem.
View 1 Replies
View Related
Mar 23, 2013
Few months back Bluetooth worked fine in my HTC Velocity 4G and the OS was 2.x.x. Suddenly it started to malfunction. Bluetooth is working. Can search and find for Bluetooth devices. Can pair (but doesn't ask for the passcode confirmation). But,
1. Cannot connect to the paired device.
2. Cannot send or receive files. When share through Bluetooth it just nothing happens. Same for the file receiving.
I did reset but didn't solve the problem. Therefore I updated the OS to 4.0.3, then reset the phone. But no result.
View 1 Replies
View Related
Sep 14, 2012
There is 3G into Android tablet.If device (Android tablet) looses network connection, it's just impossible to connect network until resetting of the device (Android tablet). What can be changed or adjusted in /system to fix it?
Specifications Android tablet:
Allwinner A10
Built-in 3G
7"
View 1 Replies
View Related
May 23, 2014
I have a brand new windows 7 computer, I have installed the latest android SDK, I want to connect to my Nexus 10 using adb.
(device has windows drivers from SDK; "Android Composite ADB Interface". adb version 1.0.31)
when I do adb devices, it does see my device but it says my device is unauthorised.
It has never displayed the security popup.
I am convinced that the security pop up would make this work, but i cannot get it to show, so that it does whatever magic it does.
I have tried plugging and unplugging the usb cable,
I have tried turning USB debugging on and off.
I have changed the USB connection from Camera, to Media, back to Camera.
I can see the adbkey file under $HOME/.android in windows
The android directory /data/misc/adb/ is empty
I have root.
How can I force the security popup to display? Or how can I frig this so I can get it working?
What does the secuirty popup do anyway? probably just copy the adbkey file from windows into the android /misc/adb/ directory right? Can I do it by hand?
Slightly unrelated question, is it true that everything works first time, everytime on IOS?
View 4 Replies
View Related
Oct 29, 2010
I have a standalone GPS enabled data recorder in my car that can function as either a USB host or device. (Its a class 0x00h USB device). I currently connect to it via a WM 6.5 app running on my Palm Treo 750. I would like to port my WM 6.5 app to an Android phone. (I don't have a specific Android phone in mind, I would like it to be as generic as possible).Replicating the GUI is not that difficult, but I am having trouble getting started on the USB communication. I'd appreciate it if someone could point me towards an example, or the appropriate tutorial.
View 1 Replies
View Related
Feb 12, 2010
Is there a way? God, it's so annoying to have to manually connect over and over again in my own home. Sure, it only takes a few seconds, but still...
View 3 Replies
View Related
Mar 25, 2010
If I connect to my home WiFi, it works well. I'll go out of the house and come back a few hours later and the phone does not automatically connect to my home WiFi. If I go to settings, I can see it detects my home WiFi, but says "Connection unsuccessful, select to try again." When I select it, it connects and works fine. My problem is, I don't think I should have to physically select my WiFi network everytime I come home. Shouldn't it see it and connect automatically? What am I dong wrong? Do I have a setting turned on/off that should be different?
View 3 Replies
View Related
Jul 26, 2010
I have ford sync and it worked flawlessly with my iphone.The captivate will pair and download address book just fine.I authorized it to allow access however it will not automatically connect when in range.I read someplace this feature is fixed in froyo my question is can you get froyo early or do we have to wait for samsung to push it out?
View 19 Replies
View Related
Jun 9, 2010
With the HTC Desire, is there any way of setting up a bluetooth connection to connect automatically, eg hands free kit in a car or do you have to manually connect each time?
View 1 Replies
View Related
May 17, 2010
I'm downloaded several wifi apps, but I'm looking for one that will automatically connect to open networks.
Or at least to saved/remembered networks without me having to scan and connect.
View 3 Replies
View Related
Jan 7, 2010
Every time I start my phone it seems that every program in the app catalog starts up. Until I activate the Advanced Task Killer and shut them all down, the thing runs like a hog. I have quite a few programs installed, but I dont use them all all of the time. Why do they all start up and is there any way beside the ATK to stop them? Is there any way to modify the startup files?
View 4 Replies
View Related
Jun 26, 2010
I'm having an issue with my wifi not connecting. I have to AP's in my house, on different channels. They work perfectly fine. I have the wifi toggle setting on the home screen that I usually press to toggle the wifi on/off. Recently, it hasn't been working after I disconnect from 3G and connect to wifi. It says the wifi is turned on, but it won't connect to either of the remembered APs. The only way to get it to automatically connect is to go to settings and view the list of APs. Only then will it connect to one of the two APs. This is really annoying, as it seemed to only start this recently and nothing has changed. My wifi sleep policy is never to turn off. It's a droid eris with 2.1 OTA. Ran a virus scan, nothing. Any ideas?
View 3 Replies
View Related
May 21, 2010
I am wondering if it is possible to retrieve device's phone number via the Android API(specifically 1.5 API).
View 1 Replies
View Related
Aug 19, 2010
Does anyone know if we can automatically link to a Bluetooth device once you enable Bluetooth? It's lame to turn Bluetooth "on" with the power widget but have to go to the bluetooth settings to actually link to a device.
View 7 Replies
View Related
Mar 18, 2010
I currently run android 1.5 on a HTC magic. I'm trying to communicate from my phone to a bluetooth device that supports SPP. I can't seem to be able to connect to the device. I have tryed two ways to connect: 1- via the official 2.0 API using the backport-android to make it work on android 1.5 2- via the unofficial bluetooth api 0.3 Both method give me an error around the same connection process. ith API 2.0, I can discover devices and pair with them. Then i create a socket which seems to work, but when I use the .connect() method, I get this error in CatLog: IOException Unable to start Service Discovery. This is related to doSdp() in public class BluetoothSocket.Searching the web, it seems this error is related to a wrong UUID ... but I am using the SPP UUID properly. So, I thought the problem could be backport android, so I tried with the unofficial API from Gerdavax ( http://code.google.com/p/android-bluetooth/To connect to a device with this API you first create a socket, then you connect using the .openSocket( port number) method. The weird thing is, if I try with a new port, it connects, if I try a second time, it wont work, unless I change the port. I get a similar related error of SDP. Code...
View 6 Replies
View Related
Aug 14, 2009
Is it possible to connect to PC through USB from android application.Or is it possible by any other way.I want to connect to it to transfer data(video).
View 8 Replies
View Related
Mar 17, 2010
It was connect correctly before when i use win xp system. now i've change to win 7, and install the drivers successfully. system can recognize the phone, but it's a ADB device in the device manager, and can't connect to NPS. I've tried the method here about the connection. Anyone has met this problem and solved? Would you help me. my phone system ver is zhil3 and win 7 ultimate simplify Chinese.
View 2 Replies
View Related
Aug 21, 2010
Invoked device native player to play audio file, it opens android native player on top of the application but when selecting to back out or return to the application, device automatically stops playing the current media.
Sample code:
Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(file),"audio/*");
startActivity(intent);
How can I implement so that Device should continue to play audio in the background when selecting to back out or return to the application
View 1 Replies
View Related
Oct 28, 2010
How much I love my new refurbished Incredible. The wonderful dust under the screen due to crappy reassembly, and the oh so amazing USB Errors. Seriously, any suggestions why it won't connect to my computer? I wanna bust out my 32 gig SD.
View 1 Replies
View Related
Nov 4, 2010
I'd like to connect a HTC Desire to the PC only as debugging device. Every time I plug the cable in it searches for the HTC Sync software on the PC, and it takes a long time until finally a message appears on the phone like "no HTC Sync found, please install". After that, the phone is available to eclipse for debugging. But how can I avoid that everlasting searching process?
View 3 Replies
View Related
Sep 29, 2009
How to connect to development machine from device?
I can easily do this from Emulator, but from device I have connection timeout exception.
Here is my code:
code:..................
View 2 Replies
View Related