Mutturaj Baradol

Greenhorn
+ Follow
since May 20, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mutturaj Baradol

hi all,

In my application iam using application permission API,i ll get the status of the permission using
boolean status1=ap.containsPermissionKey(ApplicationPermis sions.PERMISSION_BLUETOOTH);
iam getting status as true as all permissons are in allow state in emulator.
Is there any way to change the permission to deny in emulator,iam asking this because as soon as i change permission to deny and click on save my emulator is getting struck. is it my emulator's problem or we cant change the permission in emulator???

thanks
ajj
15 years ago
hi,
In my application i am using ApplicationPermission below is the code for the reference.
[code]
ApplicationPermissions ap =
ApplicationPermissionsManager.getInstance().getApplicationPermissions();
form.deleteAll();
Application.getApplication().addKeyListener(this);
Phone.addPhoneListener(this);
ap.addPermission(ApplicationPermissions.PERMISSION_PHONE);
ap.addPermission(ApplicationPermissions.VALUE_PROMPT);
ApplicationPermissionsManager.getInstance().invokePermissionsRequest(ap);
[\code]

as soon as i run my application it prompts me to select the permission i want to avoid this prompt screen and assign the permission manually.

any one know solution for this??

thanks
ajj
15 years ago
hi all,
i am using PhoneListener API for my application and even i got my API signed iam getting the following error.
Error starting GTMIDlet: Module 'GTMIDlet' attempts to access a Secure API

any one know solution for this?

thanks
ajj dev
15 years ago
We have written a midlet to play the media files(.3gp) files from the file system sequentially. These media files are downloaded in the background and stored in the Blackberry filesystem as the clips are being played.

This functionality is working fine on the GSM phones. But on the CDMA phones, while writing into file system, the application keeps prompting the close button and never allows to play. And after that we have problems connecting to the network through the application.

However we were able to play the downloaded clips using the native Blackberry media player offline.

Please can you help us resolve this issue.

thanks
ajj
15 years ago
hi,
In my application i used KeyListener and PhoneListener,
downkey from KeyListener works fine but when i use callConnected or
callDisconnected or callEndedByUser it does not give any response.

below is the code for reference
[code]
import javax.microedition.lcdui.*;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;


import net.rim.device.api.system.Application;
import net.rim.device.api.system.KeyListener;
public class NewBuild extends MIDlet implements KeyListener{
MyCanvas canvas;
Display display;
protected void destroyApp(boolean arg0) throws MIDletStateChangeException {


}

protected void pauseApp() {

}

protected void startApp() throws MIDletStateChangeException {
Application.getApplication().addKeyListener(this);
display=Display.getDisplay(this);
this.canvas=new MyCanvas();
display.setCurrent(canvas);
}

public boolean keyChar(char arg0, int arg1, int arg2) {

return false;
}

public boolean keyDown(int arg0, int arg1) {
Alert alert = new Alert("Keycode");
alert.setString ("KeyCode:"+arg0);
Display.getDisplay(this).setCurrent(alert);


return false;
}

public boolean keyRepeat(int arg0, int arg1) {

return false;
}

public boolean keyStatus(int arg0, int arg1) {

return false;
}

public boolean keyUp(int arg0, int arg1) {

return false;
}

}
import javax.microedition.lcdui.Alert;
import javax.microedition.lcdui.Canvas;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Graphics;
import net.rim.blackberry.api.phone.PhoneListener;
import net.rim.device.api.system.*;
public class MyCanvas extends Canvas implements Runnable,CommandListener,KeyListener,PhoneListener
{

NewBuild midlet;
Display display;



protected void paint(Graphics g) {
g.setColor(255,255,255);
g.fillRect(0, 0, getWidth(), getHeight());
g.setColor(0,0,0);
g.drawString("Hello J2me with external RIM API`s" + Application.getApplication().isForeground(), 0, 0, 0);

}
public boolean keyChar(char arg0, int arg1, int arg2) {
// TODO Auto-generated method stub
return false;
}

public boolean keyDown(int arg0, int arg1) {
showAlert("Key listener", "arg0 = " + arg0 + " arg1 = " + arg1);
//handle RED button
if(arg0 == 1179648){
showAlert("Main Midlet","Red Button");
//midlet.exitApp();
return true;
}
// TODO Auto-generated method stub
return false;
}

public boolean keyRepeat(int arg0, int arg1) {
// TODO Auto-generated method stub
return false;
}

public boolean keyStatus(int arg0, int arg1) {
// TODO Auto-generated method stub
return false;
}

public boolean keyUp(int arg0, int arg1) {
// TODO Auto-generated method stub
return false;
}

public void callAdded(int arg0) {
// TODO Auto-generated method stub

}

public void callAnswered(int arg0) {
// TODO Auto-generated method stub

}

public void callConferenceCallEstablished(int arg0) {
// TODO Auto-generated method stub

}

public void callConnected(int arg0) {
showAlert("Call Info","callConnected in RIM ");
// TODO Auto-generated method stub

}

public void callDirectConnectConnected(int arg0) {
// TODO Auto-generated method stub

}

public void callDirectConnectDisconnected(int arg0) {
showAlert("Call Info","callConnectDisconnected");
// TODO Auto-generated method stub

}

public void callDisconnected(int arg0) {
showAlert("Call Info in RIM","callDisConnected in RIM");
// TODO Auto-generated method stub

}

public void callEndedByUser(int arg0) {
showAlert("Call Info in RIM","callEndedByUser in RIM");
// TODO Auto-generated method stub

}

public void callFailed(int arg0, int arg1) {
// TODO Auto-generated method stub

}

public void callHeld(int arg0) {
showAlert("Call Info","callHeld in RIM");
// TODO Auto-generated method stub

}

public void callIncoming(int arg0) {
showAlert("Call Info","callIncoming in RIM");

}

public void callInitiated(int arg0) {
showAlert("Call Info","callInitiated in RIM");
// TODO Auto-generated method stub

}

public void callRemoved(int arg0) {
// TODO Auto-generated method stub

}

public void callResumed(int arg0) {
// TODO Auto-generated method stub

}

public void callWaiting(int arg0) {
showAlert("Call Info","callWaiting");
// TODO Auto-generated method stub

}

public void conferenceCallDisconnected(int arg0) {
// TODO Auto-generated method stub

}

protected void show(Displayable disp){
display.setCurrent(disp);

}
public void showAlert(String title,String msg){

// create Alert object with title
Alert alert = new Alert(title);

// set the message body to the Alert
alert.setString (msg);
alert.setTimeout (Alert.FOREVER);
show(alert);
}
public void run() {
// TODO Auto-generated method stub

}
public void commandAction(Command arg0, Displayable arg1) {
// TODO Auto-generated method stub

}
}
[\code]

thanks
ajj
15 years ago


thnks
ajj
15 years ago
hi,
while creating .cod using my application's jad and jar it gives the error
Error!: Missing stack map at label: 40

any one know about this?

thanks
ajj
15 years ago