Android Market: server error when "authorizing credit card"

by g1bb » Sat, 21 Feb 2009 02:39:04 GMT


Sponsored Links
 Are you trying to purchase your own app? I got the same error when I
did, but not when I purchased someone else's.



--~--~---------~--~----~------------~-------~--~----~



Android Market: server error when "authorizing credit card"

by Sundog » Sat, 21 Feb 2009 03:21:41 GMT


 Same here.




--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Android Market: server error when "authorizing credit card"

by Robert Green » Sat, 21 Feb 2009 04:00:37 GMT


 Yup, it appears as though you can't buy your own app!  :)





--~--~---------~--~----~------------~-------~--~----~



Android Market: server error when "authorizing credit card"

by acrosser » Thu, 05 Mar 2009 16:00:52 GMT


 Heh... I guess it would create some problems if you tried to purchase
an app with your own account for, say, 1 dollar... So your account is
then $-1.00, Google gets $0.30 and you get the other $0.70, bringing
your own account up to $-0.30. Then if you return the app you would be
refunded $1.00, and Google would take away your $0.70 profit... and
you would be back to $1.00... but it would probably spawn some
infinite loop and all hell would break loose on the Android Market (oh
wait, it already has).


Suggestion: Displaying the message "You may not purchase your own
goods from the Market" would be much more informative than "A server
error has occurred." (Thus avoiding the developer hitting Retry a
bunch of times!) :-)








--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. free vs. paid - what is better revenue model?

ok guys - i'm sure most developers have had to consider this at some
point.

whats a better revenue model?

a) Release free app with certain restrictions, e.g. watermark, time
limit, disabled features and when the product becomes mature release a
paid version e.g. when picSay now >250,000 downloads goes to paid, it
would get 2,500 downloads of the paid app if it had a 1% conversion
rate.

b) Start as a paid app and always be a paid app

c) Release paid and free versions concurrently

Just wondering what you guys all think ...

--~--~---------~--~----~------------~-------~--~----~

2. File Upload Question

I have included my code below.  I have the code working for image
uploads, but was wondering how to get it to work with audio and video
files?  Please let me know if you have any suggestions/tutorials.

                // WORKS WITH JPEG FILE -- String existingFileName = 
"/sdcard/dcim/
Camera/1225231027592.jpg";
                String existingFileName = "/sdcard/Music/kryptonite.mp3"; // 
DOES
NOT WORK WITH MP3 FILE
                File uploadFile = new File(existingFileName);
                FileInputStream fileInputStream = new 
FileInputStream(uploadFile);

                String lineEnd = "\r\n";
                String twoHyphens = "--";
                String boundary = "*****";
                try
                {
                        URL connectURL = new 
URL("http://www.mysite.com/uploads.php");

                        // connectURL is a URL object
                        HttpURLConnection conn = (HttpURLConnection)
connectURL.openConnection();

                        // allow inputs
                        conn.setDoInput(true);

                        // allow outputs
                        conn.setDoOutput(true);

                        // don't use a cached copy
                        conn.setUseCaches(false);

                        // use a post method
                        conn.setRequestMethod("POST");

                        // set post headers
                        conn.setRequestProperty("Connection","Keep-Alive");
                        conn.setRequestProperty("Content-Type","multipart/form-
data;boundary="+boundary);

                        // open data output stream
                        DataOutputStream dos = new 
DataOutputStream(conn.getOutputStream
());
                        dos.writeBytes(twoHyphens + boundary + lineEnd);
                        dos.writeBytes("Content-Disposition: form-data; 
name=\"uploadedfile
\";filename=\""+existingFileName +"\"" + lineEnd);
                        dos.writeBytes(lineEnd);

                        // create a buffer of maximum size
                        int bytesAvailable = fileInputStream.available();
                        int maxBufferSize = 1024;
                        int bufferSize = Math.min(bytesAvailable, 
maxBufferSize);
                        byte[] buffer = new byte[bufferSize];

                        // read file and write it into form...
                        int bytesRead = fileInputStream.read(buffer, 0, 
bufferSize);
                        while (bytesRead > 0)
                        {
                                dos.write(buffer, 0, bufferSize);
                                bytesAvailable = fileInputStream.available();
                                bufferSize = Math.min(bytesAvailable, 
maxBufferSize);
                                bytesRead = fileInputStream.read(buffer, 0, 
bufferSize);
                        }

                        // send multipart form data necesssary after file 
data...
                        dos.writeBytes(lineEnd);
                        dos.writeBytes(twoHyphens + boundary + twoHyphens + 
lineEnd);

                        // close streams
                        fileInputStream.close();
                        dos.flush();

                        InputStream is = conn.getInputStream();
                        int ch;

                        StringBuffer b =new StringBuffer();
                        while( ( ch = is.read() ) != -1 ) {
                                b.append( (char)ch );
                        }

                        String s=b.toString();
                        dos.close();
                }
                catch (MalformedURLException ex) {
                        // Log.e(Tag, "error: " + ex.getMessage(), ex);
                }
                catch (IOException ioe) {
                        // Log.e(Tag, "error: " + ioe.getMessage(), ioe);
                }
--~--~---------~--~----~------------~-------~--~----~

3. onResume called while device is "off" for hours??

4. Could I release a new version of an app under a new name and port existing users for free?

5. Accuracy of sensors such as electronic compass

6. Stopping autoscroll on scrolling up

7. A AndroidDevCamp and an Android Challenge in France