应用发明人:安装应用程序到SD卡 [英] app-inventor: install apps onto SD card

查看:168
本文介绍了应用发明人:安装应用程序到SD卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我钻研应用程序的发明者,因为我的孩子(10岁至12岁)即将拿到自己的第一款Android手机,并且已经做了一些拖放编程(游戏厂商),所以我想这可能是一个很好的切入点他们

我现在已经写5应用程序自己用的​​应用程序的发明者,并安装了4到我的手机,我无法安装5一个,因为我是内存不足显然,尽管有3演出免费SD卡上手机上。

好了,所以这是怎么回事?设置 - >应用程序 - >管理应用程序不剪,因为移动到SD卡选项是灰色的appinventor的应用程序。

我打包我的第五应用程序作为一个apk文件,然后解压缩它看AndroidManifest.xml中,但它不是纯文本: - /

解决方案,不是一个适合我的工作:

(1)等待

(2)根您的电话,然后......

(三)从手机记忆库中删除一些东西[一个解决方法,而不是一个解决方案]

(4)购买的产品,然后......


行,所以这里有一个更新。我还没有设法解决这个问题。这是我做的这么远。<​​/ P>

1)我创建,在appinventor,一个应用程序被称为test123,用图片和一个按钮(什么都不做)。

2)我创建了一个apk文件,并坚持它在我的网站:您可以的这个链接。谁想要可以下载并在手机上运行,​​只要他们有4个左右兆的免费存储在手机上。据我所知,他们不能将其下载到他们的SD卡。因此,让我澄清,所面临的挑战是让该应用程序,一中的链接,安装到手机的SD卡。

行,所以让我们试试吧!

3)我把APK在Linux中,下载 apktool ,跑

  apktoolðtest123.apk
 

在baksmaling一点点,我现在有一个目录test123。

4)我搬进目录test123,我发现了一个文件AndroidManifest.xml中。我修改此文件;前几行均

 &LT; XML版本=1.0编码=UTF-8&GT?;
&LT;舱单安卓版code =3安卓VERSIONNAME =1.5包=。appinventor.ai _ ************ test123
  的xmlns:机器人=htt​​p://schemas.android.com/apk/res/android&GT;
 

[我已经删我的Gmail地址上*** S]

和我改变他们

 &LT; XML版本=1.0编码=UTF-8&GT?;
&LT;舱单安卓版code =3安卓VERSIONNAME =1.5包=。appinventor.ai _ ************ test123
  的xmlns:机器人=htt​​p://schemas.android.com/apk/res/android机器人:INSTALLLOCATION =preferExternal&GT;
 

5)我搬进老地方APK是目录(即包含目录test123),并输入目录

  apktool b test123
 

一些smaling后,程序将终止。

6)我变成目录

  test123 / DIST
 

和在它,我发现了一个新的apk文件,也称为test123.apk。我把它放在我的网站这里。请注意,无论是前apktools和后apktools版本的APK具有完全相同的名称 - test123.apk。

7)我现在下载的文件后 - 由apktool中创建的版本 - 到Windows机器上,并用7-ZIP(切换到Windows打开它,这样我可以用precise计划在答案的建议)。我无法找到,它已被提出,我删除虽然这些文件。我看

 的Andr​​oidManifest.xml
classes.dex
resources.arsc
资产/ smallkez.png
RES /绘制/ ya.png
 

,就是这样。


在总结的话,我似乎在DarkXphenomenon的解决方案第5步将失败(在写作的时候)。如果我之后,将文件下载到我的手机,并试图安装它,我得到了令人难以置信的信息的错误!没有安装应用程序,我唯一的选择是单击完成。

不幸的是我仍然不知道是否我试图做不可能的事,即无论周围的Googling是导致人们这曾经工作,但不再做,还是我只是缺少一些愚蠢的解决方案。

这是这样一个根本问题对我来说!我的手机,开箱,有空闲内存约21兆,而我的SD卡有千兆和千兆字节。

解决方案

问题本身: 此举到SD卡的选项是灰色的。

解决方法:

目前,应用发明人本身不支持安装到外部SD功能呢。 所以,你所面临的问题是一个应用程序,显示了这一点。

此方法的确实的工作。我测试了它!我也上传所有我用我的谷歌驱动器帐户,便于下载的工具。

test_orig.apk 是应用发明人的原始文件。

第1步反编译使用apktool APK。它可以在windows下进行,使用apktool。 是我在windows下使用的存档。来源不必去codeD编辑清单。因此,使用的命令是 apktoolð-s test_orig.apk

第2步。这将创建一个名为 test_orig 中含有apktool同一目录下的文件夹。在这个目录中的文件夹的Andr​​oidManifest.xml 。打开在一个文本编辑器,并更改以下行。

 &LT;舱单的xmlns:机器人=htt​​p://schemas.android.com/apk/res/android...机器人:INSTALLLOCATION =preferExternal&GT ;
 

