[Java for Android App Development] yogesh.tandel:
Hi,

My unsigned APK works fine. The login on First screen also works.

But when I sign the APK and install it on a device, the login fails.

I have added the below lines to proguard-project.txt

-dontwarn org.simpleframework.xml.stream.**

-keep public class com.allintravel.mobileagent.activities {*;}

-keep public class com.allintravel.mobileagent.adapters {*;}

-keep public class com.allintravel.mobileagent.anim {*;}

-keep public class com.allintravel.mobileagent.connection {*;}

-keep public class com.allintravel.mobileagent.interfaces {*;}

-keep public class com.allintravel.mobileagent.models {*;}

-keep public class com.allintravel.mobileagent.taskhandler {*;}

-keep public class com.allintravel.mobileagent.util {*;}

-keep public class com.allintravel.mobileagent.views {*;}

-keep public class com.jeremyfeinstein.slidingmenu.lib {*;}

-keep public class com.jeremyfeinstein.slidingmenu.lib.app {*;}

-keep public class com.handmark.pulltorefresh.library {*;}

-keep public class com.handmark.pulltorefresh.library.extras {*;}

-keep public class com.handmark.pulltorefresh.library.internal {*;}

Below are the Errors

04-10 11:54:33.414: W/System.err(7588): java.lang.ClassNotFoundException: com.allintravel.mobileagent.models.ResponseData

04-10 11:54:33.414: W/System.err(7588):	at java.lang.Class.classForName(Native Method)

04-10 11:54:33.414: W/System.err(7588):	at java.lang.Class.forName(Class.java:217)

04-10 11:54:33.414: W/System.err(7588):	at java.lang.Class.forName(Class.java:172)

04-10 11:54:33.414: W/System.err(7588):	at com.allintravel.mobileagent.f.a.a(Unknown Source)

04-10 11:54:33.414: W/System.err(7588):	at com.allintravel.mobileagent.f.a.doInBackground(Unknown Source)

04-10 11:54:33.422: W/System.err(7588):	at android.os.AsyncTask$2.call(AsyncTask.java:287)

04-10 11:54:33.422: W/System.err(7588):	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)

04-10 11:54:33.422: W/System.err(7588):	at java.util.concurrent.FutureTask.run(FutureTask.java:137)

04-10 11:54:33.422: W/System.err(7588):	at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)

04-10 11:54:33.422: W/System.err(7588):	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)

04-10 11:54:33.422: W/System.err(7588):	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)

04-10 11:54:33.422: W/System.err(7588):	at java.lang.Thread.run(Thread.java:856)

04-10 11:54:33.422: W/System.err(7588): Caused by: java.lang.NoClassDefFoundError: com/allintravel/mobileagent/models/ResponseData

04-10 11:54:33.422: W/System.err(7588):	... 12 more

04-10 11:54:33.422: W/System.err(7588): Caused by: java.lang.ClassNotFoundException: com.allintravel.mobileagent.models.ResponseData

04-10 11:54:33.422: W/System.err(7588):	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)

04-10 11:54:33.422: W/System.err(7588):	at java.lang.ClassLoader.loadClass(ClassLoader.java:501)

04-10 11:54:33.422: W/System.err(7588):	at java.lang.ClassLoader.loadClass(ClassLoader.java:461)

04-10 11:54:33.422: W/System.err(7588):	... 12 more

04-10 11:54:33.430: W/System.err(7588): a.a.a.a.ew: Can not instantiate null class

04-10 11:54:33.430: W/System.err(7588):	at a.a.a.a.fy.b(Unknown Source)

04-10 11:54:33.430: W/System.err(7588):	at a.a.a.a.fy.a(Unknown Source)

04-10 11:54:33.430: W/System.err(7588):	at a.a.a.a.eg.a(Unknown Source)

04-10 11:54:33.430: W/System.err(7588):	at a.a.a.a.eg.a(Unknown Source)

04-10 11:54:33.430: W/System.err(7588):	at a.a.a.a.eg.a(Unknown Source)

04-10 11:54:33.430: W/System.err(7588):	at a.a.a.a.eg.a(Unknown Source)

04-10 11:54:33.430: W/System.err(7588):	at a.a.a.a.eg.a(Unknown Source)

04-10 11:54:33.430: W/System.err(7588):	at com.allintravel.mobileagent.f.a.a(Unknown Source)

04-10 11:54:33.430: W/System.err(7588):	at com.allintravel.mobileagent.f.a.doInBackground(Unknown Source)

04-10 11:54:33.430: W/System.err(7588):	at android.os.AsyncTask$2.call(AsyncTask.java:287)

04-10 11:54:33.430: W/System.err(7588):	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)

04-10 11:54:33.430: W/System.err(7588):	at java.util.concurrent.FutureTask.run(FutureTask.java:137)

04-10 11:54:33.430: W/System.err(7588):	at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)

04-10 11:54:33.430: W/System.err(7588):	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)

04-10 11:54:33.438: W/System.err(7588):	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)

04-10 11:54:33.438: W/System.err(7588):	at java.lang.Thread.run(Thread.java:856)

How can I resolve this issue?

Libraries used are

FlurryAnalytics_3.3.4.jar

simple-xml-2.7.1.jar

google-play-services_lib

pull-to-refresh

\jeremyfeinstein\slidingmenu

Thanks