Android :: Wise Or Not Obfuscating Parts Of Application?

Oct 5, 2010

I'm a bit scared about obfuscating my application completely. I'm afraid to run into issues where I can't figure out a bug because lines and function names wont match. Please correct me if I'm wrong... I thought maybe the simplest way to protect important parts of my code is to create a jar of the important files. I know and understand that jars are good only for classes and no xmls or other Android dependent parts. I believe it would be simple this way since I would not have to worry about obfuscating too much and breaking my project. Also, could be helpful for distributing to clients a library which they can't decompile.

In terms of obfuscating jars maybe I could do the same to the Market Licensing code to protect my paid application from pirating? What are your thoughts on my approach? Maybe bad idea? What experiences have you had with obfuscating your application? Is it not as bad as I think?

Android :: Wise or not Obfuscating parts of application?


Android :: Spare Parts Application

Jan 7, 2010

I tried the Search feature to no avail for this particular question. When I originally downloaded the Spare Parts application for my Motorola Droid, it would show the amount of time each program had my phone in 'wakelock'. Ex: Going into the Partial Wake usage would show times. However, lately I noticed going in there this no longer happens... Anyways, just curious if anyone here has any ideas as to why.

View 8 Replies View Related

Android :: How To Exclude Some Parts Of UI From An Application Wide Theme?

Jun 28, 2010

I have a theme in my app that defines a custom color for the background. This is the green you see above the tabwidget. In some of my Activities I'm using a Tabhost for my Layout. Now I get something like this as a result: My tabwidget has a black background and I'm happy with that, but the icons in the tabwidget are transparent and this leads to them showing the green background defined in my style. How can I define the tabhost as not styled and have the transparent icons show the tabwidget the resion on instead of a solid background color?

View 2 Replies View Related

Android :: Compiling And Obfuscating By Command Line

Jul 30, 2010

I am going mad trying obfuscating my projects on Netbeans and it's not reasonable at the moment for me to switch to Eclipse I need a command line script that let me build and obfuscate my APK. Is there some example script, or some tutorial that could help me in this "intent"?

View 24 Replies View Related

Android :: Ant Build With Proguard (per Blog) Not Obfuscating

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

Android :: How To Sort Listview Category Wise?

Sep 24, 2010

I am building an app that will be an Android listview. Each listview object will be a title and a few sub-categories and ratings. I would like the user to be able to sort the listview by these ratings or sub-categories.

View 1 Replies View Related

Android :: Possible To Hook Up To Tv Or Computer Video Wise?

Aug 6, 2010

I'm not sure if it possible but I was curious if any one found a way to hook up the AnDroid threw a USB connect or video out into my TV. I think it would be a great way to watch NFL network and other videos if there was a possible way if not thanks for looking.

View 9 Replies View Related

Android :: Component Wise Program On Market?

Jul 25, 2010

Could developer upload 'component'/SDK to android market? Now it seems only have 2 type: 'application' and 'Game'. I just wonder if android market has the mechanism for developers to upload component-wise programs which can be used in others's application. Then developers may get benefit from earch others. Or Is android provide a easy way to invok and communicate with other application from one application?

View 4 Replies View Related

Android :: Static Methods Or Singletons Performance Wise?

Feb 27, 2009

In an app with a small number of POJOs and lots of helper methods that operate on them, what's better performance-wise: to make the helper classes singletons or to make the methods static?

View 4 Replies View Related

Android :: Add Integer To Screen And Print Answer Loop Wise

Aug 31, 2010

