Version 0.72
1 Generate the text
2 use an activity starter with zxing to pass the text over
3 zxing will do the encoding and display the QR code image.
Yes, Zxing can can encode as well as scan barcodes.
____________________________
Action
com.google.zxing.client.android.ENCODE
ActivityClass
com.google.zxing.client.android.encode.EncodeActivity
ActivityPackage
com.google.zxing.client.android
DataType
DataUri
Hello.
ExtraKey
ExtraValue
_____________________
I received a new error " Could not encode a barcode from the data
provided. "
So just putting the text"hello" in the data URI won't work, but at least It tryed to encode it.
There is lots of info about ZXing here. http://www.openintents.org/en/node/96
Hope you can help as I think I am nearly there.
On Nov 28, 3:53 pm, Anthony Barnes <barnes.t...@gmail.com> wrote:
> Try putting ENCODE_DATA as the extra Key and Hello as the Extra Value. Take
> the text out of the datauri.
>
> Let me know if that works and we can add it to the activity starter tracker
> over on Gene's site taiic.com.
>
>
>
>
>
>
>
>
>
> On Mon, Nov 28, 2011 at 9:20 AM, Paul <a.new.al...@gmail.com> wrote:
> > Hi
> > This looks like the place to be to get some answers.
>
> > I'm wanting my app to generate some text and then display it as a
> > QRcode.
> > I know you can send the text to a web page to encode it, but I'm
> > looking to
> > do it without any Internet connection
>
> > 1 Generate the text
> > 2 use an activity starter with zxing to pass the text over
> > 3 zxing will do the encoding and display the QR code image.
>
> > Yes, Zxing can can encode as well as scan barcodes.
>
> > This Is what I have so far
>
> > ____________________________
>
> > Action
> > com.google.zxing.client.**android.ENCODE
> > ActivityClass
> > com.google.zxing.client.**android.encode.EncodeActivity
> > ActivityPackage
> > com.google.zxing.client.**android
> > DataType
>
> > DataUri
> > Hello.
> > ExtraKey
>
> > ExtraValue
>
> > _____________________
>
> > I received a new error " Could not encode a barcode from the data
> > provided. "
> > So just putting the text"hello" in the data URI won't work, but at least
> > It tryed to encode it.
>
> > There is lots of info about ZXing here.http://www.openintents.org/en/**
> > node/96 <http://www.openintents.org/en/node/96>
>
> > Hope you can help as I think I am nearly there.
>
> --
> tAIR - Main Site <http://www.tair.info/> | tAIR -
> Forum<http://groups.google.com/group/theairepository>
> | tAIR - Code Site <http://code.google.com/p/the-ai-repository> | tAIR
> - Webchat <http://www.tair.info/webchat>
> tAIR Companion App - Download From
> Market<https://market.android.com/details?id=info.tAIR.tAIRApp&feature=searc...>
> Tony Barnes | barnes.t...@gmail.com
> <http://groups.google.com/group/theairepository>
> According to package browser on my htc evo 4g,
> The package should be
> com.google.zxing.client.android
> and the class should be
> com.google.zxing.client.android.encode.EncodeActivity
Yes that's what I have
I'd send the source but I'm just using the Activity Starter.and a
button to start it. everything else I'm putting in the Properties
boxes not the block editor.
cmp=com.google.zxing.client.android/.encode.EncodeActivity (has
extras)
Note the "has extras"
I haven't a clue if that's anything or not!
Back to QRCodes, Any of this mean anything?
___________________________
public static final class Encode {
/**
* Send this intent to encode a piece of data as a QR code and
display it full screen, so
* that another person can scan the barcode from your screen.
*/
public static final String ACTION =
"com.google.zxing.client.android.ENCODE";
/**
* The data to encode. Use {@link
android.content.Intent#putExtra(String, String)} or
* {@link android.content.Intent#putExtra(String,
android.os.Bundle)},
* depending on the type and format specified. Non-QR Code formats
should
* just use a String here. For QR Code, see Contents for details.
*/
public static final String DATA = "ENCODE_DATA";
/**
* The type of data being supplied if the format is QR Code. Use
* {@link android.content.Intent#putExtra(String, String)} with
one of {@link Contents.Type}.
*/
public static final String TYPE = "ENCODE_TYPE";
_______________________________
I don't know java at all, But would it be possible for an app using
the open source of zxing that could sit in-between AI and set the
extra parameters. Or a cut down version of zxing that AI can talk to.
My best workaround is to copy to the clip board then use Activity
starter as follows
_________________________________
Action
com.google.zxing.client.android.View
ActivityClass
com.google.zxing.client.android.Share.ShareActivity
ActivityPackage
com.google.zxing.client.android
DataType
DataUri
Hello.
ExtraKey
ExtraValue
________________________
This opens zxing at the point where you can enter the text. Past it in
and encode it.
What' s your jarva like? An have you had a look at the ZXing Code.
Thanks For trying and If you find anything else let me know
Paul.