Error on dmtracedump

by for android » Fri, 26 Dec 2008 17:10:30 GMT


Sponsored Links
 When trying to read .trace file from dmtracedump tool,I get this error

D:\android-sdk-windows-1.0_r2\tools>dmtracedump myActivity.trace
ERROR: unable to read 458752 bytes from trace file
Cannot read trace.


Whats the reason for this error??any ideas on how to solve it ???

thanks

--~--~---------~--~----~------------~-------~--~----~



Error on dmtracedump

by for android » Thu, 01 Jan 2009 15:09:21 GMT


 any help....??





--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Accessing the CallLog from a Service or Broadcastreceiver

Hi there!

Is there any way, to access the CallLog from a service or BroadcastReceiver?
Any help would be great :-)

Thank you very much...
Frank

-- 
Name:   Frank von Daak  ICQ: 490068423
eMail:  f.vond...@kpage.de
"Enjoy yourself - it's later than you think!"


--~--~---------~--~----~------------~-------~--~----~

2. Question on WebView.addJavaScriptInterface()

HI

I am trying to extract the HTML of the current page.

1) The API I am using is "public void addJavascriptInterface (Object
obj, String interfaceName)". Google says "Using addJavascriptInterface
() allows JavaScript to control your application. This can be a very
useful feature or a dangerous security issue. When the HTML in the
WebView is untrustworthy (for example, part or all of the HTML is
provided by some person or process), then an attacker could inject
HTML that will execute your code and possibly any code of the
attacker's choosing"

2) Following is the example where I am using these API.
webview.addJavascriptInterface(new MyJavaScriptInterface(),
"HTMLOUT");
webview.loadURL("javascript:window.HTMLOUT.parseHTML
('<html>'+document.getElementsByTagName('head')[0].innerHTML+'</
html>');");

3) MyJavaScriptInterface Class is as follows
public class MyJavaScriptInterface {
    parseHTML(String hrml){
        //parse the string. String is nothing but the HTML. Look for
needed tags and post an intent to my service.
    }

}

4) So just like how I am calling the function of a class
MyJavaInterface from javascript using loadURL any one call it too.
Means any one can write a HTML page and call the function parseHTML.

What my point is
    - I am not sure how this will be a security threat? Whatever I am
doing anyone can do it as well by using the WebView.?
    - How the attacker could inject and execute its own code?

Can someone please help?

Thanks,

-Amit
--~--~---------~--~----~------------~-------~--~----~

3. how to extract RAW HTML using WebView

4. How to use other app to 'view' the media in Gallery

5. TextView with dyncami links

6. Google maps problem:

7. problem in service in manifest file