Android :: How To Exclude R.class Files From A Proguard Build

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).

Android :: How to exclude R.class files from a proguard build


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

Samsung Captivate :: How To Exclude Files From Apps?

Aug 15, 2010

I was wondering if there is a way that I can exclude some folders and files from being accessed by the camera app and the gallery app.
I've loaded some R rated movies (Wedding Crashers, Superbad, etc) which contain adult content.I notice that the movies are accessible from the Camera and Gallery apps. I let my kids play games and take pics and dont want them to be able to access these so easily.Are my only options to remove the movies or not let them use my phone?

View 22 Replies View Related

Android :: ANT Build Files Sdk 1.5 And Beyond

Apr 24, 2009

I am in the process of writing some new build files for Android Sdk 1.5 and beyond.

My question is every tool-IDE plugin the same in that they do not contribute the ANT task libs to the IDE ant editor and thus have to manually set the paths in each IDE?

At them moment i know ADT 0.90 pre is but I am assuming that will change as we approach the ADT 0.90 final release.

View 2 Replies View Related

Android :: Eclipse Is Trying To Build Files In .svn Directories - How To Stop

Jul 18, 2009

I'm storing my Android project in a Subversion repository. After recently shuffling a bunch of stuff around I started getting tons of errors like: syntax error entries/project_name/src/.svnline 1Android AIDL Problem syntax error don't know what to do with "" entries/project_name/src/.svnline 28Android AIDL Problem etc.

It seems as if Eclipse is trying to build the files in the .svn directories now. This setup used to work fine.

View 7 Replies View Related

Android :: How To Include Non Class Files In APK?

Jul 7, 2010

More specifically, have the files show up: /data/data/com.mydomain.foo/media/foo.js
Is this something I would have to provision programatically at runtime?

View 5 Replies View Related

Android :: Can Run Java Class Files

Jul 9, 2009

There are a lot of language which compiles into Java class files when can run on JVM (e.g. JRuby, Scala, Rhino). Can you please tell me if I can take those class files (compiles by the JRuby/Scala/Rhion compiler) and run it on Android platform?

View 2 Replies View Related

Android :: Eclipse Fails To Build Workspace On Large Files?

Jul 9, 2010

i have a severe problem with eclipse, where i need to compile a somewhat larger class. by "larger" i mean, the class has about 5000 lines of code... problem is that on saving this project, eclipse takes several seconds (30-40) to "build the workspace". to be exact, it says "50%" and keeps saying that for 30-40 seconds. then, it breaks with the following error:

[console]:
[2010-07-09 15:28:39 - Dex Loader] Unable to execute dex: null
[2010-07-09 15:28:39 - myProject] Conversion to Dalvik format failed: Unable to execute dex: null
[problems window]:

Conversion to Dalvik format failed: Unable to execute dex: null this error is reproducible and keeps popping up until i comment out several thousands LOC, so that the file still has this 5k LOC, but ~2000 of them are comments. THEN it works...

i know that 5000 LOC are no really good programming style, but i need to do it this way for now ... (i have to write this much records to a sqlite database and since sqlite doesnt feature multiple sql-queries in one rawQuery-command i have to execute a single rawQuery() for each and every data record i need to push into the db.... - until i write a file reader to read this data from a file (that needs verification etc)), i'm stuck with this solution...)

View 1 Replies View Related

Android :: Eclipse Deletes Java Files On Build Of Project

Sep 21, 2010

I have an interesting problem. I pull down an android project from cvs, which works fine. Once Eclipse builds the project, my .java files are removed. XML files, pngs, everything else is fine. I seem to be left with just the package tree, but no source files. Any thoughts?

View 1 Replies View Related

Android :: Eclipse Project - No Class Files Specified

Feb 19, 2009

I've noticed that then I use "clean" from Eclipse project menu on my project I receive following error
[2009-02-19 09:55:02 - MyListView] no classfiles specified [2009-02-19 09:55:02 - MyListView] Conversion to Dalvik format failed with error 1

Project doesn't use any external jars and rather simple. If I uncheck build automatically and build it - it builds and runs just fine. I'm on MacOSX 10.5.6 and JDK 1.6.0_07. And latest android SDK ( android-sdk-mac_x86-1.1_r1.zip 79046151 bytes becf0f1763d61eedce15d2a903d6c1dd )

View 2 Replies View Related

Android :: Proguard And The Licensing Server

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

Android :: All .class Files In My Java Application Loaded Into Memory After Appliaction Start?

Feb 3, 2010

I am making an app for Android, in my Activity I need to load an array of about 10000 strings. Loading it from database was slow, so I decided to put it directly into one .java file (as a private field). I have about 20 of these classes containing string arrays and my question is, are all the classes loaded into memory after my application is started? If so the Activity in which I need these strings would be loaded quickly, but the application as a whole would have a slow start...

Is there other way, how to very quickly load an 10000 string array from a file?

UPDATE:
Why I need these strings? My Android app allows you to find "journeys" in Prague's public transit - you choose departure stop, arrival stop and it finds your journey (have a look here). My app has a suggestions feature - you enter leter "c" as your departure stop and a suggestions ListView appears with stops starting with "c". For these suggestions I need the strings. Fetching the suggestions from database is slow (about 400ms on G1).

View 4 Replies View Related

Android :: How To Debug With Obfuscated With ProGuard Applications

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

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 View Related

Android :: Turn Off All Droid ProGuard Features Except Obfuscation?

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

Android :: How To Set Up ProGuard In Eclpise When Exporting A Signed - Obfuscated Application?

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

Android :: Android - Use One SQLiteOpenHelper Class For Multiple Database Files

Nov 20, 2010

My app uses two databases (separate files). To handle these databases I have created two Helper classes which extend SQLiteOpenHelper, one for each database.

I am now going to add a third database and wonder whether I need to create yet another Helper class (and if I used a 4th and a 5th database would I need even more Helper classes), or can I use the same Helper class for multiple databases?

The problem that I see with trying to use just one Helper class is that I can't see how to pass the name of the individual database files to the Helper. At present the name of the database is hard-coded as a Static field of each of the Helper classes, but if I had only one Helper class I would need to be able to pass the different names in to the Constructor when creating the separate Helper objects; the problem is that the SQLiteOpenHelper Constructor seems to be called by Android with just one parameter: the Context.

View 2 Replies View Related

Android :: Build Error Build/core/java.mk:20 On 2.2

Jun 24, 2010

I downloaded the Android 2.2 source code and try to build it. When I executed the make command, I got an error here like this build/core/java.mk:20: *** frameworks/ex/common: Invalid LOCAL_SDK_VERSION '8' Choices are: current 4 5 6 7. Stop. Then I changed the frameworks/ex/common/Android.mk to LOCAL_SDK_VERSION = 8 from LOCAL_SDK_VERSION = 7. Next place, build/core/java.mk:20: *** external/jsr305: Invalid LOCAL_SDK_VERSION '8' Choices are: current 4 5 6 7. Stop. I changed the external/jsr305/Android.mk to LOCAL_SDK_VERSION = 8 from LOCAL_SDK_VERSION = 7

Last one, build/core/java.mk:20: *** external/guava: Invalid LOCAL_SDK_VERSION '8' Choices are: current 4 5 6 7. Stop. I changed the external/guava/Android.mk to LOCAL_SDK_VERSION = 8 from LOCAL_SDK_VERSION = 7
By these changes the code started the compilation.

1. Why the error occured?
2. Changes which I did is correct or not?

View 3 Replies View Related

Android :: Android ProGuard Settings Use With App - Uses Licensing Server To Not Force Close

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

Android :: Does Specifying 2.2 Exclude Any Devices?

Jun 7, 2010

On my app I recently went from: I wonder if specifying this could have caused restrictions for some devices? As there has been a marked drop in usage stats since I made this release. Code...

View 4 Replies View Related

Android :: Way To Exclude Folders From Programs?

Dec 4, 2009

Does anyone know of a way to exclude folders from programs such as the music app, or tunewiki. I have some audio books i dont want the phone to see in the music folder, rather only in my audio book player. both of the files are in mp3 format.

View 7 Replies View Related

Android :: Want To Exclude Application From Launcher

Jul 14, 2010

How do I exclude an application from appearing in the Application Launcher. The code below is used to add on to the launcher but when I exclude it, the launcher still appears. Code...

View 1 Replies View Related

Android :: How To Exclude Your Own App From Share Menu?

Oct 31, 2010

The app has an intent filter to allow it to appear in the share menu in other applications via ACTION_SEND intents. The app itself also has a share menu using ACTION_SEND and create Chooser(), and my app appears in the list. Since they are already in my app it seems strange to have them be able to share back to itself. Is there a way for my app not to appear in the list if it's being called from my app?

View 1 Replies View Related

Android :: Creating A New Class Using Eclipse New Java Class Dialog Box

Jul 7, 2010

I'm creating a new class, using eclipse "New Java Class" dialog box. I can write the superclass I want (I can't find using "browse" button), but I can't write or select an interface to implement. I click "add" but ther is nothing to select. What I'm doing wrong?

View 4 Replies View Related

Android :: Exclude Resources From Generate Sources

May 31, 2010

Could someone give me an idea about how to exclude using maven, some resources. I have a lot of languages in my project and I want to make build only for 3 languages for example. I have create the pom file and when I make the apk, all resources are copy by default(resources:resources,"Copying 122 resources"). Can I make in any way to create the apk only with the language resources that I want?

View 3 Replies View Related

Android :: Communicating Between Receiver Class And An Activity Class

Jul 14, 2010

I'm just getting into Android development, and I have a question about communicating between a receiver class and an activity class. I'm very new to JAVA and Android so I hope I don't sound too stupid. I'm developing an application where I intercept an SMS message and then based on various elements of that SMS I might delete it once it's been saved to the inbox. I have a receiver class that intercepts the txt message, and I am also able to delete messages from my inbox with code in the activity class using a button at the moment. The problem I have is communicating between the receiver class and the activity class where the code to delete a message resides. I tried putting that code directly into the receiver class but as I'm sure most of you already know the BroadcastReceiver class doesn't seem to support what I need to delete messages. I've been searching for an answer to this for a while, but haven't been able to find anything. Honestly I'm not sure I know enough about JAVA and Android to even recognize a solution if I saw it.

View 2 Replies View Related

Android :: Accessing Class Level Stuff From Inner Class

Jun 27, 2010

What I want to do, is be able to access the object neoApi inside the Neoseeker class, from its inner class RunningTimer. Now, in my code, you can see what I would think to work, but when I run my application, nothing pops up. Nothing inside my TextView, no Toast, nothing at all. How can I remedy this?

package com.neoseeker.android.app;
import java.util.Timer;
import java.util.TimerTask;
import org.json.JSONObject;
import android.app.Activity;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;.......................

View 1 Replies View Related

Android :: Access Application Class From Class Other Then Activity

Sep 8, 2010

I'm new to Java and android development. In my application I need data which is accessible for a few activities. I've read that a good solution is to use Application class for this. So I use it like this:

public class MyApplication extends Application {
private String str;
public String getStr(){
return str;
}
public void setStr(String s){
str = s;
}
}

and I can access this variable from activity like this:........................................

View 2 Replies View Related

Android :: Call Activity Class From Other Java Class?

Oct 8, 2010

I have just started android. I just want to know that how can i call activity class from other java class. i just want to pass class object to activity class.

public class GsonParser extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
MagazineThread thread=new MagazineThread();
thread.start();
}
public GsonParser(JsonMagazineParser Obj)
{

}
}

and i am just doing like from other class. GsonParser obj=new GsonParser(this);passing obj to activity class.how can i achieve that.

View 1 Replies View Related

General :: Build Kernel MT6577 - Can't Boot After Build

Feb 21, 2013

I have a phone with a MT6577. The vendor (Wiko) published the kernel source code. So, i'm trying to build it. I can get the zImage. I converted it to boot.img but i can't boot with it on my phone.build a good zImage? (if you want to try) : URL...

cp mediatek-configs .config
TARGET_PRODUCT=s9081 MTK_ROOT_CUSTOM=../mediatek/custom make
# sudo mtk-tools/repack-MT65xx.pl -boot zImage boot.img-ramdisk boot.img
MTK-Tools by Bruno MartinsMT65xx repack script (last update: 27-01-2013)
Repacking boot image...
Ramdisk size: 2046 blocs
Repacked boot image into 'boot.img'.

Here are the Warnings I got when compiling

mediatek/platform/mt6577/kernel/drivers/video/tvc_drv.c:61:5: warning: "FIXED_WVGA_PARAMS" is not defined
net/ipv4/tcp.c: In function 'tcp_nuke_addr':
include/net/ipv6.h:338: warning: 'in6' may be used uninitialized in this function
net/ipv4/tcp.c:3367: note: 'in6' was declared here
In file included from net/ipv4/netfilter/ipt_LOG.c:27:
include/net/netfilter/xt_log.h: In function 'sb_close':
[code]....

View 9 Replies View Related







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