Any interest in accessing our app via intents?

by Sean Hodges » Thu, 25 Feb 2010 19:27:08 GMT


Sponsored Links
 Hey Al,

The service looks very cool. I guess the problem that I have is
figuring out a real world use for it...

Obviously I wouldn't expect you to do my thinking for me :) But what
would be REALLY useful is if you could post up a few fictitious (or
even real life) use cases, perhaps on the site, to showcase the
potential of the platform (similar to the ones in here:
https://wiki.ubuntu.com/BulletProofX). The format doesn't really
matter, but example scenarios are what really get people excited about
this kind of technology... Personally, I've found example use cases
very useful when determining where a technology might be of use to me.
Just an idea anyway.

With regard to the intents survey: I always prefer if intents are
provided, if for no other reason than they help make the intent
framework more powerful. At present I personally have no immediate
requirement for an intent API though.

Sean




>



Any interest in accessing our app via intents?

by Al Sutton » Thu, 25 Feb 2010 19:49:18 GMT


 Hi Sean,

Thanks for the tips, I expect some example use cases will bubble up as
developers think "Hey, I could do ... with that" :)

A couple that I thought of were;

- Bill splitters: One person pays the bill then the splitter app gets
PortaPayments to generate a QR code so the others can scan it and pay
their share to the bill payer via PayPal.

- Expenses / Finance apps: Once a code has been scanned they could ask
the user if they'd like the payment registered in an account.

I'll keep cranking my brain, but if I'll all ears if anyone has any
suggestions for what could be done to make PortaPayments more useful
to their app :)

Al.





> >


Sponsored Links


Other Threads

1. Nested LinearLayouts aren't inflating as expected.

I'm trying to create a compound view using some  wrapping some
ImageViews.  Below I've abstracted files and the parts of my code that
I think are relevant.  My problem is that the ImageViews don't show up
in the layout.  Using hierarchyviewer I can see that the hierarchy of
views is correct but all of the nested LinearLayouts and ImageViews
have the same absolute_x and absolute_y coordinates which would seem
to be wrong.  I don't understand why the inflater in MyCompundView
doesn't layout the LinearLayouts and ImageViews horizontally or
vertically as it should.

I've been scouring the android docs, group lists and asking about this
on IRC for a couple of days but no luck.  Learned some great UI stuff,
but unfortunately nothing that's helped me solve this so far.  Any
help here would be greatly appreciated.

TIA - iPayne


[Note: I'm happy to provide more detail below, but I was trying to
keep it as clear as possible.]

*** MyActivity.java ***
public class MyActivity extends Activity {

        private MyCompoundView mcView = null;
        private TextView tView1 = null;
        private ListView lView = null;
        private TextView tView2 = null;

        @Override
        public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.my-activity-layout);

                mcView = (MyCompoundView)findViewById(id.my-compound-view-id);
                tView1 = (TextView)findViewById(id.tview1-id);
                lView = (ListView)findViewById(id.lview-id);
                tView2 = (TextView)findViewById(id.tview2-id);
        }
        //...
}


*** MyCompoundView.java ***
public class MyCompoundView extends LinearLayout {
        private Context c = null;
        private AttributeSet a = null;

        private ImageView iv1 = null;
        private ImageView iv2 = null;
        private ImageView iv3 = null;
        private ImageView iv4 = null;

        public MyCompoundView(Context c, AttributeSet a) {
                super(c, a);
                this.c = c;
                this.a = a;

                LayoutInflater li = (LayoutInflater)context.getSystemService(
                                                                                
Context.LAYOUT_INFLATER_SERVICE);
                li.inflate(R.layout.my-compound-view-layout, this, true);

                // dont see these...
                iv1 = (ImageView) findViewById(R.id.iv1-id);
                iv2 = (ImageView) findViewById(R.id.iv2-id);
                iv3 = (ImageView) findViewById(R.id.iv3-id);
                iv4 = (ImageView) findViewById(R.id.iv4-id);

                // ... and this has no effect
                iv1.setImageResource(R.drawable.new-image);
                // ...
        }
}


*** my-activity-layout.xml ***
<LinearLayout
        ...attrs>
        <com.mypackage.MyCompoundView
                ...attrs />
        <LinearLayout
                ...attrs>
                <TextView
                        ...attrs />
                <ListView
                        ...attrs />
                <TextView
                        ...attrs />
        </LinearLayout>
</LinearLayout>


*** my-compound-view-layout.xml ***
<LinearLayout
        ...attrs>
        <LinearLayout
                ...attrs>
                <LinearLayout
                        ...attrs>
                        <ImageView />
                        <ImageView />
                </LinearLayout>
        </LinearLayout>
        <LinearLayout>
                ...attrs>
                <LinearLayout
                        ...attrs>
                        <ImageView />
                        <ImageView />
                </LinearLayout>
        </LinearLayout>
</LinearLayout>



-- 

2. Bistro Bot

All this discussion of Applications not appearing on certain phones 
and/or not working on them is making me nervous :). I only have a 
T-Mobile G1 to test with, and the first version of my app did not 
require a connection to my server, so I have no way of knowing who is 
using it, or what they are using.

If anyone on this group has the time to see if my app appears on the 
market for them, and/or test it (especially on different providers/ 
different hardware) I would be very grateful. Please send replies 
directly to me not to this list :).

The app's name is "Bistro Bot", and it is in the "Life Style" section, 
but it's many screens down in both the Top free and Just in sections, so 
searching for it is probably the best bet :).

Thanks,

Brad.





--

3. Setting permissions on radio (chmod /dev/ttyUSB1) in init.rc

4. How to include widgets in an existing android application

5. Using ADT plugin in Eclipse

6. how to know if the device is to be powered off

7. android vibration access