How do I make my app look like a standard Android app? - java

I notice that most android apps have some sort of standard in that they all look similar. Most of them have some sort of list of Text that are click-able. It's somewhat hard to explain but they look really nice and I was wondering is there some sort of tool or api that allows me to change the look of an app to make it similar? Or do I have to specifically specify the different fonts and different graphics? Like this:
http://www.androidandme.com/wp-content/uploads/2009/03/tmobapp1.png
I am new to Android programming so sorry if this sounds like a dumb question. Thank you.

You can start by reading up on the UI design guidelines provided by google:
http://developer.android.com/guide/practices/ui_guidelines/index.html

They are simply using the same standard Android UI elements provided to them via the framework. These views are readily available for you to use in Android. You can see some examples here.
In the case of your image example, they are using a TabWidget and a ListView.

Related

How to extract MFCC features in PocketSphinx

I am using the PocketSphinx Demo project for my hot word detection Android app and now I'd like to extract the MFCC features. Is it possible to do so with PocketSphinx?
Also, I've read many posts about using Sphinx 4 for Android, some say it can be done, some say it can't. I personaly didn't manage to make it work.
Thank you for your help,
now I'd like to extract the MFCC features. Is it possible to do so with PocketSphinx?
No, this feature is not supported
Also, I've read many posts about using Sphinx 4 for Android, some say it can be done, some say it can't. I personaly didn't manage to make it work. Thank you for your help,
Sphinx4 on Android is not supported either

Using Sphinx4 on Android

I am really new to the java & android apps development. Currently I'm doing a prototype application about the voice recognition. Which use the sphinx4 speech recognition. I'm really no idea that, is that Sphinx4 can be used on the android SDK?
Using Sphinx4.0 to build a speech recog. Android application (this shows that, it can't)
https://sourceforge.net/p/cmusphinx/discussion/sphinx4/thread/ce6ee093/ (But this said it can.)
if yes, i really no idea how to make use of the sphinx4, anyone can kindly provide the guide for me to complete the prototype?
Thanks for your kindly help.
It is possible to run Sphinx4 on android, however, you need to remove sphinx4 parts that use desktop-specific java api like java sound API. You still can have the core in place and demo should work as expected.
You need to reimplement Microphone class to use android API for sound input.
For more details see the discussion about that:
https://sourceforge.net/p/cmusphinx/mailman/message/31317160/
So it is some work and it requires coding skills. If you don't have that, use pocketsphinx instead like Opiatefuchs suggests you. It's well documented approach which requires minimum efforts.
I also tried to do some App with Pocketsphinx, not Sphinx4. I think this is really not designed for android, but maybe You could get it work. But for which reason? PocketSphinx is a good designed API for including in Android. I had mad some tutorial on my website for how to get the Pocketsphinx work, I advise to stop thinking about Sphinx4 because it would be a heavy coding thing to get it work. PocketSpinx has all You need...look at my Tutorial, this is a better way:
https://sites.google.com/site/opiatefuchs/home/pocketsphinxandroiddemo
Until now I stopped working on it, but when I got time, I will start to include Pocketsphix into an apk. But this tut only shows how to get the example demo work and set up Your runtime environment to work with Pocketsphinx.

Android - Questions about System-UI

So I was looking at the settings in CM10.1(4.2.2) and I saw an option to change the color of the softkeys using a color picker.
Now i'm working on an app and though doing something like that would be cool. But I don't understand how it does it. How does it change the color using code, and why doesn't it require a reboot?
Also, could I use a similar process to change the Colorado of the wi-fi inside my app as well? How would one do this. I am interested in how you can do this, as it would make a great addition to my app.
I saw I wasn't the only one wondering this, and I think this is a good question. If someone could, can you maybe explain what could be going on, and then explain how I could do it, and maybe give me a link to some code to take a look at?
Anything would help. I'm curious, but baffled. I think an answer could help not just me, but many others. Thanks!
Short answer: You can't using the public SDK.
Long answer: This is not a feature of stock AOSP. Cyanogenmod is a heavily modified version of Android, and features like this are implemented at a ROM level, not an app level. If you want to include this feature, you'll have to customize Android at a source level and build a system image for each and every device you want it on.
(Source - Google Employee)

how to (organize) the interaction between the Android UI (HTML, CSS) and native code (Java)?

Good afternoon.
I hasten to add that I am new to developing for Android. I am writing a geolocation service (application).
Standard elements of the user who provides Google does not suit me. In many of the Internet once faced with information which says that you can write a user interface for Android using CSS and html.
After reading a lot of information on this topic, I realized that Most developers tend to use frameworks (PhoneGap. ..). But this approach does not suit me, for two reasons:
javascript - it is used everywhere, and I do not know
This absence of adequate (understandable) documentation or guides for frameworks.
It is for these reasons that I'm wondering whether it is possible to write the user interface using html and CSS, and all the features in Java without using frameworks.
As communication between fallback interface and native code, even with the assistance of javascript, but without the use of frameworks.
P.S. I am not good in English - I hope you have understood the point of my question. I hope for your help.
Normally an Android app defines UI in Android-specific XML and the code is in Java or, if really necessary, C/C++.
Probably you could use a WebView in your Android application which will display an html page from your assets directory.
Such html page can have javascript in it which will invoke some hooks in your code. It's described in the book The Busy Coder's Guide to Advanced Android Development Chapter 1, I believe
yes you can.
your html+css will all be in a webview and there're elements like the webview client that can communicate with what's inside the webview.
But I would like to leave you with a warning:
Every single web based app IS slower and with a poorer interface than proper native apps. Also, without the use of a framework you still will have to know a good portion of the native stuff.

is there any inbuilt function for image recognition

i want to use a function for image recognition
i dont want to make an algorithm.
please suggest me a function where i could compare two images and tell whether these images belong to the same object.
please help me!.
Arbitrary image recognition is something that computers can't yet do (even for supercomputers). However, Google Goggles comes close, being able to recognize a wide range of objects. Read its limitations, and see if it suits your purpose.
Yes. There are definitely ways to do this but they all depend on what you are trying to do. If you are more specific about what you want to compare then it will be easier to give a more thorough answer.
There are some excellent libraries out there but it will require some effort on your part to learn and understand how to use them and how to use them on the iPhone.
The most famous algorithms so assist in finding images inside other images are called SIFT and SURF. Unfortunately both are patented and cannot be used commercially in an application.
Consider using OpenCV for most of your image operations.
Or you could use OpenFrameworks (google has tagged it as a phishing site for some reason, im sure theyll fix that soon)
You might also consider VXL which has started to become more popular.
Good luck!

Categories

Resources