it is hard to search for what i want because i have no idea what it is called so i do not know how exactly to ask this.
i want to make the user to choose numbers just like this in my application.
for example i put 3 of those and i set a certain number of values for each (for example from 0 to 22 in the first, from 5 to 40 in the second and 0 to 60 in third). and later the user chooses his values and when submitting the app reacts considering his choices.
thanks
That widget that you're looking for is called a 'Number Picker' and you can find more info about it here.
Android has a native implementation for a widget like this, it's called NumberPicker.
However, it was added alongside API 11 (3.0 or Honeycomb). So it might give you trouble if you want to support older Android versions. As an aternative, this library will help you if you're planning to support older APIs, it has been tested and confirmed working down to API 7 (2.1 or Eclair).
As a bonus, you could also give BetterPicker library a shot - it supports many kind of beautiful and customizable pickers.
Related
This question already has answers here:
Is there any way to dynamically change an app icon like Calendar app does?
(7 answers)
Closed 4 years ago.
In Android, I need to make an App icon as like a watch. That icon shows Seconds, Minute and hour lines as per system current time. All lines are moved as per the current time. Means runnable icon like a real watch. Like as per the given image.
Unfortunately, it's not possible for third party apps, as the app you are referring to is a native Samsung app in which Samsung will have the ability to do whatever it wants regarding it, and will have the ability to control the home screen as it wants, but for third party apps and as a general case you can only provide one app icon, and as mentioned here in this fulfill answer it can happen only in a certain way and under certain conditions in only small amount of cases:
I seem to recall that somebody has a GitHub project that tries to wrap
the proprietary APIs of various home screens. IIRC, some supported
capabilities included either replacing the app icon or adding a badge
(e.g., unread message count). However:
Only a small percentage of devices will support those proprietary APIs
Undocumented and unsupported APIs, discovered through reverse-engineering apps, are subject to change and may break in
unexpected ways
Using app icon you didn't achieve what you want.for this functionality, you need to create Android widget.how to create a widget and how to add into widget list for that you need to do RnD on it.
I want to develop an android application which has to run two other applications on the device with one app on upper half of the screen and the other in lower half of the screen. Any clues/suggestions to start developing this ? Thanks in advance !
it's not possible multi-pane-layout two other apps.
if u want your app with multiple activities follow this tutorials for your references:
it's called named as multi-pane-layouts and offical introduction about multi-pane-layouts below link:
http://developer.android.com/design/patterns/multi-pane-layouts.html
and it's shows how to implement multi-pane-layouts on your project below link from android official side:
http://developer.android.com/guide/practices/tablets-and-handsets.html
and you can download example project from github below link:
https://github.com/faisalgeek/MultiPaneAndroidApp
This is not possible, except via custom device firmware or ROM mods. In standard Android, only one app can be used at a time.
However:
You are welcome to support multi-window apps on some Samsung devices, as they have extended their firmware to support this concept
You are welcome to have an activity's theme set up to not fill the screen, though anything else around the activity will at most be visible and will not respond to touch events
If all of these applications are yours, combine them into one app, and then you can display elements of that app alongside other elements of that app however you wish.
If you are looking for a feature for your app which supports multi-window then Latest Android version N has a new cool feature called Multi-window support, you can let your app support multi-window which can be resized and scaled which is exactly your requirement. you can find the reference link here
What is the best way to show help (or user guidelines) to the user when application is launched for the first time. Some applications show overlay text and arrows to inform about the various features available in the application. What is the best way to implement it ? Do I need separate activity or do I modify my homescreen xml or something else ?
Please suggest some good approch as well as specific query to search on google (I couldn't find any specific result on Google)
You can try this lib and have a look at how it's done: https://github.com/Espiandev/ShowcaseView
The ShowcaseView library is designed to highlight and showcase
specific parts of apps to the user with a distinctive and attractive
overlay. This library is great for pointing out points of interest for
users, gestures, or obscure but useful items.
The library is based on the "Cling" view found in the Launcher on Ice-Cream Sandwich and Jelly Bean, but extended to be easier to use.
I have been doing some research on the upgrading my app (android:maxSdkVersion = “10”) to Honeycomb and would like some advice.
First, one of the activities in my application is a List Activity. Once the user selects an item from the listview, a new activity/layout starts that gives information about the item selected from the listview. The user must then back out of the info screen to get back to the listview. (Simple)
If I move this application to Honeycomb, then I can use Fragments. Using Fragments, I can use both of the above mentioned activities on the screen at once.
Now the dilemma. If I use Fragments to get the functionality I would like, but then I will have to use the Android Compatibility library in order for my FROYO users to use the application. And by using the Android Compatibility library I will bind my application to a lower level of honeycomb OS.
So, if I want to continue upgrading my application past ICE CREAM, then the best thing to do might be to create one application that remains maxSdkVersion = “10” and a second application using minSdkVersion=”11”.
So, for a paid app, users will have to buy two versions of the application?
What am I missing here?
Thanks in advance!
So, for a paid app, users will have to buy two versions of the
application?
If you are using Google Market then, no, you can upload multiple apks and target different configurations using some constraints.
You can read this post from the official android dev blog
Is there open code available for implementing a time selector like the one used in HTC Sense?
It's a wheel and the user can push it up or down to select higher or lower number.
If there isn't code available, how do I go about implementing it?
At best I would like to have a 59 beneath the 00 to be more like a real wheel.
It's called a NumericWheel in these code.google pages:
http://code.google.com/p/android-wheel/source/browse/trunk/wheel/src/kankan/wheel/widget/WheelView.java?r=4
http://code.google.com/p/android-wheel/
The source code in the first link has the URL to an Android dev blog which has a little more info. This should get you on your way.