yashsingh1/xdaforums huggingface dataset:
[Xperia Z Q&A, Help & Troubleshooting] scaldrich:
Hi All

Just wondering if anyone else is seeing this behaviour with their Xperia-Z?

I use bluetooth audio a lot (A2DP paired to the car stereo) & I've got the problem that after my phone has connected to a bluetooth audio device it won't then use the handset speaker (for calls / notifications / music / anything). It seems like the system is failing to switch back to using the handset audio output after disconnecting from the bluetooth device.

The steps to reproduce the issue are straightforward and completely reproducible:

Enable bluetooth on handset

Connect to an A2DP bluetooth device

Disconnect device (i.e.: power it off)

Disable bluetooth on handset

Test handset audio (e.g.: increase or decrease volume)

When trying to set the handset audio volume after disconnecting the bluetooth device I get the following output in `dmesg` on the handset:

<6>[ 732.223754] setting pm_qos in msm_pcm_playback_copy with 1000
<6>[ 732.228637] done setting pm_qos in msm_pcm_playback_copy
<6>[ 742.231475] updating pm_qos value to default msm_pcm_playback_close
<6>[ 742.237152] done updating pm_qos value to default msm_pcm_playback_close
<3>[ 745.068725] mdp4_overlay_set: blt mode is required! ret=-22
<3>[ 745.073486] msmfb_overlay_set: ioctl failed, rc=-22
<6>[ 745.657928] msm_pm_wait_cpu_shutdown(): Timed out waiting for CPU 1 SPM to enter sleep stateCPU1: unable to kill
<6>[ 746.107879] msm_pm_wait_cpu_shutdown(): Timed out waiting for CPU 1 SPM to enter sleep stateCPU1: unable to kill
<3>[ 747.242309] msm_pcm_playback_close: CMD_EOS failed
<6>[ 747.309936] setting pm_qos in msm_pcm_playback_copy with 1000
<6>[ 747.315124] done setting pm_qos in msm_pcm_playback_copy

I'm currently running CM10.2 (FreeXperia build 10.2-20140302-UNOFFICIAL-yuga) but the same issue was happening with the "official" CyanogenMod 10.1 & 10.2 builds.

The workaround is to reboot the device after unpairing a bluetooth audio device but this isn't really ideal. Anyone got any ideas / seeing the same behaviour?

Cheers

Si
[Xperia Z Q&A, Help & Troubleshooting] vishnureddy_g:
Install official android firmware from Sony, and if the problem still persists wait for the update from Sony.

It is just software problem.:cowboy::cowboy:
[Xperia Z Q&A, Help & Troubleshooting] khamees_xi:
try flashing build.prop file of official sony xperia z build or just over write it using root explorer if you havr root and restart always work ( its mainly the problem with the build promps in cm10.xx
[Java for Android App Development] coyttl:
Hey all -

I'm getting into an area I hadn't gone before - drawable XML files, and am stumped, since what I think should work is giving me an exception.

Some background -

I have multiple images, used as a background. Then there are a couple other images used for foreground symbols. (These are for markers on a map.) So, for example, I have 5 different colors, and 5 symbols. Instead of creating 30 different markers (5 symbols + blank) I figured I could include the resources, and then use a list-layer to show the symbol on top of the marker. Would save some room when the APK's created.

So, I made a simple test, like this. XML file is simply named "marker":

<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:bottom="34dp"
android:drawable="@drawable/marker_green_blank"
android:left="0dp"
android:right="20dp"
android:top="0dp"/>
<item
android:bottom="20dp"
android:drawable="@drawable/marker_symbol_int"
android:left="3dp"
android:right="19dp"
android:top="4dp"/>
</layer-list>

Oddly, when I go to use this, I get an exception when it's tried to be used:

java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference

Any thoughts? I obviously missed something - probably something idiotic, since I do that a lot. :D

Or, is there another way to combine two images/res's together?

--Mike

Edit:

I forgot to add - this is how I'm creating the 'icon' to add it to the map. The second line is map-specific code and may not really apply here. I'm starting to think that the first line - BitmapDescriptor - is causing the issue:

BitmapDescriptor marker_red_blank = BitmapDescriptorFactory
.fromResource(R.drawable.marker);
<!-- Code that sets other options using a MarkerOptions object ... -->
opt.icon(marker_red_blank);
mark.associatedMapMarker = MapViewFragment.this.mMap.addMarker(opt);
[Java for Android App Development] PicomatStudios:
Although I haven't used BitmapDescriptors, I do use layer-list a fair bit to overlay shapes, backgrounds etc.

Looking at the documentation for fromResource...

'Creates a BitmapDescriptor using the resource id of an image.'

It seems that you're not passing it an image, you're passing it a drawable (layer-list in this case).
[Java for Android App Development] coyttl:
Thanks, I'll look into that. I had thought I tried to create a bitmap out of it, but it still gave the error - but since my memory is flaky, I'll do it and see what I get. :)

Cheers-

Mike
[Java for Android App Development] arjs1000:
Drawable Button XML resource selector

This technique could be used for animation of XML drawables.

Keep separate drawables in your res/layout folders as usual.

switchable_drawables.xml ( put this in res/layout too)

<?xml version="1.0" encoding="utf-8"?>

<selector xmlns:android="http://schemas.android.com/apk/res/android">

<!-- Button Focused-->

<item android:state_focused="true"

android:state_pressed="false"

android:drawable="@drawable/active_button"

/>

<!-- Button Focused Pressed-->

<item android:state_focused="true"

android:state_pressed="true"

android:drawable="@drawable/active_button"

/>

<!-- Button Pressed-->

<item android:state_focused="false"

android:state_pressed="true"

android:drawable="@drawable/active_button"

/>

<!-- Button Default Image-->

<item android:drawable="@drawable/inactive_button"/>

</selector>
[Java for Android App Development] coyttl:
Hey guys -

Thanks for the info. Unfortunately, same error. The code now looks like:

BitmapFactory.Options opts = new BitmapFactory.Options();
opts.inPreferQualityOverSpeed = true;
opts.outHeight = 34;
opts.outWidth = 20;
Bitmap icon = BitmapFactory.decodeResource(MapViewFragment.this.getResources(),
R.drawable.marker, opts);

BitmapDescriptor marker_green_blank = BitmapDescriptorFactory.fromBitmap(icon);

Creating options to generate the bitmap, setting desired height and width, and then using the decodeRecource function, creating a Bitmap, then using the .fromBitmap to turn it into a Descriptor. When the GMaps tries to access it, same null error. I may post this over on StackOverflow, since looking at the docuemtation and other examples, this should work. :confused:
[Xoom Q&A, Help & Troubleshooting] Vilgelm:
Hi,

I wanna buy _ebay._com/_itm_/_Motorola-XOOM-MZ601-32GB-Wi-Fi-3G-Unlocked-10-1in-Black-_/_121223554694?pt=US_Tablets&hash=item1c397ca686 on ebay.

I live in Russia and have a few questons about it.

1. Russians 3G (HSDPA) frequency are 2100 MHz. In description of this lot specified that HSDPA frequency are 850 MHz. I ask seller about it, he says, that he dosen't sure about it, and it can be 850/1900 MHz and that I must search specification on the Internet. I google it and found some inconsistent results. For example on _pricehendphone.blogspot._ru/_2011_/_03_/_full-specifications-of-xoom-mz601.html specified 2100MHz, but on some another sites I found 850MHz, 850/1900MHz. So I'm a little confused about it. Are XOOM MZ601 has many modifications with different HSDPA frequency or it some mistakes on specs? If second, what specs are correct?

2. On this forum I read, that another region XOOM dosen't work with another region SIM. For example: USA XOOM dosen't work with EU SIM-card. But it can be reflashed for another region. I looked at _motorola-global-portal.custhelp_.com/_app_/_standalone_/_rom-images and found EU firmware. But according description on that page EU region includes only UK, Greece, Romania, Sweden, Norway, Denmark, Netherlands, Spain, Austria, Switzerland, Poland, Hungary, Croatia, Italy, Ireland. No Russia on this list. So does XOOM MZ601 will work with russian SIM? May be anybody have that expirience?

3. Can it be upgraded to ICS or Jelly Bean? I found some unnoficial firmware, but only for EU region. So can i reflash it from US to EU and that upgrade it to Jelly Bean or not?

Hope for fast answer, because our "beloved" goverment wants forbid any foregin buying soon (it's will happen through 50 days or earlier).

Thank you in advance and sorry for my English.

PS Sorry for text links, XDA forbid to use normal links for new users.
[Android Apps and Games] dariobrun:
Hi to everyone,

i just wanted to suggest you my first game, Dino Dance:

(play.google.com/store/apps/details?id=com.darasoft.dinodance)

(cant post links yet :crying:)

It is a "we dance"/"guitar hero" style game. You have to tap the buttons corresponding to the arrows in the sequence to keep the T-Rex happy and see it dancing (it will even do the Gangnam style :D).

One thing that other similar games don't have are the red arrows: when you have a red arrow, you have to press the opposite direction button.

It greatly increases the challenge but imho also the fun. And also makes for nearly infinite possible sequence combinations.

Give it a try....it is free :D
[Android Apps and Games] dariobrun:
First update for Dino Dance is out today, come and try it :D

VERSION 1.1:

-PROWL GOES SOCIAL! Compete online with the new worldwide leaderboards (Highest Score and Longest Streaks)

-20 new achievements to unlock (and some are REALLY hard)

-2 GUI layouts: the new TABLET GUI should improve playability on wider screens

-Changed sequence display position for improved visibility

-Fixed some bugs causing the game not to run, or crash, on some display

-REMOVED MANY UNNEEDED AUTHORIZATION REQUESTS
[Android Apps and Games] dariobrun:
VERSION 1.2:

Prowl went back to the dance school to learn some Hip Hop:

-11 new Hip Hop dance animations

-3 new background music to go with the new dance style

- New option in the setting menù: you can now choose which dance style you want Prowl to perform: Standard, Hip Hop or Mixed
[Android Apps and Games] dariobrun:
MAJOR UPDATE!

Version 1.4:

Complete graphics overhaul:

- totally new interface

- new T-Rex model

- improved animations

- 5 new hand-made scenario to dance in

- new shadows

New customization options:

- choose between 12 different skins for your T-Rex

- choose between 6 different eyes to further characterize it

Many code optimizations: the game should run smoother now on most devices

And a pair of surprises... :)

Try it for free:

https://play.google.com/store/apps/details?id=com.darasoft.dinodance
[Android Apps and Games] hotspot_volcano:
Seem to have no music if you pause the game and unpause it or music stopped for some other reason

Don't really think the beeping noise, when you click a direction is the right sound, as it doesn't fit in with the music. Its kind of irritating.. maybe its too loud?

The break time between each sequence should be longer. Maybe 1-2 second longer than the current. I was still pressing the step for the first sequence, which got entered into the next sequence. You might also prepare the player for the next sequence by displaying some empty step sequence squares 1 second before the sequence is actually shown to the player. This way the player will know how many step to expect, and be ready for the next sequence.

Other things

Try to animate the tail. It should bend a little. Probably a lot of work if you don't have the bones in places and you animated it in unity.
[Android Apps and Games] dariobrun:
Thank you for your review mate!!

Yes i noticed the bug with the pause menu in game setting the music and sfx back to 0 only after putting the build up ...i will fix it soon :)

Do you mean the click sound made by the button presses or the sound for the correct move in a sequence? (i am looking for better sounds....for now those were the ones i could find for free to be honest :D).

Thsnk you for the suggestion about the time between 2 sequences....i put it low to try to give constantly something to do but maybe it is a bit too much, i will slow it down a bit.

And, yep, you are right about the tail, i haven't animated it apart for a pair of animations....the good thing is that i have the bones in place already...the bad thing is that there are more than 30 animations to complete....so i wanted to put the new version out as soon as i could.....but i will work on it, you are right, it doesn't look too good right now.
[Android Apps and Games] dariobrun:
yeah i know, but i am not a 3d artist sadly, this is the cutiest i could make with my skills :D (and it is definitely much cutier than the earlier version pre-1.4 :))

As far as the install....well....i don't really know how honestly eheheeh...my other game is nowhere near close to this number of daily downloads....dino dance started decently and went to good all by itself quite soon....but the secret to how it happened remains a mistery even to me :D
[Android Apps and Games] dariobrun:
I just uploaded a new version taking into account your suggestions.

I fixed the pause menu bug (at least it seems to be fixed :D), i fixed another bug with the customized dino not showing correctly at startup, i changed the beep noise when you correctly tap an arrow in the sequence (and fixed a bug with its volume not scaling with the SFX volume value) and did some animations to the tail :good:
[Android Apps and Games] hotspot_volcano:
Anyway sometimes its a good idea to upload the 1.41 apk i still see 1.4.0 as the apk version? mismatch?
[Android Apps and Games] dariobrun:
nope.....i actually called it 1.40 (the previous was 1.4) since it gas just a few small changes....maybe it was counter-intuitive though :D
[Android Apps and Games] dariobrun:
i finally understand what you were talking about :D.....for a mistake i called it 1.41 in the description and 1.40 in the file name.....i now changed the description back to 1.40 so that it is clear that i am talking about the same version....thank you, i missed that mistake completely
[Android Apps and Games] dariobrun:
Dino Dance 1.6 is out with new personalization options and improved gameplay.

Come and join over 30.000 other player in this fun and engaging dancing game. Complete the sequences and dance with a T-Rex!

[youtube]uJTOr9jD_Bw[/youtube]
[Android Apps and Games] dariobrun:
Version 1.7:

-fixed a HUGE bug causing the game to always load the same scenario

-changes in the main menu to make it more intuitive to continue an ongoing match

-small gameplay tweaks

-records can now be registered on online leaderboards at any difficulty level
[Xperia Z2 Tablet Q&A, Help & Troubleshooting] manu00030:
Hey guys,

could anyone share this app? need it for test on my nexus 5

thanks
[Xperia Z2 Tablet Q&A, Help & Troubleshooting] Droidneedzsence:
Seems to be built in, no app. You may want to try six axis from the play store, if you have root then try the compatibility checker and off you go
[8125, K-JAM, P4300, MDA Vario General] pwillis94:
:? is there an available greek rom for the qtek 9100 which is locked like what was available for the 9000 a few weeks back?
[Nexus 5 Q&A, Help & Troubleshooting] Gatz:
Hi all,

I just rooted for the first time and trying out Titanium free version.

Unless I misunderstood something, it does not seem to be working the way it should...

Action:

I did a "Backup all user apps + system data" to start with.

Result:

It looks like everything got backed up correctly, took 5min => OK

I have to manually restart all apps like Llama Profiles => Not good

