Converting apk to Android tv and firestick basic Source edits ? - Android Q&A, Help & Troubleshooting

Hello to all !
post here my question related to the title
I have an app running OK on Smartphones , Tablets , Android boxes
I'm wondering which files must to be basically edited to modify an existing app to get it runing on an Android Tv and firestick
I mean ...have to understand whats the exactly dynamic if editing manifest file reflect automatically edits to gradle ( syncing the project in Android Studio )
I had a read on Adroid official devs documents but to be honest I can figure out how to do things correctly ( edit manifest in the source before open the project in Android studio or edit it when "into " Android Studio ) do I have to manually edit even gradle file ( property and/or app ).
I know that app for TV and firestick have different behavior and doesnt require some activity like touchscreen ... they have to run with remote control , style and layout must be different so you have to add leanback to help you , banner to show in tv home ..
but my difficult is "start" to edit and where exactly to avoid load of warning in res/style and layout running the app with Tv emulator in Android Studio
Sorry for my poor explanation ...I'm an entusiast "homemade" dev

Related

Running non j2me jar files

Was trying to run a jar file(non j2me/ real time os on its own) but java code with a main....
As android is a java machine, how can i run a received jar file build on windows??
All tips are welcome
Enthusiastic Gio User
Very glad with the work done
But sometimes a pusher for results( nothing bad intended)
It's not that simple.
Of course, android is Java based, but doesn't include all standard java libraries (i.e. graphical libs awt and swing).
If you are sure, that your .jar file is 100% compatible then create android project, include that .jar as a library and use it there.

Eclipse setup for a single AOSP-CM java application

Preamble: I am a Java Android developer. I know the standard Android development flow.
I want to start developing for AOSP-CM. I follow the guide for import the whole Java source code in Eclipse, using the .classpath file provided with the source code. So I have a Java Project with all the source code, and I can browse and edit everything.
The next step is try to setup a single Android Project, for example the Phone Application, in order to use the ADT plugin feature like GUI graphical editor.
I want to edit Phone sources, build within Eclipse and above all use Eclipse Debugger.
It is possible? Where I can find a guide or tutorial ?
Sorry but I don't believe that nobody has addressed this problem.
How a CyanongenMod developer develop and build a single application? (please...don't reply with "vim" , "nano" or similar....not in the 21th century )

[Q] Editing Android Kernel - HCE/NFC

I'm currently in the process of creating a custom version of AOSP that will edit the functionality of the Host-Card Emulation feature of Android, allowing me to manually set the AID produced when my device goes into emulation mode.
I've downloaded the Android source, and have located the files I think governs HCE functionality.
From the NFC System Service, I've located the following files:
"CardEmulationManager.java" and "HostEmulationManager.java" located in "/aosp/packages/apps/Nfc/src/com/android/nfc/cardemulation/"
And from the Android core framework, for the NFC API I have found:
"CardEmulation.java" located at "/frameworks/base/core/java/android/nfc/cardemulation/CardEmulation.java"
From here, i'm unsure how to get started in editing the code. I'm unsure of the interactions between the files, and how they are called at run (I.e. which functions in the file I should be looking at, how would I go about adding my own code/modifying existing code in the file)
Is there any documentation online about how these files work/are ran? Or how would I go about finding out on my own (Through debugger tools etc.)
I'm currently using Eclipse for Ubuntu, and will be developing for a Nexus 7

Proper way to use and dig into the android library code in eclipse

1- Why I can't open xml files from android library in eclipse? When I double click on it, I got this error:
Android XML Editor cannot process this input.("i.stack.imgur.com/aiaa9.png")
2- How can I search in android library codes?
3- Where is setting activity in this library? To be more specific I want Date & Time activity ("i.stack.imgur.com/lY7SJ.png")

[DEV] How to modify a .apk file to make it show up on an Android TV launcher

I have a .apk file that I want to modify to make it display on the default home screen/launcher of an Android TV. And I know how to use APK Editor Studio to modify the assets of the apks.
I have read this documentation but am unsure how to do it to a pre-packed apk.
Can somebody please teach me?

Categories

Resources