In App-billing Cycle Question - Java for Android App Development

Hi Guys,
I am developing a word game app similar to 4 pics 1 word and other trivia games.
I have a question on the in-app billing of coins and other items.
I have used the google play apk in my code, and the in-app purchases work fine FIRST time around.
However, when i click on the option i have purchased previously, nothing happens and i receive an error.
For example, If i purchase 100 coins for $1 the first transaction will be fine, and i will receive my 100 coins.
But then if i want to purchase the 100 coins again, it will not try to connect to google play and i will receive an error.
Have pasted the log of the error below:
java.lang.IllegalStateException: Could not execute method of the activity at android.view.View$1.onClick(View.java:3633) at android.view.View.performClick(View.java:4240) at android.view.View$PerformClick.run(View.java:17721) at android.os.Handler.handleCallback(Handler.java:730) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5103) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:525) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:525) at android.view.View$1.onClick(View.java:3628) ... 11 more Caused by: java.lang.IllegalStateException: Can't start async operation (launchPurchaseFlow) because another async operation(launchPurchaseFlow) is in progress. at com.android.vending.billing.util.IabHelper.flagStartAsync(IabHelper.java:794) at com.android.vending.billing.util.IabHelper.launchPurchaseFlow(IabHelper.java:358) at com.android.vending.billing.util.IabHelper.launchPurchaseFlow(IabHelper.java:324) at com.bhn.wordgame.ShopActivity.on2(ShopActivity.java:86) ... 14 more
has a similar issue occurred for any other developers? Cant seem to figure out why this happens
Thanks in advance for your help!

