Skip to Content
Author's profile photo Jitendra Kansal

10 steps to develop SUP101 Android Native application [Part II]

How to Access/Read Android Device side database

 

Part I: A simple Android Native Application Development

 

In this second part, i would like to discuss how we can access client side data (for android devices).

 

Here i am assuming application has been loaded to the android device already.

 

  • Go to Window>Open Perspective>Other

 

    • Open DDMS Perspective

 

1.PNG

 

  • Go to File Explorer tab under DDMS. On the left hand side you will see Android emulator is up and running. On right hand side a list of folders, files related to the same emulator are listed.

 

 

1.PNG

 

  • Go to data>data>Package Name (com.mycorp.sup101.android.app)
  • Under package folder you will one.ulj (SUP1011_0.ulj) file.

 

Usually for all android app, database files are present in form of .db file.Here i am surprised i didnt see any database .db file under databases folder in package folder.

 

  • Just pull this file by selecting it and click on Pull a File from the device icon. You can keep this file anywhere. i.e. desktop

1.PNG

 

  • Rename .ulj extension with .udb

 

  • Next and important task is to open this udb file. Navigate to below path

 

C:\Sybase\UnwiredPlatform\Servers\SQLAnywhere12\BIN32

 

look for scjview.exe

 

1.PNG

 

 

  •   Open it.

 

for more details check http://scn.sap.com/community/developer-center/mobility-platform/blog/2013/04/29/how-to-accessread-device-database

 

I hope it will solve the problem for accessing device side data for android devices.

Your comments and suggestions are most welcome.

Rgds,

Jitendra

Assigned Tags

      7 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Very Useful...Thanks.

      Best Regards,

      Naresh K.

      Author's profile photo Jitendra Kansal
      Jitendra Kansal
      Blog Post Author

      Naresh Krishnamoorthy i am glad you find it useful 🙂

      Rgrds,

      Jitendra

      Author's profile photo Sumeet Shahapeti
      Sumeet Shahapeti

      Thanks for sharing Jitendra

      Regards

      Sumeet S

      Author's profile photo Former Member
      Former Member

      Hi Jitendra,

      Thanks for the Information, is this applicable to only Android devices and how about Blackberry or Iphones.. can you please brief some detail if possible..

      Author's profile photo Jitendra Kansal
      Jitendra Kansal
      Blog Post Author

      Hi

      basically it is native application and mainly pointed to android platform only. you can develop the similar app for BB and iOS devices.

      for BB, you can check http://scn.sap.com/docs/DOC-48708

      Rgrds,

      Jitendra

      Author's profile photo Former Member
      Former Member

      Hi Jitendra,

      Much appreciate and thanks a lot for the link.

      Regards

      Siraj

      Author's profile photo Jitendra Kansal
      Jitendra Kansal
      Blog Post Author

      siraj shaik

      thanks Siraj. I hope it will be helpful for you.

      Rgrds,

      Jitendra