Project dependency: reusing code and resources from another Android project

by Mark Murphy » Thu, 10 Dec 2009 22:29:37 GMT


Sponsored Links
 > According to

Which gets you little, since you cannot force the user to install A.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com 
Android App Developer Books:  http://commonsware.com/books.html 


--



Project dependency: reusing code and resources from another Android project

by Mark Murphy » Thu, 10 Dec 2009 22:49:37 GMT


 >> Which gets you little, since you cannot force the user to install A.

Which will irritate your users.


Which will irritate your users.

Hence, I stand by my assessment that, while there are ways for B to access
A's resources at runtime, in general, that's not a viable reuse model. You
are trading a trivial development-time inconvenience for a crappy user
experience, which won't be a good trade in most cases.

Your development-time symlink approach is about as good as it gets today,
at least for solo developers.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com 
Android App Developer Books:  http://commonsware.com/books.html 


--


Sponsored Links


Project dependency: reusing code and resources from another Android project

by Mark Murphy » Fri, 11 Dec 2009 03:31:14 GMT


 > Well, in this case you have to go java way:

Moreover, that'll just give you a stream. It won't work for anything that
needs a resource ID, won't support resource sets (e.g., i18n, landscape
vs. portrait), and so on. Unfortunately, Java's "resources" and Android's
"resources" share a name, a very high level concept, and nothing else.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com 
Android App Developer Books:  http://commonsware.com/books.html 


--



Other Threads

1. ActivityGroup: How do I disable the shadow at the top of the window?

Here is the code I use in the parent activity to display a child
activity within a FrameLayout.  However this FrameLayout is just part
of a larger layout and I don't want the shadow that is normally
displayed at the top of an activity's window.  How do I get rid of the
shadow?

Much obliged to anyone who can provide the answer!

Steve


Window w = am.startActivity(id, intent);


        currentView = w.getDecorView();

        if (currentView != null) {
            currentView.setVisibility(View.VISIBLE);
            currentView.setFocusableInTouchMode(true);
            ((ViewGroup) currentView).setDescendantFocusability(
                    ViewGroup.FOCUS_AFTER_DESCENDANTS);
        }


        frame.addView(currentView);

-- 

2. ProgressDialog from within ContentProvider class!

Hi,
I have been stuck at a place , strange, I have a content provider class i.e
class extends ContentProvider, I want to know about the method to show the
dialog to the user when upgrading / creating a content provider or database
from within content provider, I tried many ways for it, but nothing seems to
be working, Can anybody here direct me to the reference or can tell me the
way I can show progress dialog box from within contentprodiver.

Thank You,
Abdul Ma{*filter*}.

-- 

3. ProgressDialog from within ContentProvider class!

4. Testing an Asynchronous Activity

5. Penampakan

6. RA-dream-v1.5.0 ... Masih Hangat lho .....

7. Asik, kita bakal dapet kecanggihan baru:-)