Android :: How Can I Capture - When Time Changes In A TimePicker
Aug 12, 2010
Continuing with the question referred in the following link: [How can I capture when time changes in a TimePicker if the keyboard is being used?][1]
[1]: http://stackoverflow.com/questions/3380761/how-can-i-capture-when-time-changes-in-a-timepicker-if-the-keyboard-is-being-used/"How can I capture when time changes in a TimePicker if the keyboard is being used?"
I could solve the problem but it only works when you use the actual keyboard. If you use the soft keyboard I can't get it to work.
I am programming in 1.6 version of the framework.
PS: The fact that I've search everywhere for the answer and have not been able to find it tells me that this must be so very simple or very much complicated.
View 3 Replies
Aug 1, 2010
I have a widget which is a TimePicker that retrieves the time saved in a field in a database.
Thing is that when the user changes the time value in the widget, this is not being saved in the database.
So I came across the setOnTimeChangedListener method that works like a charm, if you are only using the plus and minus signs in the widget. It does not capture the change if you are using the keyword.
Here is my code:
CODE:................
I've also tried unsuccessfully:
CODE:....................
View 2 Replies
View Related
Jul 1, 2010
I need to make a video as a DEMO for one application I have developed. I know that there are some experimental applications that use DDMS and achieve a framerate of 5-6 fps. This framerate is completely insufficient for my purposes since the application has smooth animations that i would like to show. Is there anyone that has found a way to do a real time screen capture on android? Should I settle for a capture of the emulator or a real video done with a real camera?
View 2 Replies
View Related
Sep 12, 2010
I am new here and I came from Symbian and Linux, for all the phones I've used there are at least one application for screen capture and one for time clock synchronization, both are very useful and basic task we will do with a smartphone, but on the Android I found none that can work without a 'rooted' phone. I don't know how other phones do it, but I know the reason for a 'rooted' phone is to be able to access the framebuffer for screen capture for example and this may be risky, I suppose it is simply a sub-routine call to the BIOS will do without the need for a complete 'open access' system. I know there is a way to capture the screen without a rooted phone, but the phone must be connected to a PC and I feel this is dumb and inconvenient, I may be completely wrong about Android, please fill me in.
View 5 Replies
View Related
Jul 26, 2010
I'm working on the android automatic test, and try to test the alarmclock app in the android. I want to get the TimePicker after the TimePickerDialog pop up, then we can use it to invoke the methods 'setCurrentHour(...)' and 'setCurrentMinute()' to set the alarm time programmatically instead of sending the key event so many times.
View 1 Replies
View Related
Aug 12, 2009
Are the widgets used in Datepicker standarized? Meaning, can I employ them in my layout, or do I have to build them on my own? Are there standard versions of them or even, can they be "created" through settings or would I have to build them from scratch using EditText and buttons?
View 6 Replies
View Related
Apr 5, 2010
Can I control the Android TimePicker view to just show the minutes to 15 minutes interval? Meaning if it's 12:28 now, show 12:30 and clicking the + and - button will increment and decrement by 15?
View 4 Replies
View Related
Nov 10, 2010
i have to use some timepickers on my layout, but i dont need the PM buton, i just want to have 24 hours sistem on the timepickers this is possible? it is bassically to call "setIs24HourView(true)" but not from the java code, from the layout
View 1 Replies
View Related
Nov 15, 2010
Is there any way to make smaller DatePicker and TimePicker (but to be visible all parts ) in Android ? I tried to set layout_width="130dp" but then DatePicker isn't visible, just left upper corner.
View 1 Replies
View Related
Aug 6, 2010
I would like to use a custom skin for my Datepickers and Timepickers. Changing the background in XML doesn't do the trick (it changes the background to the set, not each of its buttons). The API is painfully short and has nothing about appearance ( http://developer.android.com/reference/android/widget/DatePicker.html ). Is it possible to use a custom skin for the buttons of Datepickers and Timepickers?
View 1 Replies
View Related
Jan 27, 2010
Currently the TimePicker view shows only hours and minutes by default and I am retrieving the values using getCurrentHour() and getCurrentMinute(). Is there a solution to add seconds to the TimePicker view?
View 1 Replies
View Related
Sep 8, 2009
Is it just me or Android theme-ing system does not allow to set a theme for DatePicker and TimePicker? Searching "themes.xml" and "styles.xml" in Android source code (v1.5), I couldn't find anything related to these two components!
View 6 Replies
View Related
Mar 6, 2010
I'm developing and Android app using the 1.6 sdk. I'm using a TimePicker and I don't want the soft keyboard to come up when you click on the digits in the TimePicker. I only want the TimePicker to be changed using the plus and minus buttons. I've tried using android:focusable="false" and android:focusableInTouchMode="false" hoping those would do it, but they didn't seem to do anything. Is there a way to do this?
View 2 Replies
View Related
Apr 5, 2010
I'm trying to modified the way TimePicker works as asked in my question here http://stackoverflow.com/questions/2580216/android-timepicker-minutes-to-15
To be able to do that I need to know if the + and - button was clicked and to disable the input field.
So can I target the elements in a TimePicker? (i.e the + and - button and the input field)?
Also is there anyway to determine if the + or the - button was clicked?
View 1 Replies
View Related
Apr 22, 2010
On Thu, Apr 22, 2010 at 3:53 PM, powder <jonas.hey...@gmail.com> wrote: > Anyone have an idea how to code a WeekPicker much like existing DatePicker > and TimePicker?
View 2 Replies
View Related
Feb 14, 2010
I have HTC Hero, and i see that TimePickerDialog and DatePickerDialog were changed by HTC (they look different than those in the emulator). My question is how can i change such system level dialogs?
View 1 Replies
View Related
Jan 20, 2013
Ok, so I have a XML layout with a TimePicker, few buttons and what not and a ScrollView because it's needed.
When I run the app the app doesn't scroll. On top of that the TimePicker doesn't scroll either. Well it does but correctly. It takes 6/7 swipes to move from 6 to 7. When I remove the ScrollView the TimePicker works fine and when I remove the TimePicker the layout can scroll.
Is there a way I can get them both to work in the XML?
My code is pretty basic so I don't think I need to post it but let me know if you want to see it.
I've tried fillViewPort and using nested layouts but nothing works. This effectively makes my app useless.
View 1 Replies
View Related
May 29, 2009
My calls to getFromLocationName() always fail the "first" time I start my app. I catch the IOException which has reason:
Unable to parse response from server
Then I make a second call and it succeeds. Once things are "awake" all future calls to getFromLocationName() succeed, it's just that first one, and there is a ton of latency.
I haven't run this on a device yet, just in the emulator. This seems like a network problem, but it is so reproducible I'm thinking I'm not initializing something properly. I'm using Android SDK 1.1.
View 2 Replies
View Related
Aug 29, 2010
How can I make progress bar to measure time (pause/playing/total time) of different video which is streaming from website?
View 2 Replies
View Related
Nov 1, 2010
I am getting a date/time string from web in the format of "yyyy/mm/dd'T'HH:MM:SS'Z'" and it is in UTC. Now i have to identify the current time zone of device and then convert this time to my local time. (FYI, Currently, UTC time is 10:25 AM, in india current time is 3:55 PM)
View 1 Replies
View Related
Aug 25, 2009
at the moment I am thinking about a new app and need some information to decide whether to develop on Android or an alternative OS. I am particularly interested in "time to first screen", "boot-up time", "time to first Audio" and "app-start" (can be any from the android market or even one of the pre-installed ones) time? Does anyone know a source or perhaps measured those numbers?
View 9 Replies
View Related
Jul 12, 2009
I want to develop a game, so I need to know elapsed time at lots places in my game. For example, to measuring FPS. I see there is some example use "System.currentTimeMillis" to measure elapsed time. But I see the warning on document: http://developer.android.com/intl/zh-TW/reference/java/lang/System.ht... "This method shouldn't be used for measuring timeouts or other elapsed time measurements, as changing the system time can affect the results." So, if this method should not be used for measuring elapsed time, then what will be suitable?
View 2 Replies
View Related
Nov 11, 2010
So I wanted some DigitalClock help. I have set up a digitalclock, and here's what I want to do. Once the clock hit's a certain time, perform an action. How can I control the actions on the digital time to check for a certain time?
View 2 Replies
View Related
May 17, 2010
Is there any android widget that enable to pick the date and the time at the same time ? I already use the basic date picker and date picker:
http://developer.android.com/guide/tutorials/views/hello-timepicker.html
http://developer.android.com/guide/tutorials/views/hello-datepicker.html
but they are not that sexy and user friendly (I found). Do you know if a widget including both date and time exists? Thanks a lot,WW.
View 1 Replies
View Related
Oct 1, 2010
I'm searching for time and billing apps. I've tried Time Catcher, myTimeSheet, and Time Recording. None of these allows start and stop of clock for multiple entries throughout the day. Any tips for better time sheet apps?
View 1 Replies
View Related
Aug 17, 2010
I am trying to get a local time from a server UTC time. I get the UTC time form the server -- and i want to make it right for each individual Android phone whether it be in California or China. This is the code I am using now -- however it snot working.The time I get from the server is "2010-08-17 19:41:13.0" And the code I use to get the difference(in seconds) is the following: public static long getSecondsDifference(Timestamp timeStamp) { final Calendar calendar = Calendar. get Instance (Locale.getDefault()); int refrenceOffset = TimeZone. get Default (). getOffset(timeStamp.getTime()); final long referenceSeconds = (timeStamp. get Time() + refrenceOffset) / 1000; final long currentTimeSeconds = (calendar. getTimeIn Millis()) / 1000; final long differenceMinutes = (currentTimeSeconds - referenceSeconds) / 60; return differenceMinutes; The timestamp is from the java.sql.timestamp package.Right now the time where I am is 11:50AM -- and the method returns that the given server time is -53 minutes ago( so obviously doing something wrong
View 1 Replies
View Related
Jan 14, 2010
Is there a way to get the time or date stamp of the last time the GPS was updated?
View 6 Replies
View Related
Sep 7, 2009
I want to use screenshot kind of application in my own application. So that I can take picture in any format and save it. There is one function getDrawingCache() which does that, but it only save picture what is available on the screen. It does not capture beyond screen if the picture is big.
View 2 Replies
View Related
May 21, 2010
i had an interview this morning for a job, and have an opportunity to earna great deal of brownie points with the business owners.They were thinking of purchasing some sort of electronic signature capture device (like fedex or UPS has when you sign for a package) for invoices.. BUT.I also mentioned my Droid Eris and how it can do so much. Turns out, both of the Owners have DROIDs lol.Anyways.. I want to know if anyone has seen some sort of application that can capture signatures, and either save an image to be emailed, or email directly from the app.OR does anyone know a DEV that could create something as simple as this, that I can talk to and relay updates on the APP to the owners of this company.They seemed really interested in it, and I'm pretty positive it will show a good bit of initiative in saving their company money from the get-go (on my part)
View 10 Replies
View Related
Jun 23, 2009
I would like to create a video recorder and so far haven't figured out how to set parameters in order to successfully go through MediaRecorder.prepare() method. Executing the following method
public void start() throws IOException{
String state = android.os.Environment.getExternalStorageState();
if(!state.equals(Environment.MEDIA_MOUNTED))
{
throw new IOException("SD card is not mounted. It is " + state + ".");
}
File directory = new File(path).getParentFile();
if(!directory.exists() && !directory.mkdirs())
{
throw new IOException("Path to file could not be created.");
}
recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
recorder.setVideoEncoder(MediaRecorder.VideoEncoder.H263);
recorder.setVideoFrameRate(15);
recorder.setVideoSize(176, 144);
recorder.setOutputFile(path);
recorder.prepare();
recorder.start();
this.state = VideoRecorderState.STATE_RECORDING;
}
it throws an exception on line recorder.prepare(). Does anyone know how to set parameters in order to be able to capture video?
View 7 Replies
View Related