Click here to Skip to main content
15,885,668 members
Home / Discussions / Mobile
   

Mobile

 
QuestionConnect commercial printer with android Pin
kaushik24026-Apr-12 20:19
kaushik24026-Apr-12 20:19 
AnswerRe: Connect commercial printer with android Pin
nathadale14-Apr-12 18:32
nathadale14-Apr-12 18:32 
QuestionWindows Mobile Phone question Pin
Bamaco25-Apr-12 9:10
Bamaco25-Apr-12 9:10 
QuestionProblem binding to ItemSource in WP7 Pin
nitin_ion1-Apr-12 22:48
nitin_ion1-Apr-12 22:48 
AnswerRe: Problem binding to ItemSource in WP7 Pin
yukie_all2-Apr-12 15:40
yukie_all2-Apr-12 15:40 
AnswerRe: Problem binding to ItemSource in WP7 Pin
nitin_ion2-Apr-12 22:40
nitin_ion2-Apr-12 22:40 
Questionmillennial ads is not working in windows phone 7 XNA Games Pin
ashishguptajhansi28-Mar-12 2:14
ashishguptajhansi28-Mar-12 2:14 
QuestionGetting the Signal Strength of wifi access points in Android Pin
prajnavantha26-Mar-12 3:10
prajnavantha26-Mar-12 3:10 
I am trying to get the signal strength info from the all the available wifi access points but it doesnt work... Its always returning some null exception it seems. I tried to run it in mobile also but its not working. I have pointed out the line which is creating error by placing a comment in bold.

<br />
package a.c;<br />
<br />
<br />
import java.util.ArrayList;<br />
<br />
import java.util.List;<br />
<br />
 <br />
<br />
import a.c.WifiActivity.WifiReceiver;<br />
<br />
import android.app.Activity;<br />
<br />
import android.content.BroadcastReceiver;<br />
<br />
import android.content.Context;<br />
<br />
import android.content.Intent;<br />
<br />
import android.content.IntentFilter;<br />
<br />
import android.net.wifi.ScanResult;<br />
<br />
import android.net.wifi.WifiManager;<br />
<br />
import android.os.Bundle;<br />
<br />
import android.widget.TextView;<br />
<br />
import android.widget.Toast;<br />
<br />
 <br />
<br />
public class WifiActivity extends Activity {<br />
<br />
    private WifiManager mainWifi;<br />
<br />
    private WifiReceiver receiverWifi;<br />
<br />
     <br />
<br />
TextView sig;<br />
<br />
    /** Called when the activity is first created. */<br />
<br />
    @Override<br />
<br />
    public void onCreate(Bundle savedInstanceState) {<br />
<br />
        super.onCreate(savedInstanceState);<br />
<br />
        setContentView(R.layout.main);<br />
<br />
        mainWifi = (WifiManager) getSystemService(Context.WIFI_SERVICE);<br />
<br />
        receiverWifi = new WifiReceiver();<br />
<br />
            registerReceiver(receiverWifi, new IntentFilter(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION));<br />
<br />
 <br />
<br />
    }<br />
<br />
    class WifiReceiver extends BroadcastReceiver {<br />
<br />
        public void onReceive(Context c, Intent intent) {<br />
<br />
            List<ScanResult> wifiList = mainWifi.getScanResults();<br />
<br />
            for (int i = 0; i < wifiList.size(); i++) {<br />
<br />
                ScanResult scanResult = wifiList.get(i);<br />
<br />
[b]// I have to put a try catch block here otherwise it returns an exception.[/b]<br />
<br />
               try{<br />
<br />
                sig.append(scanResult.level+";");<br />
<br />
                   }<br />
<br />
catch(exception e){}<br />
    }<br />
        }<br />
         <br />
<br />
    }<br />
}<br />
<br />


Can anyone help me with the code. I dont know what to do to get the signal strength info from the access points.There are access points nearby but im not able get the strength.If anyone could provide the code or any help then i would be thankful. Note: I have added the required permission to access wifistate in the manifest also so its not a problem there.
AnswerRe: Getting the Signal Strength of wifi access points in Android Pin
Richard Andrew x6426-Mar-12 10:55
professionalRichard Andrew x6426-Mar-12 10:55 
GeneralRe: Getting the Signal Strength of wifi access points in Android Pin
prajnavantha26-Mar-12 21:20
prajnavantha26-Mar-12 21:20 
QuestionWhiteboard for Windows Phone 7 Pin
nitin_ion23-Mar-12 0:21
nitin_ion23-Mar-12 0:21 
AnswerRe: Whiteboard for Windows Phone 7 Pin
Richard Andrew x6426-Mar-12 10:52
professionalRichard Andrew x6426-Mar-12 10:52 
QuestionBuild IOS Application using Flash Builder & Flex SDK Pin
pathblocker20-Mar-12 14:17
pathblocker20-Mar-12 14:17 
Questiondevelop applications for iPhone without Mac Pin
Nadji DINGAMNODJI20-Mar-12 13:36
Nadji DINGAMNODJI20-Mar-12 13:36 
AnswerRe: develop applications for iPhone without Mac Pin
pathblocker20-Mar-12 14:09
pathblocker20-Mar-12 14:09 
AnswerRe: develop applications for iPhone without Mac Pin
Kashyap Goradiya27-Mar-12 19:44
Kashyap Goradiya27-Mar-12 19:44 
Questionjava applet source code of donkey kong Pin
buisiwemad@gmail.com15-Mar-12 22:41
buisiwemad@gmail.com15-Mar-12 22:41 
AnswerRe: java applet source code of donkey kong Pin
Richard MacCutchan15-Mar-12 23:50
mveRichard MacCutchan15-Mar-12 23:50 
QuestionAccess the HTML document in a webbrowser control in CE5/6 with compact framework Pin
rwal90115-Mar-12 10:29
rwal90115-Mar-12 10:29 
SuggestionHow to start Mobile Application Pin
shanmugarajaa12-Mar-12 19:59
shanmugarajaa12-Mar-12 19:59 
GeneralRe: How to start Mobile Application Pin
parths12-Mar-12 20:59
parths12-Mar-12 20:59 
GeneralRe: How to start Mobile Application Pin
shanmugarajaa12-Mar-12 21:13
shanmugarajaa12-Mar-12 21:13 
GeneralRe: How to start Mobile Application Pin
Richard MacCutchan12-Mar-12 23:29
mveRichard MacCutchan12-Mar-12 23:29 
GeneralRe: How to start Mobile Application Pin
parths13-Mar-12 6:03
parths13-Mar-12 6:03 
GeneralRe: How to start Mobile Application Pin
RobCroll13-Mar-12 14:50
RobCroll13-Mar-12 14:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.