Click here to Skip to main content
13,147,050 members (67,561 online)
   

Mobile

 
QuestionCharging problem on Sansung Omnia i900. Pin
Brady Kelly11-Apr-12 3:09
memberBrady Kelly11-Apr-12 3:09 
AnswerRe: Charging problem on Sansung Omnia i900. Pin
RobCroll13-Apr-12 5:03
memberRobCroll13-Apr-12 5:03 
GeneralRe: Charging problem on Sansung Omnia i900. Pin
Brady Kelly13-Apr-12 5:30
memberBrady Kelly13-Apr-12 5:30 
GeneralRe: Charging problem on Sansung Omnia i900. Pin
VuNic3-May-12 0:24
memberVuNic3-May-12 0:24 
Questionhow to integrate web application to Mobile application Pin
Narendrakumar Arya8-Apr-12 20:07
memberNarendrakumar Arya8-Apr-12 20:07 
AnswerRe: how to integrate web application to Mobile application Pin
nathadale14-Apr-12 18:29
membernathadale14-Apr-12 18:29 
QuestionConnect commercial printer with android Pin
kaushik24026-Apr-12 20:19
memberkaushik24026-Apr-12 20:19 
AnswerRe: Connect commercial printer with android Pin
nathadale14-Apr-12 18:32
membernathadale14-Apr-12 18:32 
QuestionWindows Mobile Phone question Pin
Bamaco25-Apr-12 9:10
memberBamaco25-Apr-12 9:10 
QuestionProblem binding to ItemSource in WP7 Pin
nitin_ion1-Apr-12 22:48
membernitin_ion1-Apr-12 22:48 
AnswerRe: Problem binding to ItemSource in WP7 Pin
yukie_all2-Apr-12 15:40
memberyukie_all2-Apr-12 15:40 
AnswerRe: Problem binding to ItemSource in WP7 Pin
nitin_ion2-Apr-12 22:40
membernitin_ion2-Apr-12 22:40 
Questionmillennial ads is not working in windows phone 7 XNA Games Pin
ashishguptajhansi28-Mar-12 2:14
memberashishguptajhansi28-Mar-12 2:14 
QuestionGetting the Signal Strength of wifi access points in Android Pin
prajnavantha26-Mar-12 3:10
memberprajnavantha26-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
memberRichard Andrew x6426-Mar-12 10:55 
GeneralRe: Getting the Signal Strength of wifi access points in Android Pin
prajnavantha26-Mar-12 21:20
memberprajnavantha26-Mar-12 21:20 
QuestionWhiteboard for Windows Phone 7 Pin
nitin_ion23-Mar-12 0:21
membernitin_ion23-Mar-12 0:21 
AnswerRe: Whiteboard for Windows Phone 7 Pin
Richard Andrew x6426-Mar-12 10:52
memberRichard Andrew x6426-Mar-12 10:52 
QuestionBuild IOS Application using Flash Builder & Flex SDK Pin
pathblocker20-Mar-12 14:17
memberpathblocker20-Mar-12 14:17 
Questiondevelop applications for iPhone without Mac Pin
Nadji DINGAMNODJI20-Mar-12 13:36
memberNadji DINGAMNODJI20-Mar-12 13:36 
AnswerRe: develop applications for iPhone without Mac Pin
pathblocker20-Mar-12 14:09
memberpathblocker20-Mar-12 14:09 
AnswerRe: develop applications for iPhone without Mac Pin
Kashyap Goradiya27-Mar-12 19:44
memberKashyap Goradiya27-Mar-12 19:44 
Questionjava applet source code of donkey kong Pin
buisiwemad@gmail.com15-Mar-12 22:41
memberbuisiwemad@gmail.com15-Mar-12 22:41 
AnswerRe: java applet source code of donkey kong Pin
Richard MacCutchan15-Mar-12 23:50
mvpRichard 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
memberrwal90115-Mar-12 10:29 
SuggestionHow to start Mobile Application Pin
shanmugarajaa12-Mar-12 19:59
membershanmugarajaa12-Mar-12 19:59 
GeneralRe: How to start Mobile Application Pin
parths12-Mar-12 20:59
memberparths12-Mar-12 20:59 
GeneralRe: How to start Mobile Application Pin
shanmugarajaa12-Mar-12 21:13
membershanmugarajaa12-Mar-12 21:13 
GeneralRe: How to start Mobile Application Pin
Richard MacCutchan12-Mar-12 23:29
mvpRichard MacCutchan12-Mar-12 23:29 
GeneralRe: How to start Mobile Application Pin
parths13-Mar-12 6:03
memberparths13-Mar-12 6:03 
GeneralRe: How to start Mobile Application Pin
RobCroll13-Mar-12 14:50
memberRobCroll13-Mar-12 14:50 
GeneralRe: How to start Mobile Application Pin
GameZ4you14-Mar-12 22:12
memberGameZ4you14-Mar-12 22:12 
GeneralRe: How to start Mobile Application Pin
thrakazog15-Mar-12 13:46
memberthrakazog15-Mar-12 13:46 
AnswerRe: How to start Mobile Application Pin
laptopcharles19-Mar-12 7:20
memberlaptopcharles19-Mar-12 7:20 
GeneralRe: How to start Mobile Application Pin
London translation agency17-Mar-12 0:37
memberLondon translation agency17-Mar-12 0:37 
Generaljhuhiu Pin
aissasata9-Mar-12 10:20
memberaissasata9-Mar-12 10:20 
GeneralRe: jhuhiu Pin
thrakazog12-Mar-12 6:21
memberthrakazog12-Mar-12 6:21 
GeneralRe: jhuhiu Pin
Richard MacCutchan12-Mar-12 6:49
mvpRichard MacCutchan12-Mar-12 6:49 
Questionwhich type of set (pos,tablet,…) can be used for registering delivery information at outdoor? Pin
Mohammad A Gharakhanlou8-Mar-12 21:15
memberMohammad A Gharakhanlou8-Mar-12 21:15 
AnswerRe: which type of set (pos,tablet,…) can be used for registering delivery information at outdoor? Pin
Richard MacCutchan8-Mar-12 21:50
mvpRichard MacCutchan8-Mar-12 21:50 
QuestionIsolated Storage with Windows Phone Silverlight Toolkit Pin
Member 85418184-Mar-12 3:39
memberMember 85418184-Mar-12 3:39 
AnswerRe: Isolated Storage with Windows Phone Silverlight Toolkit Pin
Jeremy Hutchinson30-Apr-12 6:52
memberJeremy Hutchinson30-Apr-12 6:52 
QuestionC# : Pocket PC and Jpeg2000 format image Pin
lamardiallo4827-Feb-12 22:31
memberlamardiallo4827-Feb-12 22:31 
AnswerRe: C# : Pocket PC and Jpeg2000 format image Pin
Pete O'Hanlon27-Feb-12 22:52
protectorPete O'Hanlon27-Feb-12 22:52 
GeneralRe: C# : Pocket PC and Jpeg2000 format image Pin
lamardiallo4827-Feb-12 23:35
memberlamardiallo4827-Feb-12 23:35 
Questionbig database on sqlCE - it Takes a long time to open connection Pin
goldsoft27-Feb-12 1:53
membergoldsoft27-Feb-12 1:53 
AnswerRe: big database on sqlCE - it Takes a long time to open connection Pin
rwal90115-Mar-12 9:59
memberrwal90115-Mar-12 9:59 
QuestionHow two mobile apps exchange data on the same device? Pin
Jun Du27-Feb-12 1:21
memberJun Du27-Feb-12 1:21 
AnswerRe: How two mobile apps exchange data on the same device? Pin
egenis27-Feb-12 2:17
memberegenis27-Feb-12 2:17 
GeneralRe: How two mobile apps exchange data on the same device? Pin
Jun Du27-Feb-12 7:20
memberJun Du27-Feb-12 7:20 

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.


Advertise | Privacy |
Web03 | 2.8.170915.1 | Last Updated 15 Aug 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid