Jun 6 | 3:55 PM |
Mark M. | has entered the room |
Mark M. | turned on guest access |
Jun 6 | 4:00 PM |
Ron | has entered the room |
Mark M. |
hello, Ron!
|
Mark M. |
how can I help you today?
|
Ron |
Hi Mark,
|
Ron |
I'm trying to get an API key for my Android project. I have the SHA certificate, but it seems to reject my package id.
|
Mark M. |
um, what API key?
|
Mark M. |
Maps V2?
|
Ron |
Yes.
|
Mark M. |
what do you mean by "seems to reject my package id"?
|
Ron |
There is a red line on the package name after I type it in. Then it comes back and says I have an invalid entry.
|
Jun 6 | 4:05 PM |
Mark M. |
where are you seeing this?
|
Mark M. |
on the "Configure Android Key for API Project"
dialog on the API Console? on the API Access page of the API Console?
somewhere else?
|
Ron |
On the configure Android Key for API project. Typing in the open area, separating the SHA from the package with a semicolon.
|
Mark M. |
well, the red line may just be the spell-checker
or something -- I see that too, having now just added a package to an
existing keey
|
Mark M. |
er, key
|
Mark M. |
however, it still accepted my change (adding foo.bar.goo as a package)
|
Ron |
shakey;com.companyname.appname?
|
Mark M. |
in fact, I can't get it to give me an "invalid entry" even for a bogus package name (e.g,. thisisinvalid)
|
Mark M. |
sans question mark, but yes
|
Mark M. |
XX:C5:81:EB:8A:F4:35:B0:04:84:3E:6E:C3:88:BD:B2:66:52:E7:09;com.commonsware.android.mapsv2.mylocation
|
Jun 6 | 4:10 PM |
Ron |
I'll try it one more time... If you had someone else waiting go ahead with them.
|
Mark M. |
no, you're the only one in the room at present
|
Jun 6 | 4:15 PM |
Ron |
Still getting "Your input is invalid". I had to go to a 2nd line. I just kept typing.
|
Mark M. |
don't put in newlines except between entries -- let it "wrap" for you
|
Ron |
Yup, that's what I did.
|
Mark M. |
hold on, prepping a screenshot for you
|
Mark M. | |
Mark M. |
that's what one of my Configure Android Key for API Project dialogs looks like (with the SHA key smudged, just for paranoia)
|
Mark M. |
I don't have any other advice, really -- it should just work
|
Jun 6 | 4:20 PM |
Ron |
OK, I got a success. I got two different keys for android apps.
|
Ron |
That's because I tried it twice when I couldn't find the browser with the result.
|
Mark M. |
too many browsers, too little time... :-)
|
Ron |
I think I'm good now. Not sure what I did different. But thanks!
|
Mark M. |
yeah, I seem to recall that the API Console behaved a bit squirrelly for me too in the beginning
|
Ron |
It was a good sanity check that I had everything right.
|
Mark M. |
haven't had too many problems recently, so I had chalked it up to bugs from the Console rollout
|
Jun 6 | 4:25 PM |
Ron |
Have a good evening.
|
Mark M. |
you too!
|
Jun 6 | 4:40 PM |
tunneling | has entered the room |
tunneling |
Hello
|
Mark M. |
howdy, tunneling!
|
Mark M. |
how can I help you today?
|
tunneling |
I am working on an app that will use In App purchases to process payments, and then download some digital content.
|
tunneling |
I am trying to come up with a way to isolate the "In app purchasing and downloading" from the main app.
|
tunneling |
My thinking is to use a library project, and then
just point to the library project for the platform (e.g. Amazon) for
which I am compiling.
|
Jun 6 | 4:45 PM |
tunneling |
My questions is on how to design the API for that library project.
|
Jun 6 | 4:45 PM |
tunneling |
project(s)
|
Mark M. |
since I haven't used either Google's or Amazon's in-app purchase APIs, I can't really advise you at the tactical level
|
Mark M. |
I think your library project strategy might work
|
Mark M. |
though you may want to keep one eye out on the new build system, which may give you other options
|
tunneling |
yea, higher up than that. so for example.. I have a
Store Front, and someone clicks the "Buy" button. So far I'm thinking
either using a broadcast intent, or specifying the class name that would
be required for each library project.
|
tunneling |
basically adding the "sku" to the intent, and then it's up to each implementation to take that sku and work the magic.
|
Mark M. |
if you really mean sendBroadcast(), I wouldn't use that, as security is somewhat tricky
|
tunneling |
ok
|
Mark M. |
LocalBroadcastManager or a real event bus, like Otto or greenrobot's EventBus are better choices
|
tunneling |
ok
|
tunneling |
The other challenge I have is going back and forth between the Activities of the library and the main app.
|
tunneling |
I guess I could always use the same class names, but that doesn't seem very elegant
|
Mark M. |
you could use a custom action string, and mark
android:exported="false" on the <activity> to prevent anyone else
from accessing it
|
Jun 6 | 4:50 PM |
Ron | has left the room |
tunneling |
so if a purchase fails, what Activity do I return
to in the main app. if the download completes, and the user clicks on it
in their Notifications, what Activity in the main app will allow them
to interact with the new content.
|
tunneling |
Ok, so using an action string and filters in the manifest?
|
Mark M. |
yes
|
Mark M. |
having an <intent-filter> makes you exported by default, hence the android:exported="false" bit
|
tunneling |
so my API would consist of the action strings, sort of like the write up you did on plugins?
|
Mark M. |
more or less
|
tunneling |
i think i can see it now
|
tunneling |
so how have things been? i haven't been here in a day or two.
|
Mark M. |
things are OK
|
Mark M. |
was a bit short on chats recently due to some travel
|
Mark M. |
things are back on track for the regular two-a-week setup
|
tunneling |
ok, cool.
|
tunneling |
i'm getting ready to try the new beta testing capabilities of google play
|
tunneling |
are you using android studio now?
|
Mark M. |
no
|
Mark M. |
won't touch that for a few months
|
Mark M. |
will start using IDEA 13, though
|
Jun 6 | 4:55 PM |
tunneling |
i tried to install it on my mac, and i couldn't make a new project so i gave up
|
Mark M. |
battle plan is to write up IDEA 13 (for basic
Android integration), then the new build system, then Android Studio,
over the balance of the year
|
tunneling |
For the app I'm working on, I developed some
server side goodness on the app engine. I'm hesitant to switch because I
don't know if IDEA can support the app engine?
|
Mark M. |
no clue, sorry
|
tunneling |
yea. me either.
|
tunneling |
ok, well.. thanks for the help. talk to you again soon.
|
Mark M. |
next chat is Tuesday at 7:30pm
|
Mark M. |
(Eastern)
|
tunneling | has left the room |
Mark M. | turned off guest access |