Click here to Skip to main content
15,891,033 members
Home / Discussions / Mobile
   

Mobile

 
Questionconnecting android app to server Pin
williamroma17-Apr-12 23:23
williamroma17-Apr-12 23:23 
AnswerRe: connecting android app to server Pin
parths19-Apr-12 3:35
parths19-Apr-12 3:35 
QuestionWPF C# - Get Images Off Windows Phone 7 Pin
Kevin Marois16-Apr-12 6:27
professionalKevin Marois16-Apr-12 6:27 
AnswerRe: WPF C# - Get Images Off Windows Phone 7 Pin
Jeremy Hutchinson30-Apr-12 6:44
professionalJeremy Hutchinson30-Apr-12 6:44 
QuestionWP7 RDP protocol Pin
juste_3al_faza16-Apr-12 1:11
juste_3al_faza16-Apr-12 1:11 
QuestionSetting APN programmatically Pin
MitchG92_2416-Apr-12 0:13
MitchG92_2416-Apr-12 0:13 
QuestionCannot open a project / CE 5.0 Pin
biop.codeproject12-Apr-12 18:25
biop.codeproject12-Apr-12 18:25 
QuestionCharging problem on Sansung Omnia i900. Pin
Brady Kelly11-Apr-12 3:09
Brady Kelly11-Apr-12 3:09 
AnswerRe: Charging problem on Sansung Omnia i900. Pin
RobCroll13-Apr-12 5:03
RobCroll13-Apr-12 5:03 
GeneralRe: Charging problem on Sansung Omnia i900. Pin
Brady Kelly13-Apr-12 5:30
Brady Kelly13-Apr-12 5:30 
GeneralRe: Charging problem on Sansung Omnia i900. Pin
Eytukan3-May-12 0:24
Eytukan3-May-12 0:24 
Questionhow to integrate web application to Mobile application Pin
Narendrakumar Arya8-Apr-12 20:07
Narendrakumar Arya8-Apr-12 20:07 
AnswerRe: how to integrate web application to Mobile application Pin
nathadale14-Apr-12 18:29
nathadale14-Apr-12 18:29 
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 

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.