Rather than do this by just creating a lot of strings (which I've already managed), I want to add an integer and then print those list to the screen. At the moment, I'm just trying to get one integer on the screen without even adding it, but the app is "force closed" in the emulator. Why doesn't this work? Add one to it and then print the answer to this for a given loop (say up until 10).

Code:
package com.monkeez.count;
import android.app.Activity;
import android.os.Bundle;
import android.app.Activity;
import android.view.View;
import android.widget.TextView;
public class Count extends Activity {
/** Called when the activity is first created. */
TextView countDisplay;
@Override public void onCreate (Bundle savedInstanceState) { int counter = 1;
countDisplay = new TextView(this);
this.setContentView(countDisplay);
countDisplay.setText("counter here");
} }

The log cat is thus:
09-01 09:54:07.051: DEBUG/AndroidRuntime(279): AndroidRuntime START
09-01 09:54:07.051: DEBUG/AndroidRuntime(279): CheckJNI is ON
09-01 09:54:07.401: DEBUG/AndroidRuntime(279): --- registering native functions ---
09-01 09:54:08.891: DEBUG/dalvikvm(193): GC_EXPLICIT freed 320 objects / 19376 bytes in 109ms
09-01 09:54:09.041: DEBUG/PackageParser(65): Scanning package: /data/app/vmdl48927.tmp
09-01 09:54:09.251: INFO/PackageManager(65): Removing non-system package:com.monkeez.count
09-01 09:54:09.251: INFO/ActivityManager(65): Force stopping package com.monkeez.count uid=10037
09-01 09:54:09.991: DEBUG/PackageManager(65): Scanning package com.monkeez.count
09-01 09:54:09.991: INFO/PackageManager(65): Package com.monkeez.count codePath changed from /data/app/com.monkeez.count-2.apk to /data/app/com.monkeez.count-1.apk; Retaining data and using new
09-01 09:54:10.011: INFO/PackageManager(65): /data/app/com.monkeez.count-1.apk changed; unpacking
09-01 09:54:10.054: DEBUG/installd(34): DexInv: --- BEGIN '/data/app/com.monkeez.count-1.apk' ---
09-01 09:54:10.511: DEBUG/dalvikvm(286): DexOpt: load 169ms, verify 64ms, opt 4ms
09-01 09:54:10.591: DEBUG/installd(34): DexInv: --- END '/data/app/com.monkeez.count-1.apk' (success) ---
09-01 09:54:10.602: WARN/PackageManager(65): Code path for pkg : com.monkeez.count changing from /data/app/com.monkeez.count-2.apk to /data/app/com.monkeez.count-1.apk
09-01 09:54:10.602: WARN/PackageManager(65): Resource path for pkg : com.monkeez.count changing from /data/app/com.monkeez.count-2.apk to /data/app/com.monkeez.count-1.apk
09-01 09:54:10.611: DEBUG/PackageManager(65): Activities: com.monkeez.count.Count
09-01 09:54:10.650: INFO/ActivityManager(65): Force stopping package com.monkeez.count uid=10037
09-01 09:54:11.631: INFO/installd(34): move /data/dalvik-cache/data@app@com.monkeez.count-1.apk@classes.dex -> /data/dalvik-cache/data@app@com.monkeez.count-1.apk@classes.dex
09-01 09:54:11.641: DEBUG/PackageManager(65): New package installed in /data/app/com.monkeez.count-1.apk
09-01 09:54:11.821: DEBUG/dalvikvm(65): GC_FOR_MALLOC freed 6733 objects / 446400 bytes in 140ms
09-01 09:54:12.561: INFO/ActivityManager(65): Force stopping package com.monkeez.count uid=10037
09-01 09:54:12.711: DEBUG/dalvikvm(126): GC_EXPLICIT freed 1940 objects / 106408 bytes in 121ms
09-01 09:54:13.351: WARN/RecognitionManagerService(65): no available voice recognition services found
09-01 09:54:13.831: DEBUG/dalvikvm(65): GC_EXPLICIT freed 4667 objects / 280056 bytes in 173ms
09-01 09:54:13.901: DEBUG/dalvikvm(165): GC_EXPLICIT freed 2326 objects / 125088 bytes in 1059ms
09-01 09:54:14.180: INFO/installd(34): unlink /data/dalvik-cache/data@app@com.monkeez.count-2.apk@classes.dex
09-01 09:54:14.271: DEBUG/AndroidRuntime(279): Shutting down VM
09-01 09:54:14.290: DEBUG/dalvikvm(279): Debugger has detached; object registry had 1 entries
09-01 09:54:14.340: INFO/AndroidRuntime(279): NOTE: attach of thread 'Binder Thread #3' failed
09-01 09:54:15.350: DEBUG/AndroidRuntime(291): AndroidRuntime START
09-01 09:54:15.350: DEBUG/AndroidRuntime(291): CheckJNI is ON
09-01 09:54:15.740: DEBUG/AndroidRuntime(291): --- registering native functions ---
09-01 09:54:16.960: INFO/ActivityManager(65): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.monkeez.count/.Count }
09-01 09:54:17.120: DEBUG/AndroidRuntime(291): Shutting down VM
09-01 09:54:17.170: DEBUG/dalvikvm(291): Debugger has detached; object registry had 1 entries
09-01 09:54:17.250: INFO/AndroidRuntime(291): NOTE: attach of thread 'Binder Thread #3' failed
09-01 09:54:17.301: INFO/ActivityManager(65): Start proc com.monkeez.count for activity com.monkeez.count/.Count: pid=298 uid=10037 gids={}
09-01 09:54:18.611: WARN/ResourceType(298): No package identifier when getting value for resource number 0x00000001
09-01 09:54:18.620: DEBUG/AndroidRuntime(298): Shutting down VM
09-01 09:54:18.620: WARN/dalvikvm(298): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
09-01 09:54:18.680: ERROR/AndroidRuntime(298): FATAL EXCEPTION: main
09-01 09:54:18.680: ERROR/AndroidRuntime(298): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.monkeez.count/com.monkeez.count.Count}: android.content.res.Resources$NotFoundException: String resource ID #0x1
09-01 09:54:18.680: ERROR/AndroidRuntime(298): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
09-01 09:54:18.680: ERROR/AndroidRuntime(298): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
09-01 09:54:18.680: ERROR/AndroidRuntime(298): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
09-01 09:54:18.680: ERROR/AndroidRuntime(298): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
09-01 09:54:18.680: ERROR/AndroidRuntime(298): at android.os.Handler.dispatchMessage(Handler.java:99)
09-01 09:54:18.680: ERROR/AndroidRuntime(298): at android.os.Looper.loop(Looper.java:123)
09-01 09:54:18.680: ERROR/AndroidRuntime(298): at android.app.ActivityThread.main(ActivityThread.java:4627)
09-01 09:54:18.680: ERROR/AndroidRuntime(298): at java.lang.reflect.Method.invokeNative(Native Method)
09-01 09:54:18.680: ERROR/AndroidRuntime(298): at java.lang.reflect.Method.invoke(Method.java:521)
09-01 09:54:18.680: ERROR/AndroidRuntime(298): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
09-01 09:54:18.680: ERROR/AndroidRuntime(298): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
09-01 09:54:18.680: ERROR/AndroidRuntime(298): at dalvik.system.NativeStart.main(Native Method)
09-01 09:54:18.680: ERROR/AndroidRuntime(298): Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x1
09-01 09:54:18.680: ERROR/AndroidRuntime(298): at android.content.res.Resources.getText(Resources.java:201)
09-01 09:54:18.680: ERROR/AndroidRuntime(298): at android.widget.TextView.setText(TextView.java:2817)
09-01 09:54:18.680: ERROR/AndroidRuntime(298): at com.monkeez.count.Count.onCreate(Count.java:19)
09-01 09:54:18.680: ERROR/AndroidRuntime(298): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
09-01 09:54:18.680: ERROR/AndroidRuntime(298): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
09-01 09:54:18.680: ERROR/AndroidRuntime(298): ... 11 more
09-01 09:54:18.940: WARN/ActivityManager(65): Force finishing activity com.monkeez.count/.Count
09-01 09:54:19.470: WARN/ActivityManager(65): Activity pause timeout for HistoryRecord{43fb6718 com.monkeez.count/.Count}
09-01 09:54:19.550: INFO/ARMAssembler(65): generated scanline__00000077:03515104_00000000_00000000 [ 33 ipp] (47 ins) at [0x2de138:0x2de1f4] in 602730 ns
09-01 09:54:22.523: WARN/InputManagerService(65): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@43f92978
09-01 09:54:22.681: INFO/Process(298): Sending signal. PID: 298 SIG: 9
09-01 09:54:22.826: INFO/ActivityManager(65): Process com.monkeez.count (pid 298) has died.

