Android : How To Handle Data Output In An Observer?
Apr 8, 2010
I have an Observable and an Observer. The observable does download some stuff in a background thread and calls notifyObservers to let the observers read the status. At some point in public void update the observer tries to updates the GUI Is there some way I can prevent this from happening? I'm sure I'm missing something obvious here.
View 2 Replies
Apr 27, 2009
I am trying play an amr file on android emulate, but nothing here, only see the progressbar froward. so farther, I fond the amr codec only out all zero data.I also go www.3gpp.org dondord the amr code 26073-800.zip, and user it doecde the same amr file, it works good. now, what coule do, to make amr file play good. i am sorry for my bad English.
View 2 Replies
View Related
Jun 8, 2010
I have just gotten my first Android based device, the HTC Droid Incredible.
I am not new to the world of smartphones (I have owned a Blackberry and have worked on many other Blackberries), but I am new to the whole world of Android.
I really do like it so far, but I have a question...
How does Android handle data? What I mean by this question is this: Does Android use a store and forward approach to sending data (emails)? Or does it send it out and if it doesn't have a good connection, it will just fail out, never to try again?
And based on the fact that it uses data, I also assume that it will never lose it's data connection even though a cell phone tower might be buried under voice calls?
The reason I ask this is because during 9/11, many people's cell phones could not make or receive calls but those who had some of the first Blackberries were able to send and receive emails just fine due to the store and forward approach.
Also, another reason is that this device will be used in a SHTF type of situation due to it's capabilities and I want to make sure that it will work with data (sending emails), although I may not be able to make voice calls with it.
View 1 Replies
View Related
Jun 14, 2009
This is a general architectural question. I want to offer a user a simple two page form. The first page will have a few Spinners for the user to select options from. The second page will have a series of EditTexts for the user to fill in. After the second page, the user clicks a button to generate a text file based on the values they have input. My question is: What is the best way to handle preserving the data from the spinners on the first page of the form, in order to place them into the text file? I feel like the "architecture" should be something like this: 1. User selects Spinner values on first page and clicks button to move to next page of form.. 2. Spinner values are placed in database 3. User fills in EditTexts on second page. Clicks button to generate text file. 4. Database is queried for Spinner values, which are added to newly created text file, then EditText values are added Does this strategy make sense? Does anyone have advice on a better way of handling the gathering of two pages of form input then using it to create a text file? The user would need to be able to flip back and forth between the form pages as needed.
View 4 Replies
View Related
Jun 26, 2010
I will be making a mobile application in Android. My application is like Google Map's Get Direction feature, but a lot more complex, so I need to store data about points in the map. So I'm worried that SQLite may not be able to handle these large amount of data(or considering the limited storage of the phone). I have no background in SQLite so please bear with me.
View 3 Replies
View Related
Mar 25, 2009
I want to receive the data from the preview of the Camera, but without having to set a SurfaceView with a SurfaceHolder in the view of my application. I want to do something like this: Camera cam = Camera.open(); cam.setPreviewCallback(new MyPreviewCallback()); cam.startPreview(); This will not work because I need to call setPreviewDisplay (SurfaceHoler) before I start the preview. I can get a SurfaceHolder from a SurfaceView, but I don't want a SurfaceView, because I don't need one. I just want to handle the preview data by myself.
View 2 Replies
View Related
Mar 31, 2010
I have here a function that downloads data from a remote server to file. I am still not confident with my code. My question is, what if while reading the stream and saving the data to a file and suddenly I was disconnected in the internet, will these catch exceptions below can really catch that kind of incident? If not, can you suggest how to handle this kind of incident?
I call this function in a thread so that the UI won't be blocked.
CODE:...................
View 1 Replies
View Related
Feb 6, 2014
I want to output Android's camera output to a PC through Wifi or Internet.
I cant find a suitable app for the purpose. I did try to find one.
Closest I came to was MirrorOp Sender, but it shares screen?
I have a Galaxy S3 I9300 and a Galaxy Mini S5570
View 6 Replies
View Related
Aug 16, 2010
I want to save the data on the web server. I have data in XML format and I know the URL String. Please tell me how can I send the request and handle the response.
View 1 Replies
View Related
Jun 10, 2010
I want to have a free version and a premium version of the same application. When people buy the application, I want them to be able to "upgrade" without losing their data, i.e. the premium version should install over the free version.I want to use the same code base and just switch a setting to build the premium version.
Andoid Market does not let me convert a free app to a paid app, so the trivial option is not available.I am curious if someone has tried this successfully. How does Android Market identify an application - will it think that the premium version is a different app and just install it in parallel?
View 2 Replies
View Related
Oct 17, 2010
Well i have Handcent and have set it to pop up so i can reply system wide. While looking at You Tube videos it pops up i reply and when i go back to my video its just blank will not restart or anything else i have to hit back and click on the vid from the start. Its just annoying. Anyone know a work around this. I am Rooted i also have Tasker (but not that good where i can figure out how to do this) Does this happen to everyone is this just the network not being able to handle text and data at the same time. It worked fine on my old iphone.
View 3 Replies
View Related
Nov 22, 2010
I've got a small android application that implements the Observer pattern.
I want my "subject" (or the thing being observed) to change its state, such as changing its String from hello to hello world.
How can I do this via the emulator?
I need my (observing) android application to still run in the foreground so it can display whatever is being observed, but I need to find some way to alter the state of the observed object, is it possible to do this via the command line? How else can I "poke" the observed object to change its state.
One dirty-hack method I can think of is to set the observed object up in a loop, so every 10 seconds it changes its state, but that is not good as then I won't have control over it.
View 1 Replies
View Related
Oct 19, 2009
I want to get the booting log. But when I use the logcat, I can't get the whole info. In file dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/ provider/jsse/SSLParameters.java, I added "java.util.logging.Logger.global.log(java.util.logging.Level.SEVERE, "SSLParameters.getDefault() is called");" in the function getDefault () . But when I use the logcat, I can't get the sentence "SSLParameters.getDefault() is called". I can test that the function is surely called. Why? How can I get the info?Thanks.
View 2 Replies
View Related
Sep 24, 2010
Have a video in avi format I want to watch on the tv but the default player doesn't play avi. Are there any players out there that plays avi that will let me output avi through hdmi onto the tv?
View 3 Replies
View Related
Mar 4, 2010
I'm making an Android Java app game (although this question applies to all languages really) and hope to release the first version soon. I'm nervous about how I save data in my game. My problem is that, if in a later update, I decide to store more data or store the same data in a different way, I need to be careful I don't lose or corrupt data for users that upgrade (i.e. I want users to be able to use data created by an old version in the new version, like their high scores from before).For example, say I want to save high scores in version 1.
View 3 Replies
View Related
Jun 19, 2010
How to access mobile audio out in read mode?
View 1 Replies
View Related
Feb 11, 2009
I wanted to get the frequency of accelerometer output. How many readings can I get per second? And to what precision do I get?
View 5 Replies
View Related
Nov 5, 2009
Is there any way to get crash logs from android for a released application? I'm wondering if there's some way for a user to email me logcat output so I can see a strack trace if my app crashes.
View 3 Replies
View Related
Apr 3, 2010
Is there a way to make LogCat's output to appear in Console view in Eclipse? LogCat view is much less convenient that Console, because it's hard to see long messages in it (they are trimmed by column border) and there are no clickable highlighting in exception stack traces to quickly navigate to source of error. Just to make clear - I'd like to have clickable stacktraces, like the ones in normal Eclipse console so I can quickly navigate to the source of error.
View 5 Replies
View Related
Mar 9, 2010
I want to run an activity without ANY screen output. The screen should not blink or anything. How?I have an Appwidget. whenever it gets clicked I want to write something to a DB.So, via 'setOnClickPendingIntent' I start an activity that does that and finishes. But, the screen goes black for a short time, while the activity is running. How can I avoid that? Omitting 'setContentView' does not help, neither does a layout without any views. A service instead of an activity could do that, but I cant start a service by setting a 'setOnClickPendingIntent' (or can I?).
View 13 Replies
View Related
Sep 17, 2009
I'm trying to play a music (using MediaPlayer) during a call and want the caller to hear the music I'm playing. Unluckily it doesn't seem work at all, the caller hear nothing even I set the music volumn to MAX ( of course, the speaker and the mic on Android are far away from each other). Is there any ways to route Android's audio output to its Mic? Or something like "Stereo Mix" in Windows?
View 3 Replies
View Related
Jun 27, 2010
I'm probably going to feel like an idiot when I figure this out, but I'm hoping someone can help. I just installed the Android 2.1 SDK along with the latest Eclipse. When I create a new Android project, it outputs hello world when run. I can't for the life of me find anywhere in the project source where this happens and how to remove it.
View 3 Replies
View Related
Oct 27, 2010
When I record audio with the MediaRecorder, I am consistently getting .65 seconds of dead space before the recording starts. It appears as if the file gets passed for some reason. Does anyone know why and better yet, how to eliminate this?
View 2 Replies
View Related
May 4, 2009
To build full android source code, we get a "silent" output. We only know which file be involved, but I want to get more detail information, such as build parameter, input file,outpot file, warning, and so on. How to get these detail information?
View 2 Replies
View Related
Jun 5, 2010
I know that there was a root-required app that increased the volume output from the speaker when on the phone. Does anyone know what this was called? I want to test it out on my EVO.
View 5 Replies
View Related
Jun 30, 2010
I've been told it's a command line option. But Eclipse's Run!Run Configurations...!Target!Additional Emulator Command Line Options field is already occupied with hen where do I write it, and how (i.e., is the syntax even correct)? I need to output only a filtered tag, not verbose. ("MessageBox" is my TAG. Again I don't know if any of this punctuation is right, or even where the command goes.
View 1 Replies
View Related
Mar 10, 2010
I've got a fairly unique situation: I'm a teacher with a magnet school that focuses on rocketry and technology. I've got a rocket payload that has a video overlay board which does the following: Code...
View 3 Replies
View Related
Sep 22, 2009
After installing SDK 1.6 and ADT 0.9.3, I created a new AVD with SDK level 4. Then I found that my application can not output log in the logcat. Can anyone tell me why?
View 3 Replies
View Related
Feb 14, 2010
I am running Windos 7 and Eclipse 3.5 and I don't know why I keep getting this error. When I try run the program it gives me:[2010-02-13 23:09:41 - HelloAndroid]The connection to adb is down, and a severe error has occured.[2010-02-13 23:09:41 - HelloAndroid]You must restart adb and Eclipse.[2010-02-13 23:09:41 - HelloAndroid]Please ensure that adb is correctly located at 'C:UsersMohitDocumentsAndroidSDK oolsadb.exe' and can be executed.I even tried runing Eclipse and adb.exe as admin. What is going on? How can I fix this and start making Android apps?
View 2 Replies
View Related
Jun 12, 2010
In the Menu>Setting>Sounds and Display>Media Volume I have this setting to max and I'd still like my music louder still, Does anyone know of a way to increase the Media output Volume??
View 2 Replies
View Related