Developing a google play app with HTC Desire - eclipse

I've been a Java developer for 6 years, but this is my first foray into Android, and it's not going well.
I've set up a simple example app which uses google maps api v2 - it's just a single page: I copied it from one of the many helpful sites on this topic.
I then discovered that I can't run it in an emulator since it uses the google maps api v2, which requires google play. So I bought a device (HTC Desire).
Now the device doesn't show up in the eclipse run configuration. It shows up with ./adb devices just fine.
I thought maybe this was because the device is on Android 2.2, and my app has minimum OS level of 4.2. So I tried to upgrade, but I couldn't work out how. In the software / update section on the phone it just says 'no updates available'. Can this be right?
Ok so assuming I can't upgrade the OS (in which case the phone is now useless), I modified the project so the minSdkVersion is now 8. But now my project won't build!
Errors include 'No resource identifier found for attribute 'showAsAction' in package 'android'' - what does that even mean?
And to cap it all the device is now doing the 'buzzing 7 times instead of booting' thing. I can access some menu called HBOOT, and selecting RECOVERY just reboots the machine, which fails.
So now I've spent £50 and several hours, and I haven't even got as far as hello world - just a bricked phone.
What am I doing wrong? Can Android dev really be this hard?

Related

BillingClient.launchBillingFlow() returns "The item you requested is not available for purchase" on one device only, all Google accounts

I am developing an app that uses in-app billing and have been testing on three devices: a Pixel 2 running Android 10, a Samsung Galaxy Note 4 running Android 6.0.1 and a Samsung Galaxy Note 8 tablet running Android 4.4.2. I tested first with the Google test product IDs (android.test.purchased, android.test.canceled and android.test.item_unavailable) and everything ran fine; no problems on any of the devices, so I tested using my real product ID. This time, the app ran fine on the Pixel 2 and the Note 4, but on the tablet, I get the above error when calling BillingClient.launchBillingFlow(). This happens when I'm logged on with all my testing accounts and ONLY on the Note 8.
I searched StackOverflow for this issue but found nothing that matched. Anyone experience the same problem using a 4.4.2 device?
Looks like this was an OS issue. After I was able to re-install the app using the opt-in link (that was a separate issue, resolved only today), the problem disappeared.
This issue happened to me as well and the reason is that your subscription was inactive. It needs to be active in order for the launchBillingFlow to work. Confusingly enough, you can query then and get the information from then correctly while inactive. But, even for testing, they need to be activated in order to test the buying process.

Samsung-TV Tizen web-app not loading in 2015 devices

I have submitted a Tizen smart-TV application to the Samsung store, and during the testing process they found that it doesn't start when installed in 2015 devices (it works in modern TVs).
The application was developed in Tizen Studio with TV SDK 4.0, and the minimum compatible platform version is set in the config.xml to Tizen 2.3 (both values apparently compliant with this compatibility table).
Samsung's feedback is the same for 15TV_STANDARD1, 15TV_STANDARD2, and 15TV_PREMIUM model groups: "Blank screen on launching the app."
Any clue about what can be happening with those TV models? Is there any feature that could be causing the crash?
Without more information is difficult to know what may cause the problem with 2015 TVs.
Your best option would be to debug your application on a 2015 model, although I understand this can be difficult.
One thing you can do is to check the Web Engine Specifications and see the differences between the working and non-working models.
Blank screen most likely just means, that your application died somewhere during the initialization.
Did you by any chance use the getDuid() API during initial application initialization? I has some trouble with that if the display has never been connected to the web, so it threw an exception on that call.
Otherwise, assuming the profile is indeed 2.3, then it should work.

Why isn't my Chrome App in kiosk mode automatically updating?