And the Count Manifest.xml is thus:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.monkeez.count"
android:versionCode="1" android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".Count" android:label="@string/app_name">
<intent-filter> <action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter> </activity> </application>
<uses-sdk android:minSdkVersion="8" /> </manifest>

It seems that the parser on this site doesn't like to render my xml file - you can see it at
http://pastebin.com/raw.php?i=W75ak3E9

View 2 Replies View Related

HTC Desire :: Need Backup Wise

Sep 20, 2010

My fingers are crossed that orange release 2.2 update this week. What do I need to do backup wise and how? Or do I have to start again from scratch once I have the new software?

View 1 Replies View Related

HTC Droid Eris :: NYT Article Gadget Wise

Apr 22, 2010

In the business section of the NY Times today, under the Gadgetwise section, there is an article on the Incredible and the new features it has. Only problem is that the picture next to the article is the Eris!! Unless the Incredible now comes with a trackball and hard keys.

View 1 Replies View Related

Android :: Splitting Screen Into Two Parts

May 26, 2010

I need to split the Android screen into two parts and run 2 applications (app A and app B) simultaneously. App A will run on screen 1 and App B will run on screen 2. Both are visible to the users. I need to implement this thing in the Android Framework. I do not know much about the android framework and this is urgent and should be done on android 2.1. Is this possible, if yes please explain the procedure to achieve this.

View 2 Replies View Related

HTC Droid Eris :: Reorder Contact List Priority Wise Possible?

Sep 24, 2010

