Affichage des articles dont le libellé est Behavior. Afficher tous les articles
Affichage des articles dont le libellé est Behavior. Afficher tous les articles

samedi 22 février 2014

Weird bluetooth behavior topic




I have a note 10.1 gt-8013 (2012) with 4.1.2. I have a bluetooth speaker that I used to be able to connect to without any problem in the past. Now it shows that I'm connected to speaker but sound comes out of notes speakers, but i can still control music from speaker controls(next song, repeat etc). I also have a android phone running 2.3.4 that is having the same problems, shows connected but music coming from phones speakers. I thought it might be the speaker going bad, but I have another speaker and these two devices act the same way with it. I know the speakers work fine because my wife has an iphone that connects without any problems to both speakers. Is there some some setting on my phone or tablet that has changed that doesent let me connect to bt speaker? Any help would be appreciated.

Thanks.





vendredi 21 février 2014

The behavior of the program. topic





The output of the following program is not clear to me.

#include<stdio.h>
#include<stdlib.h>

void Get_Array_Memory(int (*ar)[5])
{
int i =0;
int (*temp)[5];
printf("\nar before assignment = %p\n",(void *)ar); //print 3
temp= malloc(5);
if ( temp ) {
printf("\ntemp = %p\n",(void *)temp);
ar = temp;
printf("\nar after asignment = %p\n",(void *)ar); //print 4
for ( i =0;i < 5; i++ ) {
*(*ar + i ) = i;
}
}

}

int main(void)
{

int (*arr)[5];
int a[5] ;
int i=0;
arr = &a;
printf("\narr in main = %p\n",(void *)arr); //print 1
Get_Array_Memory(arr);
printf("\narr in main after function call = %p\n",(void *)arr); //print 2
for ( i =0;i < 5; i++ ) {
printf(" val of ar[i] = %d\n",i ,*(*arr + i)); //print 5
}

return 0;
}

The output
++++++++++++++++++++++
arr in main = 0x28ac44

ar before assignment = 0x28ac44

temp = 0x800482c0

ar after asignment = 0x800482c0

arr in main after function call = 0x28ac44
val of ar[i] = 0
val of ar[i] = 1
val of ar[i] = 2
val of ar[i] = 3
val of ar[i] = 4
++++++++++++++++++++++++++++++
It is clear that ar in Get_Array_Memory assigned to new address 0x800482c0which is different than 0x28ac44 passed from main. Then how the values assigned in Get_Array_Memory is retained and the same values are getting printed in main? Is it just by chance I am getting the output in main?

--
Somenath








lundi 27 janvier 2014

Normal auto brightness behavior? topic




My g2 is very slow to come to full brightness after unlocking it. Is this normal? With auto brightness turned off it isn't a problem.





samedi 25 janvier 2014

[Q] SD Card very weird behavior - unable to format or delete topic




I have an extremely weird SD Card behavior with my Note 2:
  • After deleting files and rebooting, the files reappear.

  • I can't format the SD Card using the Android OS - it goes black screen and requires me to pull out the battery in order to start the device.

  • I removed the SD Card and attached it to my laptop's SD Card slot and tried formatting using Windows 7- the format process completed after ~30-40 minutes, yet the SD Card appeared UNCHANGED! :mad::mad::mad:

  • I used multiple SD Card formatting tools, still no dice - they either complain about write protection, that they can't start, they start and stop halfway with an error, you name it.


It's like the SD Card has built in protection that keeps the files in it in stasis form, never ever witnessed such a behavior in any storage device. What gives?

Any help, preferably from people who may have encountered a similar behavior, will be greatly appreciated!





jeudi 23 janvier 2014

[Q] Strange behavior with USB storage and Kitkat 4.4.2 topic




Hi there,

I've just bought a Nexus 4, with rom stock 4.4.2, unlocked & rooted.

I have a strange issue with storage, I have files that I can see on android storage (with ES File explorer or root explorer), and I can't see those files on Windows.

Here it is exactly what I've done under Windows 7 :
- Plug my phone with MTP or PTP
- Storage detected
- Copy a lot of files on the storage, we call those files "FILES1" (no images files).
- My files (FILES1) are on the USB storage under Windows.
- Copy all my photos, and process.android.media" crash, it seems to be a kitkat known bug.
- Tried to find a workaround on forum and I've clean data/cache of application "media storage".
- Not working at all and new bug appears ! Now on two different computer (Windows7), I can see the android storage but it's empty !
- On my phone it's not empty, with explorer, the files (FILES1) on the storage are present.
- Copy all my photos with Airdroid on the phone, we call those files "FILES2"
- Now on my Windows, I can see FILES2 (files copied after the empty bug) but no FILES1
- Via android explorer I can see that all the files are here and are working as intended !

I hope you understand my problem, this issue is really hard to explain.



Any ideas to see my FILES1 on Windows please ?
Any application to clean cache ?
Any idea of what's happening ?




Thanks