- Andorid QR code samples
- Blackberry JDE code samples
- Android streaming mp3 code samples
- User Agent profile lookup
The Pirate BAY WAP RSS READER
File - rss.jsp
File - rss_detail.jsp
File - rssutils.tld
File - rssutils.jar
Working Sample
Microsoft MAPS asp.net c# code example
Click here
Google Spreadsheet as data source asp.net
using Google.GData.Client;
using Google.GData.Extensions;
using Google.GData.Spreadsheets;
using System.Globalization;
public partial class redeem : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void OnCode_Change(object sender, EventArgs e)
{
string visit = "0";
CultureInfo culture = new CultureInfo("en-US");
if (txtcode.Text.Contains("<")) { lblerror.Text = "Invalid Scan. Please try again"; lblerror.Visible = true; txtcode.Text = ""; } else { SpreadsheetsService service = new SpreadsheetsService("Sample Spreadsheet"); service.setUserCredentials("gmailuserid", "password"); SpreadsheetQuery query = new SpreadsheetQuery(); query.Title = "title of spreadsheet"; SpreadsheetFeed feed = service.Query(query); if (feed.Entries.Count != 1) return; AtomLink link = feed.Entries[0].Links.FindService(GDataSpreadsheetsNameTable.WorksheetRel, null); WorksheetQuery worksheetQuery = new WorksheetQuery(link.HRef.ToString()); worksheetQuery.Title = "Sheet1"; WorksheetFeed worksheetFeed = service.Query(worksheetQuery); if (worksheetFeed.Entries.Count != 1) return; WorksheetEntry worksheet = (WorksheetEntry)worksheetFeed.Entries[0]; AtomLink listFeedLink = worksheet.Links.FindService(GDataSpreadsheetsNameTable.ListRel, null); ListQuery listQuery = new ListQuery(listFeedLink.HRef.ToString()); ListFeed listFeed = service.Query(listQuery); foreach (ListEntry worksheetRow in listFeed.Entries) { string scanData = worksheetRow.Elements[0].Value.ToString(); string[] arSD = new string[100]; char[] splitterFilemSD = { ',' }; arSD = scanData.Split(splitterFilemSD); if (arSD.Length > 0)
{
string codess = arSD[0].ToString();
if (codess == txtcode.Text.ToString())
{
string ddtt = arSD[1].ToString();
string[] arUAm = new string[30];
char[] splitterFilem = { ' ' };
arUAm = ddtt.Split(splitterFilem);
if (arUAm.Length > 0)
{
ddtt = arUAm[1].ToString() + " " + arUAm[0].ToString()+".000";
}
DataAccess.InsertRedeem(txtcode.Text, arSD[2].ToString(), ddtt);
}
}
}
lblerror.Visible = false;
Session["WC"] = txtcode.Text.ToString();
DataTable dtCnt = DataAccess.GetStationCount(txtcode.Text);
if (dtCnt.Rows.Count > 0)
{
visit = dtCnt.Rows.Count.ToString();
}
DataAccess.InsertRedeem(txtcode.Text, "Redemption", DateTime.Now.ToString());
Response.Redirect("passfail.aspx?vs="+visit);
}
}
}
Google Gadget to send FREE SMS (I built it )
Download here
WAP Icon Launcher Blackberry Java Code-
launcher.java
import net.rim.device.api.system.ApplicationDescriptor;
import net.rim.device.api.system.ApplicationManager;
import net.rim.device.api.system.ApplicationManagerException;
import net.rim.device.api.system.CodeModuleManager;
import net.rim.device.api.ui.UiApplication;
public class launcher extends UiApplication {
public static void main(String[] args){
launcher instance = new launcher();
instance.enterEventDispatcher();
}
public launcher() {
boolean retval = true;
int handle = CodeModuleManager.getModuleHandle("net_rim_bb_browser_daemon");
if (handle <=0 ){ System.exit(0); }else{ ApplicationDescriptor[] browserDescriptors = CodeModuleManager.getApplicationDescriptors(handle);
if (browserDescriptors == null ){
System.exit(0);
}else{
if ( browserDescriptors.length <=0 ){ System.exit(0); }else{ String[] args = {"url", "http://wap.url.com"};
ApplicationDescriptor descriptor = new
ApplicationDescriptor(browserDescriptors[0],"url invocation",
args,null, -1, null, -1,ApplicationDescriptor.FLAG_SYSTEM);
try{
ApplicationManager.getApplicationManager().runApplication(descriptor);
}catch(ApplicationManagerException e){
System.exit(0);
}
System.exit(0);
}
}
}
}
}
Working Sample
import net.rim.device.api.system
import net.rim.device.api.system
import net.rim.device.api.ui.UiApplic
public class launcher extends UiApplication {
public static void main(String[] args){
launcher instance = new launcher();
instance.enterEventDispatcher(
}
public launcher() {
boolean retval = true;
int handle = CodeModuleManager.getModuleHan
if (handle <=0 ){ System.exit(0); }else{ ApplicationDescriptor[] browserDescriptors = CodeModuleManager.getApplicati
if (browserDescriptors == null ){
System.exit(0);
}else{
if ( browserDescriptors.length <=0 ){ System.exit(0); }else{ String[] args = {"url", "http://wap.url.com"};
ApplicationDescriptor descriptor = new
ApplicationDescriptor(browserD
args,null, -1, null, -1,ApplicationDescriptor.FLAG
try{
ApplicationManager.getApplicat
}catch(ApplicationManagerExcep
System.exit(0);
}
System.exit(0);
}
}
}
}
}
Working Sample
WAP Support Blackberry Verizon 8830 -
In trouble shooting WAP CSS style sheet not rendering for a Blackberry 8830 world phone 2 conclusions were reached .

1. By default this phone ships with style sheets turned off (you can instruct the user to enable them) .
2. you need to embed the style in the tag ex. NOT TO USE table class="class name here" YOU SHOULD USE table style="style definition here".
Android QR Code Screen Shots/Code Sample-
Click here
WURFL Tomcat working
WAP Definition -
| Capability Name | Type | Description |
| xhtml_support_level | [-1 |..| 4] | Assuming the device supports some form of XHTML, this capability measures how reliably certain common designer features are supported, according to the following description: - level "-1": |
No comments:
Post a Comment