Omar7 said:
java.lang.IllegalStateException: Could not execute method of the activity at
Click to expand...
Click to collapse
Without seeing the code, it's impossible to tell exactly. But it's saying that whatever method your calling cannot be called at that time - either the play library hasn't been initialized yet, or you're not consuming the purchase so that the user cannot buy it again. (See: https://developer.android.com/google/play/billing/api.html)
--Mike.

The problem is this here:
Omar7 said:
Code:
Caused by: java.lang.IllegalStateException: Can't start async operation (launchPurchaseFlow) because another async operation(launchPurchaseFlow) is in progress.
Click to expand...
Click to collapse
So it seems that you're not properly finalizing your previous purchase or you aren't correctly initializing the second payment ( but I have to say, I don't know the library, so can't help you with the details)

Are you executing that in the main thread?

Related

Delayed processing - Handler and a Looper

I'm in a strange position. Here's my Looper class
Code:
[color=RED][b]class[/b][/color] LooperThread [color=RED][b]extends[/b][/color] Thread [color=BLUE][size=+1][b]{[/b][/color][/size]
[color=RED][b]private[/b][/color] [color=RED][b]int[/b][/color] messid [color=BLUE][size=+1]=[/color][/size] [color=BROWN]0[/color][color=BLUE][size=+1][b];[/b][/color][/size]
[color=RED][b]private[/b][/color] [color=RED][b]boolean[/b][/color] notSatisfied[color=BLUE][size=+1][b]([/b][/color][/size][color=BLUE][size=+1][b])[/b][/color][/size] [color=BLUE][size=+1][b]{[/b][/color][/size]
[color=GREEN][i]//some unimportant code goes here
[/i][/color] [color=BLUE][size=+1][b]}[/b][/color][/size]
[color=RED][b]private[/b][/color] String getErrMsg[color=BLUE][size=+1][b]([/b][/color][/size][color=BLUE][size=+1][b])[/b][/color][/size] [color=BLUE][size=+1][b]{[/b][/color][/size]
[color=GREEN][i]//more unimportant code
[/i][/color] [color=BLUE][size=+1][b]}[/b][/color][/size]
[color=RED][b]public[/b][/color] [color=RED][b]void[/b][/color] run[color=BLUE][size=+1][b]([/b][/color][/size][color=BLUE][size=+1][b])[/b][/color][/size] [color=BLUE][size=+1][b]{[/b][/color][/size]
Looper[color=BLUE][size=+1][b].[/b][/color][/size]prepare[color=BLUE][size=+1][b]([/b][/color][/size][color=BLUE][size=+1][b])[/b][/color][/size][color=BLUE][size=+1][b];[/b][/color][/size]
mChildHandler [color=BLUE][size=+1]=[/color][/size] [color=RED][b]new[/b][/color] Handler[color=BLUE][size=+1][b]([/b][/color][/size][color=BLUE][size=+1][b])[/b][/color][/size] [color=BLUE][size=+1][b]{[/b][/color][/size]
@Override
[color=RED][b]public[/b][/color] [color=RED][b]void[/b][/color] handleMessage[color=BLUE][size=+1][b]([/b][/color][/size]Message msg[color=BLUE][size=+1][b])[/b][/color][/size] [color=BLUE][size=+1][b]{[/b][/color][/size]
[color=RED][b]int[/b][/color] max [color=BLUE][size=+1]=[/color][/size] msg[color=BLUE][size=+1][b].[/b][/color][/size]arg1 [color=BLUE][size=+1]*[/color][/size] [color=BROWN]1000[/color][color=BLUE][size=+1][b];[/b][/color][/size]
messid [color=BLUE][size=+1]=[/color][/size] msg[color=BLUE][size=+1][b].[/b][/color][/size]what[color=BLUE][size=+1][b];[/b][/color][/size]
[color=RED][b]try[/b][/color] [color=BLUE][size=+1][b]{[/b][/color][/size]
[color=RED][b]int[/b][/color] count [color=BLUE][size=+1]=[/color][/size] [color=BROWN]0[/color][color=BLUE][size=+1][b];[/b][/color][/size]
[color=RED][b]while[/b][/color] [color=BLUE][size=+1][b]([/b][/color][/size]notSatisfied[color=BLUE][size=+1][b]([/b][/color][/size][color=BLUE][size=+1][b])[/b][/color][/size] [color=BLUE][size=+1][color=BLUE][size=+1]&[/color][/size][color=BLUE][size=+1]&[/color][/size][/color][/size] [color=BLUE][size=+1][b]([/b][/color][/size]count [color=BLUE][size=+1]<[/color][/size] max[color=BLUE][size=+1][b])[/b][/color][/size][color=BLUE][size=+1][b])[/b][/color][/size] [color=BLUE][size=+1][b]{[/b][/color][/size]
count[color=BLUE][size=+1]+[/color][/size][color=BLUE][size=+1]=[/color][/size]waitduration[color=BLUE][size=+1][b];[/b][/color][/size]
wait[color=BLUE][size=+1][b]([/b][/color][/size]waitduration[color=BLUE][size=+1][b])[/b][/color][/size][color=BLUE][size=+1][b];[/b][/color][/size]
[color=BLUE][size=+1][b]}[/b][/color][/size]
[color=BLUE][size=+1][b]}[/b][/color][/size] [color=RED][b]catch[/b][/color] [color=BLUE][size=+1][b]([/b][/color][/size]Exception e[color=BLUE][size=+1][b])[/b][/color][/size] [color=BLUE][size=+1][b]{[/b][/color][/size]
[color=GREEN][i]// TODO: handle exception
[/i][/color] [color=BLUE][size=+1][b]}[/b][/color][/size]
[color=RED][b]if[/b][/color] [color=BLUE][size=+1][b]([/b][/color][/size]notSatisfied[color=BLUE][size=+1][b]([/b][/color][/size][color=BLUE][size=+1][b])[/b][/color][/size][color=BLUE][size=+1][b])[/b][/color][/size] throwError[color=BLUE][size=+1][b]([/b][/color][/size]getErrMsg[color=BLUE][size=+1][b]([/b][/color][/size][color=BLUE][size=+1][b])[/b][/color][/size][color=BLUE][size=+1][b])[/b][/color][/size][color=BLUE][size=+1][b];[/b][/color][/size]
[color=RED][b]super[/b][/color][color=BLUE][size=+1][b].[/b][/color][/size]handleMessage[color=BLUE][size=+1][b]([/b][/color][/size]msg[color=BLUE][size=+1][b])[/b][/color][/size][color=BLUE][size=+1][b];[/b][/color][/size]
[color=BLUE][size=+1][b]}[/b][/color][/size]
[color=BLUE][size=+1][b]}[/b][/color][/size][color=BLUE][size=+1][b];[/b][/color][/size]
Looper[color=BLUE][size=+1][b].[/b][/color][/size]loop[color=BLUE][size=+1][b]([/b][/color][/size][color=BLUE][size=+1][b])[/b][/color][/size][color=BLUE][size=+1][b];[/b][/color][/size]
[color=BLUE][size=+1][b]}[/b][/color][/size]
[color=BLUE][size=+1][b]}[/b][/color][/size]
I want to call a method of a system service which when ready invokes a handle in my code. The problem is that I wanted to make several inquiries to that service one after another but if a previous inquiry has not finished (i.e. invoked a method) then the service just ignores it. So I decided to device a pipeline using Handlers and Loopers. The thing I'm doing in my main class is to post a runnable (with a command to the service) to the handler and then post a message. The message contains the length of the maximum allowed waiting time (if the execution of the runnable exceeds it then it returns an error). The problem is that the wait() statement does nothing. It does not make the Looper wait until notSatisfied() returns false.
Can you propose how to make the Looper wait?
In case you are wondering what the messages consist of. msg.arg1 is the maximum allowed wait time in seconds, msg.what is an index of the service method which I device and it is handled by notSatisfied() and getErrMsg().
look here
http://developer.android.com/intl/de/reference/android/os/SystemClock.html
and
http://developer.android.com/intl/de/reference/android/util/Log.html
remember that wait(1000), means wait for one second...
Thanks. System clock looks promising. I'll try it to see whether it will do the job

MediaRecorder and AudioRecord Problems on 2.1

I've seen evidence of this particular problem on the web, but can't seem to locate the reasons or a solution.
I continue to get errors and force closes trying two seemingly simple methods to record audio on the Android.
First, using MediaRecord:
MediaRecorder mRecorder = new MediaRecorder();
Log.d("com.mydevice.RecordAudio: ", " try to setAudioSource");
try{
mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
}
catch(IllegalStateException e){
//Never get here
Log.d("com.mydevice.RecordAudio: ", " parm set error");
}
//Never get here either
Log.d("com.mydevice.RecordAudio: ", " successfully setAudioSource");
The above results in the following logcat output:
D/com.mydevice.RecordAudio: ( 1623): try to setAudioSource
E/audio_input( 1104): unsupported parameter: x-pvmf/media-input-node/cap-config-interface;valtype=key_specific_value
E/audio_input( 1104): VerifyAndSetParameter failed
D/AndroidRuntime( 1623): Shutting down VM
W/dalvikvm( 1623): threadid=3: thread exiting with uncaught exception (group=0x4001b198)
E/AndroidRuntime( 1623): Uncaught handler: thread main exiting due to uncaught exception
Second method, using AudioRecord:
Log.d("com.mydevice.RecordAudio: ", " try to initialize AudioSource");
AudioRecord mRecorder = new AudioRecord(MediaRecorder.AudioSource.MIC, 8000, AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT, 16384);
Log.d(TAG, " recordStart");
try {
mRecorder.startRecording();
} catch (IOException e) {
Log.d(TAG, " recordStart IOException");
}
This results in the following:
D/com.mydevice.RecordAudio: ( 1637): try to initialize AudioSource
D/AudioHardwareMot( 1095): Codec sampling rate already 8000
D/Registration Create( 1637): recordStart
D/Registration Create( 1637): recordStart IOException
From the documentation, I understand that these methods won't necessarily work in the emulator (though I did enable audio and camera in my VMs, just in case), and some people on the 'net indicated that even with emulator errors, a physical phone worked. But, running the two methods above on my phone results in the same errors indicated in the emulator logcat output, with the same force closes.
I am using the SDK revision 5, and tried Android 1.5 (just to try) and 2.1 emulators. I made sure the following was in my manifest:
<uses-permission android:name="android.permission.RECORD_AUDIO" />
I loaded it onto my Motorola Droid 2.1, with Cyanogen 5.0.7.1 and still the errors.
Does anyone have any idea how, or if I can resolve this? I feel like an idiot since it seems so simple...
LOL! Turns out I was being an idiot.
The unsupported parameter message when calling setOutputFormat, was actually not the problem that was causing the force close. Rather, it was the call to setOutputFile. I found this after laboriously adding log messages after every single call.
I tried both local and external storage and using a string and FileDescriptor and nothing was working. Every time I called that method, I got a force close or caught an error in a try/catch. I finally found an example that was sending the correct context. Since I had separated this process from the UI, what I needed to to was instantiate my class with the application context like so:
MyRecordClass(this.getApplicationContext());
and within the MyRecordClass constructor, MyRecordClass(Context context):
this.context = context;
Even though calls to FileOutputStream and getFD() actually still created an empty file without the proper context, the MediaRecorder was obviously crashing and must be due to some sort of context disconnect. Apparently, by adding the above, and now in what I'm guessing is the proper context and even though I still encounter that unsupported parameter error in the logcat, the app continues on without a hitch and I get a valid recording. Joy!
I have now successfully called this process in another thread and even sending .finish() to the UI activity, the recording continues until it's finished (specified by duration). So, there it is...onward.
AudioRecord Problems
Hi!
After a long search on the Internet, I stumbled upon your post about AudioRecord and this gives me hope that my problem might have a solution. I too encountered a problem recording on Milestone (although the code works just fine on Nexus One).
In your reply you mentioned that by setting the correct context you solved it - did it also solve the AudioRecord problem or just the MediaRecorder?
And where did you set a context? From what does your MyRecordClass inherit - Activity? Service?
I am a bit lost here and would welcome any guidance.
Thank you,
Andrey
Hello there, I have a little problem, same like yours, although pass some years.
Meaby u have the solution tothis problem.
Regards!

Manual Nooter 4.5.6 Observations

My first voyage down the rooted path was to put Honeycomb on a microSD card. When B&N came out with the 1.2 update, I downloaded that and decided to go the Manual Nooter route.
First of all, many thanks to all who have worked so hard on this! My first objective was to be able to read Kindle and Nook books on my Nook Color, and that is a cinch now! This Manual Nooter setup is more stable than running HC off a card was, and I can access the stock B&N reader and Kindle and other apps without switching cards and rebooting.
I have had only one problem downloading an app from Market so far. I needed to unmount my card before the app would install, but the dev said that this is an issue with the app, not Nook Color or MN.
Gmail would not work with MN 4.5.6, though it worked with 4.5.2. But I downloaded an updated Gmail from Market, and my Gmail problem was cured.
MN includes some "unadvertised" apps, like Facebook and Twitter. I can't seem to uninstall them. Does anyone know how that might be done?
Overall, I'm a happy camper. But I would like to know how to get rid of Facebook and Twitter.
Have you tried using Titanium Backup to uninstall them?
Windsor1959 said:
MN includes some "unadvertised" apps, like Facebook and Twitter. I can't seem to uninstall them. Does anyone know how that might be done?
Overall, I'm a happy camper. But I would like to know how to get rid of Facebook and Twitter.
Click to expand...
Click to collapse
I'm pretty sure those aren't part of MN. If they are, I don't know what they're stuffed in because there isn't an apk for them.
By the way, gmail worked perfect me right out of the gate.
doncaruana said:
I'm pretty sure those aren't part of MN. If they are, I don't know what they're stuffed in because there isn't an apk for them.
By the way, gmail worked perfect me right out of the gate.
Click to expand...
Click to collapse
Looks to me like Twitter and Facebook were in 4.5.2, but were not included in 4.5.6.
Anyways, if you don't want them, just to go system\app, mount as RW, and delete the apk.
EDIT: oh and for the gmail, I found the upgrade from 4.5.2 to 4.5.6 caused a FC on open. But deleting the cache\data cures it. I guess a re-install also works!
Would I need an app like Root Explorer to be able to mount as RW when I go to system/app? I see that a lot of folks have Titanium backup and Root Explorer, so maybe I'd find them pretty useful.
Thanks for the replies.
Both are well worth the money but imo root explorer is a must buy if you nooter.
Sent from my SAMSUNG-SGH-I897 using XDA App
I installed Titanium Backup, and I was able to uninstall Facebook and Twitter with it. Root Explorer looks like something worth the price, too.
Here's a newbie question: Titanium Backup gave me a window telling me I should activate USB debugging on my Nook Color. I'm guessing that USB debugging involves me connecting my Nook Color to a PC or laptop, but what does it actually mean? Thanks!
Edit: Okay, I found my answer for USB debugging. If I want to use ADB to push things into my Nook, or use Titanium Backup to backup my apps, I'll need to enable USB debugging. (Does that sound right?)
Apps force closing
I've rooted the NC since I first got it and tried all different versions when I finally settled on AutoNooter and loved it. When the 1.2 update came out I updated and hated the stock version so went with ManualNooter as soon as it was "kind of up and running OK". The NookHome app takes care of the In-Store stuff. Thanks to everyone working on all of these updates.
The problem I had was that GoogleSearch bar and News and Weather app would force close. Managed to fix the GoogleSearch bar with the FakeGPS app. works fine now. ---- Still have the News and Weather app which came with the installation .zip 4.5.6 in MN force closing though. Tried force-stop and clear Data didn't do anything.
Can't find it on Market either so I could reinstall it. Anyone have ANY ideas? I always loved that app on previous versions and would like to use it.
andream2g said:
I've rooted the NC since I first got it and tried all different versions when I finally settled on AutoNooter and loved it. When the 1.2 update came out I updated and hated the stock version so went with ManualNooter as soon as it was "kind of up and running OK". The NookHome app takes care of the In-Store stuff. Thanks to everyone working on all of these updates.
The problem I had was that GoogleSearch bar and News and Weather app would force close. Managed to fix the GoogleSearch bar with the FakeGPS app. works fine now. ---- Still have the News and Weather app which came with the installation .zip 4.5.6 in MN force closing though. Tried force-stop and clear Data didn't do anything.
Can't find it on Market either so I could reinstall it. Anyone have ANY ideas? I always loved that app on previous versions and would like to use it.
Click to expand...
Click to collapse
Hrm... I was of the understanding that News and Weather was FCing because there was no location. This isn't the case if you're using FakeGPS perhaps you could grab and post a logcat from when trying to run it?
I'm also experiencing this with News and Weather. I just installed Fake GPS and it took care of the Google search issue I also had. I went from a stock 1.2 to 4.5.6.
Also anyone had any luck with HBO GO app? It isn't listed in market, but I tried to download from Android site and it says I have no Android phone in my account......
GabrialDestruir said:
Hrm... I was of the understanding that News and Weather was FCing because there was no location. This isn't the case if you're using FakeGPS perhaps you could grab and post a logcat from when trying to run it?
Click to expand...
Click to collapse
I appologize if this log isn't quiet what you had in mind. It seems to forceclose because it can't get a location. Maybe I need to find something else to fake a location.
Here is a log:
cmp=com.google.android.apps.genie.geniewidget/.activities.NewsActivity }
05-09 10:54:40.124 I/ActivityManager( 966): Start proc com.google.android.apps.genie.geniewidget for activity com.google.android.apps.genie.geniewidget/.activities.NewsActivity: pid=1392 uid=10003 gids={3003, 1015}
05-09 10:54:40.407 D/WifiService( 966): ACTION_BATTERY_CHANGED pluggedType: 0
05-09 10:54:40.831 E/AndroidRuntime( 1392): FATAL EXCEPTION: Thread-12
05-09 10:54:40.831 E/AndroidRuntime( 1392): java.lang.IllegalArgumentException: provider=network
05-09 10:54:40.890 W/ActivityManager( 966): Force finishing activity com.google.android.apps.genie.geniewidget/.activities.NewsActivity
05-09 10:54:40.904 I/ActivityManager( 966): Process com.google.android.apps.genie.geniewidget (pid 1392) has died.
05-09 10:54:40.904 W/ActivityManager( 966): Scheduling restart of crashed service com.google.android.apps.genie.geniewidget/.GenieRefreshService in 5000ms
05-09 10:54:40.906 I/WindowManager( 966): WIN DEATH: Window{4a12f678 com.google.android.apps.genie.geniewidget/com.google.android.apps.genie.geniewidget.activities.NewsActivity paused=true}
05-09 10:54:40.960 W/InputManagerService( 966): Got RemoteException sending setActive(false) notification to pid 1392 uid 10003
05-09 10:54:45.921 I/ActivityManager( 966): Start proc com.google.android.apps.genie.geniewidget for service com.google.android.apps.genie.geniewidget/.GenieRefreshService: pid=1409 uid=10003 gids={3003, 1015}
ActivityManager( 966): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.google.android.apps.genie.geniewidget/.activities.NewsActivity }
05-09 10:57:21.527 E/AndroidRuntime( 1409): FATAL EXCEPTION: Thread-12
05-09 10:57:21.527 E/AndroidRuntime( 1409): java.lang.IllegalArgumentException: provider=network
05-09 10:57:21.573 W/ActivityManager( 966): Force finishing activity com.google.android.apps.genie.geniewidget/.activities.NewsActivity
05-09 10:57:21.603 I/ActivityManager( 966): Process com.google.android.apps.genie.geniewidget (pid 1409) has died.
05-09 10:57:21.603 W/ActivityManager( 966): Service crashed 2 times, stopping: ServiceRecord{4a29cc20 com.google.android.apps.genie.geniewidget/.GenieRefreshService}
05-09 10:57:21.613 I/WindowManager( 966): WIN DEATH: Window{4a2f6590 com.google.android.apps.genie.geniewidget/com.google.android.apps.genie.geniewidget.activities.NewsActivity paused=true}
05-09 10:57:21.700 W/InputManagerService( 966): Starting input on non-focused client [email protected] (uid=10049 pid=1038)
05-09 10:57:21.702 W/InputManagerService( 966): Client not active, ignoring focus gain of: [email protected]
05-09 10:57:23.271 W/InputManagerService( 966): Got RemoteException sending setActive(false) notification to pid 1409 uid 10003
05-09 10:57:31.654 I/ActivityManager( 966): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=ukzzang.android.app.logviewer/.act.MainAct }
05-09
i was able to install Galery 3D from Android 2.3 and Gingerbread keyboard as well from this thread http://forum.xda-developers.com/showthread.php?t=880068
Manual Nooter rocks ...
I applied manual nooter 4.5.6 to my stock 1.2 and I can't get any of the GApps to work (Market, Gmail, GSearch, News and Weather). They all just force shut down as soon as they start. I've looked at all the apps in the Application Manager and none of them have anything in the cache. I've tried shutting them all down, clearing the data and rebooting, but I'm still not getting anything.
Looking at the luck people were having with the faked location I enabled Allow Mock Locations in the Development Settings, but I can't find anywhere to actually set the location. Since I can't access the market, and 4.5.6 didn't come up with a file manager I can't load any apps (i.e. FakeGPS). Anyone have any ideas?
I think I figured out what most of my issues were... I hadn't done a thorough enough reset when I un-rooted 1.1 to install the B&N 1.2 update. I used clockwork mod to do a factory reset, reinstalled manual nooter and the GApps that are not location dependent are now working. Weird thing... I had to go through the steps for the partial market display. That worked and I installed Astro File Manager. However, something about doing that killed the Market app... started getting the forced shutdown. Gmail still works and YouTube still works, but the Market won't load anymore.
I am replying to this thread with my experience to perhaps further a solution to the remaining problems. I have been running a Nook rooted with Auto Nooter. When 1.2 came out, I restored it to stock, updated to 1.2 and rooted with 4.5.6. I initially had a visibility problem with the market, but following the instructions at these forums, I cured most of that. I have noticed the following remaining issues:
1. Like everyone else, I have found that News and Weather doesn't work; it simply opens and closes.
2. Regarding the market, even after making the visibility fix, I have the following problems:
--The "downloads" tab in the market showed all but one of the apps that I had purchased before the 1.2 update, etc., but it showed none of the free installs. By going to the market on my computer browser, I was able to see all of the old downloads, including the free ones, and the one paid one that didn't show on the Nook. However, I couldn't download anything from there because it insisted that there was no "phone" associated with this account. Of course, this was easily solved for the freebies by downloading them again.
--This one is truly bizarre. The purchased app that I have not been able to recover is something called iBird Pro (for which there is a corresponding free app). This app worked fine under the Auto Nooter. When I search for "iBird" in the market from the Nook, it returns a pick list that includes the words "IBird", "ibird pro", and other similar words and phrases. If I pick any of these for my search term, it returns a response that there are no matches for the word in the market. This seems impossible since the market is clearly getting my request corrrectly, in fact guessing the word before I finish typing it, and from that point it shouldn't matter what my side of the conversation is doing. Of course, if I try the same thing on my desktop, it returns with a list of programs, including IBird Pro. I have tried getting to the app in others ways, such as searching for "bird." The market returns other matches, but not the one I want. I have tried to get at this app using the website "android zoom". When I have a link sent to my Nook by the android zoom website and try to access the market with it, I get an error message. I tried android zoom with an app I was able to retrieve from the market and it worked. I don't know if this happens with any other app, but I'd be surprised if it did not.
I've done some additional research here as well and what I've discovered is that I'm getting a single download out of the Market. After that the application doesn't seem to run anymore. I've tried redoing the "fix market" steps and rebooting, but after the first market download/install the Market App just won't run anymore. Doesn't seem to matter what the app is either as I've tried a couple. The only similarity so far is that I've stuck with free apps.
Nook Social App broken after root
I read. A lot, which is why I bought the NC. The thing that made me root it was a.) I root everything and b.) email on the NC SUCKED and very few apps (missed my Maildroid). Since I do read and share what I read (I'm a writer by day, tech junkie at night) I'm a little disappointed that NC social sharing app that came with stock is not letting me change the password settings to my FB account. I recently changed my FB password and went into the stock settings to change the pw and I get an, "Invalid Parameters!" message. How do I correct that? It is really important to me to have that feature.

[N2E] Broke stock B&N apps

Just realized that the stock B&N Shop.apk, Library.apk, etc. are broken after a few days of rooting my Nook Touch. The library sync function fails and complains
An Unexpected Error Occurred
Internal error: Exception executing the command
Click to expand...
Click to collapse
For shop, when trying to browse a book or do most of the other things, it says
Sorry, a problem has occurred. Please try again. If you .... for help.
Click to expand...
Click to collapse
When trying to download a recommended book (in the Home screen) after putting in my B&N password, it says
An error occurred processing your request. Please try again
Click to expand...
Click to collapse
Actions in other stock apps requiring checking to B&N and/or entering my B&N password also fail.
This seems to be an authentication problem. I manually rooted the N2E mainly following instructions in http://nookdevs.com/NookTouch_Rooting, enabled android market, replaced the stock kb by the gingerbread kb, and downloaded many apps. I've never checked whether the B&N apps are broken or not until just now (a rookie mistake). Has anyone seen the same problem? Any suggestion?
I found a similar thread for NC, but not sure if it was the same problem. I figure I should ask around before flash back my pre-rooted image to the N2E. Thanks!
OK, I was stupid. I went to my launcher and ran the DeviceRegistrator app. Unregistered user, unregistered device, registered device, and finally registered user.
And just that the problem was solved. I can now run all the stock B&N apps with a hitch.
Good job man, glad you could get it fixed so easily.
nooktouch said:
OK, I was stupid. I went to my launcher and ran the DeviceRegistrator app. Unregistered user, unregistered device, registered device, and finally registered user.
And just that the problem was solved. I can now run all the stock B&N apps with a hitch.
Click to expand...
Click to collapse
And sighs of relief were heard in the nooktouch family abode
jocala said:
And sighs of relief were heard in the nooktouch family abode
Click to expand...
Click to collapse
Not that I really care about buying many books from B&N or using the social function Just that it felt bad to break something and not being able to fix it. I have been happily using Opera Mini and Aldiko to download to and read borrowed books on my N2E from my local library I've also set up ADE to send books to the stock Nook reader and/or Aldiko if I ever want to.
Like the OP, I have problems with the stock Barnes and Noble apps. Unlike the OP, my device and user are registered.
Specifically, shopping doesn't work as I can't search - the app just hangs. I can access my library, and the sync seems to work (however, when there is nothing new to sync the sync button icon just keeps spinning infinitely), but shopping is a no go.
I noticed my "Owner" and "Account" information show as "Unavailable" - maybe these are a factor?
cymoze said:
Like the OP, I have problems with the stock Barnes and Noble apps. Unlike the OP, my device and user are registered.
Click to expand...
Click to collapse
Mine were also registered. But somehow the registration info on my N2E got mangled during my tinkering process.
Specifically, shopping doesn't work as I can't search - the app just hangs. I can access my library, and the sync seems to work (however, when there is nothing new to sync the sync button icon just keeps spinning infinitely), but shopping is a no go.
Click to expand...
Click to collapse
The sync thing was exactly the symptom that I saw. An error message eventually popped up.
I noticed my "Owner" and "Account" information show as "Unavailable" - maybe these are a factor?
Click to expand...
Click to collapse
Mine were available. Did you try my solution?
If that fails, the account info is stored in /data/system/accounts.db . Do an adb pull and you should be able to see and modify the info with sqlite3. Then adb push it back to see if it works. Good luck!
nooktouch said:
Mine were also registered. But somehow the registration info on my N2E got mangled during my tinkering process.
The sync thing was exactly the symptom that I saw. An error message eventually popped up.
Mine were available. Did you try my solution?
If that fails, the account info is stored in /data/system/accounts.db . Do an adb pull and you should be able to see and modify the info with sqlite3. Then adb push it back to see if it works. Good luck!
Click to expand...
Click to collapse
You can also nuke data/system/accounts.db and your nook will reset itself to factory if you do a deregister in settings.
jocala said:
You can also nuke data/system/accounts.db and your nook will reset itself to factory if you do a deregister in settings.
Click to expand...
Click to collapse
I've reset to factory in theory (still get the android screen on occasion after resetting and re-registering) - will the nuclear option totally wipe the root and mod for good or will it still be there? I'd like the TouchNooter to be gone for good. I want a fresh start, for either returning it or trying another TouchNooter install.
Shop still doesn't work after the "factory reset", for what it's worth.
cymoze said:
Like the OP, I have problems with the stock Barnes and Noble apps. Unlike the OP, my device and user are registered.
Specifically, shopping doesn't work as I can't search - the app just hangs. I can access my library, and the sync seems to work (however, when there is nothing new to sync the sync button icon just keeps spinning infinitely), but shopping is a no go.
I noticed my "Owner" and "Account" information show as "Unavailable" - maybe these are a factor?
Click to expand...
Click to collapse
I had similar problems with Owner and Account listed as unavailable all of a sudden. After poking around for a while, I found the reason is because I froze the original Nook browser in Titanium Backup. The app is [Bookmarks]Browser 2.2.1
So what I did was to unfreeze it. Then I re-register the device again by going to NookColor Tools, All Settings and selecting the second Wireless option out of the three Wireless options available. After that the library sync works again!
Hope this helps you out.
pinkowl said:
I had similar problems with Owner and Account listed as unavailable all of a sudden. After poking around for a while, I found the reason is because I froze the original Nook browser in Titanium Backup. The app is [Bookmarks]Browser 2.2.1
So what I did was to unfreeze it. Then I re-register the device again by going to NookColor Tools, All Settings and selecting the second Wireless option out of the three Wireless options available. After that the library sync works again!
Hope this helps you out.
Click to expand...
Click to collapse
Thanks for the go at it - since I already attempted a factory wipe, none of the apps from the mod are accessible. I'm able to re-register now, but the B&N Shop is still messed up and I can't access it .
I'd love to know of a way to get rid of the root completely so I can start all over again.
I have a similar problem. When I open the shop app, it loads for few seconds and then crashes. I can access the shop through the B&N home app and buy books ok. I tried using the register device app but that did not help.
Rooted with TouchNooter 1.6.24
mfreit said:
I have a similar problem. When I open the shop app, it loads for few seconds and then crashes. I can access the shop through the B&N home app and buy books ok. I tried using the register device app but that did not help.
Rooted with TouchNooter 1.6.24
Click to expand...
Click to collapse
Interesting. See, I can neither use the Shop app nor the B&N shop feature. Both kick me out to whatever screen I was at last. Now I can shop if I search for a topic or title by name, but that's the only way. I wonder if it has to do with the B&N "demo" process that's running in the background.
Sent from my NookColor using XDA Premium App
cymoze said:
Interesting. See, I can neither use the Shop app nor the B&N shop feature. Both kick me out to whatever screen I was at last. Now I can shop if I search for a topic or title by name, but that's the only way. I wonder if it has to do with the B&N "demo" process that's running in the background.
Sent from my NookColor using XDA Premium App
Click to expand...
Click to collapse
My behavior is the same as yours. I can access the top 100 list from the B&N home screen app search. However, when I open the shop app it appears to start loading the ads at the bottom and then kicks me out to the last screen. Glad to know I am not the only one.
BTW. When I rooted using touchnooter, the boot process would always hang. I would restart and then the n2e would start just fine. I tried this twice.
I had exactly the same symptoms after using TouchNooter- hangs forever during boot, but pop out the SD, reboot, and everything *seems* to be rooted and working fine, except the B&N Shop is hosed (crashes). I wasn't seeing this after the manual JesusFreke method. Everything works fine when I restore my stock backup, then do a factory reset, but B&N store is hosed every time after TouchNooter. Unregister/re-register doesn't make any difference- I get the same error OP does after restoring my stock or JesusFreke rooted backups, and unregister/re-register or factory reset fixes that. Only reason I went back to stock after JesusFreke's original root was to let TouchNooter get Market working without the manual emulator ID-gen, but maybe I'll give that a shot and see if it B&N Store still works after doing it manually.
Thanks to your ongoing work on the stock B&N apps. To have the ability to have an OC CM7 Nook Color with the Stock apps would be great!
Yes, I'm using the Nook for Android app, but I'd prefer the stock app for the "enhanced content" support.
The other solution would be if the Nook Android app was eventually updated with the same capabilities.
nitzmahone said:
I had exactly the same symptoms after using TouchNooter- hangs forever during boot, but pop out the SD, reboot, and everything *seems* to be rooted and working fine, except the B&N Shop is hosed (crashes). I wasn't seeing this after the manual JesusFreke method. Everything works fine when I restore my stock backup, then do a factory reset, but B&N store is hosed every time after TouchNooter. Unregister/re-register doesn't make any difference- I get the same error OP does after restoring my stock or JesusFreke rooted backups, and unregister/re-register or factory reset fixes that. Only reason I went back to stock after JesusFreke's original root was to let TouchNooter get Market working without the manual emulator ID-gen, but maybe I'll give that a shot and see if it B&N Store still works after doing it manually.
Click to expand...
Click to collapse
I didn't make a backup of my stock Touch ROM before I did the TouchNooter. After nootering, I noticed the Shop problem, which I honestly can't remember checking before I nootered it. When I did my factory reset after nootering, the shop problem was still there and the Android screen was still present.
I'd like to go back and try to wipe everything and try it all fresh, but nothing I do seems to get rid of Android screen, which means the nooter is still there. But besides shop being temperamental, everything works great. I couldn't be happier with the root and the expanded awesomeness of the Touch.
mfreit said:
My behavior is the same as yours. I can access the top 100 list from the B&N home screen app search. However, when I open the shop app it appears to start loading the ads at the bottom and then kicks me out to the last screen. Glad to know I am not the only one.
BTW. When I rooted using touchnooter, the boot process would always hang. I would restart and then the n2e would start just fine. I tried this twice.
Click to expand...
Click to collapse
I have this exact same problem. LOGCAT:
I/ActivityManager( 802): Displayed activity com.bn.nook.shop/.MainActivity: 724 ms (total 724 ms)
I/BnCloudReqSvc( 1047): ---->execute(BnCloudRequest[GPB, GetAllShopMerchandising, 1, 0, 30, HIGH, null])
I/BnCloudReqSvc( 1047): Scheduling request(10) for immediate execution
I/BnCloudReqSvc( 1047): Request[10] execution started.
D/GPBRequestHelper( 1502): ********************
D/GPBRequestHelper( 1502): Starting request: 10
D/GPBRequestHelper( 1502): ********************
D/ShopQuery( 1502): set request id: 10
I/BnCloudReqSvc( 1047): Request[10] processing completed normally.
D/ShopQueryHelper( 1502): Deleting all links
D/ShopQueryHelper( 1502): inserting promo: https://bncs.barnesandnoble.com/renderweb/Merch?a=8382365&d=37
D/ShopQueryHelper( 1502): inserting promo: http://www.barnesandnoble.com/popup_cds2.asp?PID=37924
D/ShopQueryHelper( 1502): inserting promo: http://www.barnesandnoble.com/popup_cds2.asp?PID=37925
D/ShopQueryHelper( 1502): inserting promo: http://www.barnesandnoble.com/popup_cds2.asp?PID=37926
D/ShopQueryHelper( 1502): inserting promo: http://www.barnesandnoble.com/popup_cds2.asp?PID=37927
D/dalvikvm( 1502): Trying to load lib /system/lib/libwebcore.so 0x0
D/dalvikvm( 1502): Added shared lib /system/lib/libwebcore.so 0x0
D/dalvikvm( 1502): GC freed 3157 objects / 223152 bytes in 11ms
W/FileDownloadService( 1502): disregarding blank urls[] remove request
D/WebCore ( 1502): RenderSkinButton::Init: button assets failed to decode
D/WebCore ( 1502): Browser buttons will not draw
D/MainActivity( 1502): -getPromos performedPromoFetch = true
D/dalvikvm( 1502): GC freed 4437 objects / 212024 bytes in 17ms
W/webcore ( 1502): Can't get the viewWidth after the first layout
D/DeviceManagerBroadcastReceiver( 1113): action (com.bn.devicemanager.ACTION_DEVICE_USAGE)
I/DeviceManagerHandler( 1113): HandleMessage(): msg.what (7)
W/dalvikvm( 1502): threadid=23: thread exiting with uncaught exception (group=0x4001b170)
E/AndroidRuntime( 1502): Uncaught handler: thread http0 exiting due to uncaught exception
E/AndroidRuntime( 1502): java.lang.NullPointerException
E/AndroidRuntime( 1502): at android.net.http.CertificateChainValidator.doHandshakeAndValidateServerCertificates(Certifica
teChainValidator.java:135)
E/AndroidRuntime( 1502): at android.net.http.HttpsConnection.openConnection(HttpsConnection.java:306)
E/AndroidRuntime( 1502): at android.net.http.Connection.openHttpConnection(Connection.java:358)
E/AndroidRuntime( 1502): at android.net.http.Connection.processRequests(Connection.java:225)
E/AndroidRuntime( 1502): at android.net.http.ConnectionThread.run(ConnectionThread.java:125)
I/Process ( 802): Sending signal. PID: 1502 SIG: 3
D/EPD#EPD ( 802): resetRegion 4
D/NATIVE-EPD( 802): epd_reset_region: 0x10
D/EPD#EPD ( 802): resetRegion 5
D/NATIVE-EPD( 802): epd_reset_region: 0x20
D/EPD#EPD ( 802): resetRegion 6
D/NATIVE-EPD( 802): epd_reset_region: 0x40
D/EPD#EPD ( 802): resetRegion 7
D/NATIVE-EPD( 802): epd_reset_region: 0x80
D/DeviceManagerBroadcastReceiver( 1113): action (com.bn.devicemanager.ACTION_HANDLE_CRASH)
I/dalvikvm( 1502): threadid=7: reacting to signal 3
I/dalvikvm( 1502): Wrote stack trace to '/data/anr/traces.txt'
W/webcore ( 1502): Can't get the viewWidth after the first layout
D/MainActivity( 1502): ***FINISHED LOADING
I/Process ( 1502): Sending signal. PID: 1502 SIG: 9
I/ActivityManager( 802): Process com.bn.nook.shop (pid 1502) has died.
I/WindowManager( 802): WIN DEATH: Window{49ff3208 com.bn.nook.shop/com.bn.nook.shop.MainActivity paused=false}
V/Activity( 969): performResume()
D/EPD#EPD ( 969): resetRegion 4
D/NATIVE-EPD( 969): epd_reset_region: 0x10
D/EPD#EPD ( 969): resetRegion 5
D/NATIVE-EPD( 969): epd_reset_region: 0x20
D/EPD#EPD ( 969): resetRegion 6
D/NATIVE-EPD( 969): epd_reset_region: 0x40
D/EPD#EPD ( 969): resetRegion 7
D/NATIVE-EPD( 969): epd_reset_region: 0x80
D/EPD#ActivityResume( 969): Disable EPD for 350ms!!!!!!!!
W/InputManagerService( 802): Got RemoteException sending setActive(false) notification to pid 1502 uid 10000
I/UsageStats( 802): Unexpected resume of com.android.settings while already resumed in com.bn.nook.shop
I/DeviceManagerHandler( 1113): HandleMessage(): msg.what (1)
I/global ( 1113): Default buffer size used in BufferedWriter constructor. It would be better to be explicit if an 8k-char buffe
r is required.

Kingmericans H2OS ROM and missing app permissions

Hi all, Im a bit confused and hope someone can point me in the right direction.
I play 8 Ball Pool (the miniclip game, installed from GP Store) however it doesnt run on this app, just force closes when I start up. So I did some digging. I looked into logcat and found this:
Code:
W/ActivityManager( 928): Unable to start service Intent { act=com.google.android.gms.ads.identifier.service.START flg=0x10 pkg=com.google.android.gms } U=0: not found
I/WindowManager( 928): Screen frozen for +1s228ms due to Window{22c3878e u0 Starting com.miniclip.eightballpool}
W/ActivityManager( 928): Unable to start service Intent { act=com.google.android.gms.ads.identifier.service.START flg=0x10 pkg=com.google.android.gms } U=0: not found
This suggests issues with the permissions. So, being Marshmallow I went to settings to the permissions manager, but the app is listed as having 0 permissions. Yet, on the Google Play store listing it should have 7-8. Why would this ROM not be able to see the required permissions? Is anyone else having this problem? Any suggestions on how I might resolve this?
OK, just found out a solution. Disabling location services, everything works as normal. Why would that be affecting this? Is this related to the TapaTalk location issuie? What is the fix for that (beyond disabling location services.)?

Categories

Resources