Click here to Skip to main content
15,868,016 members
Articles / Mobile Apps

Persistent Mobile Device Application

Rate me:
Please Sign up or sign in to vote.
2.00/5 (4 votes)
19 May 2008CPOL1 min read 22K   17   4
Permanent Storage of a Mobile Device Application

Introduction

This article discusses the persistence of your Symbol Mobile Device Application. If you follow this way of installing your application on Mobile Device, it will never be lost and you can find it on the device even after a cold boot.

Background

This article is an answer to questions like:

  1. My application gets lost when the battery goes.
  2. I want to see my application after every time I cold boot my Mobile Device.
  3. Where should I install my cab file.

Using the Code

Whenever we want to install an application on the mobile device, we need to follow the steps written below:

Step 1- Copy your cab file in the application folder.

Step 2 - Copy the cab.cpy file in the application folder (we'll write the cab.cpy file now).

Step 3 - Copy the cab.reg file in the application folder (we'll write the cab.reg file now).

After following these steps, your application will be installed as one of the system applications:

C#
//Creating cab.cpy file
//Open any text editor, write this line and save it as cab.cpy

\application\MyCabFile.cab >  \windows\MyCabFile.cab

//Creating cab.reg file
//Open any text editor, write these line and save it as cab,reg

[HKEY_CURRENT_USER\Software\Symbol\Startup\Programs\Prog10]
"Name"="\windows\wceload.exe"
"Command"="\Windows\MyCabFile.cab"
"Continue"=dword:0
"ColdBootOnly"=dword:1

The above reg file will install the application every time you cold boot the device.

This will resolve your issues related to installation of applications into Symbol Mobile Devices.

History

  • 19th May, 2008: Initial post

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer Tarkia
India India
He works on c#.net with TARKIA

Comments and Discussions

 
QuestionThis creates a bug. Pin
bd22~8-Jun-15 12:51
bd22~8-Jun-15 12:51 
GeneralSymbol Only Pin
Paul M Watt19-May-08 12:46
mentorPaul M Watt19-May-08 12:46 
GeneralRe: Symbol Only Pin
Gurpreet11120-May-08 14:53
Gurpreet11120-May-08 14:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.