Is there a way to reorganize the contact someway other than Alpha? Like is there a way to assign a priority or something?

View 2 Replies View Related

Android :: Split The Screen In 2 Equals Parts With 2 Listviews

Oct 19, 2010

I'm trying to put 2 listviews into my layout. The problem is that I don't know the size of each listview in advance. The first listview could have a few items (0, 1, 2 up to roughly 10) and the second listview could have many items (up to 100).

I tried to set the weight of both listviews at 1 but it did not work:

=> If the first listview has only 1 item and the second one 99, you don't see the first item of listview #1 => it's shrinks so much (relative to listview #2) that you don't see it.

So I'm thinking now to split the screen in 2 equals parts (no matter what/no matter the size of each listview) and put the two listviews in each part. Of course it needs to work on any device ... so how do I capture the device screen size, divide it in two and force the listview size to fit in each half of the screen ?

Has anyone done that already ? Is there another option to show two listviews of different sizes on the same layout (should I use a scrollview in some way ? => when the user is reaching the end of the first listview, the second listview appears => is that possible ?)

View 2 Replies View Related

Android :: Layout Division - Divide Screen To Two Parts

Nov 22, 2010

I want to divide my screen to two parts,i have a linearLayout and it contains two linearLayouts again. How to divide these two linearLayous into two equal parts.

View 2 Replies View Related

Android :: What Options Have To Show Sentence Parts With Different Color?

May 26, 2010

I have a longer sentence >200 characters. I need to show on the screen having parts of them in different color, like highlighting search results, each with different color. The text should auto wrap with screen width, and have no break sections between parts. I meant with this that I can put sections on a new line. They will have to continue the previous section, only wrap when the screen is off.

The best would be an EditText, as I need to allow editing also, but I am wondering I am able to change the color of various sentence parts, or just as a whole. What do you think, with what UI elements can I achieve this view?

View 2 Replies View Related

Sony Ericsson Xperia X10 :: Is Phone Solid Hardware Wise / With Build Quality?

Aug 7, 2010

I am in between phones right now, and no longer have a N1 and am looking to replace it with another Android phone without switching carriers from AT&T.They currently have the HTC Aria(I have no interest in), the Samsung Captivate(Galaxy S), and will soon be getting the X10.This phone has been out for some time in EU/Asia and Canada for a bit, and I am fairly familiar with it. It seems the bad points are no multi-touch ever, Android 1.6 with a who knows for sure on Android 2.x, but the rest seems fairly solid. Most of the reviews are from when it first came out, and generally complain about the GUI being slow.My questions are basically:

1. Is the phone solid hardware wise, with build quality etc? I know it's mostly plastic, but does it feel cheap, hold up well?
2. Has Android 1.6 caused you any problems app wise? I'm fairly certain google navigation works on 1.6, which is a deal breaker for me if it doesn't.
3. How is the GUI, do you enjoy it? I can't stand Samsung's TouchWiz, Moto Blur, and prefer stock Android, but don't mind HTC Sense.
4. I keep reading something about the screen doesn't have all it's colors activated or something? Others say it is amazing. Curious if it is the Super LCD Sony is selling HTC to replace AMOLED.

I know the Galaxy S has a better CPU, GPU(Android isn't much for gaming anyways), more ram, Super AMOLED, blah, blah but their software is terrible and I don't like their form factor.

View 3 Replies View Related

Android :: Rubbing Alcohol / Acetone And Droid Plastic Parts?

Dec 5, 2009

More specifically, the rubber/plastic edge that runs around the keyboard the the edge of the keyboard itself (the piece without the letters). I got a tiny bit of super glue on that rubber/plastic (I'm sure it's plastic but it feels kind of rubbery) edge. I'm debating about trying to remove it (it's almost unnoticeable, except to me, meaning I'll notice it constantly ).I know acetone will remove super glue. I've heard that rubbing alcohol can too, which is why I would try it first (it's less caustic than acetone, less chance of damaging the plastic). Is this a bad idea? Also, if rubbing alcohol works, would the alcohol that's on alcohol wipes (like the screen cleaner wipes) work as well? They're both isopropyl so I don't see why it wouldn't (the concentrations may be different, that's the only thing I can think of). Never applied either of these two things to plastic so I'm not sure what will happen.

View 2 Replies View Related

Android :: How To Break A Large Image Into 8 Equal Parts In Droid

Nov 16, 2010

I just want to break a large image into some equal parts like 4, 6 or 8.
can we do it?
actually i want to store every parts of image as a separate image in my
drawable folder for future use.

View 1 Replies View Related

HTC EVO 4G :: Get Parts Besides Flea Bay?

Oct 13, 2010

Anyone know any good sites to buy HTC EVO parts on or is there a section here that lets you buy/sell? I have somehow managed to break the mic on the phone and have been searching everywhere to find a replacement one other than shelling out more money for a used or damaged one.

View 16 Replies View Related

Android :: Way To Skip Parts Of An Activity Stack When Returning Results In Droid?

Oct 16, 2009

I'm making an app which has a flow roughly as below: User starts on the main screen with an empty list, hits menu, and goes to "add item." (Activity A) User is given a new activity which allows them to specify search criteria, then hits "go" to do a search. (Activity B) User gets a list of results, and can click on one of them to view more details. (Activity C) User sees details of item, and can use a menu item to save it to their list in Activity A. (Activity D) Right now, I am having each Activity call each other Activity for results, and then it is passing the result all the way back up the stack as it returns to Activity A. Is there a way to jump this, since all I want is for a result in Activity D to get to Activity A directly? Note that a user should still be able to navigate backwards (using the back button) through each activity, but if they explicitly save the item in Activity D, I want it to jump straight to Activity A.

View 2 Replies View Related

Android :: Utility In Droid SDK / Java To Replace Parts Of A String Using Placeholders?

Sep 4, 2010

It would work something like this

someUtility.replace ("Hello, my name is {1}. What is your {2}?", "Mark", "name");

View 3 Replies View Related

HTC EVO 4G : Does Handcent SMS Take Up A Lot Of Resources According To Spare Parts

Aug 10, 2010

I've noticed that when the setting for Handcent SMS has the Blinking LED to "Fast", "Normal", or "Slow" it'll eat up resources and takes up +80% of the Partial Wake Time Usage according to Spare Parts. I've noticed this with 2.1, 2.2, and 2.2 again after a hard reset. I'm assuming it's an issue with the last few updates of Handcent as I did not have this problem a month ago.

With it set to "Default" blinking it'll consume normal resources like every other app. Thing is with the "Default" blinking, it just stays green like it's fully charged. I'd appreciate if someone else can look into this and see if this same issue is present for you.

View 7 Replies View Related

Samsung Moment :: How To Decipher 'Spare Parts' App?

Dec 21, 2009

I have been reading the forums since i got my phone, and it has been invaluable. Thanks for all the knowledgeable contributors.One thing that was recommended by several people was to download "spare parts", so I did. That being said, I have no idea what the results mean! For example, if I look under battery history, and other usage, it reads "running (100%) and screen time (100%) I have no idea what that means!

Also people state you can tell which applications are sucking the life of your battery, and I have no idea how to do that.

View 1 Replies View Related

Motorola Droid X :: Spare Parts App - Eating Battery

Aug 14, 2010

I always hear people saying how amazing this app is and how to diagnose what is eating your battery. however I for the life of me can't figure it out. I bet it is super simple, but I just can't see it. Where do I go to see what programs maybe keeping my phone awake...what usage do I look at, what do I press? Also, what settings should I use for it? I am about to go into Verizon today, because my phones voltage is above 4v (I heard that when it is in the 4 range, you may have a bad battery also...), but I want to see the amazingess of this APP that everyone seems to know but me

View 2 Replies View Related

Sprint HTC Hero :: Spare Parts APP Missing / How To Download It?

May 13, 2010

I recently flashed the new Damage Control (2.08) ROM on my Sprint Hero, and i realized the Spare parts app is missing. Is it compatible with Damage Control, and if so how can i download it?

View 3 Replies View Related

HTC Incredible :: Calendar App To Copy Parts Of Detail Section?

Apr 29, 2010

I need a calendar app that will let me copy parts of the detail section.
I create a new event on my computer. The details are usually a few pages long (For business) Google syncs it to the calendar widget. When I open it, I choose edit so that I can get to the copy app. But when I try to copy a section it wants to copy all text or none.
Am I doing something wrong? Is there a better calendar app? I use this feature a few times a day for business. It was easy on my Storm ;p . I want to figure out how to do it on my DIC.

View 2 Replies View Related

Motorola Droid :: Get Spare Parts / Battery Percentage In Marketplace

May 12, 2010

I read online you can turn on battery percentage through Spare Parts. BB1 does have Spare Parts installed, but I cannot find the feature. I also found Spare Parts in the Marketplace, but can't download it. Any suggestions? Main feature I want in BB.

View 4 Replies View Related

HTC Droid Eris :: Spare Parts Affecting Battery Life?

Feb 18, 2010

so I downloaded Spare Parts and changed the window and transition animations to FAST, and it has been going noticeably quicker. My only question is if changing the speed will affect my battery life?

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved