I am developing several song book apps with basically the same functionality. I have developed "Evening Light Songs" and "Wahrheits Lieder". The main things that change between the two apps are the images and the database.
Right now I have them in separate projects. When I find a bug or make an update, I have to go to each project and change my code. Is there a way to bundle the code that is the same in both apps into one place so I only have to change it once? Then I could have other classes specific to each app that I would change separately.
Thanks!
I have never made an app before but I’m currently relearning Java with hopes to make an Android app soon. However a key part of my app would rely on borrowing data from another app, namely the Digital Wellbeing app by Google. I essentially want to build an app that will take user’s phone usage data and do cool stuff with it. Is this possible?
I am working on a Unity Project that will be exported to ios and android.
I have a native objectiveC and Android Java code that consists of 2 views (basically a login flow). Both have same logic. What I need to do is the following:
When the app runs, it will run the Native views and code (objectiveC or Java depending on the platform).
Then the user will go through the flow, and once it is completed, I will need to report back to the unity code, and open a scene from it.
Any indications on how can that be achieved, without having to add them after generation of each code?
Because otherwise I would have to put my native code in, every time I generate a new project.
I did some research and came across the "extern" capability, but can it be used to open views from storyboards or android xml files? and trigger logics?
Thank you
I would like to know how can I make my app available at the share screen to receive shared information/content:
How may I program this (in Java, being NetBeans or Oracle IDE) ((IF its possible in App Inventor 2 would be pretty much better!)
Probably as I think i'll be needing a function like:
OnReceiveSharedContent()
and another statement to make it visible in the screen.
Is it at all possible to create an App Widget programmatically from within an Android app itself? I'm rather lost on how to do this and Googling so far has led me to believe that it is not possible (that an App Widget and an App itself has to be separate applications).
So, would it be possible to dynamically create an App Widget from within an Android App? If not possible, how would you approach it? Thanks all!
Is it at all possible to create an App Widget programmatically from within an Android app itself?
That would depend completely upon what you mean by this.
I'm rather lost on how to do this and Googling so far has led me to believe that it is not possible (that an App Widget and an App itself has to be separate applications).
No, an app widget most certainly can go in the same Android project as the rest of the application. In fact, usually it does.
So, would it be possible to dynamically create an App Widget from within an Android App?
Again, you seem to think that the world knows what you mean by "dynamically", forcing us to guess.
An app widget, from the standpoint of code, consists of an AppWidgetProvider, an entry in the manifest pointing to that AppWidgetProvider, a metadata XML file, and whatever other resources you need (layouts, drawables, etc). All of that has to be written by a programmer and included in the app at compile time -- you cannot "dynamically" create those things.
An instance of an app widget is put on the home screen by the user, not by the programmer. Hence, a programmer cannot "dynamically" create instances of an app widget.
What the programmer can do "dynamically" is decide what is displayed inside of the app widget (e.g., current headlines for a news ticker, current song being played for a music player).