The wallpaper gets reset to default (and God knows what other I didn't notice) => Not good

Action 2:

I did a "Redo backups for modified data" to check if it would be better this time.

Result 2:

I expected it to hardly find anything that needed to be backed up again, but instead it just did the whole job exactly like before, taking 5min again... => Not good

I have to manually restart all apps like Llama Profiles => Not good

The wallpaper gets reset to default (and God knows what other I didn't notice) => Not good

At the end, after hearing wonders about it, I find it disappointing that it does not work as seamlessly as I thought...

Can anyone shed some light?

Thanks! :o
[Galaxy Y GT-S5360 and Duos 6102 Q&A, Help & Troubl] mizan132:
Hi. Anyone know how to fix it?
[Shield Android Development] twistedumbrella:
If coming from the original JellyBean and have not updated your custom recovery since, you will need to install the recovery provided below. This step only needs to be performed once to support the newer updates.

Recovery Update

Boot into bootloader mode, connect the USB cable, and from a terminal window or command prompt type:

fastboot flash recovery recovery.img

To root an OTA, the procedure is pretty simple.

Copy the OTA from the cache folder to the sdcard.

Move the OTA zip somewhere it can be opened and unzip it

Go to system/etc/ to find the file named recovery and delete it

(extension may vary, but it is always named recovery)

Open the META-INF/com/google/android/updater-script

Delete all of step 1 and step 3 so that all that is left is the large middle portion without any steps

That's it. You have made the same files you find here.

Download the desired package below and copy it to your sdcard, along with the SuperSU recovery package.

Boot into recovery, select install from sdcard, and choose the update. Go back and repeat the install for SuperSU.

KitKat Update 98

KitKat Update 99

Lollipop Update 110

XDA:DevDB Information

Nvidia Root-Friendly Updates [No Wipe], ROM for the Nvidia Shield

Contributors

twistedumbrella

ROM OS Version: 2.3.x Gingerbread

Version Information

Status: Testing

Created 2014-11-08

Last Updated 2018-07-05
[Shield Android Development] NapalmDawn:
So install the first zip in your current recovery and then reboot recovery. After that, flash the next two back to back?
[Shield Android Development] twistedumbrella:
Recovery first, then the two back to back. The old recovery won't flash it properly because of new metadata commands
[Shield Android Development] NapalmDawn:
Currently my shield is 4.3, rooted and has a kernel of 3.4.10. When I boot to recovery, I get the broken android guy with the red triangle. I think if I remember right, when I was rooting it, I had issues getting a working recovery on there since mine was fairly new when I got it. So what is thebest way to install that first zip? Would I be doing it via fastboot?
[Shield Android Development] hexitnow:
First off I want to say thanks umbrella, for coming up with this method.

Bit off topic but I figured I would throw it out there, when you get the broken android guy, your recovery is doing exactly what it's supposed to. It's working, dont quote me here but I think pressing home and back simultaneously will get the menu to come up. I could be wrong on the button combo but there is a combination of button's to get the stock recovery menu to come up. If I remember right my droid X was the same way.
[Shield Android Development] twistedumbrella:
KitKat Update Without Complete Re-root

Quite possible. I stripped out the recovery in the update and used fastboot on recovery for this one. I rushed through it a bit lol.

If I remember right, I think it's by-name/SOS and the update uses it to install the system before flashing the recovery to the partition. I didn't update it, though, just in case that wasn't a secondary partition.
[Shield Android Development] hexitnow:
Ahh I gotcha. Well that's good to know. I haven't had a chance to really look at many of the files yet. Do you know if nvidia released the factory recovery packages yet?

EDIT:

Nevermind looks like 72 is out now.
[Shield Android Development] twistedumbrella:
Yeah, they are pretty good about that. It may be nearing the last update for this version, though
[Shield Android Development] NapalmDawn:
Shield+home at the broken android guy brought up a menu.

What is the best way to install the recovery update file? Is this something that is done by booting the shield into the bootloader and then doing it via fastboot on the PC?
[Shield Android Development] twistedumbrella:
Exactly
[Shield Android Development] NapalmDawn:
Awesome. Thank you. Alternatively, I could accept the OTA and then push SU back to it again like I did the first time it was rooted right?

Last question-we have a working CWM recovery for the shield I believe. Are there any recoveries that work with the shield while running KitKat?
[Shield Android Development] twistedumbrella:
The OTA will restore the stock recovery. This way updates it to one compatible with KitKat.
[Shield Android Development] twistedumbrella:
KitKat Update Without Complete Re-root

OTA 98 has been added. No recovery update is needed coming from 72. Flash the build and SuperSU and off you go. No data wipe necessary, either.
[Shield Android Development] Neoistheone2000:
Link to the Recovery is not working :crying:

I am trying to install with the CWM Recovery and getting Status 7 errors, I try in stock recovery and get errors for Signature Verifications.
[Shield Android Development] twistedumbrella:
Updated
[Shield Android Development] Neoistheone2000:
Thanks, that worked a treat :D
[Shield Android Development] GuyInDogSuit:
Yeah, to clarify, in recovery, you must press and hold Shield and Home buttons for a second, then release to bring up the menu. Then use X and Y to navigate, A to select. Don't understand why the bootloader or recovery don't use the D-pad at all. They're weird. Anyway, downloading this now, and will report back in a few minutes. This is just sideloaded via the stock recovery, right? I hope so, that's how I'm doing it right now.

EDIT: Nope. Failed again.

I think I'll try that new recovery (funny, because I had flashed the one included in the original update archive, still had issues). I shouldn't have to use that one, I was on update 92 already.

EDIT 2: Oh, I'm dumb. Here I thought this was still being done with the STOCK recovery. Didn't realize this would flash in CWM. Awesome. Flashed SuperSU 2.16 while I was at it. Rebooted, and it's at .98, with root access. You ROCK, [MENTION=593514]twistedumbrella[/MENTION]!
[Shield Android Development] GuyInDogSuit:
Did you do this with update 99 yet? Just came out today.
[Shield Android Development] twistedumbrella:
I don't even have it yet. I usually wait for it to come through on the device instead of going to the site. Faster to copy than download again.
[Shield Android Development] GuyInDogSuit:
Hmmm. It started downloading as soon as I turned mine on. I'm just gonna do the usual process.
[Shield Android Development] twistedumbrella:
If it came out today and something is so vital in there that can't wait until tomorrow, by all means...

For everyone else, update 99 will be available in about 5 hours.
[Shield Android Development] GuyInDogSuit:
Nah, I was bored, so I updated. It's pretty much the same as 98, with 4k video in console mode, I think. And more stable.
[Shield Android Development] min1968:
After flashing this recovery, is it still OK for OTA?
[Shield Android Development] twistedumbrella:
KitKat Update Without Complete Re-root

It may fail because of how they do steps, but it will revert the recovery to stock if it works.

You can convert the OTA right on the device:

Get the zip from /cache and move to an sdcard (internal / external)

Unzip it and open the META-INF/com/google/android/updater-script

Delete the recovery.img and recovery folder

Remove everything but the large chunk of commands (all the step one, calling step 2, calling step 3, step 3 stuff)

Zip it back up and flash
[Shield Android Development] min1968:
Cool, the reason need OTA is to keep Shield up-to-date. As long as we can get updated/modified zip files here, this method is good enough.
[Shield Android Development] twistedumbrella:
I'm glad it isn't too much of an inconvenience :/