I have a Chrome app that runs on a few dozen devices in auto-boot kiosk mode.
I've pushed several updates to the web store, and while I do see the update on my local Chromebox after a little bit of waiting, I've come to learn that the many devices running it in kiosk mode are on an array of older versions. Some seem to have updated at some point in time, but many have not, and none are on the latest version that's already several days old.
Is this because they are in kiosk mode? I found this question over on the product forums, but it has no answer. Seems like the behavior I'm experiencing, and if so I could see why this is the case. Still, all of the documentation from Google pertaining to apps suggests they should always be auto-updating themselves.
We had this same issue and luckily have a support agreement with Google. After some log searching, we were able to determine that the kiosk app we were deploying was specifying a kiosk required_platform_version, eg.
"kiosk": {
"required_platform_version": "11021.56.0"
},
While our Chrome devices (ASUS Chromebit in this case) were already beyond the required version specified. As Chrome won't downgrade itself, the new version in the Chrome Web Store is deemed ineligible for this device and upgrades are never applied.
To resolve this issue, we posted a new version of our Kiosk app with this value updated to match the currently highest deployed Chrome platform version in our fleet (you could also just remove it - but for long running Kiosk apps it's best practice to lock the Chrome version).
Hope that helps!
You may want to check this thread which states the following:
If these are school managed chromebooks, see this topic.
If it is not managed or if the settings have not been changed in the management console, the chromebook does have to be restarted to finish updating.
https://support.google.com/chromebook/answer/3134673?hl=en
Simply follow the given steps on how to manage kiosk settings.

Icenium no provisioning profile found

I’ve recently downloaded an installed Icenium Graphite (free for 30 days) on my Windows 7, 64 bit. I’ve created a new project (Cross-Platform Device Application jQueryMobile).
My iPhone is plugged in and I can see my device in the Devices panel at the bottom of the IDE.
When I Run-->On device, I obtain an error which basically tells me that I don’t have any provisions.
After several searches, articles and youtube videos, I still can’t get my head around this.
I’ve logged into the apple developer center. It appears I need to enroll and pay 99$ a year as an individual.
If my plan is to eventually publish my application to the Apple Store than I understand the 99$/year fee but if my goal is to simply test locally on my iPhone how can I do this without enrolling?
Is it even possible or the 99$/year is a must regardless if I only plan on testing locally?
If anyone could help me shed some light on this that would be great!
Sincerely
PS: My iPhone is not jailbroken so I can’t use the approaches found in some articles I’ve read.
You can use Icenium Ion to run your app on your iPhone without the need of provision. You can get it from here - https://itunes.apple.com/en/app/icenium-ion/id527547398?mt=8 Also, you don't need to jailbreak your phone to use the app.
What you need to do is the following:
Run Graphite, open your project, connect your device, verify that Graphite recognizes it and fire up Ion on your mobile device. Your app should be loaded automatically. Also, check if in Graphite Ion LiveSync is enabled for your device.
You can check docs.icenium.com for even more details.
Hope that helps.

I can actually install a few apps without provisioning

Yesterday I was playing with the three20 library. I hit the command+enter to build and run the app on my simulator, to my surprise it installed the app on my device iPod Touch 4th Gen. I really dont know how that happened, I tried doing it with few of my other project and unfortunately it did not work.
Today, I downloaded the quick contacts sample code from Apple's developer site and the same thing happened, I could install the app on my device without any provisioning. I see that for the above two projects (three20 and quick contacts) my device is listed in the active executables.
But for other projects my device isn't listed. I tried running the above two apps on other devices which failed with a message - "No provisioned iOS device found". My device isn't jailbroken, its a brand new one I bought a few days ago.
Am I missing something, because being able to install apps without going thru Apple's portal is a huge bonus and I would like to achieve the same functionality for my other apps too.
I tried attaching screenshots, but looks like I atleast need 10 points to do so and I'm new here. Sorry.
Have a look at the XCode Organizer; As of a few versions ago it now manages a 'Team Provisioning Profile' that works off any bundle identifier and any of your devices if they've been added to your developer account. This is not a special provisioning profile, just an automatic one it sets up for you if you tell it your iTunes Connect details.
WIth this, anything you build and run should be able to use that provisioning profile to run code on your devices.