Can not include resources into apk

I'm trying to implement a Fortumo payment system as a native extension in the Android project.
The system comes as an external jar library.
When the application was packaged I saw that packager did not take classes from this library.
Solve this problem it was possible only if copy all classes from external library into my native library, and then package native extension and application.
But with the resources did not happen.
After package, the apk file in the root directory must have directory of resources of the payment system (fortumo_res). But I can put resources only in assets directory.
Can someone help me do this?
P.S. Maybe need change apk and then resign it? But so far I did not succeed to do it.

Are you manually packaging your APK using the ADT tool?  If so, you can add resources to your package (and specify which folder they should go in to) by using the -C and -e options.
-e places a file or directory into a specific folder in your package
-C changes the current working directory on your development machine
Here is an example.  This will place the file 'asset.png' into the folder [package root]/lib/assets
adt [adt command here] -e "C:\\path\to\my\asset.png" "lib/assets"
You can also specify entire directories (recursively) instead of individual files.
Here is an example.  This will place the directory (and sub-directory) 'fortumo_res\assets' into the folder [package root]/fortumo_res
adt [adt command here] -e "C:\\path\to\fortumo_res\assets" "fortumo_res"
Or, you can place the 'fortumo_res' assets into the 'assets' package folder instead:
adt [adt command here] -e "C:\\path\to\fortumo_res\assets" "assets"
You can have as many as you like. Example:
adt [adt command here] -e "C:\\path\to\my\asset.png" "lib/assets" -e "C:\\path\to\fortumo_res" "fortumo_res"
Hope it helps!
Peter

