Hello,
I am working on porting an application which requires at least two network interfaces to be available at the same time, for example WLAN and 3G. However, I have not been able to figure out how to use multiple interfaces simultaneously on Android, the OS seems to remove or at least disable one of the interfaces when the other is switched on. I have looked through the official API and any relevant examples and documentation, but have not figured out how to force the system not to switch off one of the interfaces. The closest I got was the tethering hotspot source code, as they do something similar to what I want to do, but I was not able to fully understand their code.
My question is therefore, does anyone know how to enable both the WLAN and the 3G interface of an Android-phone? It does not matter if it is through code, configuring the operating system or something else. The phones I have tested with are the Galaxy S and Nexus One, and the application is currently written in native code (however, it can easily be ported to Java if that is neccessary).
Thanks in advance for any help.
-Kristian
Related
Hey,
I have 2 questions, i have done some googleing on both topics, and ill explain my results and confusion below.
But i was wondering:
Is it possible to have a application to run as part of the operating system, i use a application called CallCalander that runs, but it is still displayed in the task manager, and closed when i run Orbis Close Applications application, but i would like it to be a part of the system, like on windows where you have services, or something such as.
I tried to google this, but i got random results, and results aimed at windows OS, not the mobile version.
My second question is, there has been alot of information about this, but most post's and information i have found says it is not possible, or only possibly using WMWifiRouter, But i was hoping to use my phone as a Wireless card, and if possible when wireless is not available to use the 3G connection instead. Though i could use the Internet Sharing application built in to WM6.1 for the GPRS, but i was hoping that there was a automattic solution, that would switch when wifi is not available.
Also one of my laptops has bluetooth (And a wireless card, but if i can get a auto switch to 3g if wifi is not available, i dont see ill be using that card often), the other does not, so i deffonatly need it to be made available via USB, but if it also supported bluetooth that would be a excellent advantage.
Thank you for any help
Regards
Chris
Ok ignore my question about WiFi for future refrence WMWifiRouter works for using your device as a USB Dongle, as well as a host of other features, deffonatly recommend checking it out!!!
Though not had much chance to play with it, but still it works excellent with a few issues for when i get a phone call, or use the phone's data connection.
As for running an application as a service, still have no idea on that.
Hi all.
Are some WP7 programmer for marketplace here?
It would be so nice, if it is possible to code a oneclickbutton for the homescreen to activate/deavtivate bluetooth.
THX for your help.
Battery+3G API
I have a HTC Trophy and i'm trying to figure out another thing but similar concept. Turn on/off 3G when battery is low.
I found no API for 3G handling, neither for battery
Also i confirmed this in google (can't paste link now because i'm a new user)
And Wifi....
Hi
I'd alos like a 'one click' app (i.e. a live tile I could pin to the homescreen) to toggle WiFi on/off.
I've done a little programming, so I'd consider downloading the SDK and trying it myself, but I've seen some comments abot the SDK / API not having much WiFi control in there.
Can anyone give any indication if this is even possible?
Is there an online resource I can view/search to see what functions are exposed in the API?
Maybe searching here: h t t p : //create.msdn.com/en-US/education/catalog/article/wp7_jump_start
Btw..i suspect that you will not found any API related with Wifi to enable us to create the tile.
I also like to have an App which enables Bluetooth/connect with my device just with one click
Is not "one click", but try this:
http://forum.touchxperience.com/viewtopic.php?f=3&t=591
paulf707 said:
Hi
I'd alos like a 'one click' app (i.e. a live tile I could pin to the homescreen) to toggle WiFi on/off.
I've done a little programming, so I'd consider downloading the SDK and trying it myself, but I've seen some comments abot the SDK / API not having much WiFi control in there.
Can anyone give any indication if this is even possible?
Is there an online resource I can view/search to see what functions are exposed in the API?
Click to expand...
Click to collapse
I know a solution for that...
Open the Diagnostics and press: *#2263#
It will open the network options.
To set only 2G/EDGE, press 3 (GSM Band Preference) and press 7 (ALL) on the next screen.
You can do the same steps to set only 3G or Automatic (default) again.
Hi all,
I dabble in security, so my reason for taking up Android programming was mainly to see what kind of information I could pull out of a Android-based smartphone.
Getting information like Device ID, SIM no., preferred networks and such, turned out to be fairly simple, but when I got to trying to read the settings of the phone, I hit a roadblock. For the life of me, I can not seem to figure out where to get those settings from.
What I want to get from the phone, is stuff like this:
Is the lock-pattern/PIN enabled?
Is the SIM PIN enabled?
Is GPS on? (this was quite simple for bluetooth, but apparently not so for GPS)
Does the phone allow installation of 3rd party software.
...and settings of that nature. I would think this was a simple matter of getting some kind of "settings" object, and then read the various variables, but so far, this object eludes me.
Any and all ideas are welcome.
Best regards
I have a question regarding some hardware components in Android. As we know, switching them on and off through some software API
was disabled by Google, due to security reasons. For example, GPS (on device without root acceess) can only be enabled or disabled
by exact option in menu, but not by third party software. Same for 2g/3g network access, and sometimes even for display brightness...
So, my question is why it can't be done easy way by simply removing that security code from sources? Android is open source operating
system, sources are published by Google, aren't they? So, why these workarounds like RIL code injection (2g/3g), or some root access
helpers (Secure Settings from GP)? It is really so hard to handle such a hardware like GPS or radio mode?
I'm using Cyanogenmod 10 on Samsung Galaxy S, which is theoretically "impossible" to run Jelly Bean (as Samsung decided).
But even in this advanced mod, the hardware switches aren't working well. So, I'm not asking for CM10 itself, but about whole
conception. This is stupid for me, that's hindering people using Android smartphones...
Hello,
i detected by the linux-tool "iwconfig" that the mac-address of the hotspot is changing on every new hotspot activation. There is also a bug-report for it:
https://code.google.com/p/android/issues/detail?id=57452
In the comments is stated that doomlord fixed that problem. Is there any kernel in here for the nexus 5 from doomlord or others, which have this problem solved?
Very annoying with WICD forgetting the password and Windows always creates a new network.
Thanks for help.
Hi,
that's a serious problem for me too.
I would like to use the online services in my Mazda MZD Connect System.
Unforunately the system identifies an Hotspot by its MAC Address.
So whenever i switch the Hotspot off and on again a new entry is created in the car entertain system and i have to enter the password again.
This renders the function nearly unusable.
As i read yesterday, VW drivers have the same issue.
As there is only one line in the source randomizing the last three bytes of the WiFi Hotspot MAC, it would be enough to simply comment it out.
But building a complete new ROM on my own is far beyond my capabilitys yet.
Currently all Nexus phones are affected as well as CM 13.
ElementalX Kernel didn't help either.
HTC doesn't randomize the MAC nor does en iPhone.
But i won't change my phone just for a Car Entertain System.
Another option would be a little Mobile-WiFi standalone Hotspot with an additional SIM Card.
But this would mean extra costs each month which i would certainly like to avoid.
So here my questions:
Is there any Kernel to switch off MAC randomization?
Or any tweak to freeze one MAC?
Or a way i could start a script on switching the Hotspot on to override the MAC?
Or an completely different approach?
Any help is appreciated.