第3步。时使用重新编译APK apktool b test_orig

第4步。现在,是时候上签字。签名是使用注册+ 变得容易。 只需添加的apk,它会吐出一个签署的副本。没有别的需要做的事情。

第5步。您签署的apk是准备安装。 切记要卸载旧的apk 或你会看到一个错误,指出应用程序未安装:现有的包有冲突的签名时

最终结果是:

签名的应用程序可供下载这里

[edited to show current state of play a week after asking the question]

I delved into app inventor because my kids (age 10 and 12) are about to get their first android phones, and have done some drag and drop programming (game maker) so I thought it might be a good entry point for them.

I have now written 5 apps myself with app inventor, and installed 4 onto my phone, and I can't install the 5th one because I am "out of memory" apparently, despite having 3 gigs free on the SD card on the phone.

Ok so what is going on? Settings->Applications->Manage Applications doesn't cut it, because the "Move to SD card" option is greyed out on the appinventor apps.

I packaged up my 5th app as an apk, and then unzipped it to look at AndroidManifest.xml but it's not plain text :-/

Solutions that are not a good fit for me:

(1) "Wait"

(2) "Root your phone and then..."

(3) "delete some stuff from your phone memory" [a work-around, not a solution]

(4) "Buy this product and then..."


OK so here's an update. I still have not managed to solve this problem. Here is what I did so far.

1) I created, in appinventor, an application called "test123", with a picture and a button (which does nothing).

2) I created an apk, and stuck it on my website: you can see it at this link . Anyone who wants to can download it and run it on their phone, as long as they have 4 or so megs of free memory on their phone. As far as I know they can't download it onto their SD card. So let me clarify that the challenge is to get that app, the one in the link, installed onto a phone SD card.

OK so let's try!

3) I put the apk on a linux box, downloaded apktool, and ran

apktool d test123.apk

After a little bit of baksmaling, I now had a directory test123 .

4) I moved into directory test123 where I found a file AndroidManifest.xml . I edited this file; the first few lines were

<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="3" android:versionName="1.5" package="appinventor.ai_************.test123"
  xmlns:android="http://schemas.android.com/apk/res/android">

[I have censored my gmail address with ***s]

and I changed them to

<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="3" android:versionName="1.5" package="appinventor.ai_************.test123"
  xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="preferExternal">

5) I moved into the directory where the old apk was (i.e. the directory containing the directory test123) and typed

apktool b test123

After some smaling, the program terminated.

6) I changed into directory

test123/dist

and in it I found a new .apk file, also called test123.apk . I put it on my website here . Note that both the "before apktools" and the "after apktools" versions of the apk have exactly the same name -- test123.apk .

7) I now downloaded the "after" file -- the version created by apktool b -- onto a Windows machine, and opened it with 7-Zip (switching to Windows was just so I could use the precise program suggested in the answers). I can't find the files that it has been suggested that I delete though. I see

AndroidManifest.xml
classes.dex
resources.arsc
assets/smallkez.png
res/drawable/ya.png

and that's it.


In summary then, I seem to be failing at step 5 of DarkXphenomenon's solution (at the time of writing). If I download the "after" file onto my phone, and try to install it, I get the incredibly informative error "! Application not installed" and my only option is to click "done".

Unfortunately I still don't know whether I am trying to do the impossible, i.e. whether googling around is leading people to solutions which used to work but no longer do, or whether I am just missing something stupid.

This is such a fundamental issue for me! My phone, out of the box, has about 21 megs of free memory, and my sd card has gigabytes and gigabytes.

解决方案

The issue itself: The move to sd card option is grayed out.

Solution:

Currently, app-inventor itself does not support the install to external SD feature yet. So, the issue you face is an app that shows this.

This approach does work. I tested it! I am also uploading all the tools I used to my Google Drive account for ease of download.

test_orig.apk is the original file from app-inventor.

Step 1. Decompile the APK using apktool. It can be done under windows, using apktool. This is the archive I used under windows. The sources need not be decoded to edit the manifest. Hence, the command used is apktool d -s test_orig.apk

Step 2. This creates the folder named test_orig in the same directory containing apktool. Within this directory is the folder AndroidManifest.xml. Open that up in a text editor and change the following line.

<manifest xmlns:android="http://schemas.android.com/apk/res/android"  ...android:installLocation="preferExternal">

Step 3. Time to recompile the apk using apktool b test_orig

Step 4. Now, it is time to sign it. Signing it is made easy using Sign+. Just add the apk and it will spit out a signed copy. Nothing else needs to be done.

Step 5. Your signed apk is ready to be installed. Remember to uninstall your old apk or you will see an error that says Application Not Installed: An existing package with a conflicting signature exists.

END Result:

The signed application is available for download here.

这篇关于应用发明人:安装应用程序到SD卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