Using Droid-fu

by Marco Rodriguez-Suarez » Tue, 08 Mar 2011 05:38:49 GMT


Sponsored Links
 Hello everyone,
                       I'm trying to use the droid-fu libraries in my
project but I guess I have no idea what I am doing. I plan on using
BetterAsyncTask to send a couple of images to a server and then have
the program return a response. The problem I am having is after I add
the droid-fu .jar file into my build path. I then try to extend my
main activity as follows

import com.github.droidfu.activities.BetterDefaultActivity;

        public class MainActivity extends BetterDefaultActivity {
        /** Called when the activity is first created. */
        @Override
        protected void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.main);

}
}


Before I even add any code to my project the program crashes if I try
to run it. I get the following exception:


03-02 20:43:47.784: ERROR/AndroidRuntime(3238):
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.marco.servertest/com.marco.servertest.MainActivity}:
java.lang.ClassCastException: android.app.Application

Any help would really be appreciated! I am about ready to give up on
the droid-fu libraries and just use the regular AsyncTask . Do I need
to add anything to my manifest file??

-- 



Re: Using Droid-fu

by TreKing » Tue, 08 Mar 2011 22:28:05 GMT


 On Wed, Mar 2, 2011 at 10:55 PM, Marco Rodriguez-Suarez




Does this library not have a dedicated site / forum? That would be a more
appropriate place for such a question.



Always include the names of Services, Activities, Application, etc, sub
classes.

Your error, in particular, indicates a problem with the app's Application
class.

-------------------------------------------------------------------------------------------------
TreKing < http://sites.google.com/site/rezmobileapps/treking> ; - Chicago
transit tracking app for Android-powered devices

-- 


Sponsored Links


Re: Using Droid-fu

by Sandeep sp » Mon, 25 Apr 2011 20:14:37 GMT


 Hi Mr Marco,

      Did you able to resolve the crash? I Am also facing the same
issue, please let me know. What needs to be done to resolve this
issue?

Regards
Sandeep S.P






-- 



Other Threads

1. LELANG NEW Samsung Epic 4G Start IDR 3.000.000

Dear All,

Mohon izin untuk cross-posting, biar lelangnya lebih terbuka, dan para
bidder bisa memantau harga tertinggi...

http://www.kaskus.us/showthread.php?t=6062678

Terima kasih atas jalumnya

Salam

-- 
===============
"

2. App untuk kontrol pc.

Guys, saya punya komputer yg os nya xp. Biasanya saya pakai untuk download sama 
browsing saja.

Ada kah cara atau app supaya kita bisa kontrol komputer tsb dari dell streak 
ini ? 
aom-bb8800-denpasar

-- 
===============
"

3. (WTS ) HTC evo new

4. [WTS] HTC Evo 4G New

5. Official Froyo for Streak

6. How to read non-english fonts and display in app ?

7. how to publish paid app from INDIA