Android :: ExpatReader DTD Handlers Aren't Supported
Aug 31, 2009
I seem to be having a weird issue when parsing XML from a server. In LogCat the following warning is displayed:08-31 12:05:28.870: WARN/ExpatReader(2031): DTD handlers aren't supported.The parser then seems to stop. I can't figure out what is causing this problem, my approach doesn't seem any different in this instance with regard to parsing XML. Does anyone have any recommendations to fixing this issue?
View 3 Replies
Jun 29, 2010
I need to parse an UTF-8 encoded input stream, so I think the most appropriate method is to use
CODE:..............
For that I need to import org.apache.harmony.xml.ExpatReader but I cannot figure out how, I mean which Java package must I install from http://harmony.apache.org/download.cgi?
Or is there an alternative method to accomplish the same goal?
View 1 Replies
View Related
Nov 2, 2010
I want to create multiple handlers that gets triggered based on users selection, but this handlers implement the same runnable method. the only difference is that they call different postDelayed() method. how do i go about achieving this without rewriting the same code for the runnable? i am still not clear about how the handleMessages() works and if it can be used for this?
View 1 Replies
View Related
Jul 16, 2010
I want to display the imageviews one by one that means if image1 is displayed after 2 sec another image is displayed .but i don't want to use threads why because my application is small.I want to use handlers.So give me some suggestions.
View 1 Replies
View Related
Nov 7, 2010
On what thread are event handlers (like onAnimationEnd, onTouchEvent, onKeyEvent, onClick) executed? Are they called sequentially or can two handlers may execute simultaneously?
View 1 Replies
View Related
Sep 8, 2010
I have got to know that the Handlers are basically used to Run the Small Section of Code and etc...But I didn't got the exact scenerio about when particularly It is Ideal to use the Handlers. Code...
View 2 Replies
View Related
May 12, 2009
Which is the way to attach the custom event handlers for the activities, in case they support one, when the activity is started using Intent and startActivity() methods. Does intent has a special way to take up the handler callback references. Basically, I wish to handle call end activity after invoking the call activity.
View 2 Replies
View Related
May 13, 2010
I've more than one Handlers in an Activity. I create all the handlers in the onCreate() of the main activity. My understanding is the handleMessage() method of each handler will never be called at the same time because all messages are put in the same queue (the Activity thread MessageQueue). Therefore, they will be executed in the order in which are put into the Queue. They will also be executed in the main activity thread. Is this correct ? Code...
View 1 Replies
View Related
Oct 9, 2009
I was wondering if it is possible to have different behavior depending on a click on the icon and the text inside a TextView... Any suggestions?
View 1 Replies
View Related
Dec 2, 2009
I want to send an intent from a crash handler [ crash(String tag, Throwable t) in RuntimeInit.java) ] to an activity (stand alone appllication)
I tried to send it from above handler as follows..
CODE:................................
But i failed to send an intent to my application..
Can i send an intent to my application fro RuntimeInit.java handlers?
View 3 Replies
View Related
May 14, 2010
This question is related to an existing question I asked. I though I'll ask a new question instead of replying back to the other question. Cannot "comment" on my previous question because of a word limit. Marc wrote - I've more than one Handlers in an Activity." Why? If you do not want a complicated handleMessage() method, then use post() (on Handler or View) to break the logic up into individual Runnable. Multiple Handlers makes me nervous. I'm new to Android. Is having multiple handlers in a single activity a bad design ?
I'm new to Android.My question is - is having multiple handlers in a single activity a bad design ? Here is the sketch of my current implementation. I've a mapActivity that creates a data thread (a UDP socket that listens for data).
My first handler is responsible for sending data from the data thread to the activity. On the map I've a bunch of "dynamic" markers that are refreshed frequently. Some of these markers are video markers i.e., if the user clicks a video marker, I add a ViewView that extends a android.opengl.GLSurfaceView to my map activity and display video on this new vide.
I use my second handler to send information about the marker that the user tapped on ItemizedOverlay onTap(int index) method.The user can close the video view by tapping on the video view. I use my third handler for this. I would appreciate if people can tell me what's wrong with this approach and suggest better ways to implement this.
View 2 Replies
View Related
Sep 15, 2010
I am writing an Application that has multiple layouts with buttons. I have set up onClickListners for the buttons. Some buttons will change the activity and bring up a new layout with new buttons, and others will send outgoing SPP strings over Bluetooth. The strings will be defined in an XML file and will not change (serial commands).I can hard code the MAC address of the Bluetooth Server and only need to send data, not receive.
I am looking for some general guidance on the direction to go as far as setting up my Bluetooth connection and outgoing transmissions. I have looked at the BluetoothChat example extensively but do not have any good resources in the case of multiple activities.
-Do I use a separate activity to manage all Bluetooth transmissions and connections and create handlers for every case where I would send a Bluetooth message?
-Should I add Bluetooth connection+transmission threads in every activity (seems like i would run into issues losing the connection when changing activities)?
-Can I use handlers that are not class specific where the BluetoothService Activity could send whatever was prompted by the active/current activity?
-Could I just hard code all strings to be sent in the BluetoothService Activity and the UI activity could prompt the BluetoothService Activity to send the requested string based on the button click?
View 1 Replies
View Related
Sep 30, 2010
In an HTML page, I have at one place, <a name="updates"></a>, but in a WebView, when I click on <a href="#updates">updates</a>, it doesn't jump to the correct place. It works fine if I load that page in a browser. It does nothing but mark that link as visited in the WebView. Is there some setting that I'm not correctly configuring?
View 3 Replies
View Related
Oct 18, 2010
if you search for pub:"Moorhen Apps" only 4 apps are listed, however I have released 20, all of which were available 3 days ago. None of the hard links work anymore. Any ideas?
View 2 Replies
View Related
Feb 27, 2010
Was wondering why some apps that don't need to open to update there info like weather bug, show up in Advanced task kill running? Like an alarm clock or spare parts app.Or why does weather bug show up even inside the 6 hour time frame I set up for it to update.Also wondering If I use the weather bug short cut on my home screen and not the WB widget will that stop it from ever opening/updating unless I open it by tapping the short cut icon.
View 1 Replies
View Related
Aug 27, 2010
Why aren't menus inflated automatically for you in Android, the way an Activity's layout is?
View 2 Replies
View Related
Sep 30, 2010
This one surely is a simple one but I haven't made sense of is yet. I'm working on an app in opengl es on android. everything goes well except when I load the textures. I manage to open load and create all the textures without any problem, but the image displays itself rotated of 90. it looks as if the application does not consider that its is in landscape when opening the image...I solved the problem by turning all my textures of 90 degrees but I would sure like to figure this one out Because it is the only thing that is not rotated, the top bar is rotated, the touch coordinated are rotated,
the h and w of the surface are good,
Here are some code snippets that I think are relevant:
CODE:...........
View 1 Replies
View Related
Sep 16, 2010
I've been developing Android application for quite awhile now. Please correct me if I'm wrong, but as far as I know the UI toolkit and 2D graphics API aren't hardware accelerated (the official documentation states that Canvas is not accelerated). I've found that most non- trivial animation or blending operations are painfully slow even on mid-level devices like a Droid, even after taking much time to optimize my code.
I'd like to know what the rationale is for not providing hardware support for these frameworks? Wouldn't it be possible to at least make it optional for vendors to implement support? Does anyone have any additional information about this issue?
View 14 Replies
View Related
Aug 31, 2010
How can I show pictures in WebView without saving images into file system?
I have tried to implement my custom Content Provider, but method openFile returns ParcelFileDescriptor that points into filesystem (or socket). My pictures are in filesystem, but in encrypted form.
I have tried also URL.setURLStreamHandlerFactory, but in android java it is useless (because custom streamHandler can be register in jvm that is not allowed). I also try html code "img src="data:image.gif;base64,R0lGODlhiAAkAMQAANOOk...", but in embedded chrome it's not working.
View 1 Replies
View Related
Oct 14, 2010
i`ve got some problems with finish() method. I expect what after calling on my Activity finish() method onStop and onDestroy must be triggered(or am wrong??), in majority of examples they are, but Scenario: - reboot phone - launch activity - invoke finish() onPause is triggered but afterwards they are no calls to onStop() and onDestroy()I`ve noticed, that those calls are triggered after launching any other activity.
View 7 Replies
View Related
Oct 20, 2009
I'm trying to set the background of a RelativeLayout to a particular color. However, the color that's being displayed by the emulator and by the device is off by quite a bit.However, when I view the that layout in the emulator, the color I get back (using xScope on Snow Leopard to get the pixel values) is #e7e7ef, which looks a bit purpley.Looking at the view on the G1 also looks a bit off from what I want. If I take a screenshot of the G1 using the debugger and examine the pixels, they too are #e7e7ef.
View 1 Replies
View Related
Mar 18, 2010
I have a little question, perhaps it's quite easy, but I've been looking for it for over a week now.
When I search on the market for a specific application, say "shazam", I get a message;
Suggestion
- Make sure all words are spelled correctly
- Try other keywords
- Try less specific keywords
However in the top bar it says
"1 result for Shazam"
But the result isn't showed. I have this problem with up to 9 search results.
I'm using a HTC Hero. Any suggestions on this one?
View 1 Replies
View Related
Nov 5, 2010
We've been developing an Android app at work for a few months now and recently acquired Droid Incredibles (API ver. 8) to replace our HTC Dev Phones (API ver. 4).
DANG are these some sweet new toys, but unsurprisingly, they've got a few quirks...
1) It's normal for my user to let the program run for long periods without any input, but he'd still need the display to work the entire time. Can anybody suggest a function call or setting or something that will prevent the Incredible's screen from dimming while my application is running??
2) On the Dev phone, I was able to copy my application's database file (thousands of uses, that) onto the SD card's root directory and fly. I could view the directory on my PC via USB; when I released the SD card from the PC, my application was perfectly happy with it and obediently read from and wrote to the database; and I didn't have to remove the SD card, ever. That doesn't seem to be the case with the newer, better phone, though. My application seems to be reading my start up parameters properly, but all attempts to save data in my database aren't working so well unless I'm just doing something wrong. Can anybody point me to documentation specifically geared toward the Incredible?
View 2 Replies
View Related
Apr 19, 2010
When using a View within a View, for example an ImageView within a LinearLayout, both of which have xml drawable resources (the LinearLayout as a background) specifying PNG drawables to use for the on/off states, shouldn't children Views receive the focus state when their parent gets focus? So as far as I understand, both my LinearLayout and ImageView should be switching to their focus states right? Apparently not Or, more likely, apparently my implementation is incorrect.
The focus state works on the LinearLayout but my ImageView never receives focus.. I have both Views set to android:focusable="true".
You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
View 2 Replies
View Related
Nov 5, 2010
I had to get my Evo replaced today and I used ASTRO and MyBackup Pro to backup my apps to my SD Card. After installing them onto my new Evo, I went to the Market and then to Downloads, and they don't show up there. How am I suppose to know when I will have an update?
View 10 Replies
View Related
Jun 24, 2010
My friendstream and facebook app aren't working. Whenever I open friendstream it loads for a minute or two and then just tells me I have to force close it. And as for facebook the actual app works, but when I try to use the widget it tells me problem loading gadget. But if I delete it, reinstall it, and don't download the update it works fine. Is this just me or is it a problem with the app?
View 2 Replies
View Related
Jun 8, 2010
Didnt work on the Hero, was sort of hoping EVO would magically work with it. Is this something FroYo can fix? Its such an standard format.
View 5 Replies
View Related
Jul 1, 2010
I saw the thread in the Sprint HTC Hero forum, but it didn't really address the problem, so I figure I'll ask here as well.
My sister changed her Facebook photo, I use the facebook photos as the contact photos on my phone. My phone has not reflected the different photo yet, its been a few days.
I've unlinked and relinked the account, went into Accounts & Sync, and re-synced it, but the old photo still shows up. It's not a huge deal, but the photo is her and her ex-boyfriend, and I'm sure she'd rather me not have that photo on my phone.
View 3 Replies
View Related
Dec 16, 2012
So I'm trying to make Google play music save on my sdcard and I'm having a problem with the script. First the phone I have is the DROID RAZR MAXX and I just did a FDR because of a root problem and now that I have it rooted the scripts aren't working. My script text is this
"Mount -o bind sdcard-ext/MusicCache sdcard/Android/data/com.google.Android.music"
The error it shows is like this:
exec sh '/mnt/sdcard/MusicScript.txt'
card/MusicScript.txt'
/mnt/sdcard/MusicScript.txt[2]: Mount: not found
View 1 Replies
View Related
May 1, 2010
"generic network failure" continually keeps me from getting and sending pics in handcent. What's the deal? They won't work in the HTC message app either.But when I first got the phone last Tuesday I received a pic from girlfriend just fine.Not sure what to do here.Anybody have any suggestions? Similar problems?
View 1 Replies
View Related