Tuesday, November 3, 2009

How to clear Blackberry Simulator's Record Store / Flash Memory / Application Data

I have faced lot's of problem on clearing application data used by blackberry storm simulator. Usually for wtk simulator netbeans provide graphical interface (also wtk has options in utilities) to clean record store / application data / flash memory.

Finally I got a solution for it. Blackberry simulator's keep the data in its working directory in three files named (for BB 9530 simulator):

9530-as.dmp
9530-fs.dmp
9530-nv.dmp

Usually file names are [model name]-*.dmp.

For my pc for model 9530 verizon keeps the file in its working directory:

C:\Program Files\Research In Motion\BlackBerry Smartphone Simulators 4.7.0\4.7.0.75 (9530-Verizon)\

If we need to clear this data just simply delete among three files.

Wednesday, October 28, 2009

Sun Wireless Toolkit RMS not working....

I have faced the similar problem, RMS not working....actually wtk keep a default space in hard drive for saving files and data in RMS. When its got full it will not work. Now how to resolve it:

For windows: In documents and settings folder

Enter in C:\Documents and Settings\USER NAME\j2mewtk\
Delete ALL files.

Now it will work properly.

Friday, June 12, 2009

Adding new black berry simulator in JDE

 If we install blackberry simulator after installing jde, sometimes it does not get the simulator. So we need to add manully. The steps are: 

       1. Go to jde intalled directory and go inside simulator folder like (C:\Program Files\Research In Motion\BlackBerry JDE 4.5.0\simulator)
       2. Now we need to add the batch file inside this folder.
       3. Copy the simulator batch file from the simulator installed location like ( "C:\Program Files\Research In Motion\BlackBerry Smartphone Simulators 4.7.0\4.7.0.75 (9530-Verizon)\9530-Verizon.bat") and paste it to the simulator folder.
       4. Now we need to edit the batch file that have pasted in simulator folder:

        For example if we want to add 9530-Verizon.bat simulator we will find following text if we open the .bat file in edit mode.

       @echo off 
fledge.exe /title="Blackberry 9530 Simulator -Verizon" /app=Jvm.dll /handheld=9530 /session=9530 /app-param=DisableRegistration /app-param=JvmAlxConfigFile:9530-Verizon.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000A 


we need to edit the path of fledge.exe, Jvm.dll and 9530-Verizon.xml file like following:

@echo off 
"C:\Program Files\Research In Motion\BlackBerry Smartphone Simulators 4.7.0\4.7.0.75 (9530-Verizon)\fledge.exe" /app="C:\Program Files\Research In Motion\BlackBerry Smartphone Simulators 4.7.0\4.7.0.75 (9530-Verizon)\Jvm.dll" /title="Blackberry 9530 Simulator -Verizon" /handheld=9530 /session=9530 /app-param=DisableRegistration /app-param=JvmAlxConfigFile:9530-Verizon.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000A 


Here we need to put the actual path of these above mentioned file where the simulator is actually installed.

                       5. Now double click the the batch file. If it runs the simulator then its ok. 

      Now you can easily got it added in your jde.



       
      
 

Sunday, January 11, 2009

Beginning Lamda Expression in C#


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lamda_expresion_test
{
class Program
{
public delegate int ChangeInt(int x);
public delegate int SummingInt(int x, int y);

static void Main(string[] args)
{
int[] numbers = new[] { 3, 8, 4, 6, 1, 7, 9, 2, 4, 8 };
int[] negetiveNumbers = new[] { -1,-2,-3,-4,-5,-6};

int count = numbers.Count(x => x % 2 == 0);//x % 2==1 for odd

Console.WriteLine("Total even numbers: {0}\n",count);


Console.Write("Numbers greater than 6: ");
foreach (int a in numbers.Where(p => p > 6))
Console.Write(" {0}",a);


Console.WriteLine();

//// using delegate...reducing code

ChangeInt doubleInt = delegate(int x) { return x * 2; };
Console.WriteLine(doubleInt(12));

//using Lamda Expression code more reduced
ChangeInt delgate = x => x * 2;
Console.WriteLine(delgate(12));

//Lamda expression on two parameters....
SummingInt summing = (x, y) => x + y;
Console.WriteLine(summing(12,100));

// More complex operations......
Console.WriteLine("Numbers between 3 and 8: ");
foreach (int i in numbers.Where(x => x>=3 && x<=8))
 Console.Write(" {0}",i); 

Console.WriteLine(); 
//same as previous expression...... 
// we can make some codition like following.... 

foreach (int i in numbers.Where( 
x =>
{
if (x >= 3 && x <= 8) 
return true; 
else return false; 
} )) 
Console.Write(" {0}", i);
 Console.WriteLine(); 
}
 
}
}

PC Magazine Tips and Solutions

PC World: Latest Technology News

PCWorld.com - Most Popular Downloads of the Week