While following a tutorial over at androidworld.it I have created and edited a app inventor application that I would like to post up on the market.
Wile I was uploading into the developer console and publishing everything checked out fine until I hit publish. The old way for copy protection will soon be extinct and the following shows up.
The copy protection feature will be deprecated soon, please use licensing service instead.
Click to expand...
Click to collapse
To do this the apk file needs taken back down to source and ...
Integrating the LVL with your application code involves these tasks:
1. Adding the licensing permission your application's manifest.
2. Implementing a Policy — you can choose one of the full implementations provided in the LVL or create your own.
3. Implementing an Obfuscator, if your Policy will cache any license response data.
4. Adding code to check the license in your application's main Activity
Click to expand...
Click to collapse
The closest way ive seen on how to install this is ..
If you are developing using the SDK command-line tools, navigate to the directory containing your application project and open the default.properties file. Add a line to the file that specifies the android.library.reference.<n> key and the path to the library. For example:
android.library.reference.1=path/to/library_project
Alternatively, you can use this command to update the project properties, including the reference to the library project:
android update lib-project
--target <target_ID> \
--path path/to/my/app_project \
--library path/to/my/library_project
Click to expand...
Click to collapse
But decompiling the apk file with apktool creates no "default.properties" file
So I am at a loss on how to get this working.. Anyone recently get a app inventor app working on the market and figure out this part ? The tutorial has no info on this part. it may have been made prior to google implementing this.
Has anyone found a solution to this yet?
nicklantz did you end up with anything useful?
Any help appreciated.
Thanks
I have the same question.
anyone has the solution?
Related
I am trying to modify k-9 mail and I have done basically what I need. The only issue I am faced with is changing the package name. I have tried using refractor built into eclipse, I have also tried using the tool in the ADT plugin to change the package name. I also tried them both on same source, with no luck. What happens is the name of the package changes, it updates all of the references, the project compiles and installs on my phone. After this i can run some of the app but when the program starts new activities the program force closes. Has anyone been able to change the package name? If so how? I can provide the source I am working with and anyone can try on my source. Thanks in advance.
I also tried them both on same source, with no luck. What happens is the name of the package changes, it updates all of the references...
Click to expand...
Click to collapse
That's what it is used for. There is a function that allows you to rename the application package which is located at (in eclipse):
Right click on the project
Android Tools
Rename application package
This should do the trick
Yea that's the thing, I've renamed other packages for other projects just fine. For some reason K-9 is different.
almyz125 said:
Yea that's the thing, I've renamed other packages for other projects just fine. For some reason K-9 is different.
Click to expand...
Click to collapse
check you manifest, i have found that after a rename/refactor the activity names are all bonkers and have to be updated manualy.
just a thought.
*edit, what does the log say?
Pvy.
Someone linked me to this: https://github.com/k9mail/k-9/blob/master/tools/build-beta
I think its what i need, does anyone know how to run this?
Hey,
out of need (and before learning about the excellent on-device TCX Exporter) I scripted a little Motoactv Exporter.
You do not need a rooted Motoactv, nor any knowledge other than how to run a shell script.
That also means Mac & Linux only.
What it does:
- It gets the latest (and only the latest) Workout from the Motoactv portal
- Uploads it to a one of the few online Motoactv CSV-converters
- Downloads the TCX-File
- Optionally: downloads GPX/KML file (all you gotta do is uncomment on line / delete one '#' in the script)
There's also support for uploading to the Trainingstagebuch.org website (by uncommenting 2 lines).
It's really useful when it's part of a cronjob.
E.g. auto-upload to Motoactv.com from the device that go along with hourly checks for new workouts by the cronjob -> upload to your favorite tracking website -> :victory:
I know the code is not exactly pretty, but here you go:
http://pastebin.com/apYKVpi5
Download the script as .txt (rename to sh):
http://pastebin.com/download.php?i=apYKVpi5
1. Open the file and replace the the Data after EMAIL= and PASSWORD= with your Motoactv-Credentials. These will be saved on your computer.
2. Go down and uncomment (delete the ' # ') if you want GPX/KML conversion. Default is TCX.
3. Save the file with a *.sh suffix.
4. Run the script.
(Run with Terminal (on Mac) by typing 'sh ' and then dragging the file onto the Terminal app and the hit enter.)
strava
Could one upload with Strava? Also how do "uncomment" a line?
Thanks
rr
[email protected] said:
Could one upload with Strava? Also how do "uncomment" a line?
Thanks
rr
Click to expand...
Click to collapse
Open the file and delete the # - symbol in front of the line you want to uncomment.
I don't use Strava, but with a little knowledge of curl you could probably easily upload it to Strava.
Edit: I'm working on it.
Other than that you could just upload the tcx file from the script to Strava:
Upload a file on your computer
You can upload files directly to Strava via our file uploader found here:
strava.com/upload/select.
You can upload the following file types as long as the file is 25MB or smaller:
GPX
TCX
FIT
Click to expand...
Click to collapse
strava help
Any progress on the Strava direct option? so do I replace "Trainingstagebuch.org with strava.com in the script? is it that simple? Do I take anything out?
Also in Mac (text edit) I don't see option to change the extension to .sh. Then I run the script from terminal?
Sorry I may be out my side of technical abilities and without your "hand holding" I am sunk.
Thanks
[email protected] said:
Any progress on the Strava direct option? so do I replace "Trainingstagebuch.org with strava.com in the script? is it that simple? Do I take anything out?
Click to expand...
Click to collapse
It's not that simple as the two platforms use different APIs. I spent quite some time figuring out how to upload to strava (my script can login so far) but for some strange reason the TCX files are declared as invalid when uploaded through the script. Strava announced a new API coming and I'd spent the time and afford on the new API rather than making it work with the old one.
[email protected] said:
Any progress on the Strava direct option? so do I replace "Trainingstagebuch.org with strava.com in the script? is it that simple? Do I take anything out?
Also in Mac (text edit) I don't see option to change the extension to .sh. Then I run the script from terminal?
Sorry I may be out my side of technical abilities and without your "hand holding" I am sunk.
Thanks
Click to expand...
Click to collapse
[/QUOTE]
Just save the file as exporter.sh or something. (File -> Save As)
Open "Terminal", type "sh " (including the space). Then drop that File (from Finder or your Desktop or wherever) on to Terminal and hit enter to run it.
..but: Actually Motoactv.com has introduced as mass-export tool -> motoactv.com/settings/export
So you can just bulk export them from Motoactv and upload them to Strava as an alternative to my script.
All it can really do w/out Strava support is automatically rip the last one and convert it for you anyway.
Steps:
(Yes, you need Jailbreak first.)
Download CsBox.zip from this thread.
Unzip the CsBox folder to your user's folder (in my case it's C:\Users\ssaaxx\Desktop\Scripts\)
Get Notepad++ and run it (from the App porting thread)
In Notepad++, Create and save a C# code snippet (A sample code snippet can be found in TestCSharp.cs.txt attachment)
In Notepad++, click "Run" menu --> "Run..." --> Input following text and run (or you can save it as a command shortcut if you want to)
C:\Users\ssaaxx\Desktop\Scripts\CsBox\RunCsSnippet.bat "$(FULL_CURRENT_PATH)"
There you go!
* Do use the right folder path for you.
------------------
How does it work?
Windows RT ships with a CSharp compiler (csc.exe), except it's not working by default because of missing some referenced dlls.
So I commented out the missing references from the rsp file, and it worked.
After this it's just some basic scripting and Notepad++ integration.
-----------------
Edit: fixed a bug. thanks Calebsem.
Edit: Hide compiler output when compiling succeeds.
cool!
Very cool little hack! I've been looking forward to a way to program C# on the Surface!
Just to demonstrate what this "scratchpad" is capable of, I'll update this reply with some handy scripts:
1. Script to enable Adobe Flash for specified website / domain: EnableFlash.zip
...
* Download the zip and unzip the cs file. Load it in Notepad++ and run.
ssaaxx said:
Steps:
How does it work?
Windows RT ships with a CSharp compiler (csc.exe), except it's not working by default because of missing some referenced dlls.
So I commented out the missing references from the rsp file, and it worked.
After this it's just some basic scripting and Notepad++ integration.
Click to expand...
Click to collapse
Thanks for the cool utility and guide! I was able to work it out to compile a multi-file .NET project. One snag that I hit in the endeavor was about the resources. ResGen.exe does not come on the RT version of Windows. I used my desktop to compile the various resources and then stuff them into the directory tree. At last, the program I re-built was completed and launched well. It consists of an exe and two dll files. All's well for that experiment. Unsure if I can make the time to do a clean room build of ResGen.exe for ARM.
I'm surprised this topic didn't get as many posts as it did. Found this thread through a youtube video, and this has got to be one of the best kept secrets for code development on the RT. A quick replacement of the csc.rsp file after toying with permissions, and adding the csc.exe to my PATH basically allows command-line C# building.
Wondering if the missing DLLs actually appear on different versions of RT. Not that these specific namespaces are something I regularly use, but it would be nice not to have to comment things out this way.
ssaaxx said:
Steps:
(Yes, you need Jailbreak first.)
Download CsBox.zip from this thread.
Unzip the CsBox folder to your user's folder (in my case it's C:\Users\ssaaxx\Desktop\Scripts\)
Get Notepad++ and run it (from the App porting thread)
In Notepad++, Create and save a C# code snippet (A sample code snippet can be found in TestCSharp.cs.txt attachment)
In Notepad++, click "Run" menu --> "Run..." --> Input following text and run (or you can save it as a command shortcut if you want to)
C:\Users\ssaaxx\Desktop\Scripts\CsBox\RunCsSnippet.bat "$(FULL_CURRENT_PATH)"
There you go!
* Do use the right folder path for you.
------------------
How does it work?
Windows RT ships with a CSharp compiler (csc.exe), except it's not working by default because of missing some referenced dlls.
So I commented out the missing references from the rsp file, and it worked.
After this it's just some basic scripting and Notepad++ integration.
-----------------
Edit: fixed a bug. thanks Calebsem.
Edit: Hide compiler output when compiling succeeds.
Click to expand...
Click to collapse
i dont work, he says "WARNING CS2008 NO ORIGINAL FILE SPECIFICATED"
i post an image (sorry but is in italian)
When you get an Android application, you might want to know who publish it.
As we known, each APK should be signed before published, or else will get "NO_CERTIFICATE" error while installing.
A signed APK have META-INF directory in its package. We can unzip the APK, print the certificate by the following command:
keytool --printcert -file META-INF/CERT.RSA
then, we will get all the information including: who publish the apk, the fingerprint etc.
abanduan said:
When you get an Android application, you might want to know who publish it.
As we known, each APK should be signed before published, or else will get "NO_CERTIFICATE" error while installing.
A signed APK have META-INF directory in its package. We can unzip the APK, print the certificate by the following command:
keytool --printcert -file META-INF/CERT.RSA
then, we will get all the information including: who publish the apk, the fingerprint etc.
Click to expand...
Click to collapse
This is good or bad?
Absolutly GOOD
piotriix said:
This is good or bad?
Click to expand...
Click to collapse
What do you mean by? good or bad for what?
Thanks. I can install in trusted publishers and root ca in windows using certmgr.msc to install personal certificate hacked via batch file as admin to install digi signed vbscript.
How to do install it in trusted publishers manually using java keytool for android?
If we do above no need to check unknown sources box.
Pressing THANKS easier than typing.
Sent from s5360 GB DDMD1 rooted stock.
I have seen that there are a lot of questions on how to be able to multi touch in App Inventor 2. As you may know already, App Inventor 2 does not support multitouch natively. But you can use a workaround so that your app will have multitouch capabilities in the final .apk.
This method will work for 2 or more different objects such as 2 buttons, 2 canvases, 2 sliders etc. It will NOT work for the same canvas.
What you need:
1. An App Inventor 2 project with at least 2 buttons, canvas, sliders etc
2. AppToMarket_v32 (the most recent at this moment of posting): https://code.google.com/p/apptomarket/downloads/list
Steps:
1. After you have created your app, build it and save it to your computer in .apk format
2. Download AppToMarket_v32, extract the files from the archive and place it somewhere you will find it easily
3. In the AppToMarket folder, open runMeWindows_v32.bat, This will open a command window that will then open the program.
4. Once you have the app open, enter whatever you want in the Certificate Details tab, then click "Generate"
5. Go to the next tab (De/Re compile and wrap-up), click "Browse" and point the path to your apk, then click "Decompile"
6. In the "Features" menu below, change the "Min SDK Ver" to 5 and "Target SDK Ver" to 11. If you don't want your app to be resized, change the slider to "Normal"
7. Click on the "Update Manifest" and "Create New .apk"
8. DONE! Your new apk is in the same folder as your old one, but with the name changed (apkname_new.apk)
If you want, I can make a youtube video with step-by-step instructions on how to do everithing I said above. Just say it in the comments.
.APK can't be decompiled
I have a problem:
When I press "decompile", I get the error "ERROR: Unable to decompile your .apk file". I tried downloading it again from the App Inventor page, but it gave me the same error over and over again. Does anyone know how to fix this?
Are you sure you have generated and saved the certificate details? Try and put other detailes there and click generate, it doesn't matter what you write there as long as you don't plan on selling the app on the market. Also, is your path to the apk file correct?
hi, thanks for the guide, but i have a problem, when i try to install the new apk in my android, i have a error, in the package analisys.
i read that downloading from drive was tha solution but not, i still have the same error, i try to install the apk of app inventor to be sure, and this apk install without problems.
do you have any idea of the solution for this problem?
thanks a lot for your help.
sorry for my english
Hi, sorry for responding late. Try signing the apk after you create it (there is a button which says Sign Apk in the right)
Hi!
I have followed the steps of the guide (thanks for it!), but I had a problem while modifying the SDK version. Using the fields for Min SDK Ver and Target SDK Ver adds nothing to the manifest, so I tried writing it by hand:
I've tried to edit the manifest with AppToMarket as indicated in Gareth's post and other guides I've found, but when I add the line <uses-sdk android:targetSdkVersion=11 /> AppToMarket gives and error while rebuilding the APK and doesn't create the new file. I added this to the manifest file:
...
<uses-sdk
android:minSdkVersion=5
android:targetSdkVersion=11 />
</manifest>
But when I add this, AppToMarket shows an error while creating the new .apk (no more info, just says there has been an error).
There is another issue. No matter which size I put on the slider, it always resizes my app...
Any idea about why is this happening and how to fix it?
Thank you !
AlexKapa said:
I have seen that there are a lot of questions on how to be able to multi touch in App Inventor 2. As you may know already, App Inventor 2 does not support multitouch natively. .
Click to expand...
Click to collapse
Dear friend,
Thank you for your tutorial. But, can't install the app. "Invalid application, Stop Installation". :crying:
I'm using the "App to Makert V4.0". I can't find the "32 version" , seems "deleted" . My smartphone for test has the android version: 4.1.2 and Kernel 3.4.0.
Thank you.
I have followed the steps of the guide and installed to my smartphone successfully.
But it still can't multitouch two canvas at the same time.
What is the problem may happened?
two canvas
shihchieh said:
I have followed the steps of the guide and installed to my smartphone successfully.
But it still can't multitouch two canvas at the same time.
What is the problem may happened?
Click to expand...
Click to collapse
Hello ! I have followed the steps too, and no multitouch on two canvas. Did you found the solution ? Thanks.