Hello there. Here is a new guy in blackberry development and i like to say that i'm realy glad to work with machines like BB.
Ok, here is my problem and i hope it is easy to resolve. I have one application named AI1, with the folow source:
Code:
package com.rim.samples.helloworld;
import net.rim.device.api.ui.*;
import net.rim.device.api.ui.component.*;
import net.rim.device.api.ui.container.*;
import net.rim.device.api.system.*;
public class AI1 extends UiApplication
{
public static void main(String[] args)
{
AI1 theApp = new AI1();
theApp.enterEventDispatcher();
}
public AI1()
{
pushScreen(new HelloWorldScreen());
}
}
class HelloWorldScreen extends MainScreen
{
public HelloWorldScreen()
{
super();
setTitle("AI Version 1");
}
}
and second application named AI2 with source:
Code:
package com.rim.samples.helloworld;
import net.rim.device.api.ui.*;
import net.rim.device.api.ui.component.*;
import net.rim.device.api.ui.container.*;
import net.rim.device.api.system.*;
public class AI2 extends UiApplication
{
public static void main(String[] args)
{
AI2 theApp = new AI2();
theApp.enterEventDispatcher();
}
public AI2()
{
pushScreen(new HelloWorldScreen());
}
}
class HelloWorldScreen extends MainScreen
{
public HelloWorldScreen()
{
super();
setTitle("AI Version 2");
}
}
I have istall AI1 on BB via Desktop Manager and i try to update it with AI2 via Desktop Manager too.
Here is a .alx files:
AI1.alx
Code:
<loader version="1.0">
<application id="appindicator">
<name >
Application Indicator
</name>
<description >
bla bla
</description>
<version >
1.0
</version>
<vendor >
Debeliq
</vendor>
<copyright >
Copyright (c) 2008 Debeiq
</copyright>
<fileset Java="1.33">
<directory >
</directory>
<files >
AI1.cod
</files>
</fileset>
</application>
</loader>
AI2.alx
Code:
<loader version="2.0">
<application id="appindicator">
<name >
Application Indicator
</name>
<description >
bla bla
</description>
<version >
2.0
</version>
<vendor >
Debeliq
</vendor>
<copyright >
Copyright (c) 2008 Debeiq
</copyright>
<fileset Java="1.33">
<directory >
</directory>
<files >
AI2.cod
</files>
</fileset>
</application>
</loader>
The problem is that after "update" i have 2 applications, not only updated one.
Here is my steps:
1. Open Desktop Manager.
2. Connect BB.
3. Open Application Loader.
4. Open Add/Remove Applications
5. Install AI1.
6. Go to main menu.
7. Open Application Loader.
8. Choose Update Applications.
9. Push button "Advanced".
10. Browse AI2.axl
11. Action changed to "Install".
12. Click next and finish.
And there is a 2 icons of my application in application list.
How can i resolve this problem guys?