Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Highlighted
Contributor
Posts: 43
Registered: ‎01-19-2011
My Device: lets say: I don't own CDMA Variants
My Carrier: T-Mobile Austria
Accepted Solution

Can't delete my own App!

[ Edited ]

Hallo,

 

I have an app with an alternate enty point. I'm not able to delete my own application. In Application Management it's shown as required Applications! What I'm doing wrong? 

 

*link removed*

 

Thanks

Peter

 

package mypackage;

import net.rim.device.api.system.Application;
import net.rim.device.api.ui.UiApplication;
import net.rim.device.api.ui.container.MainScreen;

/**
 * This class extends the UiApplication class, providing a
 * graphical user interface.
 */
public class MyApp extends UiApplication
{
  
    public static void main(String[] args)
    {
    	if (args != null && args.length > 0) {
			if (args[0].equals("start")) {
				MyApp theApp = new MyApp();       
		        theApp.enterEventDispatcher();
			}
			else  if (args[0].equals("background")){
				Application app = new Application() {};
				app.enterEventDispatcher();
			}
    	}
        
    }

  
    public MyApp()
    {        
        pushScreen(new MainScreen());
    }    
}

 

<!-- This file has been generated by the BlackBerry Plugin for Eclipse v3.6.0. -->

<Properties ModelVersion="1.1.2">
  <General Title="DeleteMe" Version="1.0.0" Vendor="mappau OG" Description=""/>
  <Application Type="BlackBerry Application" MainMIDletName="" MainArgs="start" HomeScreenPosition="0" StartupTier="7" IsSystemModule="false" IsAutostartup="false"/>
  <Resources hasTitleResource="false" TitleResourceBundleName="" TitleResourceBundleRelativePath="" TitleResourceBundleClassName="" TitleResourceBundleKey="" DescriptionId="">
    <Icons>
      <Icon CanonicalFileName="res\img\icon.png" IsFocus="false"/>
    </Icons>
  </Resources>
  <KeywordResources KeywordResourceBundleName="" KeywordResourceBundleRelativePath="" KeywordResourceBundleClassName="" KeywordResourceBundleKey=""/>
  <Compile OutputCompilerMessages="false" ConvertImages="true" CreateWarningForNoExportedRoutine="true" CompressResources="false" AliasList="">
    <PreprocessorDefines/>
  </Compile>
  <Packaging PreBuildStep="" PostBuildStep="" CleanStep="" OutputFileName="Test" OutputFolder="deliverables" GenerateALXFile="true">
    <AlxFiles/>
  </Packaging>
  <HiddenProperties>
    <ClassProtection/>
    <PackageProtection/>
  </HiddenProperties>
  <AlternateEntryPoints>
    <AlternateEntryPoint Title="Background" MainMIDletName="" ArgumentsForMain="background" HomeScreenPosition="0" StartupTier="7" IsSystemModule="true" IsAutostartup="true" hasTitleResource="false" TitleResourceBundleKey="" TitleResourceBundleName="" TitleResourceBundleClassName="" TitleResourceBundleRelativePath="">
      <Icons/>
      <KeywordResources KeywordResourceBundleName="" KeywordResourceBundleRelativePath="" KeywordResourceBundleClassName="" KeywordResourceBundleKey=""/>
    </AlternateEntryPoint>
  </AlternateEntryPoints>
</Properties>

________________
mappau Dev Team
blackberry@mappau.com twitter.com/#!/mappau facebook.com/mappau.at
Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Can't delete my own App!

you can use javaloader with -f to delete anything you want.
you can find javaloader in the vmtools folder of your eclipse plugin.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Contributor
Posts: 43
Registered: ‎01-19-2011
My Device: lets say: I don't own CDMA Variants
My Carrier: T-Mobile Austria

Re: Can't delete my own App!

Thank you!
________________
mappau Dev Team
blackberry@mappau.com twitter.com/#!/mappau facebook.com/mappau.at