Similar Messages

  • HT201363 I can not make purchases into my itunes because I do not remember the security question what can I do live in Greece

    I can not make purchases into my itunes because I do not remember the security question what can I do live in Greece
    I press reset and there comes the message

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    (100647)

  • Can not extract data into BW from SQL SERVER

    Dear All,
      I meet a problem to extract data from database(MS SQL Server 2000(sp3)) into BW now and can not extract data into BW ODS, even PSA, In the monitor, display yellow light(0 from 0 record), detail message just display message "data request arranged" "confirmed with: confirmation" in requests(message) step; "missing message: request received" in extract (message)  step; "no data" in processing(data packet) step and so on. but in fact, there are two records in my database test table and DB connection is OK. Even I can extract data from another test oracle database into BW ODS successfully.
       Our BW system has two BW applicaton server and use oracle database. the one application server locates on IBM AIX host. the another one locates on one NT server. the application server on NT server is used for data extration from MS SQL SERVER  database into BW oracle database. and MS SQL SERVER and NT platform application server locate on same one host. DBSL was installed on the NT application server already. and DB connector also was created successfully for MS SQL SERVER and datasource also was generated. DBSL type is Kernel640-WIN-IA32bit-unicode. my BW system is ECC5.0/UNICODE/ORACLE. all table/view/field name of MS SQL server is upcase and have not any specific character. for example: ZDEMO etc.
    wait your help.
    Thanks in advance.
    Billy

    Hi  Ravi,
    Could you help me to get knowledge about the followings:
    approximately how many records    extracting and transfering  from SAP R/3 to BIW  in an organisation. for that how much time  will take .
    How to extract data from  two are three source system  to BIW. Kindly help me with step by step explanation .If any screen shots with documents pls fwd to my ID. "[email protected]"
    Your help highly appreciated.
    Thanks.
    Hema

  • Can not insert null into foreign key issue

    Hi ,
    I am having parent-child relationship table.
    In the child table when I am adding a new record , data is getting inserted with foreign key.
    After insert if I immediately update the same record. Its giving error that can not insert null into foreign key.
    If i click on rollback button I am able to update that record properly.

    Hi ,
    I am having parent-child relationship table.
    In the child table when I am adding a new record , data is getting inserted with foreign key.
    After insert if I immediately update the same record. Its giving error that can not insert null into foreign key.
    If i click on rollback button I am able to update that record properly.

  • I have purchased Wedding Style By Miracle Design - it is showing in the downloads but I can not get it into lightroom - I am using a mac and the instructions are for windows.

    I have purchased Wedding Style By Miracle Design - it is showing in the downloads but I can not get it into lightroom - I am using a mac and the instructions are for windows.

    Return, cancel, or exchange an Adobe order

  • I can not import photos into lightroom 4.4  Had no problem before this time.

    I can not import photos into lightroom 4.4  Had no problem before this time.  I have camera raw7.4 and use a NikonD7100.  I have a Mac using 10.6.8.  I can see the images and selected for import in Lightroom, but after I check "import" I get a message that Lightroom could not read the files.  This happens with both raw and jpeg files.  Thanks for a repl

    thanks for the reply. would you please tell me how to check for the folder to have write permission.  I have done the same settings as before but this time does not transfer.  It says can not read files with a code "298".  I can see the thumbnails on the screen prior to trying to import the photos, also can see them with the card in the camera and using the view mode.  I have up to date camera raw 7.4 for my Nikon D7100 and the settings allow for 7.1 and above

  • I can not drag clips into timeline with adobe premiere CC

    I can not drag clips into timeline with adobe premiere CC, I created a sequence and still does not work

    See if this works...  2nd post for picture of NEW ITEM process http://forums.adobe.com/message/3776153

  • I am running Mac OS 10.10 and trying to run Illustrator CS4. CS4 says it needs Java SE 6 Run Time, but I can not load that into OS 10.10. What to do?

    I am running Mac OS 10.10 and trying to run Illustrator CS4. CS4 says it needs Java SE 6 Run Time, but I can not load that into OS 10.10. What to do?

    Jacob,
    You are genius! I search all over the net and had a long chat with Apple without success. 30 minutes after posting the Abobe Illustrator forum, I have a link that works!! Many thanks.
    Jim

  • Can not log on into app store

    I can not log on into my app store.  I choose my app and choose to install.  I put in my id and password.  It then shows up "unable to connect to itunes".  I am using an ipod.  Please Help

    Try here:
    Can't connect to the iTunes Store

  • Downloaded aquarium screen saver. Says can not find Resource file

    Downloaded Auaruim screen saver, installed it, but can not find Resource File.

    >Funnily enough it loaded on an old pc easily!
    Hi
    This means that drivers are ok and there must be something wrong with the system preinstalled on Equium U400.
    How did you proceed?
    Its important that you would NOT connect the Dynadock to the notebook before the drivers and software installation has not been finished.
    Therefore you have to install the software firstly. Then after new reboot connect the Dynadock to the notebook and the installation would finish the next steps.

  • HT5622 i can not sign in into i cloud , apple account error 403 is displayed ..... but the same apple id is used in several places except icloud plz guide me

    i am APPLE user and i am facing problem i can not sign in into i cloud , apple account error 403 is displayed ..... but the same apple id is sucessfully used in several places except icloud plz guide me

    Actually, that means you've reached the limit of three new iCloud accounts on this device. The only way to fix is to create the new account on a computer or another iOS device, then setup the account on your existing device.

  • When using firefox beta can not enter text into reply areas on forums.

    When visiting vbulletin type sites, the firefox beta will not enter text into the message reply text box. Seems to be only a problem on honeycomb os.

    This sounds like a known bug in Firefox 4: https://bugzilla.mozilla.org/show_bug.cgi?id=624163
    We have a fix ready for this bug. The fix will be included in an upcoming version of Firefox. If you want to help us test the fix today, you can download a pre-release version from the "Aurora" channel here: https://wiki.mozilla.org/Mobile/Platforms/Android#Download_Aurora

  • Limit User View To Not Include Resource Attributes

    Although I've created custom workflow and forms I'm still unclear on what exactly initiates the loading of views when starting for example the Tabbed User Form. Can you control what gets loaded into the view, specifically not load resource attributes?
    We currently have approximately 700 resources and growing. This significantly lengthens the load time of the Tabbed User Form because Identity Manager connects to several hundred resources. We normally do not edit resource attributes directly but instead set them using globals or role attributes. This latency also has an affect throughout the tool, for example end-users requesting roles requires the Tabbed User Form to load.
    Ideally the view would only load the waveset and globals values and only connect to the necessary resources upon saving the view.
    Any ideas or further explanation on what controls the view attributes would be greatly appreciated.

    Dynamic Tabbed User Form will not help here as the resource attributes are loaded anyway, regardless whether the form displays it or not.
    The problem is the user view itself that checks every linked resource. I don't think you can limit the view by providing some arguments. You would have to create your own view along with the necessary handlers for checkout and checkin.

  • Can we include ArrayList into a array

    HI,
    i am newer to java.
    Can we include ArrayList element into an array,
    give the sample code.
    Regards,
    kumar

    Fine. But Here, all of my ArrayList elements are
    string.
    I have to assign all the ArrayList elements into the
    the array.
    Is it possible. give the sample code.Yes say your array list has all string elements here is how you do it...
    ArrayList<String> alist = new ArrayList<String>();
    alist.add("1");
    alist.add("2");
    alist.add("3");
    alist.add("4");
    alist.add("5");
    String arrayStrings[] = alist.toArray(new String[alist.size()]);
    NOTE: Works with J2SE 5.0 or above
    and for 5.0 below the below could be a solution.
    public static void main(String[] args){
    Test test = new Test();
    // Syntatically incorrect
    String[] s1 = new String(lst.size());
    // Would get a Type Cast Exception as ArrayList.toArray() returns Object[] not String[]
    s1 =lst.toArray();
    // and btb what test.toArray() do ??
    //s1 = test.toArray();
    }you may have to restructure it to
    public static void main(String[] args)
      Test test = new Test();
       int size = lst.size();
       String ArrayString[] = new String[size];
       Object k[] = list.toArray();
       for(int i=0 ; i < size; i++)
         ArrayString[i] = (String)k;
    Hope that might be the one...
    REGARDS,
    RaHuL

  • Can not set Resources to Budget in MS Project Pro 2013

    Hi
    May be a bug in MS Project 2013 (Professional is what I'm using)... I can not set a resource of Type Work to be a BUDGET resource unless I change the Type first (e.g., to Material or Cost), and then set the BUDGET flag, and then change the Type back the
    Type to WORK. 
    Also, noticed that if I include Budget field in the resource table, and use the fill down that will allow me to set the Budget flag to 'Yes' without having to fiddle with the resource Type first.
    ... can someone please confirm?
    Thanks in advance,
    \Spiro Theopoulos PMP, MCITP. Montreal, QC (Canada)

    Hi,
    I am not sure, what you try with your first description.
    In Proj Prof 2013 these two ways work fine for me:
    Double click on resource name in Resource Sheet and activate check box budget.
    Add column Budget to Resource Sheet and change value to Yes.
    Are you trying in a different way?
    Regards
    Barbara
    To increase the value of this forum, please mark the replies that helped to solve your issue as answer. If you find answers to questions from other forum participants to be helpful, please mark them as helpful. Your participation will help others to find
    an appropriate solution faster. Thanks for your support!

Maybe you are looking for