Android :: Writing Time Out Event
Sep 1, 2010
i have a small issue i can't figure out.For my program, i basically want to execute some code if the user hasn't done anything with the application for 5 minutes (say log out).how can i go about doing this? i'm lost on detecting that the user has done nothing, and then reset the count once the user has touched the tablet or something. can somebody give me some pointers?
View 1 Replies
Jan 7, 2010
Is someone from Google able to advise when the Android SDK is likely to include a public API for reading/writing event data to the user's calendar? Searching the forums I see that this is a much desired feature by many developers but I haven't seen any indication as to when (or even if) this need will be addressed.
View 1 Replies
View Related
Mar 31, 2010
In my application I will be writing messages to a text file. When I am writing the messages I also want to include the time in it. How do i write in the current date and time? Must I use Calendar now = Calendar.getInstance()?
View 4 Replies
View Related
Aug 17, 2010
I have a facebook event in my device's calendar that is displaying the correct time on the main calendar, but showing the incorrect event time in two different calendar widgets I've tried, as well as the event list in the Facebook app.
To make matters more complicated, the facebook app is displaying a different incorrect time than the widgets.
I've removed the facebook event from my calendar, reinstalled the widgets, done a battery pull, resynced, and the problem persists.
I think the host changed the time of the event after I first synced it to my phone, but I'm not sure.
View 2 Replies
View Related
Apr 12, 2009
I use onLongClick and onClick events of a button to get user inputs. Whenever; the user long click and triggers onLongClick event, the onClick event is also triggered. I couldn't find my problem. The code of two methods are shown in below: Code...
View 2 Replies
View Related
Dec 15, 2009
I hope there is a way to resolve this or bye bye hero.
View 10 Replies
View Related
Jul 21, 2010
I am currently writing the backend for a service which has 3 clients: browser, android native and iphone native. I am having a little trouble with coming up with an authentication system since I don't know what can really be done on the clients.
I am using django + twisted for the backend.
Basically, I am going to be writing RestfulAPIs to open up for the clients on both phones to call.
Now the real question is, how should I come up with an authentication system?
I have thought about using sessionids, this works very well with the browser and I can use django's integrated app for that.
However, I don't know if it's possible for both the iphone and android to obtain a unique sessionid on the handset. Should I write an API call to distribute unique sessionids?
if that's the case, is it possible for me to still use django's authentication system since a lot of the stuff here are customized? ( I am not even using a rdbms - I am sticking with mongodb, so I was on the verge of dropping django's authentication app ftm).
I have looked at foursquare's API and their basic auth method requires you to pass in user:password in every http request header. That adds 1 additional authentication each call which can kind of seem excessive.
View 1 Replies
View Related
Jun 9, 2010
This is a pretty open ended question.I have a T-Mobile Touch and have some free time on my hands. So far as i understand im stuck with Android 1.5 and no sign of T-Mobile or Huawei releasing a ROM using a more up-to-date version of the Android SDK.Im asking what are the major complexities involved with making a ROM for this fone using a newer version of the Android SDK?
View 1 Replies
View Related
Sep 16, 2010
I would like to open an mp3 file with my own audio player(based on mplayer and FFmpeg) I packaged in a apk file. It runs fine using command line and the executable version but not when packaged in apk. I got the messages using adb logcat window:
I/stdout ( 2115): PCM: Samplerate: 48000Hz Channels: Stereo Format s16le I/stdout ( 2115): [AO PCM] Info: Faster dumping is achieved with -vc null -vo null -ao pcm:fast I/stdout ( 2115): [AO PCM] Info: To write WAVE files use -ao pcm:waveheader (default). I/stderr ( 2115): [AO PCM] Failed to open /dev/msm_pcm_out for writing! I/stderr ( 2115): Failed to initialize audio driver 'pcm:file=/dev/ msm_pcm_out' I/stderr ( 2115): Could not open/initialize audio device -> no sound. I/stdout ( 2115): Audio: no sound I/stdout ( 2115): Video: no video I/stdout ( 2115): Exiting... (End of file)
I put the permission in the manifest file as follows:
code:...............
View 3 Replies
View Related
Apr 9, 2009
I want to edit image for Writing text on images, is it possible in Android, if so, how to achieve this.
View 3 Replies
View Related
Nov 6, 2009
Does anyone have any suggestions on where to start in case one wants to write a firewall for Android? I am interested especially in how would one go about in blocking access for various applications that are blacklisted from a firewall application. As far as I could find, there are no firewall applications in the real sense except Droidwall which uses iptables on rooted phones, but I would like to see if there are any API calls currently in Android that may help with this task, be it NDK or SDK.
View 3 Replies
View Related
Mar 31, 2010
I'm looking for a way to programmatically save an array of shorts as PCM data. I know that this should be possible, but I haven't found a very easy way to do this on Android.Essentially, I'm taking voltage data, and I want to save it in PCM format. My function looks something like this:public void audifySignal(short[] signal) {// Create a WAV file from the incoming signal}Any suggestions would be awesome, or even references. Seems like the audio APIs built in to android are more geared for directly recording from the mic, and not so much for lower level signal processing type work (at least for saving raw data to a file). I'd also like to avoid having to manually write the PCM file headers and what not.
View 1 Replies
View Related
Jul 8, 2010
When implementing download function it work but during file saving to sdcard i get the following Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required.Also IO Exception occure
W(14495:0x389f) java.io.FileNotFoundException: /sdcard
W(14495:0x389f) at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:244)
W(14495:0x389f) at java.io.FileOutputStream.(FileOutputStream.java:97)
W(14495:0x389f) at java.io.FileOutputStream.(FileOutputStream.java:168)
W(14495:0x389f) at java.io.FileOutputStream.(FileOutputStream.java:147)
View 1 Replies
View Related
Jul 22, 2010
I have a game object that I save like this in OnPause()try {final ObjectOutputStream os = new ObjectOutputStream(openFileOutput(gameName + ".sav", 0)); os.writeObject(gameObject); os.reset();} catch (final Exception e) {e.printStackTrace();This works fine except on some of the older or slower phones it can sometimes take too long to complete. I end up getting a ANR (Activity Not Responding) error. I would like to move this to a thread to prevent blocking the UI. However when I try this I run into multiple problems.First openFileOutput is only available in my activity. I worked around this by passing the ObjectOutputStream to the thread. After that I could save the object but later when I tried to reload I get a java.io.EOF Exeception. does anyone have a good pattern for writing objects to a file from a thread?
View 1 Replies
View Related
Aug 22, 2010
I try to write to a Csv file via:mFileWriter = new FileWriter("/sdcard/program/file");mCsvWriter = new CSVWriter(mFileWriter);At the moment it throws an exception that the file doesn't exist.It's true that the file doesn't exist. What's the easiest way to create the file?
View 1 Replies
View Related
Aug 28, 2010
Is there any way of accessing the internal SD card on Android devices that have internal flash, internal SD and external SD cards?
View 1 Replies
View Related
Jun 17, 2009
I've been looking around on the net and in this group, but i have not found any java package that can read and write EXIF data.
I tried Sanselan. They say they don't use ImageIO/AWT, but they actually do use AWT. The class can not be loaded because there is an AWT dependency:
CODE:......
What i want is not so much creating my own EXIF data, but preserving a JPEG's meta-data (EXIF). I'm planning to load a JPEG, edit its bitmap and write it out again to a(nother) JPEG with the same meta-data as its original.
View 2 Replies
View Related
Feb 10, 2009
I am writing a custom button.
In the android button, I can customize my button like this:
CODE:......
And in the Button.java source code, it gets the value like that: In TextView.java:
CODE:......
My question is if I need to add a new value in the customization for my button.
CODE:....
How can I get 'myattribute' in my class for my custom button?
View 4 Replies
View Related
Mar 30, 2010
I am writing an application that will create a textfile in the /sdcard or /data directory and write messages to the textfile.Each time I want to append the messages and not overwrite the file.
View 7 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
Jul 15, 2010
I'm in the process of extending monkey for software testing purposes, so I would like to replace the current monkey.jar which my own compiled monkey.jar in the emulator. The current monkey.jar is
located at /system/framework/monkey.jar.
When I try to run the following command:
adb push monkey.jar /system/framework/monkey.jar
I get the following:
'failed to copy 'monkey.jar' to '/system/framework/monkey.jar': Out of
memory'
How to replace the current monkey.jar?
This actually works if I'm running Android 1.6 in the Emulator, but nothing after that.
Yes, i've tried 'abd remount'
This is not a .jar specific issue. I can't push any type of file to /system/framework
View 2 Replies
View Related
Oct 27, 2010
I'm trying to read from a file while it still opened for witing.
View 2 Replies
View Related
Aug 16, 2010
I've had an inquiry about whether my Android app can interface with a serial device via USB cable. Before I invest too much time in this path, I'd like to know: Is this even possible? Some previous threads indicate Android won't do host USB. Would it require root access and/or the NDK? Would it be better to advise the potential client to look for a serial blue tooth adapter? I can see that there is a Blue tooth Sock class which may do the job.
View 4 Replies
View Related
Jul 29, 2010
I have created an edit text. Currently the writing keypad is made visible when i click on it. Is there a possibility where I can make the writing keypad visible from starting itself i.e. no need to click on the edit text view.
View 5 Replies
View Related
Jun 19, 2010
I'm writing an app that will periodically send information out to a remote server, and then get relevant information about other users from that server back to the local database.What's the best way to handle sending out this info (i.e.: XML or binary) and writing it to the remote server.Also,how can I assure that, when 500+ users' data get's to the server or FTP (or better alternative?) at once, the appropriate fields gets overwritten or added, without skipping any or overwriting the entire thing?
View 1 Replies
View Related