i have used eclipse, android sdk and phonegap to create a small application. I give it a test and create a test.apk package.
What i ma wondering is where can i set up some details about this app, like who made it, the app name, the version, an icon maybe, any other things i might need to setup.
I have a AndroidManifest.xml file and when i open it i get a nice gui but i don't know what to modify there
Im not sure what i need to set up and even if i need to.
A good tutorial is much appreciated. Thanks
You can set most of those things in the manifest file. If you want to include this information in your code, add license headers in all your classes, use java-doc etc.
If you want this information to be accessible in your app like from 'About' button, you have to handle it yourself.
Take a look at this example.
This details are to be filled when you upload it to android market. I dont think you set them in AndroidManifest.xml ! you can see the xml code , by clicking on the "source code" tab just below the UI .
Here's a tutorial that describes managing AndroidManifest.xml, the app name and icons from our AppLaud Eclipse plugin for PhoneGap Android.
Related
I'm trying to implement trivial quick access wallet pass - almost everything seem to be piece of cake (I'm following https://source.android.com/devices/tech/connect/quick-access-wallet) but this part: https://source.android.com/devices/tech/connect/quick-access-wallet#wallet-ui
The article does not mention how to:
include QuickAccessWallet target into the build - which config file should I modify and how? Guess that might be gradle question but really unsure here
what is this overlay/frameworks/base/packages/SystemUI/res/values/config.xml file and where should I place it? Is it supposed to be somehow added to my project?
lastly - how to set default nfc payment app? They do mention def_nfc_payment_component there but not really saying where that's supposed to be set
Thank you in advance!
You can refer to the code of /cts/tests/quickaccesswallet/ for implementation of you payment application.
Just configure the file /frameworks/base/packages/SystemUI/res/values/config.xml for systemUI if you don't need overlay.
If there is only one payment app implemented with the article, then no need to configure def_nfc_payment_component.
We have a custom ROM for a device we are making and what I want to do is make our own custom Settings app to replace the settings app that comes already built in android.
I cant really find any documentation on how to even create a system app. It does not appear you can create it in Android Studio, I tried looking on the AOSP site and didnt find anything there related to creating system apps. The few things I did find were on here where you would put android:sharedUserId="android.uid.system" in your manifest and then has to be signed with the same key as the ROM but after that I cant find anything.
The settings app I want to create would need access to the framework.jar to be able to use the hidden framework API's.
Does anyone have any information or know where I can find this information on how to go about actually creating a system app?
You may want to research how to make a Device Tree Overlay (dto). Basically it is your code, reformatting the base code, into what you want. https://source.android.com/devices/architecture/dto?hl=en
Since you said you use Gradle, you should put first build you apk and put them in you vender folder, and next important thing is to create a mk/bp file to tell the Android build system how to deal with this pre-built apk.
P.S. If you system app highly depends on Android hidden api, make sure you have the right version of framework.jar in you Android Studio project, or, as what I alway did, create apps directly in AOSP, in this case, you can just check the code structure of the original Settings app in AOSP
this tutorial may help you.
As I know i have to use android studio for this.
But i am looking for someone who can tell step by step process to change what all codes to make that app a web view app with a test URL foo.com .
What i did till now :
I open Android Studio
Choose a blank activity
Please let me know further steps that works
Please note that i am not looking to develop this on eclipse as new Android Studio is more preferable for me to work with
You need to make a setContentView(R.layout.your_layout) in your activity's onCreate method. You would then make an xml file in the layout folder containing the WebView. Those are the basics to get you started. You can look here for examples and the documentation. There are also lots of tutorials online.
I downloaded the source code of OI Notepad and did some modifications to it. And then made an .apk file out of it. But when I try to install the .apk it shows
This is a system application.
Do you still want to replace it?
When i say yes it moves forward but does not install it..
I have this post My application tries replace another my application and the answer given there the package name of both the apps cannot be same.
But is there any way in which I can manage to install modified OI Notepad without any hassles of replacing the older one. It happens in Emulator..
Thanks
If you are using eclipse you can right click the package tree and use the refactor option to quickly change the package. This, in most cases, correctly updates the Application Manifest for you. This 'should' resolve the error you are having keeping in mind that you will now have two versions of the application so it may be in your best interest to change the application name of your custom version so you can easily distinguish between the two.
My real problem is that I need to get youtube videos to play from my app but I can't seem to get it to work... all my research has brought me to this point (hence why I am asking):
As documented here in order to allow external content to open in an iFrame with phonegap you need to modify phonegap.plist.
I've been using their "Build" service which allows you to just add a .zip file and it complies everything for you (spitting out complied code in different formats)
Is there a way to edit phonegap.plist and still use the "Build" service?
Is there a way to edit phonegap.plist and still use the "Build" service?
No, although you can configure some of the items that end up in the phonegap.plist through a config.xml (see docs), the ExternalHosts is not one of the current configurable options.
Also see this related discussion on their feedback forum.