Android :: DalvikVM Could Not Find Field After ProGuard Obfuscation / How To Get
Nov 4, 2009
I've been trying obfuscate my application for the last 2 days. I must add that I'm new to Java, Eclipse, Ant and Android as well.
Currently I've managed to build the correct build.xml file and run ProGuard 4.4. However, every time I install my apk I get multiple errors from the "dalvikvm" such as "Found field 'e' but sig is 'J' not 'B'" or ".. sig is 'Lc' not '[c'" (Which has something to do with arrays and enums).code...
View 3 Replies
Oct 1, 2010
Google is suggesting that developers might want to obfuscate byte code:
http://android-developers.blogspot.com/2010/09/proguard-android-and-licensing-server.html
I followed Google's instructions to get an obfuscated Android app that, at first glance, seemed to work. But there were some strange bugs introduced that are not in the un-obfuscated app. I kept turning off ProGuard options to get to this configuration:
-dontoptimize
-dontshrink
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
Still the bugs are there. Is there anything else I can turn off to get only pure obfuscation? Obfuscation would be nice, but I am willing to turn off ProGuard's other features.
View 1 Replies
View Related
Jul 15, 2009
I want to obfuscate my android code. I have installed the "obfuscate4e" plugin, but how do get it to obfuscate my code?
View 3 Replies
View Related
Sep 23, 2010
Just read the latest Android Developer blog post. http://android-developers.blogspot.com/2010/09/proguard-android-and-l... Quite the beast. And Proguard cannot even be used with confidence ("it's still possible that in edge cases you'll end up seeing something like a ClassNotFoundException").
Is it just me getting irritated where this seems to be going? In my more active days developing, pretty graphic slang was applies to efforts like this: "Turd layering". Meaning: More dependencies, more procedure, more sources of error, and it doesn't even work "right". In of itself, adding innocent looking steps to a release procedure (for some relatively obscure benefit) might be marginally worthwhile, but in the bigger picture, releasing an app increasingly becomes a burden. Dare you miss a step. Or try to teach somebody else how to go through a release and verify it. Or you want to go and rebuild a development environment. Or lose the ominous reference file (mapping.txt)...
View 1 Replies
View Related
Sep 24, 2010
The timing of this week's blog post was perfect. It was exactly what I intended to do today. And the extra Ant step worked fine, and I can see Proguard obfuscate my files into bin/obf/obfuscated.jar (yes, I tweaked the file names and paths a little bit), the resulting App- release.apk does not include the obfuscated files. My first hint was my stack traces, but I confirmed it with dedexer. Has anyone else verified their .apk? How does the compile step know what .class files to use? (I'm hoping its not assuming some hard coded path.)
View 5 Replies
View Related
Oct 12, 2010
When I got something like this:
CODE:..............
How can I know where the problem is and debug this issue? I only got the mapping output from ProGuard and don't know the line number.
View 2 Replies
View Related
May 21, 2010
I am one step away from making the method described here: http://stackoverflow.com/questions/2761443/targeting-android-with-scala-2-8-trunk-builds work with a single project (vs one project for scala and one for android).
View 1 Replies
View Related
Sep 21, 2010
I'm publishing an android application develpoed in eclpis and, as stated in the title, I would like to integrate proguard(obfuscation) into the build, specifically for exporting a signed app.
View 2 Replies
View Related
Sep 28, 2010
Kindly provide me the steps to obfuscate an Android application from Eclipse IDE. Is Proguard jar best for this obfuscation purpose or do we have better obfuscater?
View 2 Replies
View Related
Oct 2, 2010
I've seemingly tried every setting in various articles on the internet including excluding all of my classes through -keep public class.
What settings should be used to not force close? At this point if I could get obfuscation with nothing else would be fine.
Below are sample configurations I've tried and my app still force closes.
I followed this article as well as others: http://android-developers.blogspot.com/2010/09/proguard-android-and-licensing-server.html. Still no luck.
CODE:................
View 1 Replies
View Related
May 11, 2010
I am working on an application that needs to find GPS location of the user. While testing my code on Droid i am unable to find the GPS location. While googling i found this link to an issue raised with Google.
But apps like Yelp can find the GPS location on droid. Is there a workaround to find the user location on a device? Here's the code I am using code....
View 2 Replies
View Related
Apr 28, 2010
I want to add a Custom field to the Contacts Contract content provider. I'm trying to build a Voip application and would like to add a SIP address(name@domain) field to it. What MIME type will I need to associate with it? Also I want to add a group address field which will have a list of group addresses in it (name@domain, name@domain Which MIME type will I have to associate with this type of field. I also want to add custom fields to the Call History like a session ID and SIP address(name@domain) field. How can I customize the call history?
View 1 Replies
View Related
Jul 29, 2010
Before I start to develop an application I really want to know that we can only use android Sdk on Android phones or can we use the android Sdk to develop other things like iPad, iPhone also etc?
View 1 Replies
View Related
May 24, 2009
I have problems with Cursor in my Android application.
I have a SQLiteDatabase that return me Cursor when I try to fetch the values with :
code:.......
But I don't know how to obtain the value of the field in the Cursor.
If I do that :
code:........
I obtain the name of the columns (_id, title, body) but not the value.
View 2 Replies
View Related
Jul 22, 2010
If I don't import R, I get "id cannot be resolved or is not a field" (R.id.mainanim); And if I import R, the id error is gone, but I get "main and mainanim cannot be resolved or is not a field". They're my xml files! Also here is ALL my code... maybe there is an error I didn't see?
JAVA:.................
View 2 Replies
View Related
Apr 25, 2010
Is there any way to create a transparent text field?
View 4 Replies
View Related
Mar 23, 2010
I have an activity in my app, when i call the line
EditText username = (EditText)findViewById(R.id.usernameText); the app crashes, why is this?
View 3 Replies
View Related
Aug 16, 2010
I want to display a listview when clicked be able to get the items key value. How would I go about that.
View 1 Replies
View Related
Mar 24, 2010
I have noticed a rash of EMF "detectors" currently available for the iPhone 3GS only.
Does the Milestone/Droid series phones have the capability to detect EMF and if so does anyone know of a current app or one in development that will do this? I've searched the app store without finding a clear result.
View 5 Replies
View Related
Aug 4, 2010
I am new to android , I hope so u guys will help me to obtain my requirement. I am using an Android API Level 2.1 I need to create a new field such as user@domain not as e-mail format for every contacts. So i need to create a new MIME type now i got struck how to create this MIME type.
View 1 Replies
View Related
Sep 1, 2010
I have an EditText field and a button. My aim is to let user enter text info to the EditText or click the button to launch a dialog to select some checkbox and radio button which it will perform some computation and return a value to display at the EditText field.
I can't seems to get the value to display at the EditText field after the dialog dismiss. I did try a toast to display the value and it is ok. I *think* the view was not refresh to display the text in the EditText field.
View 6 Replies
View Related
May 6, 2009
I want to store long value in database ( current time millis), how to store it.
View 3 Replies
View Related
Mar 12, 2010
When i am running DDMS tool to profile the application, In left pane of the DDMS tool we are able to see all the emulators that are attached to DDMS. When i expand one of the emulator some times i am getting "?" in process names.
View 9 Replies
View Related
Jun 1, 2010
I have been trying to use reflection for a specifiec Field in the android.os.build class, the MANUFACTURER field...
I have tried by using this code :.............
I am gettign the following errors :
code:..........
And when debugging I noticed that InvocationtargetException is continuesly thrown, so I am guessing I haven't been implementing the whole Reflection principle correctly...
Any idea where things are going wrong or otherwise on how to implement Refelction for a single Field correctly ?
View 7 Replies
View Related
Jun 2, 2010
Is it possible to use AdapterView with text fields in android?
My query returns a set of values and for each I want to place that within a textfield, so that the user may edit the value.
Also, I want to click a button to create a new empty field, so that I may insert a new entry.
If you know of good example, then please let me know!
I would prefer to use XML to define ui and I found this informations:
"In this case we create a new id called text1. The + after the @ in the id string indicates that the id should be automatically created as a resource if it does not already exist, so we are defining text1 on the fly and then using it." Source http://developer.android.com/resources/tutorials/notepad/notepad-ex1.html
Will this + allow me to autocreate as many fields as needed? Is there a way I can generically specify the layout in XML and then create fields adhoc based on db response?
View 1 Replies
View Related
Oct 8, 2010
I have build a sort of split view for one of my android applications. I have made an activity which is a container of a listview and a framelayout. I use the listview for a menu and in my framelayout, I load views of different activities. I have read the source code of the TabHost for building this system.
Activities that I load in my framelayout could contain a webview.
The system work pretty well but I have a big issue. When I click on a field in a webview, the soft keyboard doesn't appear and typing on the physical keyboard has no affect.
I have made many many researches and I found nothing.
View 2 Replies
View Related
Apr 5, 2009
When I look at all the views in HierarchyViewer, why there are multiple views's 'hasFocus' is true? I am under the assumption that only 1 view can have focus at a time. If so, why there are multiple view's hasFocus be true?
View 2 Replies
View Related
Aug 6, 2009
I need to retain a complex object in my service, so I can reliably come back to it (it holds updates). Initially I coded it just as a class filed in my Service implementation but I'm observing that the updates object is periodically reset to null which tells me that server class itself is recreated. Can someone recommend lightweight reliable strategy to save and recreate such updates object (I can make it serializable)
View 2 Replies
View Related
Sep 18, 2010
In my app I am displaying a table where the individual cells are editable text fields (i.e. EditText objects). I am currently struggling calculating appropriate widths for these.
If I set the width to be as many "Ems" as the displayed text has characters, my fields are much to wide by about a factor of 2 and the table looks ugly and wastes lots of precious screen space. Setting the width in "Ems" is essentially like assuming the worst case, i.e. the width of a string under the assumption that it contains only the broadest characters in a font, usually 'M' (hence the name of the method), 'm', 'W', or '_'). But on average strings contain narrower characters and so most of these fields are half empty and much too wide for their actual content. I am thus desperately seeking a way to calculate a better fitting width, not that worst case width.
The "normal" way to do this in Java (in AWT or Swing at least) is to asks a widget's current Font (actually a Font's FontMetrics), to calculate and return the width that will be necessary to display a given string in pixels. But how does one obtain a TextView's Font? I haven't found any method to obtain a (Text)View's font and/or calculate a more appropriate width given the actual content of a cell's text string. How does one do that in Android?
View 1 Replies
View Related
Apr 5, 2010
I am having problem in Virtual Keyboard. I am having text field. if user click the text field then virtual keyboard need to appear. how to do this.
View 5 Replies
View Related