0

In J2ME midlet development, you can pass runtime parameters to the midlet through a JAD file. Is there anything like this with Android? What I want is to pass basic custom information to the APK Activity when a user downloads it.

bubbo
  • 1

1 Answers1

0

No, there are no accompanying files like that. What you can do is provide the information needed in Resources. There are String, Integer, boolean, and array resource data types available to you. In addition you can add Extras to intents you send to your app or other apps.

Dan S
  • 9,139
  • 3
  • 37
  • 48
  • Thanks. So when you deploy an APK - that's it - no customizing it? – bubbo Aug 03 '11 at 17:28
  • Pretty much yes, there is no "external" customization such as provided by the .jad file but there are numerous options for "internal" customization. What ever you want to do the app will have to figure out on its own or with user input. – Dan S Aug 03 '11 at 17:33
  • Cheers Dan. There's probably a way through editing the binary but it's too messy I reckon. – bubbo Aug 03 '11 at 19:47
  • Almost forgot but there is also the assets directory where you can put any file in there. Much easier to include a flat file DB or binary data or anything you'd rather open as a file rather than a Resource. – Dan S Aug 03 '11 at 20:06