top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How would I use my own platform code for creating Apps?

+2 votes
408 views

I am able to flash my own build on cell phone successfully.
How would I use my own platform code for creating Apps such that App would invoke the respective methods in platform code which i have modified? After 'make' ing the code, does it generate any jar files for do so?

posted Sep 23, 2013 by Deepak Dasgupta

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+1 vote

To access additional code you put in android platform, You will need to create your own Android SDk from your source code, than you will need to import that SDK in eclipse, And after that you can use that code in your application.
Building SDK is very easy, see http://tools.android.com/build, and after building sdk just import that sdk in eclipse and you are good to go!!

answer Sep 23, 2013 by Majula Joshi
+1 vote

There are applications built as part of the platform, with direct access (circumventing the SDK) to framework. Then there are applications that are built on top of published SDK.

In this case, your app is not meant for public distribution as a separate apk, given that you have a modified platform. If so, just build your app as part of the platform, and use your new interfaces in your app. You can use http://androidxref.com/4.3_r2.1/ to search the existing source tree, to see how the apps use the non-SDK interfaces as a reference.

If you are planning on publishing your app in Google Play, you should of course use only the public APIs, and you would not be modifying the platform to begin with.

answer Sep 24, 2013 by Mandeep Sehgal
Similar Questions
+1 vote

I am back-porting camera2 legacy implementation to older platforms and want to ship android.util.Size inside the apk. I assume newer systems will simplify ignore these but am not sure such behavior is part of the public API.

+2 votes

What's the best app to see which apps are using either my mobile or WiFi data on a minute to minute basis with an export to Excel so I can analyze? Looks like the standard Android app rolls up data usage across the month, doesn't break down hourly.

+3 votes

I need to change the Wifi channel programmatically (Of course, I will enable the Wifi to function as Hotsopt first).
Is there any API/Driver in the source code that I can use?

...