3g

Using Android-emulator to test AT commands by COM from external application

倖福魔咒の 提交于 2019-12-08 17:00:49
问题 I need send AT commands to a usb GSM modem whith C#. The problem is that i havent no GSM modem or GSM enabled device yet to develop then i was looking for a emulator. The only simulated GSM modem i found was that come with the Android SDK. My problem now is sent AT commands to Android simulated GSM modem througt COM port like i need to do in my real application. There is some way to reach COM (virtual Usb-Com) port of Android simulated GSM modem and sent AT commands to connect to internet ?

How to detect wheter running on 3G or Wi-Fi on iPhone?

北城余情 提交于 2019-12-08 13:48:42
问题 Some lines of code? Any experience? 回答1: You can use Apple's Reachability code to retrieve this information: Example: Reachability *reach = [Reachability reachabilityForLocalWiFi]; [reach startNotifier]; NetworkStatus stat = [reach currentReachabilityStatus]; if(stat & NotReachable) { //not reachable } if(stat & ReachableViaWiFi) { //reachable via wifi } if(stat & ReachableViaWWAN) { //reachable via wwan } 回答2: Apple's Reachability class will give you this information. http://developer.apple

partial wakelock for 3G in Android

时光怂恿深爱的人放手 提交于 2019-12-08 03:13:03
问题 I have a service that uploads file to a server. I acquire a wifilock on it but do I need a partial wakelock if the service is using 3G ? 回答1: WakeLock is an Inefficient way of keeping the screen on. Instead use the WindowManager to do the magic. The following one line will suffice the WakeLock. The WakeLock Permission is not needed for this to work. Also this code is efficient than the WakeLock. getWindow().addFlags(LayoutParams.FLAG_KEEP_SCREEN_ON); You need not relase the WakeLock Manually.

Switching from WiFi connection to 3g causes connection to hang?

落花浮王杯 提交于 2019-12-07 17:32:15
问题 I have an application which connects to a web service. I can connect to the web service any number of times without any problem using WIFI or 3G provided that I stay loyal to my connection type during the life cycle of my application. That is if I don't switch from WIFI to 3G. If I switches from WIFI to 3G, I can't get a response anymore. My connection just keeps on waiting for response. I tried 4 scenarios below. I'm only having problem with the 3rd scenario. What could be the problem? 1st

How can I connect directly to a mobile device over 3G?

末鹿安然 提交于 2019-12-07 12:55:00
问题 I'd like to be able to deploy a lightweight web server on my mobile device (android) but there are obviously NAT issues with respect to the mobile provider's network. Is there anyway I can make my device publicly available/addressable over the internet? 回答1: A Nokia research team did something similar to this and used a gateway, which was mapped to the public URL with DNS, to provide a means of always accessing the phone (which had an app to then send the HTTP message to the Mobile webserver)

Why does the native SIP stack included in Android 2.3 does not work over 3g?

守給你的承諾、 提交于 2019-12-07 07:20:53
问题 I was wondering why does the native SIP stack included in the Android framework(since 2.3) does not work over 3g? Could it have something to do with any laws or restrictions google may have with his partners? And furthermore, does anybody know if there is any plans to remove that restriction ? Thx 回答1: In GingerBread, SipManager is set to work only on wifi. `<bool name="config_sip_wifi_only">true</bool>` But from 4.0 onwards, this config has been changed to false So Ideally native sip stack

partial wakelock for 3G in Android

你说的曾经没有我的故事 提交于 2019-12-06 19:17:32
I have a service that uploads file to a server. I acquire a wifilock on it but do I need a partial wakelock if the service is using 3G ? WakeLock is an Inefficient way of keeping the screen on. Instead use the WindowManager to do the magic. The following one line will suffice the WakeLock. The WakeLock Permission is not needed for this to work. Also this code is efficient than the WakeLock. getWindow().addFlags(LayoutParams.FLAG_KEEP_SCREEN_ON); You need not relase the WakeLock Manually. This code will allow the Android System to handle the Lock Automatically. When your application is in the

Avoiding image compression on some 3G networks

懵懂的女人 提交于 2019-12-06 11:48:26
I want to download an image from the 'net and set it as the users background. This works great over wi-fi, and some 3G networks, but others (T-Mobile UK, for sure) seem to compress the images before sending them. This effect is noticeable when using the browser, too - however, if you long press on an image and save it, when viewing in the gallery it is either not compressed at all, or substantially less so. I want to be able to do this in my own app. I assume it has something to do with the HTTP headers, but of the ones I've modified, none has made a difference. Can anyone help me out here?

Android: How to check whether 3G is enabled or not?

纵然是瞬间 提交于 2019-12-06 09:50:26
问题 I need to know whether 3G connectivity is permitted on the device or not. I don't want to know what current network state is, because if you set "Network Mode" setting in "Mobile network settings" screen to "Automatic" network state could be either 2G or 3G. I just want to know which setting is selected there - 2G, 3G or Automatic (latter two mean the same for me). Both telephonyManager.getNetworkType() and ConnectivityManage.getNetworkInfo(ConnectivityManager.TYPE_MOBILE).getState() are

How to measure data usage of my app

被刻印的时光 ゝ 提交于 2019-12-06 05:42:06
问题 I'm developing an Android app which needs to download a lot of data. To improve the usability, I'd like to measure the data traffic my app produces and give the users a hint if the app downloaded a specific amount of data. My current idea: Sum all downloaded bytes together and react on a specified limit. However, as I downloaded things in many different situations and in many different positions in the code, is there any other possibility to measure the data usage per app? AFAIK, sys/net