how to make a simple launcher in android? [duplicate] - java

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to make a launcher
I want to make a launcher something similar to go launcher which changes all the icons and stuff... Currently I wanna know where should I start from? I need to make a very simple launcher so any sample code will be appreciated. Thanks!
Any helpful codes I should know or any tips?

There is a Launcher sample app included in the SDK samples that has some simple launcher code that you could base your app on. I doubt there's any simpler code available than that one.

Related

get running desktop apps with java? [duplicate]

This question already has answers here:
Windows running application list using Java
(4 answers)
Is there a Java library to access the native Windows API?
(6 answers)
Closed 4 years ago.
I´m trying to get the running programs with graphic interfaz that I have running and iterate over them to give them focus. Is there a way to do this with java (or any other language)?
Searching the web I only find things for Android. Any help is appreciated
Example: I have my calculator open, and my app made with javafx. My app shows me a list with all the programs running in my computer, in this example, it shows me that the calculator is open. There is a button next to each item of the list, and if I click on them, I can give the calculator focus and start using it.
You could use ps on the Linux and tasklist on the Windows. Java allows you the command line access.

Add different/own icon for android app [duplicate]

This question already has answers here:
Set icon for Android application
(17 answers)
Closed 6 years ago.
I'm beginner at Android-programming/developing and I would like to change my own logo at my application.
I've found a folder, called 'mipmap'. I think, it could be this location where I can change it. Also I tried it without success.
Could somebody help me in this project?
Thanks a lot
Copy your image in the folder "mipmap"
Go to "manifests"
Here find the line :
android:icon="#mipmap/ic_launcher"
Change ic_launcher to your image name
android:icon="#mipmap/Your_icon_name"

How can we change android application icon dynamically in Android [duplicate]

This question already has answers here:
How to change an application icon programmatically in Android?
(11 answers)
Closed 2 years ago.
I know that same kind of question has been asked for activity icon, but my question is little bit different.
I just wanted to know whether we can set the application icon programmatically, I am not asking to change, I am just asking for setting it. I hope I am clear.
<application android:icon="drawable resource"> </application>
In the above example I am setting it in manifest file, but instead of manifest can I set it through java code.
As you can read here http://developer.android.com/guide/topics/manifest/manifest-intro.html the default's app icon is set in the manifest. As manifest is located in the app's /root it cannot be modified, so there's no way to do it.
You may consider that if you could change it while the app is running, changes wouldn't be saved in the manifest.

Java and video player [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Any simple (and up to date) Java frameworks for embedding movies within a Swing Application?
I need to implement such situation, in full screen on desktop, some player playing the video, and during some periods of time my java program has to show some text in some part of screen appearing with animation and after that again hides. But during all the time the video has to be continue playing in full screen.
Which suggestion could you give me ?
Thanks in advance.
I didn't try it myself, but I think you may find this useful:
http://lobobrowser.wordpress.com/2008/12/29/javafx-video-in-a-swing-application-technically-doable/
If you don't know javaFX, you can try out JMF, it is relatively easy and you don't need to learn a new ttechnology. Here is a tutorial on playing video using JMF: http://www.deitel.com/articles/java_tutorials/20060422/PlayingVideowithJMF/ . But as far as I know, there are some problems in JMF and oracle has no plan to improve it in future.

Simple OCR app using android camera [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
android OCR?
I want yo build an app that have an OCR scanner using camera and detect a text from a paper and convert in into regular text. a simple program. How i can do this? What is the simplest way?
There was a time when this seemed like a bad idea, but doesnt seem like a bad idea.
I guess u can use Tesseract OCR Tool, an open source alternative by Google. How to integrate that in Android is simple via Tesseract Android Tools
A good guide on how to do it is also well documented at http://rmtheis.wordpress.com/2011/08/06/using-tesseract-tools-for-android-to-create-a-basic-ocr-app/
Let us also know how this goes for you.

Categories