Installing new procedure on Nexus phone

12 views
Skip to first unread message

Sophie Sheeline

unread,
Feb 12, 2013, 1:28:26 PM2/12/13
to sana-de...@googlegroups.com
I am trying to load new procedures onto a Nexus S phone, but the phone does not contain an SD card. Therefore, I can't load the file into /mnt/sdcard/media/sana/resource/procedure/ .

 I have the procedures' xml files in the raw folder and have added them in MocaUtil.java, and reloaded the database/managed procedures on the phone. Still, the new procedures do not show up on the phone on the "Start New Encounter" screen.

Is there a way to add new procedures without an SD card? 

Eric Winkler

unread,
Feb 12, 2013, 7:13:05 PM2/12/13
to sana-de...@googlegroups.com
A quick bit of background. On most Android devices, they have what is referred to as an "External Storage Drive" and is typically located on the file system under /mnt/sdcard. For phones which don't have a removable sdcard, it is usually a partition on the internal drive which is used for application and public file storage. More general info is available on the Storage Options page of the Android dev site. 

Regardless of how your device specifically configured, it should have some storage partition accessible through a call to Environment.getExternalStorageDirectory() which is essentially what the import activity uses along with the value of Constants.PATH_PROCEDURE to locate the procedure. The code is in the org.moca.activity.ProcedureSdImporter class-see the updateProcedureList() method. If you want to change where it looks for the files, just change the method or the value of Constants.PATH_PROCEDURE. 

Hope that helps.
Eric
Sana Development 
Reply all
Reply to author
Forward
0 new messages