My application name has 15 characters. But in apps list of android device does not shows the full name. So I want to set marquee for my lable in android manifest. But I dont know how even I didn't know wheather it is possible or not.
I was googling it near 4 hours but the solution is only for title of each activity and not for application name.
sample image for reference:
This is sample image taken from google. I could not take screenshot of my device.
Note the red marked name. I want this name to be scroll. If it is possible means please help me friends.
Thanks in advance.
You are not able to make the name scroll on the user's device, as this is (probably) a launcher feature. Unless the user's launcher is able to scroll long app names, it's not going to scroll. This is not something you can control through your app.
you cannot do that pro grammatically. Thats an default functionality of the every single OS manufactures . Its depend upon them only. Some manufactures will set marque and some of then wont set.
Marquee is not supported on all android mobile devices. Anyways check out this link you may be lucky ;)
Related
this might sound like a simple question, but I haven't been able to find a solution to this:
I created an app that I now want to publish, but while debugging, this app had an incorrect name.
Now, ofcourse I can change the namespace and / or label in my MainActivity, so that the app on my phone gets the right name assigned to - but if you check this app under "application" it still has its original name.
Is there anyway how I can change all of my Apps name in like "one click"? I did find a few instances, in which the "old" name still appeared, but changing one led to this app no longer debugging.
I'm using Visual Studio :)
THANKS!
You should change it in the AndroidManifest.xml
I'm trying to put the launcher icon of my app in the first position of applications menu.
Apparently Android uses the name to do an ascendent order but there are apps that break this rule.
Take a look at the print. The NQ Mobile Security is the first app in my screen but it starts with "N"
http://apps.movile.com.s3.amazonaws.com/test/Screenshot_2013-09-13-17-56-19.png
How can i do the same thing ?
Thanks a lot !!!
Put a space or two in the begining of your application name.
In that case, if Alphabetic order is selected, yours will be first.
So I am using the Home sample to build an application that creates a second home screen for the user. The idea is to be able to have only one user account yet restrict certain access to chosen applications. I have managed to ensure that all of the applications are invisible in the XML yet I am struggling with how to change this to make certain apps visible.
Is it possible to write a whitelist of accepted apps for instance the preinstalled apps or child friendly apps for children who game using the android device and then put in a Java method to access this white list? This is the only way I can think to make it work.
If anyone knows the correct way can you please help.
Thanks.
Ok so I discovered how to do this.
In the home sample they provide a for loop in the Home.java file that covers all apps and displays them. It take a simple if statement to restrict the apps that can be viewed -
// for loop is here
if (info.activityInfo.applicationInfo.packageName.contains("com.android"))
//then the rest of the home sample is here.
Still very basic but provides me with a good enough UI so that kids cannot see apps I don't want them to.
In my app I want to display different icons for the application. Changes should be according to the scenario. For example, it will mark the number of days remaining for the task completion. On the android menu this icon will display the number of days remaining. If anyone has any idea for this, I would appreciate it. Thanks.
There are actually a number of ways to achieve this. If you notice Google's clock app these days, it does show the current time.
You can refer to this tutorial: https://blog.jakelee.co.uk/programmatically-changing-app-icon/
Or find even more ways here: How to change an application icon programmatically in Android?
As far as i know, you cant. Also refer to this answer:
Android Application Icon Change
I am afraid you can't change your app's icon programmatically. How to change an application icon programmatically in Android?
This can be done easily. Within your activity code, just write:
getActionBar().setIcon(R.drawable.new_icon);
My android app has a two word app name, and the 2nd word doesn't fit on the first line below the app icon. The OS doesn't automatically carry the 2nd word over to the 2nd line so it just gets cut off. I was able to use a "\n" as part of the app name string instead of a space, and that forced the 2nd word to display on the 2nd line. However, when I try to upload my app on the market I get an error (about the icon being improperly formatted, which really means that I have a newline in my app name, google needs to get their error messages straight but that's a different topic).
So, I've seen other apps on the market that don't have a problem showing the 2nd word in the app name on a second line. How do I do the same and get past the market upload?
Thanks.
From what I understand, this is a feature, not a bug. Only custom roms seem to allow more than one line for the names.
Even my application had two lines application name. Earlier the name was shown as only one line application name. I just uninstalled the application from device and re-installed it and my problem is solved.
May this helps someone.
\r\n worked for me, add it where you want to line break
I'd look at some projects that do not have the problem, see how they define things in their manifest and string resources, and try to match them. Barcode Scanner (ZXing) is one such app. This sample app from one of my books also successfully has its two-word name split over two lines.