Before his death my partner wrote a wonderful app for me call A
Wallpaper Master in Android 1.5, downloadable from
http://www.advancedappsstore.com/AWallpaperMaster.apk and this app
works, well almost. One of the things I'm trying to modify is how the
Pay For Packages works and for this I need some serious help. Matt
never did anything the simple way if he could find a hard way to do
something!

When someone goes to add a package they can have FREE image packs,
Private image packs secure with a password or Pay for a specific image
pack. Matt wanted to set this Pay for Packs up but never got around to
it so I thought I could modify the program and direct the users to a
PayLoadz.com page to pay and download a code to add the pack through
the Private Packages method that does work. What I've found though was
that I cannot break out of the custom WebView when directing them to
the HTTPS page. I think I've isolated where the activity and intent
are in the frmAddPackages.java file (attached). My problem lies in
modifying this so when the user clicks the package they want  the
actionbox opens as it now does and the users selects YES to add or
Cancel to do nothing. When selecting YES instead of opening :

[syntax="java"]     } else if (PACKAGE_TYPE == "1") {
                            Intent i1 = new
Intent(frmAddPackages.this,
com.advanced.android.awallpapermaster.GetPackages.GoToWeb.class);
 
i1.putExtra("com.advanced.android.awallpapermaster.package",
strings[iPos].replace(" ", " "));
                            try {
                                startActivity(i1);
                            } catch (Exception e) {
                                Utilities.ErrorHandler(e);       [/
syntax]

which resolves to advancedappstore.com/www/mobile/buypackages.php
inside the webview via the GoToWeb.class they instead go to
advancedappstore.com/www/mobile/buypackages.php in the native android
browser. From there I can link the user to whatever package they want
on a HTTPs page.

Yes, I know about the SSLError that is going to be generated but I can
live with that. Right now when the user goes from the buypackages.php
page to the PayLoadz.com HTTPS or PayPal.com HTTPS page all the users
gets is a blank page!

Can anyone help me PLEASE!!!

I've written other small, simple apps using webviews but have never
run across this problem before though I know there is a way to ignore
the SSLError I have not implemented it and I know that there is a way
to ignore it using HTML5 that I've used but I don't control the pages
of PayLoadz or PayPal so can't modify those pages. How can I change
this code to take the user to advancedappstore.com/www/mobile/
buypackages.php in a native browser when the user clicks the YES
button?  :?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to