text:
Function of back button after opening URL from (Twitter) application
When opening a URL in the official Android Twitter app it opens the native browser, showing the page for that URL. If I tap the back button in the browser (Galaxy S, 2.3.3, should it matter), one of two things happens:

The browser goes back in its history opening the previous page/url it had opened.
Android switches back to the Twitter app, back to the tweet with the URL I opened.

It eludes me what triggers either situation, it's seemingly random. I prefer option 2 when I'm reading my Twitter feed, can someone explain the logic behind this and perhaps even tell me how to make sure I trigger option 2 while reading my Twitter feed?

One more tip: in case you re-used on of 4+ open tabs, create a (fake) new tab and press 'back'. That will also count as 'history' empty and will return you to the twitter app. Am I correct here? I use this trick with news&weather a lot.

Your problem touches a feature of Android that sets it apart from other mobile OSes and is a very powerful one (see below):
That's all about intents,  activities and the back stack that contains your path of visited activities in order for each app. Basically an activity is a single GUI fullscreen window you see, for example the main activity when you launch an app. If you navigate away from that, lets say to the settings view, the now inactive main view is put on the back stack and so forth.
However: This whole behaviour has many switches that are solely customizable by the app developers.
See this link for the basic information on those things:
http://developer.android.com/guide/topics/fundamentals/tasks-and-back-stack.html
Regarding your specific problem:
It might be a difference if the browser was (1) already open, (2) had an active Twitter tab running (that got reactivated) and so forth. Try some of these combinations (use 'force stop' in the app settings to end browser instances and have an/no open Twitter tab in the browser active beforehand), and you will find:

If you have opened the max of four windows in your browser, then opening an URL from the Twitter app will "re-use" one of them. If you hit back in that browser window it will first go all the way back up the history, one history item at a time. Once the history is empty, hitting the back button once more will send you back to the Twitter app.
If you had not opened the max of four windows in your browser, then opening an URL from the Twitter app will create a new browser window. If you hit back in that browser window the history for that window will already be empty, and you will directly go back to the Twitter app.

Some more information:
The unique system are Android's intents. New views are launched by an intent that, for example says 'open this file in a file view' or 'select a picture in a gallery viewer' or 'authenticate a my app with Facebook' and so forth. Without saying which other app should handle it. You see this when you get a choice menu asking you to select a specific browser (native/Chrome/Dolphin/Opera) or one of many file explorers you might have installed.
This one of the very powerful Android features. Apple's iOS is very different to that, apps can't interact with others so closely and Facebook integration had to be done in iOS6 the hard way for that reason (directly integrated into iOS).

No need for a task killer. "Force Stop" in the app settings would more than suffice for experimentation.

Thanks for the hint. applied your suggestion. My main device runs ICS now and I'm now very used to the new swipe to stop feature. Completely forgot that.

Thanks for the great answer! I followed your suggestion and experimented a bit. Now I understand what's going on and how to control things. I've suggested an edit to the answer with the results of my experiments.


text:
What is the basic functionality behind the Odin buttons & checkboxes?
⚠ EDIT: Note that there's now a slightly different but highly related, relatively newer question on the same subject. See "What do the terms “BL”, “AP”, “CP”, and “CSC” mean in Odin?".

There's a good question on what the Odin tool is. I understand now that it's an internal Samsung tool for flashing firmware, which explains why it's so hard to find info on the (rather cryptic) options and buttons. Can anyone here perhaps enlighten us with a basic description for the following:

Options:

Re-Partition (checkbox)
F. Reset Time (checkbox)
Phone EFS Clear (checkbox)
Phone Bootloader Update (checkbox)

Buttons and files:

PIT (button to select a *.pit, *.xml file)
PDA (button to select *.tar, *.md5, *.smd file)
PHONE (button to select *.bin, *.tar, *.md5 file)
CSC (button to select *.tar, *.md5 file)
ETC (button to select ???)

For reference, here's a screenshot of the App showing these various options and buttons:

For newer versions of Odin, see What do the terms “BL”, “AP”, “CP”, and “CSC” mean in Odin?

Looking at this Odin 3, don't forget, there are variant versions of Odin in respect to different Samsung devices. But this particular one is what's used to flash, from my experience, Samsung Galaxy 5 and Samsung Galaxy tablet P1010T.
In short, for Odin to operate, there can be .bin, or .tar or even .tar.md5 files associated with a ROM for flashing. Odin knows how to handle them in the appropriate manner. (Have not seen .bin used, its more of the .tar.md5 which is  a tar file with MD5 check-sums contained in the archive, in which Odin will automatically verify each file within it)

Re-Partition does what it says - re-partitions the layout.
Auto Reboot and F.Reset Time - when the flash is done, auto reboot and reset the timer of the flashing when done. Usually can leave those two checked.
PIT - this is a file that describes the layout of the partitions involved, this will be very specific to the device in question, use the wrong PIT file for the device, and its... well... face the consequence!
PDA - an all in one archive that contains the .img's MD5 sum, boot, recovery, system, userdata, cache and movinand. Those .img's are different to the normal ones that is out there, they use Samsung's RFS (Not sure what R means, but its File System and is proprietary to Samsung) - this is optional, the clue would be in the name of the file - if it contains PDA in it, use it, if not, uncheck this and follow on, if using this to flash the device...
Phone - When flashing a ROM for Samsung device, depending on the model, there will be usually, a file similar to this XXXX-REVnn-ALL-low-YYYYY.tar.md5 Again, this will be an all in one archive as explained for the PDA, the distinction and big clue, is the former is for tablets, the other is for smartphones (That's what have played with - just doubly check and make sure this is correct, have a wifi-only tablet here, and it uses the Phone when flashing - O_o).
CSC - This is some country code used for the region to flash the ROM against, XE is Europe, AU is Australia, and so on, this part can throw you off, its more then for tracking what region this is based of, in terms of localization and language support. And more importantly, for Kies to recognize the region and to determine if there's firmware update available. It is quite possible to have a CSC that can be limited to one country.

Another aspect of the Phone and CSC is, some would expect the name of the file for the Phone to be near same as CSC,  for example, P1010XWKC1 is the froyo firmware, but does not have a PDA in the filename... just to highlight that firmware for Samsung devices can be inconsistent at times.
So with that in mind, here's the general guidelines for flashing a ROM,

Re-Partition - do not check, unless you have the appropriate PIT file for your device. This will wipe all your data.
Auto Reboot and F.Reset Time are both checked.
PIT - mandatory, ensure you have the right file for your device.
If its smartphone, ensure Phone is selected and the appropriate file is picked from the file browser.
If it's non-smartphone, ensure PDA is selected and the appropriate file is picked from the file browser.
CSC - ensure you have the right region for this.

Before doing any flashing business on Samsung, ensure it is in Download mode, And away you go, Odin will extract the archives and performs check-sum first to ensure integrity of the files within the archive and start, ambiguously, uploading to device, or from device's viewpoint downloading!
If there is a kernel update, similar principle to flashing ROM, but with one notable exception - Un-check the Re-Partition, specify the kernel file which would go in under PDA or Phone as well, that depends! Omit the CSC as its not really used for the kernel flashing.
Phew, this Odin can be confusing, armed with inconsistent filenames so to emphasize, double-check around first before doing anything with Odin.
In all fairness though, Odin is actually a lot more safer than Kies from the flashing business viewpoint, be prudent and happy flashing :)

Thanks for the detailed answer, this explains a lot. I did use Odin just now for flashing my i9000 (not quite following those guidelines btw, only needed the PDA file), now I understand more or less what it was I just did :)

Its good article, to add to the tomm13b CSC is Carrier Specific Changes anyway description for CSC is same. It will be country and carrier specific as well.

DO NOT check repartition by default! This is usualy not needed and it will always wipe your data on the device. Repartitioning should only be done when you know the partition layout currently in use does not match the requirements of the rom you are flashing. Please edit your anwser to only recommend repartition when the .pit file is included with the other rom files. Also one pit may not be compatible with all the firmwares for the device.

In Odin3 3.09, PDA is now AP and Phone is now CP.

source: Stack Exchange

license: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/4.0/

all_licenses: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/3.0/

sort: votes


text:
How to write an NFC tag with Driving Directions?
I want to write an NFC Tag on a sticker with something that will directly open Google Maps driving directions to a specific address. I've tried using "NFC Tasks" / "NFC Tools", but haven't found any preset that seems to fit the bill. These come close:

"Address: Open an address"; and
"Geolocation: Open an geolocation".

But obviously those tasks don't open driving directions.
To clarify, on my Nexus 5 with Android 6.0 (but also on 5.x if I remember correctly) I have the option to include a Maps widget on my home screens that do exactly this. When adding such a widget I get this settings screen:

Clicking this widget does what it says on the tin: fires off driving directions.
With NFC Tasks you can write URLs, so I tried writing:
http://maps.google.com/maps?daddr=some+address+here

But that opens Google Maps in a browser, not the Maps application itself.
With NFC Tasks you can also write custom data, but I wouldn't know how to format my custom data for this specific task. The "Pro" version of the tool can write "Send Intent" tasks to tags, but I can't figure out if that's what I need (before I go out and buy the pro version).
I've gone through the suggested duplicates and similar questions, but found no relevant info.
Bottom line: How do you write Driving Directions to a specific location onto an NFC tag?

license: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/3.0/


text:
How to Check if Script is run once device is booted?
I have a script I need to run once, and only once the phone is booted.
I have attempted init.qcom.post_boot.sh, init.sec.boot.sh, debuggerd, and finally mkshrc
While my script ran with debuggerd, I found that it ran every time debuggerd ran, which is not something I need to happen...  thus when I stumbled upon /system/etc/mkshrc   (the other 2 simply did not work)
What I found was, the script runs that one time, on boot... however, it also seems to run every time adb shell runs, along with (I assume) everytime shell is fired up... which is also undersireable.
So, what can I do in /system/etc/mkshrc to ensure my call to my script runs only the one time... at boot?
I thought about running a while loop to check for the getprop sys.boot_completed if it == 1 then dump a file somewhere, and through an if statement inside the looop to check for that file, if exists then exit, if not then run the next command...   however, everywhere I am allowed to dump that file, it persists between boots, so that next command never runs again.
NOTE
Does not need root to do this, nor does my script need root to run (yes, I have confirmed)
CODE
BB=/system/xbin/busybox
MYPID=/mnt/sdcard/.kev-run

while [ `getprop init.svc.bootanim` == "stopped" ] ; do
    # if the run file does not exist, and we are stopped
    if [ ! -e $MYPID ]; then
        # run the scripts, then create the run file
        LOG=/mnt/sdcard/Download/kevs-scripts.log
        $BB rm -f $LOG;
        $BB echo "Launching Kevs Scripts" >> $LOG;
        MY_SCRIPT
        # write the run file so we aren't running this everytime this file runs
        touch $MYPID;
        sleep 1;
    fi
done

# if we are still booting, delete the run file
while [ `getprop init.svc.bootanim` != "stopped" ] ; do
    # we're not done booting, remove our makeshift pid file and sleep a second
    $BB rm -f $MYPID;
    sleep 1;
done

Seems to be off to me

mkshrc is by definition run every time an interactive shell is started, so it’s the wrong place.
You really should hook up your script with Android’s init system instead. (Sorry, I can’t give details on how to do that; I don’t know the Android ecosystem well, I’m just mksh’s developer.)
Writing to a file in tmpfs (so it’s auto-removed on poweroff) is usually a good approach for a script to run only once. However, I’d be surprised if Android’s init system wouldn’t provide such a facility; it’s the ideal tool for your job.

yeah, noticed that.  I'm hooking into debuggerd again, and utilizing setprop to set a non-persistent "flag" now

i wish I could hook into init.   or even compile a kernel for it (which would be much much better), but alas... it's a Verizon, with a locked down bootloader so I'm limited LOL

Well, there’s this but the accepted answer does not work on all phones as /system/etc/init.d/ support is a CM(IIRC?) addition. Patching init.rc seems to be the generally correct solution. In general, service …\n\tdisabled\n\toneshot seems to work; don’t forget to chmod +x it and copy to the correct partition beforehand.

I wish I could.  on a G935V, and it's bootloader locked, so root is the only thing we really have.  I ended up utilizing debuggerd as my "firing" mechanism, setting a "flag" via setprop   but what I'm finding now, is once root is removed, setprop no longer works.
My goal is to get some tweaks to work without having to root.   I have confirmed that some do indeed work, while some dont (which is expected), but the trick is getting them to fire off on boot... once :)

I forgot to mention, I can root/unroot my device at will.   Rooted, everything works just fine.  Unrooted, debuggerd throws a permission denied, so I think what I need to do is figure out the proper ownership, sepolicy, and context for it in order to get the permissions right... almost there LOL


text:
Permission Denied on injected /sbin Scripts
I have an android device.. and Honor View 10... L04 version (US).  I have a set of tweaks I am injecting into my kernels ramdisk, that all fire off without issue when I adb shell in and manually run them.
The issue I am finding, is when I setup the services to run in a *.rc file, I am getting a "Permission Denied" error on all of them.
12,8553,14938568,-;[pid:1,cpu7,init]KEVS LATE-INIT Tweaks Fired - Turned of ZRAM and Swapinit: starting service 'kev_swapoff'...
5,8559,14939392,-;[pid:379,cpu4,init]audit: type=1400 audit(1538398511.359:3): avc:  denied  { transition } for  pid=379 comm="init" path="/sbin/kev_swapoff" dev="rootfs" ino=3170 scontext=u:r:init:s0 tcontext=u:object_r:shell_exec:s0 tclass=process permissive=0
11,8560,14939422,-;[pid:379,cpu4,init]init: cannot execve('/sbin/kev_swapoff'): Permission denied
14,10535,16594177,-;[pid:1,cpu7,init]init: starting service 'kev_rib'...
14,10536,16594696,-;[pid:1,cpu7,init]init: starting service 'kev_wl'...
14,10537,16595275,-;[pid:1,cpu7,init]init: starting service 'kev_tweaks'...
14,10538,16595642,-;[pid:1,cpu7,init]init: starting service 'kev_initd'...
11,10562,16627655,-;[pid:651,cpu2,init]init: cannot execve('/sbin/kev_rib'): Permission denied
36,10565,16628234,-;[pid:426,cpu2,logd.auditd]type=1400 audit(1538398513.047:39): avc: denied { transition } for pid=651 comm="init" path="/root/kev_rib" dev="rootfs" ino=3171 scontext=u:r:init:s0 tcontext=u:object_r:shell_exec:s0 tclass=process permissive=0
11,10579,16643981,-;[pid:654,cpu2,init]init: cannot execve('/sbin/kev_initd'): Permission denied
11,10580,16644195,-;[pid:653,cpu7,init]init: cannot execve('/sbin/kev_tweaks'): Permission denied
11,10581,16644348,-;[pid:652,cpu0,init]init: cannot execve('/sbin/kev_wl'): Permission denied

My *.rc file contains:
# Kevp75s Tweaks
on early-init
    write /dev/kmsg "KEVS Tweaks Fired - Set Governor"
    write /sys/devices/system/cpu/cpufreq/policy0/scaling_governor "interactive"
    write /sys/devices/system/cpu/cpufreq/policy4/scaling_governor "interactive"

on boot
    write /dev/kmsg "KEVS Tweaks Fired - Set Governor Settings"
    # force system to be the owner
    # this section is too long to post here...

on late-init
    write /dev/kmsg "KEVS LATE-INIT Tweaks Fired - Turned of ZRAM and Swap"
    start kev_swapoff

on property:sys.boot_completed=1
    write /dev/kmsg "KEVS Tweaks Fired - Cache Tweaks"
    write /sys/module/dm_bufio/parameters/max_cache_size_bytes 71061504
    write /sys/module/dm_bufio/parameters/peak_allocated_bytes 40079360
    write /sys/module/fuse/parameters/max_user_bgreq 1022
    write /sys/module/fuse/parameters/max_user_congthresh 1022
    write /proc/sys/vm/swappiness 0
    write /dev/kmsg "KEVS Tweaks Fired - Networking Tweaks"
    write /sys/kernel/ipv4/tcp_rmem_def 1048576
    write /sys/kernel/ipv4/tcp_rmem_max 2097120
    write /sys/kernel/ipv4/tcp_rmem_min 524288
    write /sys/kernel/ipv4/tcp_wmem_max 4194240
    write /dev/kmsg "KEVS Tweaks Fired - RIB Applied"
    start kev_rib
    write /dev/kmsg "KEVS Tweaks Fired - WL Applied"
    start kev_wl
    write /dev/kmsg "KEVS Tweaks Fired - TWEAKS Applied"
    start kev_tweaks
    write /dev/kmsg "KEVS Tweaks Fired - Init.d Started"
    start kev_initd

service kev_swapoff /sbin/kev_swapoff
    class main
    user root
    group shell
    oneshot
    seclabel u:object_r:shell_exec:s0

service kev_rib /sbin/kev_rib
    class main
    user root
    group shell
    seclabel u:object_r:shell_exec:s0

service kev_wl /sbin/kev_wl
    class main
    user root
    group shell
    seclabel u:object_r:shell_exec:s0

service kev_tweaks /sbin/kev_tweaks
    class main
    user root
    group shell
    seclabel u:object_r:shell_exec:s0

service kev_initd /sbin/kev_initd
    class main
    user root
    group shell
    oneshot
    seclabel u:object_r:shell_exec:s0

I am assuming my seclabels are incorrect, but I'm not 100% sure about that.
What can I do to fix this, so my scripts run properly?
UPDATE
Changerd the seclabel to seclabel u:r:init:s0, and now my error log changed... so I think I'm getting on the right track....
12,8545,16210571,-;[pid:1,cpu6,init]KEVS LATE-INIT Tweaks Fired - Turned of ZRAM and Swapinit: starting service 'kev_swapoff'...
11,8549,16211151,-;[pid:378,cpu7,init]init: cannot execve('/sbin/kev_swapoff'): Permission denied
14,10451,17738830,-;[pid:1,cpu5,init]init: starting service 'kev_rib'...
14,10453,17739257,-;[pid:1,cpu5,init]init: starting service 'kev_wl'...
14,10454,17739593,-;[pid:1,cpu5,init]init: starting service 'kev_tweaks'...
14,10455,17740356,-;[pid:1,cpu5,init]init: starting service 'kev_initd'...
11,10477,17763122,-;[pid:627,cpu2,init]init: cannot execve('/sbin/kev_initd'): Permission denied
11,10505,17765930,-;[pid:624,cpu2,init]init: cannot execve('/sbin/kev_rib'): Permission denied
11,10509,17775024,-;[pid:626,cpu2,init]init: cannot execve('/sbin/kev_tweaks'): Permission denied
11,10510,17775634,-;[pid:625,cpu2,init]init: cannot execve('/sbin/kev_wl'): Permission denied
14,10527,17795806,-;[pid:1,cpu4,init]init: Sending signal 9 to service 'kev_rib' (pid 624) process group...
14,10529,17796386,-;[pid:1,cpu4,init]init: Sending signal 9 to service 'kev_wl' (pid 625) process group...
14,10531,17822357,-;[pid:1,cpu4,init]init: Sending signal 9 to service 'kev_tweaks' (pid 626) process group...

Yes they seem to be due to SELinux context enforcement. Simple is to test after setting selinux permissive. Scripts should work then. To avoid SELinux denials in enforcing mode, you need to modify sepolicy using supolicy tool.

Stock kernel.   Wont be able to make it permissive... unfortunately, sources are broken as well, so the best I can do is modify the seperated ramdisk

I'm going to start playing around, probably later today...  going to see where this leads me: https://forum.xda-developers.com/apps/supersu/patching-sepolicy-issues-honor-emui8-0-t3732319

This can be helpful: https://su.chainfire.eu/#selinux-policies

aye.  hopefully Magisk has that as well.  Pretty sure Chainfire announce he's given up development :(

Yes but basic concepts remain same

yeah, none of the supolicy changers do anything but error out

all_licenses: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/4.0/


text:
Samsung Galaxy Player has music in folder, not playing
I have a Samsung Galaxy Player that I have added music to from iTunes, into the "music" folder.   But the songs do not appear in the music player to be played, or placed in a play list?  Any ideas?

What format is this music? Are they MP3 files, or AAC or something else?

How have you added the files? IIRC, the media rescan process doesn't always kick off if you don't add the files in a way it expects.

Try rebooting or unmounting/remounting your SD card. Perhaps the music folder is also not where the application looks by default although intuition would say otherwise. Also, how did you add them from iTunes? A built in media transfer component or manually? If manually you may run into media protection problems.


text:
Android tablet not connecting to Wi-Fi while previously did
I have three devices:

Tablet running Android 2.2; (WPAD)
Tablet running Android ICS; (Samsung Tab 2)
A laptop. (Dell Studio 1558)
Wirelss Router: WRT120N (Linksys)

Wireless Router access is protected with WPA/WPA2 PSK. I can confirm that password given is correct.
My laptop (3) and Android ICS tablet (2), both connect fine to the wireless router.
But my other tablet (1) doesn't connect, it keeps "Scanning" and then disconnects. This tablet used to connect to router earlier, but now it does not. I have also observed that after a few seconds the wirless network is shown as "Not in Range, secured with WPA/WPA2 PSK" and then comes back with message "Remembered, secured with WPA/WPA2 PSK". So I am also not sure whether it is the problem with the tab!
Android ICS (2) is my new Samsung tab 2 tablet, so I have no idea whether this is caused due to new connection or not? To ascertain this, I have tried connecting only the first tablet (1), but still not working :(
The wireless router is connected to ADSL router provided by service provider. The ADSL router settings are password protected, i.e I cannot view ADSL router settings through web browswer.
Any thoughts on what could be causing the tablet to be losing the connection?

Try changing the mode, channel, frequency and security.

Exactly what tabs are we talking about here?

@roxan: How and where do I change channel, frequency and security?. I have updated my post to mention that the ADSL router settings are password protected. I only have access to my wirless router. Do you mean these settings are of wireless router?. thanks.

Yes on wireless router.

@roxan: Sorry for being dumb. I do not correctly understand what is channel, frequency and security. Could you please let me know what these settings should contain and to be set to ?

@pradeeptp does that behaviour persist -- or does the tab connect if you just wait a while? I encountered the same problem after updating my HTC Buzz to 2.3 -- sometimes I have to wait up to 30min, but it always solves finally.

I have resolved this issue myself. Here is what I did to resolve it:

Accessed wireless router's settings. Please remember I do not have access to ADSL router which is connected to the internet.
The linksys wireless router setting has "Wireless" menu. Under this menu, click on "Wireless MAC Filter".
Click on "Enabled" radio button.
Click on "Prevent listed computers from accessing the wireless network" radio button. I saw a list of MAC addressed in this list. One of the MAC addresses was that of the tablet which was not connecting. I removed this from this list and VOILA!!!! my tab was happy :)

(I still don't know how it got into this list!!)

Please mark the question as answered then

My Nexus 10 recently stopped connecting to the internet via WiFi after it had been connecting for 3 months. I simply rebooted off my wireless router by removing the power for 30-60 seconds and then powering up. Once the router rebooted, presto, my Nexus 10 was once again connected to the wireless network and the Internet.

many Android 2.2 users report the same issue1. I'd recommend trying:

Delete the network from known list and then reconnect

AND/OR

Set a static IP address for your 2.2 device: wifi settings -> menu -> advanced -> use static IP (depending on your network config, submask to use: 255.255.255.0, default gateway (router IP): 192.168.1.1) to something like 192.168.1.200

--
1See the original authors:
  http://productforums.google.com/forum/#!topic/mobile/bbo7Y3CPOn8%5B1-25%5D

I have tried this settings but it is not working

I have encountered this problem twice, once with my HTC Flyer, originally with Android OS 2.3, but somehow after I updated OS to Gingerbread the problem's gone.
Second happened with my Google Nexus i515, running OS 4.04. Tried everything until i clicked Settings -> System -> Change wifi regulatory domain, and chose EMEA and Rest of World (the other options were US & Japan which weren't where I'm located) wifi settings resetted & problem's solved.

Someone with access to that router may have accessed it through the internet just as you did and set up the MAC filtering. You have to manually enter every MAC address of every device that is running on your network in order to block just one MAC address or multiple addresses. Then you have to set what MAC address to block and save those settings just as you did to unblock your MAC address on that specific device.

Your statements are very confusing. Please re-read it, and edit. Which ones should they block or unblock?


text:
View app's full package name?
I am using Android 4.0.3 and I can no longer find package name for some app. If I recall, I used to go to Applications and has been able to see it there.
So, how can I see full package name of some app? Like, the app's name is "Test" and I need to see its package com.test.mytest.

It's called application ID: Every Android app has a unique application ID that looks like a Java package name, such as com.example.myapp. This ID uniquely identifies your app on the device and in Google Play Store. Your application ID is defined by the android.defaultConfig.applicationId property in your module's build.gradle.kts file. The naming rules are: It must have at least two segments (one or more dots), each must start with a letter, all characters must be alphanumeric or underscore [a-zA-Z0-9_].

Edit: I like ofir_aghai's answer better, although my answer may still be helpful for apps that aren't on the Google Play Store.
If you're comfortable using the command line, a solution I like is Android's pm command. It can easily be called using adb like so:
$ adb shell "pm list packages -f test"
package:/system/app/AutomationTest_JBUP.apk=com.sec.android.app.DataCreate
package:/system/app/BluetoothTest.apk=com.sec.android.app.bluetoothtest

Replace test with whatever package you're looking for.
pm has a variety of options that may be useful depending what you want to do:
usage: pm list packages [-f] [-d] [-e] [-s] [-3] [-i] [-u] [FILTER]
pm list packages: prints all packages, optionally only
  those whose package name contains the text in FILTER.  Options:
    -f: see their associated file.
    -d: filter to only show disbled packages.
    -e: filter to only show enabled packages.
    -s: filter to only show system packages.
    -3: filter to only show third party packages.
    -i: see the installer for the packages.
    -u: also include uninstalled packages.

This works perfect. As a generic solution, this seems to be the correct answer for the question. Also we can use grep if we know some part of the package name.

@gnuanu Yes, I used grep at first and then I realized the -f flag does the same thing (filters by package name), as you can see in the example. Either works fine.

If you are on Windows, use double quotes " instead of single quotes '. Like this: adb shell "pm list packages -f test" Or you will get weird errors.

This doesn't work if the full name of the app or apk file does not contain the displayed name of the app. e.g. "Google Play Services" is com.google.android.gms, but this is basically impossible to find

It's saying /data/app/br.org.academia.volp-… but there's no app directory inside /data. Why?

@Rodrigo folders inside /data need root access to browse. (To be clear, the location of APK files, either system apps or user apps, cannot be accessed without root access.)

Just share the app from Google Play Store to somewhere,  (by clicking on the share button in the app's page)
and see the shared value.
You will see something like:
https://play.google.com/store/apps/details?id=com.my.packagename
(note: this app doesn't exist, it is only used as an example)
(If you can't find it in Google Play:
You can long press on app icon and press on "Application info"
Go to the bottom of the Android page, and then click on "App details in store")

This will only work if the app is published, if it is a test app or some qa app, this method wouldn't work.

You can look into the LogCat.

Open the LogCat.

Either in Eclipse or on the cmd line if the device is connected to your PC.
Or on your mobile itself, using any app which allows you to view LogCat.

Once LogCat is available, launch the app.
The log corresponding to "ActivityManager" will display the activity started. It will usually be in the format: "Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]...".

However technical this approach might be, this is - IMHO - the best way to achieve knowledge about the launching activity for any of the installed apps.

Many apps can show the package name of the installed apps. I'm suggesting App Manager (available on F-Droid) which I currently use. Search the app name or the package name, and the the relevant entries would start showing up.

If you are proficient at using adb and Linux you can find it pretty quick using the linux command grep.
Just do:
adb shell
ls -al /data/data/ | grep 'yourAppName'

You need root of course to be able to search in /data/data/

So how do I become root? Root as in Linux root or root as in "root" your device?

@NelsonGon "Rooting your device" means "gaining the ability to become root on the device". As such, in order to become root, your device must, by definition, be rooted.

You can search for the app's name in the Play Store and open that app. Now look into the URL. The last part of the URL is the package name, like id=com.google.

You can use adb shell and execute pm list packages -f. There are many operators, look into it. If you do not find all packages, then use dumpsys package command.
On Oppo mobile, pm list packages provide me with 150 entries while dumpsys package provide me with 163 entries.

You can use an Android package name viewer application.

pm and dumpsys commands do list package names but how does one go around knowing which one belongs to the app of interest? Not all developers add app label in package name, so it is not obvious to guess.

Use Link2SD. It can list apps by name and show package names and other useful info.

On the phone, you can use Package Name Viewer 2.
You can browse through installed apps or search by app name.

Use App Manager app. It has plenty of features: sorting, filtering, finding, managing APK files, showing removed apps (since the time you've installed the app), root operations, and handling various split-APK files (APKS, APKM, XAPK) right from file manager apps.
Disclosure: I made the app.

I used an F-Droid package called "Applications Info" that provides a user-friendly UI for an app metadata which includes an application's full package name as well as the app's launcher activities.
https://f-droid.org/en/packages/com.majeur.applicationsinfo/


text:
View email previews on lock screen?
I am desperately looking for a way to view a preview of a new email message on the lock screen. I would like the screen to light and preview the email for few seconds.
If it is relevant - I have ICS 4.0.4

It's better to ask for a solution to a problem that you're having than to ask for a recommendation to a solution you've already chosen (in this case, an app). I've edited your question to be a better fit. Please review the [FAQ].

And after Al edited the question, you are sure to get upvotes :)

Try the widget locker app. It will allow the message preview that scrolls across the notification bar to show. if that isn't enough you could install any widget including mail widgets on the lock screen.


text:
Which service provides Facebook notifications and how to disable it to use mobile network
I'm having a bit of a problem trying to disable services from using mobile data connection on my Galaxy Nexus with Jelly Bean.
I've disabled Facebook to use mobile data connection, but I'm still getting Facebook notifications1 which is very odd. I'd like to disable it on mobile network completely and only have it enabled while on wifi.
My main mobile data connection users are:

Google Services - is it possible to control individual ones because there are many within this one and I can't even see which ones because they're all truncated
Gmail - I want this one enabled on Wifi and mobile network
Facebook (?!?!?!) - should be disabled on mobile
Google Search - what do I lose if I disable this one as well? which app uses this one? I'm not using Google Now on mobile network anyway.
...

I don't want to resort to manually disabling/enabling Facebook app every time I go to work which would hopefully disable these notifications as well.

1: Those notifications that display Facebook icon in notification area, not those that get delivered to my Gmail and I'd actually get email notifications about emails related to Facebook.

Try installing an app firewall such as DroidWall (needs root) and disallow 3G access for the Facebook app.

Onavo Count helps manage 3G data usage and doesn't require root.

I'm not interested in rooting... :(

@AlEverett: But ICS/JB already have great data monitoring tool built into the system that also includes setting margins etc. That's actually the tool that I used to get this data from initially anyway. What additional stuff does Onavo give me on top of that if anything at all?

Ah, yes. Forgot about that. I'm not sure. I do know that my daughter's Gingerbread phone had nothing like that, so I installed Onavo on hers. There are some blocking mechanisms in Onavo that might help. (A related question I asked)

It doesn't look like you can control the data connection for your Facebook notifications. You can have notifications on or off.
You might consider increasing your notification interval to reduce the impact of the notifications. (I see no need to receive Fbook notifications every 30 minutes.)
There may be a Tasker (et al.) "recipe" which can turn on/off Facebook notifications based on location, existence of wi-fi, etc., but I don't have any knowledge there.


text:
Is there a way to flash a boot.img from recovery without a computer?
Is there a way to flash a boot.img on your SD card without having to connect to a PC?
Is there an equivalent of the fastboot command?
I'm on a HTC Amaze 4G currently.

Do you have S-OFF? Which device are you using?

fastboot flash boot boot.img
Use this in fastboot mode.

HTC Amaze 4G, no S-Off, it flipped to S-On on recently trying to install a new ROM. No luck yet. I've also tried fastboot in the terminal of TWRP recovery, but it says fastboot -> no such command.

From what I understand now, it seems I won't be able to flash anything without S-Off, I'll try that and see if maybe fastboot then becomes available.

fastboot can't be used from the recovery

Once you have S-OFF you should be able to flash a custom recovery.  Just flash one that supports IMG files, such as ClockworkMod (ROM Manager).

I was able to install 4ext, with S-On still active.

Yes that is possible, but flashing roms through recovery will not flash the boot.img due to S-ON status. boot.img has to be flashed through fastboot via pc. See my previous comments for the command to be used from your computer terminal/command-prompt.


text:
Taking pictures while recording a video
How can I take pictures while recording a video, similar to the feature introduced in the Galaxy S3 or is that a hardware feature?
If the feature is available (e.g., via an app), which handsets and android versions are supported?

Personally, I'm interested in the Galaxy S2 but the feature may be of interest to other handset owners as well

Itamar, I strongly suggest you to re-phrase your question: Is there an app for X is listed being off topic (see our [FAQ]). I'd rather ask "how can I take pictures while recording a video". Very likely the answers will be similar, nevertheless -- but you avoid your question being closed before the answers are there :)


text:
My device is grayed out on Google Play website
Recently I had some trouble with google play app - first, I was getting "connection error" when using wifi. I cleared the app chache, uninstalled updates and after I played with it a bit more, it completely stopped woking giving me the "connection error" also on 3G.
I erased my device and installed CyanogenMod 10.1.
Now the Google Play app woks great but when I go to Google Play website, my device seems to be out of sync - it is grayed out and the list of apps installed is out of date.
How to fix this? Any ideas?

Try installing Titanium Backup and use its "Manage Android ID" function to update your device ID and "Market Doctor" to relink apps to the market

Very cool. Would the OP need their previous device ID or does TB take care of that? If so, how could you find the device ID that the Play store is looking for?


text:
How to limit/throttle WiFi data speed on my Android device?
I am testing an Android application and need to understand how does the app behave on different internet speeds.
An example of test case is:
1. set the maximum bandwidth to 20kbps and check how it works;
2. set the maximum bandwidth to 50kbps and check how it works... etc.
The problem is - I have no idea how to limit the traffic.
I am using WiFi and Charles Proxy. I use Charles to check how does the app reacts. Unfortunately, I am unable to throttle using Charles - for some reason Charles limits do not affect my app at all.
Anyway, can somebody assist me with this problem? Do you have any ideas on how to limit the bandwidth?
Thanks in advance.

Sounds like you'd be better off using a different proxy that does support throttling.

FOR ROOTED DEVICE
(copied from Mansour's answer on this post)

Checkout BradyBound. It's a system wide download speed shaper/limiter. Few things to note:

The app requires root access.
It works by dropping packets using iptables. This wastes some traffic - how much depends on the type of traffic (e.g. long running download, web browsing).
Rate measurement is done by number of packets instead of bytes so the speed limit won't be accurate.
This only limits TCP traffic (it makes no sense to drop UDP packets).

Note also that I'm the author of this app.

Edit #1:
Explanation:
Data is divided into small parts called Packets to be transmitted across the network.
It can be transmitted using TCP (Transmission Control Protocol) or UDP (User Datagram Protocol)
Let's take an example:
Suppose you are the server and I am the host and I want to download a file, so first I will send you a request for it, after which you will process, and instead of sending the whole file, you will divide the large file in small packets.
Now each packet that has been created will contain information like source IP (yours) and destination IP (mine), along with some additional data (sequence no., data size, time to live, etc.)
You will send those packets and they can reach me via routers.
It is not necessary that all the packets have to come to me via the same route.
They can come to me via different available routes.
When they reach me, TCP/UDP comes in picture.
If you have used TCP for transmission, when a packet reaches me, an acknowledgement stating that the packet reached me is sent back to you.
This feature is lacking in UDP. If you have used UDP, unlike TCP, it doesn't send acknowledgements to you. That means you, as a server, have no idea whether packets are reaching me or not.
In case it is lost in transmission, it is lost forever.
Dropping Packets
Dropping packets means discarding packets.
So basically, when I will drop the packet sent by you, an acknowledgement will be sent to you (in the case of TCP) that the packet was lost in transmission, so you will have to send it again.
In this way, it wastes traffic and limits speed at the same time I get the whole file.
If I will drop UDP packets, I will not receive the whole file.
That's the reason the app doesn't control UDP traffic.
And yes, root privilege is a must, since iptable can be accessed with superuser access only.

Is it possible to limit download speed alone not upload?

It seems difficult to controll Downloading Speed only...but I will try to update answer as soon as I will find a way to do it.

Is it completely impossible to make the app work also on non-rooted devices?
you said that dropping packets using iptables wastes some traffic, what do you mean by wastes?
I know the speed limit won't be exactly accurate but I still need it to be pretty accurate, lets say 10% deviation.
what do you mean by "this only limits TCP traffic (not UDP packets)"?, sorry I don't know what TCP and UDP are.

If you are under mac os x you can use "Network Link Conditioner".
You can install it in xcode from :
Xcode > Open Developer Tool > More Developer Tools
It will open a ressources web page from apple (you may need to login).
In the resources list, search for the latest "Hardware IO Tools" and download it.
Then install "Network Link Conditioner", it will add an option in your mac preference pane.
The idea is to get your mac on ethernet.
Share its connection on wifi.
Limit the traffic with Network Link Conditionner.
And connect your android on your mac wifi.
edit : it seems squid-cache support network throttling.
http://www.tldp.org/HOWTO/Bandwidth-Limiting-HOWTO/index.html

authors: أضحى بن هاشيم


text:
Access desktop files from ADB connected device
Is it possible to access the desktop files from Android device ?
 The device is connected to the desktop through USB.

Yes, its possible. But, not with ADB. ADB server runs only in Android (Device or Emulator). On PC, you get ADB client only.
With USB, you've got a network. Install a FTP, Samba or SSH server (like FileZilla Server) on PC & use a FTP, Samba or SSH client app (like AndFTP) on Android device to pull files from PC.
You can do the same over air, too. Just connect PC & Android device in same Wi-Fi network & do the same. If you don't have Wi-Fi router, use Connectify or mHotspot (assuming its Windows PC) to make a virtual hotspot.


text:
How to access intenal storage or internal memory of Android while conecting to PC?
I am connecting my Android device to PC, but its not show my internal storage.
Is there a method to access the internal storage of Android while connecting the android device to PC.

what's your android version?
Is your device rooted?

You could use ADB for this. In connection with graphical frontends like e.g. QtADB this makes it easy to access your device's storage. Access from the command line is also possible (see the linked tag-wiki).
Another possibility is to install a SSH server on your device, which you then could access using either an ssh command line client, or also with graphical applications like e.g. WinSCP.
How much of your internal storage you can access either way depends on whether your Android device is rooted. Only portions of the internal storage are accessible for users other than root.


text:
My Samsung Galaxy S2 keeps saying not registered on network when I try to phone
My Samsung Galaxy  S2 keeps saying not registered on network when I try to phone also a no entry sign where the signal bars should be keeps randomly appearing.
Does anyone know how to fix it or whats happening?

It sounds like you may need to reset your APN settings, Your phone will be slightly different than mine, I'm using a Nexus 4.  Try locating the following:
Settings -> Wireless & Networks -> Mobile Networks -> Access Point Names -> and from there locate the "Reset to default" option.
If that doesn't work, you can backup your device, and factory reset it.

I have got to access point names but can not find a reset to default option.

i did have my phone unlocked from orange so i could put my vodafone sim in i dont know if that would effect it? but that was months ago and the phone has worked fine untill now. @Michael

Try looking here, Menu > Settings > Wireless & Network > Mobile Network > Access Point Names > then press Menu, and look for the reset option.

ok found i have found it and reset it but it still says not registered on network, @michael

In that case I would perform a factory reset

i have prefromed a factory reset and i am still expierencing the same problem @michael

Experiencing a similar issue at the moment. Any known solution?


text:
How to auto unlock SIM/UICC on trusted devices?
I don't like manually entering PIN1 of SIM/UICC everytime I reboot my Android smartphone or switch SIM/UICC between multiple trusted devices. How to auto unlock SIM/UICC on my trusted devices? The case is similar to auto-decryption of external hard disks on trusted devices.
Update:
I don't want to remove security so that one needs to enter PIN on untrusted device.

Turn it off in your device settings? The state seems to be stored on the SIM card, so once disabled it stays so even when putting the card into another device. Where to find the corresponding setting depends on Android version. On my Optimus 4X with 4.0.3 it's in Settings->Security, first item (SIM locking).

@Izzy I am asking about auto-unlock on trusted device, not removing the security.

In that case, it is most likely a duplicate of deactivate PIN-request after airplane mode. But it's a little confusing: what makes a device trusted (and not the condition)?

@Izzy Its not a duplicate. In that question, you're okay to enter PIN after power-on. But, I don't want to enter PIN anytime at all on trusted device.

@Izzy Trusted device means on which you deployed the authority technique of auto unlock. The case is similar to auto-decryption of hard disks on trusted devices.

While this makes a difference in the question, the answer will be the same: it's possible on some devices (see there: Samsung devices seem to support that from the software-side, which is what you would need as well), while on most other devices there seems to be no way (you either disable SIM-PIN altogether, or not at all; but you cannot use an app to disable it on a condition, be it airplane-mode return or "authority technique"). I'd be glad to learn otherwise, as if you find a solution to your question, it most likely could be applied to mine as well.


text:
Using a separate account for Play Store purchases
My family own a number of Android devices. We each have our own google account but ther is no credit-card linked to any of them. I'd like to keep it that way. But occasionally, I'd like to buy an app, but I can't as there is no way to pay without registering a credit card. At least with iPhones, I can use a gift card, but they don't seem to be available for android.
Is there a way that I can create a new account and link it to a credit card and whenever one of the family wants to purchase an app, sign on to the app-store with this account, buy the app, and sign out again.  Will the app still work on the phone if the current user is not account that bought the app?
Edit: Here's the Play-Store "Accounts" dialog showing no "Add" option.

You can buy Google Play gift cards at various retailers as can be seen here. They come in $10, $25 and $50 increments.

Also see: How to change the account for Android Market?, which deals with the "multiple accounts on a single device" issue.

You should be able to add another account in Google Play on the devices that can be used for purchasing and downloading apps. You can even set a pin for it. With the Google Play Store open:

Tap the settings button in the upper right-hand corner

Tap Accounts

Tap Add account and then OK

Go through the account setup and now you should be able to select that account to purchase and download apps.

This seems to require a recent Android version. Most of our phones are 2.x (with no option to upgrade)

It may look a little different, but it should be available as long as you have a recent version of the Google play store (3.0 or newer). Most likely you have a menu button on your device. When you press the menu button when in the Google Play Store do you get an Account option?

My wife's Samsung Galaxy is running Google Play Store build 3.10.14 and Google Play services 3.0.27 on firmware version 2.3.3.  Play Store -> Menu -> Accounts pops up a dialog named "Choose Google Account" with only one account and no option to add another one. Menu -> Settings doesn't have any obvious option to add a new account.

If you can't add an account directly to the Play Store, you may need to add it to the system, and then it will show up in the Play Store. Try to add that account through the system settings and it will likely show up in the Play Store.

@ZnewMaN: I've just uploaded a screenshot of Play Store

@AdrianPronk As bassmadrigal stated, try adding the account to the system itself and then seeing if you can use it in the Play Store. From the home screen if you tap the menu button, go to settings and then accounts and sync. You should be able to add another account there.


text:
Installing TextSecure, but missing Google Play
I am running a custom ROM (Android 4.2.1) and want to install TextSecure from Whisper Systems. To support push messages Google Play is needed for Google Cloud Messages.
How can I install Google Play?
EDIT, installing the google package fails, installation aborted every time.

Install the Google package for your custom ROM. For instance cyanogenmod you flash the ROM then the Google package, ask whoever made the ROM for the correct version you need, most developers would put instructons in the first topic in their thread.


text:
Measuring temperature using built-in laser in Nexus 5x
I know it's possible to measure temperature using a laser, and Nexus 5x phone has laser-based focus. So it might be possible to use reading of the laser input and output to gauge temperature at what your camera is focusing on maybe via root access.
However, is it really possible to do that, perhaps using some apps?

I'm not an expert in this field, but reading the explanation of infrared thermometer on Wikipedia, I don't think general Android pdevice has sufficient component to do the reading. Here's the explanation from Wikipedia:

By knowing the amount of infrared energy emitted by the object and its emissivity, the object's temperature can often be determined....
...
The design essentially consists of a lens to focus the infrared thermal radiation on to a detector, which converts the radiant power to an electrical signal that can be displayed in units of temperature after being compensated for ambient temperature.
(Emphasis added)

Even if the Android device has IR laser, I don't think it has a thermal radiation detector installed.
There's an app called IR Thermometer by Sensorcon on Play Store which needs their Sensordrone product to do the reading. Other product, like RYOBI Phone Works also claim that it can do infrared themometer, but again, you have to buy their sensor to do the reading.


text:
How to stop uploading pictures on Google Photos on Pixel 2?
I've been using Android for 7+ years and now got a Google phone. There are several things I like but one I didn't is that any picture I take on my phone, it is uploaded to my Google Photos account. In the past, I used to create Picasa web albums to share with family.
It is a nice feature in some ways but I've set up albums in Google Photos in the past and now every random picture I take with my phone is uploaded there. I also get a lot of pictures from WhatsApp etc. which I don't want to be merged with Google Photos.
How can I separate phone pictures/albums from Google Photos?

Google Photos shows you a prompt when you first open the app. If you press confirm, it will automatically start uploading your photos to the cloud.
You can manage the setting in your Google Photos app.
Open the app and go to Settings > Back up & sync and turn it off.


text:
Getting a file to Samsung Galaxy Tab from my Laptop without Android?
I am trying to install new Android OS to Samsung Galaxy Tab but it does not have a Memory-card -slot and it does not have any OS currently. I need to somehow get the OS -file to the Samsung Galaxy Tab from my laptop, how can I do it?
ttyACM3 -description with ls
# ls -al /dev/ttyACM3
crw-rw---- 1 root dialout 166, 3 Oct 27 14:06 /dev/ttyACM3

Dmesg
 [538846.011011] wlan0: no IPv6 routers present
[539228.371156] usb 2-1.2: new high-speed USB device number 67 using ehci_hcd
[539228.387241] hub 2-1:1.0: unable to enumerate USB device on port 2
[539228.882058] usb 2-1.2: new high-speed USB device number 68 using ehci_hcd
[539228.990676] usb 2-1.2: New USB device found, idVendor=04e8, idProduct=6860
[539228.990685] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[539228.990691] usb 2-1.2: Product: SAMSUNG_Android
[539228.990696] usb 2-1.2: Manufacturer: SAMSUNG
[539228.990700] usb 2-1.2: SerialNumber: 4xxxxxxxxxxxxxxxx
[539228.995453] cdc_acm 2-1.2:1.0: This device cannot do calls on its own. It is not a modem.
[539228.995729] cdc_acm 2-1.2:1.0: ttyACM3: USB ACM device
[539820.734285] thinkpad_acpi: unknown possible thermal alarm or keyboard event received
[539820.734288] thinkpad_acpi: unhandled HKEY event 0x6040
[539820.734290] thinkpad_acpi: please report the conditions when this event happened to ibm-acpi-devel@lists.sourceforge.net
[539820.734655] thinkpad_acpi: EC reports that Thermal Table has changed

usb-devices
:  Bus=02 Lev=02 Prnt=02 Port=01 Cnt=01 Dev#= 69 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=04e8 ProdID=6860 Rev=04.00
S:  Manufacturer=SAMSUNG
S:  Product=SAMSUNG_Android
S:  SerialNumber=4xxxxxxxxxxxxxxx
C:  #Ifs= 3 Cfg#= 1 Atr=c0 MxPwr=96mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=02(commc) Sub=02 Prot=01 Driver=cdc_acm
I:  If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_acm
I:  If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=(none)

I can see that my laptop can detect the SGT but I am now trying to find where it is mounted to. How can I find the directory for SGT to save a file to it?

...perhaps related here.

What do you mean "it does not have any OS currently"? What happened to the default Android? If you've actually removed everything from the tablet, congratulations! Do you have a Windows machine handy?

@ChinmayKanchi it has currently only the Samsung bootloader. My friend tried to update it but it did not work. Yes, I have Windows 8 in virtual machine.

You should be able to flash with Odin. You might have to wait a while for the full answer, I'm not currently home.

As I said in my comment, you should be able to flash using Odin. I'm not sure it works through a VM though, so perhaps you might have better luck with Heimdall.
Basically, you need to get the appropriate firmware for your device from here (signup required). Then, shut down your device and boot it while holding volume down + power. Once the tablet enters download mode, connect it to a PC.
If using Odin, the file you downloaded goes into the PDA box. I'm not too sure about Heimdall, but it looks like the downloaded file goes into the "Heimdall firmware package" box. Then click "Start" in Odin and wait for your device to reboot.
At this point, the tablet should boot into Android.

I've never been able to get Heimdall to work, but Odin definitely should do the  trick.  If you pass through the USB port to the VM it should work (at least, it does using VirtualBox on Ubuntu).


text:
Add rotation toggle to powerbutton menu?
Is there any way (short of reflashing to a totally new ROM) to add a "toggle auto-rotate" or "toggle portrait/landscape" option to the menu that comes up when you press and hold the power button?
I'm endlessly fighting with auto-rotation. For whatever reason, every Android device I've owned ends up being over-eager to rotate, but stubbornly resistant to rotating BACK, even when my gestures should be making it completely obvious that I didn't want it to rotate. However, every time I disable auto-rotation, I end up finding myself in a position where I have to rotate to landscape for something, and have to kill even more time trying to re-enable it.
For what it's worth, I have both a Galaxy S3 and a Xoom (wi-fi) (S3 running ICS, Xoom running JB).

In short, no way of adding it except obtaining the source and modifying it, compile it and flash the freshly built ROM. Why not use Widgetsoid or Extended Power Controls

Hmmm. I was afraid of that. If anybody happens to know, is the code that governs the power-button menu behavior kernel-level, Touchwiz-level, or merely a normal app with source that's not intended to be user-modified, but can be trivially hacked and extended anyway as long as the phone is rooted & the partition can be mounted +rw?

Definitely not kernel-level. It might be an apk but certainly not a normal app in that sens.

In the more recent updates to the Galaxy S III (at least Android 4.1.2) you can modify the notification panel at the top of the notifications screens that you get when you drag from the status bar. Open settings, 'Display' (under 'Device' heading) then in the 'General' heading choose 'Notification panel'.
Here you should be able to choose which Quick setting buttons you want to appear and one of them is the toggle for 'Screen rotation'.

Have you tried Notification Toggle from the Google Play store?
It will let you change the rotation lock from the notification screen.

Notification toggles in your rom are related to the framework.apk and settings.apk. So you technically need to edit them to enable/add other toggles. You could try Swipepad for launching/performing quick tasks.

I don't think that an app can change the power button menu. The same is true for the "power widget", a strip of toggles at the top of the notification area that some ROMs offer. You can, however, get something very close with the help of Widgetsoid -- in this case the toggles are inside an ongoing notification instead of part of the notification area.
Auto-rotate is one of the toggles included, of course.


text:
Replying to the original tweeter in a retweet in TweetCaster?
If a friend retweets something nad I attempt to 'reply' to it tweetcaser only shows my friend who retweeted the item as a recipient in the @ thing, is it possible for me to be able to see the original tweet username @ as well so my reply goes to both?

Some Twitter apps allow you to "retweet with comment" or "quote & reply" in which case you can remove the original username before retweeting.  If your friend chose to do that before retweeting, you won't be able to see the original username.
TweetCaster Pro has the "retweet with comment" option.

Could you provide a link to the latter on Google Play?

TweetCaster Pro for Twitter on Google Play https://play.google.com/store/apps/details?id=com.handmark.tweetcaster.premium

You can edit your answers, any time, to improve them. Thanks for the link, I added it into your answer!


text:
Is there a TODO app with nested todo lists?
There's a sea of todo apps out there, with all kinds of bells and whistles. I only need one feature: nested lists. I should be able to start with a general goal ("finish that course") and specify it further ("buy course literature", "turn in homework", "prepare bribes" etc) without cluttering the main list. Is there any app with this feature?
Except for that, I just want it to be simple. I don't need alarms, due dates, syncing, colors, etc.

Google Tasks allows for nested tasks, and there are multiple clients that support it.

You could check out Astrid Task or Checkmark they supports nested todo lists.

These links are dead.


text:
Can't connect to OpenVPN properly on Lollipop
I'm having a problem similar to that described here: https://forums.openvpn.net/topic17851.html - namely I have a home OpenVPN server set-up that I can connect to with my Linux machines and with Android Kitkat, but when I tried to connect under Android Lollipop (with various Android OpenVPN apps), it doesn't work - I remain connected to my local network.  Most of the OpenVPN apps I try, including OpenVPN Connect (the official app) just report successful connection (but then don't show any up/down activity beyond an initial blip) - even though they aren't really connecting me properly to the VPN.  However, 'OpenVPN for Android' app additionally reports:
Route rejected by Android224.0.0.0/3 Bad LinkAddress params /224.0.0.0/3

Which is mentioned in the forum post linked above. I tried the solution suggested there (though, in fact my client-side .conf didn't have any "topology" entry - so I tried adding "topology net30"), but it didn't help.
Again, all of my other devices (Android Kitkat, Linux machines) can connect to the VPN without any difficulties or complaints.  Is this some sort of Lollipop-specific glitch and is there any way round it?

authors: علی اکبر صفرزاده ملاسرائی


text:
Updating to 4.4.3
I'm trying to update my Nexus 4 from 4.4.2 to 4.4.3 and every time the message pops up, I select install and clockworkmod recovery keeps saying error, installation aborted, STATUS 7. I've even tried doing toggle signature verification. I have the latest cwm, root, and I also have ROM manager installed. Does anyone know how to properly install this update?

Put the stock recovery back and use that for the update, instead of trying to do it with CWM.
For a Nexus device, you can get the official factory images from here.  Download the Nexus 4 factory image for the Android version you're currently running (probably KOT49H) and unzip it.  Inside, one of the files is a .zip file.  Extract that, and you'll find a recovery.bin file.  Flash this to your recovery partition in the same way that you flashed CWM, and you'll have your stock recovery back.  (You can reinstall CWM when you're done.)
Remember to enable OTA survival in SuperSU, by the way, or you'll lose root when you install the update.

On my phone there is no stock recovery

Every Android device has a recovery.  It's what's used for system updates and factory resets.  When you installed CWM, you were putting it into the existing recovery partition, replacing the recovery that came with the phone.

my phone does not have a recovery. If you boot it into a recovery while theres no cwm it just gives you an error. I installed it using usb and a program on my computer (odin style)

The screen with the android in the middle and a red triangle above him?  That is the stock recovery.  It's not meant to be used interactively like CWM is; it expects the Android OS to have provided a script to tell it what to do automatically.

Well thats aomething new, thanks, but all that trouble espetially loosing both cwm and root in the end is just not worth it. Hell if i could i would downgrade to 4.3 cuz kitkat is horrible, glitchy, and uses up a lot of battery and i mean a lot. Samething happened to my old phone, it had 2.3 gingerbread and upgrading it made problems. Every phone should not be upgraded

Instead, i might even downgrade. Do you think i can downgrade with keeping all my files. Keeping them directly, not backing up and restoring cuz that never worked for me

FWIW, my Nexus 5 is doing fine with KitKat.  And 4.4.4 is a security update; you probably ought to install that.  SuperSU OTA survival worked fine for both the 4.4.3 and 4.4.4 upgrades on both my Nexus 5 and Nexus 10, so I expect it'll work fine on your Nexus 4 as well.

No its fine, this whole thing gave me the idea to downgrade, and i will try maybe installing the stock nexus 4 rom

Installing any factory image will wipe your data.


text:
LG Optimus G Pro E985 - How to make pictures more colorful
I have this phone and it takes good pictures, but they are too bland - there is no life in colors, and they are low contrast and too white-ish. How do I increase the colors presence?
Here is one of the images I've taken

If the colors are washed out even on automatic mode and good lighting, it may be a hardware issue. Best option might be to use a 3rd party app to increase the photos' vibrance. I personally use Perfectly Clear and Pixlr Express to improve colors on my Samsung Galaxy S4.

you mean I cant just change the settings of my camera, I should edit the images after ive taken them? I dont think its a hardware issue, the phone is almost new. I am going to add an image to my question so you can see it

@J.Kowalski Take a look at this comparison done by Phone Arena. You will notice that the LG Optimus G Pro's colors are really washed out. http://www.phonearena.com/reviews/Samsung-Galaxy-S4-vs-LG-Optimus-G-Pro_id3296/page/3

well I like those. they look better than mine :)


text:
What is the meaning to close Google apps source code
According to the recent news, google apps are closed source and one cannot use it after forking android.
But, as I understand, I can fork Android, create my own OS and then install Gapps manually.
If the users can do it manually, theoretically anyone with any device can use Gapps, than what is the advantage of closing the source if it does not prevent Google from creating other Android alternatives, e.g Cyanogenmod?
EDIT: I am quite aware of the advantages of having closed/open source. The question is that Google wants to get rid of competitors and prevent Android fragmentation. People can fork Android and one day become major OS provider. OF course, forking android without google services has very little value for users and it is extremely difficult to write such services from scratch. So, Google tries to keep its leadership in Android market by closing its service.
But, if one can fork android, customize it, than use Google services (even if installed manually), than this does not help Google at all in reaching its goal, i.e. prevent competitors and Android fragmentation.The Google services still can be very easily used and everyone can have its own alternate Android. So, what is the point to close the services?
Besides this, again, what is the meaning to have Google approved devices?I can  manufacture devices and use their services without having the approval.

Technically, you are not allowed to "install Gapps manually" unless your phone already comes with them pre-installed.  The Google Apps package (that includes Google Play Services, Play Store, and several other apps) is Google's intellectual property, and nobody is allowed to distribute it, except for Google's certified partners that have passed CTS.
For example, CyanogenMod ROM does not include, host, or distribute the Gapps package. Instead, they have scripts built into their tools that back up Gapps that are already installed on your handset prior to  installation/upgrade, and restore them afterwards.  Any other ROMs and maintainers who do host Gapps packages are doing so illegally, and are infringing on Google's copyright.  For the most part, Google chooses to not enforce their copyright against small-time guys, but will not hesitate to unleash their army of lawyers when they deem is necessary.
To answer your question, Google's services are essential for their grip on Android's ecosystem. Only the big guys like Amazon or Samsung can afford to completely steer clear of Google's services with their own offerings. For example, not having access to Play Store on an Android handset is a huge drawback for a smaller manufacturer like HTC, Huawei, Motorola, etc., since the alternatives are usually lacking in both numbers, as well as (perceived) security.  Google uses this as both a carrot and a stick.

Please see the question update.

Answer still applies. Legally speaking, you cannot cannot "use their services" without being certified. It's one thing when a couple of WinZip masters post a file on a forum, and another when a manufacturer wants to bring a new Android device to the market.

Is Cynogenmod certified to use them? I did not find any info on the web

As I said in my answer, CM no longer provides Gapps. During initial installation and subsequent updates, they back up Gapps that are already present on your phone and restore them after install/update process. This is because Google actually sent them "Cease and Desist" letter back in the day when Gapps were baked into CM. See the drama here.

With that said, Cyanogen, Inc. is most definitely certified for Google Apps, and CM on Oppo N1 is fully licensed.

The advantage to closed source apps is that I can write my app and add features and then sell it. This makes me money. But if it is open source, other people can fork the source code for my app and modify it. They might even make it better. But then I'm not getting any money because they are using the better version although I was the first one to come up with it.
Even though the user can manually load up Google apps, they are not able to modify it at all. Companies such as Cyanogenmod can't take Google apps source code and make it better because they don't have that source code.
Lastly, this is very common in software development and you shouldn't expect most things to be open source.
After your edit,
It does help Google. You must understand that Google does not directly generate revenue from Android as an OS. They generate revenue when people use Google services on Android. If you use Google services, Google makes money even if they didn't explicitly tell you so. Google is not going to come after you as an end user using their services.
Now if you are an OEM or company that wants to tack on Google services on your fork of android, you require to be certified as explained in the other answer. Then Google rightly wants a part of the money you make because you are marketing your device with Google services!

Please see question edit


text:
Alarm ringtone plays after calling
This problem started 2-3 months ago. It doesn't matter who initiates call, after disconnect my phone plays the standard melody used to wake me up in the morning (Dreamland). I don't know how to turn it off, because no process is shown in task manager. Last time I did it by holding HOME key for 1 second, sometimes I just reboot the phone.
I wanna disable it since it's very annoying and causes downside effects to my work. Did anybody face such thing? How can I investigate the incident further?
As I thought (and following advice given down), when I changed alarm melody to another one, melody played after call was changed to the new melody. This time I stopped it using memory cleaner.
DETAILS:
Phone model: Star X920 (HTC Butterfly)
Firmware: MIUI 4.4.25
Android: 4.2.1 JOP40D
Kernel: 3.4.5

If this is occurring at all times then it might be a bug or something.

Have you tried, as an experiment, to change you morning alarm ring tone to something else just to see if the same ringtone plays after a call. If not than it is not related to your alarms and may help you narrow it down.

@MANI of coarse it's bug. I need a workaround.

@Lazer I changed alarm ringtone and phantom melody also was changed.

@Danatela Does this only happen if you have alarms set or does this happen even with no alarms set? Have you tried deleting all your alarms? If this works maybe try adding them back one by one. Please keep us updated.

@Lazer it seems your advice helped :) thanks!

As per my comments:
Have you tried, as an experiment, to change you morning alarm ring tone to something else just to see if the same ringtone plays after a call. If not than it is not related to your alarms and may help you narrow it down.
Does this only happen if you have alarms set or does this happen even with no alarms set? Have you tried deleting all your alarms? If this works maybe try adding them back one by one. Please keep us updated.

OK, I turned alarm off and sound was gone. Normal beep returned.


text:
Galaxy can't boot up, stucked at Samsung logo
I recently upgraded my stock ROM of my Galaxy GT-p1000 from Froyo 2.2 to Gingerbread 2.3.6 and got stucked. I used the Odin to flash the ROM, it was successful by indicating that the ROM has been flashed OK, it rebooted and hanged at Samsung logo there rebooting & loop back to restart rebooting again over and over. Someone told me something about flashing the boot image with ADB, I do not even know what's ADB talking less of where find. I'm stuck, what should I do for my tab to boot up?

Have you checked with the first-aid provided in the boot-loop tag-wiki? E.g. have you cleared cache, wiped Dalvik, etc?

Since you said you have aready use Odin to flash, I think you know how to get these necessary files: Bootloader, PDA, PHONE, CSC, PIT.
Then, let's start.
Force the device to the upload mode by this way: simultaneously press power button and down button.

When the device is in download mode, plug Odin software and flash ONLY bootloader file (normally bootloader file is like this: BOOTLOADER_DEVICECODE.tar.md5 ).
After that, flash again with all PDA, Bootloader, CSC, PHONE and it's ok without PIT.
You should use the lastest version of Odin, as I am now using ver. 3.07.

Please feel free if you need more help.

Sir, your answer is very close to solving this my problem. I was able to download the latest version of Odin 3.07 but I can't find where to download BOOTLOADER_DEVICECODE.tar.md5. Where can I find this file to download?

Could it be that P1000XWJQ8 Android 2.3.6 Firmware Rom that I used to Flash/Update the Galaxy Tab GT-P1000 is the wrong one? Everything seem Ok when I flash the Tab, it clearly displayed "PASS" after it was successfully flash. At first when the Bootloop started, I flashed PDA with DBData file. Can you suggest another Firmware ROM for the Galaxy Tab GT-P1000, Jelly Bean 4.0.1, 4.0.4 or something? I really needs your help.

Again someone suggested that I should flash my Boot Image with ADB, I do not even know what is ADB, do you know anything about ADB? If you please tell me about and where I can get the file

As I know, normally when something happens with on/off state, it is related to bootloader file. Bootloader file is the most basic ground state for other layers, and apps to boot up.

Well, I have no idea using ADB, Odin is likely a greatest one to flash device. :)

This might be helpful for you: http://androidromupdate.com/2012/02/26/how-to-install-p1000xwjq8-android-2-3-6-firmware-update-on-galaxy-tab-gt-p1000/


text:
How to use phone as an USB Wi-Fi adapter?
I would like to use my SE Xperia 8 with 2.1 as an usb wifi adapter to my PC. What I would like to do is set it to access point mode and share my ADSL internet with my laptop through wifi.
I would connect the phone via an usb cable and I would like to be able to route and share my pc's internet through it to and back from my laptop.
I don't mind if the firmware must be changed as I have an other phone. But I prefer if there is easier/more convenient way to do this. On the pcs I'm also flexible about OSes.
How could I use my phone as an wifi adapter?
EDIT To make it more clear, here is what I mean:
I have:

"PC A" with internet over ADSL. no wifi.
my phone, it has an usb cable and a wifi chipset.
"PC B" with wifi

What I would like to do us to use PC A's internet on PC B, with the help of my phone.
Connect Internet to PC A, then connect my phone to PC A, then connect PC B to my phone via Wifi, and use PC A's internet on PC B.
Internet >>> Adsl modem >>> ethernet cable >>> PC A >>> USB cable >>> phone >>> wifi >>> PC B

PDANet+ or Klink would probably work for you. There are a number of apps that have a computer counterpart for sharing phone's connection over USB.

I just added the usb-tethering tag to your question, as that's what it's all about. Take a look at the most frequented questions of this tag, and your question will find an answer :)

@Izzy I edited my question because I think it is not a duplicate. I don' tunderstand how reverse tethering helps me, as I cannot share it with PC B. Or... should I set it up, does all what remain is to make the phone an acces point (how?)? Will it forward all ports? I'd like to use ftp, ssh and https.

"Reverse tethering" is the part "PC A -> USB -> phone", which is what your question described. "phone -> WiFi -> PC B" would be "WiFi Hotspot" (added that tag to your question). Everything else is outside the scope of our site ;) So I'd say check those two first, and see whether they can work together (i.e. if the tethered phone can play hotspot at the same time).

@Izzy I see, very informative, thank you! I'll ask another Q (if must) when I have a result, so this can be closed as a duplicate.

Yepp, I guess that's the best choice. Above should get you started, and when you get stuck, simply ask a specific question on what you've done and where you've got stuck. We'll be glad to help you out then, of course!

Nice Question....


text:
Hide certain numbers when picking SMS recipients
So many of my contacts have both home and cell numbers in my contact list. But when I am typing in names I  the recipient field go sms pro), I don't really want to see numbers that cannot receive texts, like home phone numbers. Is there a logical way to manage this?


text:
GMail "All Mail" not showing anything from last 30 days on Nexus 7 or Nexus 10
All the other labels are correct and synced according to their various settings.  There is no particular setting for "All Mail"
Today, I only see up to June 24.  When I scroll to the bottom it adds older messages as expected.
Tomorrow, it will add June 25's email to the All Mail Folder.  It's been doing this ever since I got the Nexus 7 nearly two weeks ago.
I have no problems on a Samsung Galaxy Note (same account, but obviously running ICS and not JB).  When I have already filed everything, I can go to All Mail and see the messages which recently came in, regardless of their labels.
This behavior is not happening on a Google Apps Domain account in the same Nexus but is happening on a Gmail account
Update: Just got a Nexus 10 and problem immediately occurred, and still occurring on 7 with latest 4.2.
I have tried setting the date forward, but no new mail shows up until real time passes.  The unread message count on the left shows the count of unread messages in "all mail", but none of those (recent) unread messages show up in the actual message list on the right (in the tablet dual-view)
I have submitted this as a bug several times to Google but with no result.
https://productforums.google.com/forum/#!msg/gmail/qzl9uUvk3p8/eFyD6HwkuJIJ
Here is the output from ADB LogCat from the time I disable and re-enable sync and go into mail and tap on All mail until the screen is finished loading:
D/SyncManager(  432): setSyncAutomatically:  provider gmail-ls, user 0 -> false
D/dalvikvm(20305): GC_CONCURRENT freed 465K, 7% free 9152K/9784K, paused 5ms+11ms, total 41ms
D/SyncManager(  432): setSyncAutomatically:  provider gmail-ls, user 0 -> true
I/ActivityManager(  432): Start proc com.google.android.gm for service com.google.android.gm/.provider.MailSyncAdapterService: pid=21085 uid=10018 gids={50018, 3003, 1015, 1028}
I/ActivityThread(21085): Pub com.google.android.gm2.accountcache: com.android.mail.providers.GmailAccountCacheProvider
D/dalvikvm(21085): GC_CONCURRENT freed 277K, 5% free 7638K/8020K, paused 3ms+3ms, total 37ms
D/ActivityThread(21085): Loading provider com.android.gmail.ui: com.google.android.gm.provider.UiProvider
D/dalvikvm(20305): GC_CONCURRENT freed 510K, 7% free 9147K/9808K, paused 8ms+7ms, total 43ms
D/dalvikvm(21085): GC_CONCURRENT freed 465K, 8% free 7687K/8304K, paused 7ms+2ms, total 55ms
D/dalvikvm(21085): WAIT_FOR_CONCURRENT_GC blocked 28ms
D/dalvikvm(21085): WAIT_FOR_CONCURRENT_GC blocked 29ms
I/ActivityThread(21085): Pub gmail-ls: com.google.android.gm.provider.MailProvider
I/ActivityThread(21085): Pub com.google.android.gm: com.google.android.gm.provider.PublicContentProvider
I/ActivityThread(21085): Pub com.google.android.gm2.conversation.provider: com.android.mail.browse.GmailConversationProvider
I/ActivityThread(21085): Pub com.google.android.gm.suggestionsprovider: com.android.mail.providers.SuggestionsProvider
I/ActivityThread(21085): Pub com.android.gmail.ui: com.google.android.gm.provider.UiProvider
D/dalvikvm(21085): GC_CONCURRENT freed 373K, 7% free 7755K/8304K, paused 4ms+20ms, total 51ms
D/dalvikvm(21085): GC_CONCURRENT freed 285K, 6% free 7897K/8336K, paused 3ms+6ms, total 35ms
I/Gmail   (21085): calculateUnknownSyncRationalesAndPurgeInBackground: queueing
I/Gmail   (21085): calculateUnknownSyncRationalesAndPurgeInBackground: queueing
D/dalvikvm(21085): GC_CONCURRENT freed 358K, 6% free 8015K/8516K, paused 2ms+3ms, total 29ms
I/Gmail   (21085): calculateUnknownSyncRationalesAndPurgeInBackground: running
I/Gmail   (21085): calculateUnknownSyncRationalesAndPurgeInBackground: running
I/Gmail   (21085): MainSyncRequestProto: lowestBkwdConvoId: 0, highestHandledServerOp: 7077919, normalSync: true
I/Gmail   (21085): calculateUnknownSyncRationalesAndPurgeInBackground: queueing
I/Gmail   (21085): calculateUnknownSyncRationalesAndPurgeInBackground: queueing
D/dalvikvm(21085): GC_CONCURRENT freed 201K, 5% free 8327K/8680K, paused 3ms+3ms, total 34ms
D/dalvikvm(21085): WAIT_FOR_CONCURRENT_GC blocked 17ms
D/dalvikvm(21085): WAIT_FOR_CONCURRENT_GC blocked 5ms
D/dalvikvm(21085): WAIT_FOR_CONCURRENT_GC blocked 5ms
D/dalvikvm(21085): WAIT_FOR_CONCURRENT_GC blocked 5ms
I/Gmail   (21085): calculateUnknownSyncRationalesAndPurgeInBackground: queueing
I/Gmail   (21085): calculateUnknownSyncRationalesAndPurgeInBackground: queueing
I/Gmail   (21085): calculateUnknownSyncRationalesAndPurgeInBackground: running
I/Gmail   (21085): calculateUnknownSyncRationalesAndPurgeInBackground: running
I/Gmail   (21085): calculateUnknownSyncRationalesAndPurgeInBackground: queueing
I/Gmail   (21085): calculateUnknownSyncRationalesAndPurgeInBackground: queueing
D/dalvikvm(21085): GC_CONCURRENT freed 446K, 7% free 8362K/8952K, paused 6ms+4ms, total 42ms
I/Gmail   (21085): calculateUnknownSyncRationalesAndPurgeInBackground: running
I/Gmail   (21085): calculateUnknownSyncRationalesAndPurgeInBackground: running
I/Gmail   (21085): calculateUnknownSyncRationalesAndPurgeInBackground: running
D/dalvikvm(21085): GC_CONCURRENT freed 475K, 7% free 8401K/9028K, paused 3ms+2ms, total 25ms
D/dalvikvm(21085): WAIT_FOR_CONCURRENT_GC blocked 16ms
D/dalvikvm(21085): GC_CONCURRENT freed 416K, 8% free 8370K/9060K, paused 4ms+1ms, total 23ms
D/dalvikvm(21085): WAIT_FOR_CONCURRENT_GC blocked 18ms
I/Gmail   (21085): calculateUnknownSyncRationalesAndPurgeInBackground: running
D/dalvikvm(21085): GC_EXPLICIT freed 301K, 8% free 8414K/9060K, paused 1ms+2ms, total 38ms
I/Gmail   (21085): MainSyncRequestProto: lowestBkwdConvoId: 0, highestHandledServerOp: 7077940, normalSync: true
I/Gmail   (21085): lowestBackward conversation id 0
D/dalvikvm(20305): GC_CONCURRENT freed 539K, 8% free 9115K/9808K, paused 7ms+11ms, total 62ms
D/dalvikvm(21085): GC_CONCURRENT freed 361K, 7% free 8454K/9060K, paused 11ms+3ms, total 172ms
D/dalvikvm(21085): GC_FOR_ALLOC freed 185K, 7% free 8475K/9112K, paused 17ms, total 18ms
D/dalvikvm(21085): GC_FOR_ALLOC freed 174K, 8% free 8473K/9132K, paused 17ms, total 17ms
D/dalvikvm(21085): GC_FOR_ALLOC freed 186K, 8% free 8472K/9132K, paused 18ms, total 18ms
D/dalvikvm(21085): GC_FOR_ALLOC freed 216K, 8% free 8470K/9132K, paused 17ms, total 17ms
D/dalvikvm(20305): GC_CONCURRENT freed 342K, 6% free 9285K/9808K, paused 5ms+18ms, total 56ms
D/dalvikvm(20267): GC_CONCURRENT freed 395K, 6% free 8914K/9472K, paused 16ms+51ms, total 108ms
I/ActivityManager(  432): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.android.launcher/com.android.launcher2.Launcher} from pid 432
I/ActivityManager(  432): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.google.android.gm/.GmailActivity bnds=[656,595][784,723]} from pid 831
D/dalvikvm(21085): GC_FOR_ALLOC freed 229K, 8% free 8489K/9132K, paused 51ms, total 51ms
I/TwoPaneLayout(21085): setting up new TPL, w=800 fw=266 cv=800
D/libEGL  (21085): loaded /system/lib/egl/libEGL_tegra.so
D/libEGL  (21085): loaded /system/lib/egl/libGLESv1_CM_tegra.so
D/libEGL  (21085): loaded /system/lib/egl/libGLESv2_tegra.so
D/OpenGLRenderer(21085): Enabling debug mode 0
D/dalvikvm(21085): GC_CONCURRENT freed 232K, 5% free 8725K/9152K, paused 14ms+10ms, total 76ms
I/ActivityManager(  432): Displayed com.google.android.gm/.GmailActivity: +479ms
D/ConversationCursorLoader(21085): Add loader: content://com.android.gmail.ui/caderoux@gmail.com/conversations/594525445
I/ConversationCursor(21085): [Resumed: Inbox]
I/TwoPaneLayout(21085): onViewModeChanged(2)
I/TwoPaneLayout(21085): conv-list mode layout, x=0/266/800
D/dalvikvm(21085): GC_CONCURRENT freed 283K, 5% free 8922K/9360K, paused 6ms+12ms, total 54ms
I/ConversationCursor(21085): Create: initial creation
I/Gmail   (21085): MainSyncRequestProto: lowestBkwdConvoId: 0, highestHandledServerOp: 7077940, normalSync: true
I/Gmail   (21085): lowestBackward conversation id 0
I/ConversationCursor(21085): ConversationCursor query: content://com.android.gmail.ui/caderoux@gmail.com/conversations/594525445?limit=50, 182ms, 0 results
I/ConversationCursor(21085): [refresh() Inbox]
I/ConversationCursor(21085): [Start refresh of Inbox: 1097539104]
D/dalvikvm(21085): GC_CONCURRENT freed 372K, 6% free 9043K/9572K, paused 2ms+3ms, total 30ms
I/ConversationCursor(21085): ConversationCursor query: content://com.android.gmail.ui/caderoux@gmail.com/conversations/594525445, 49ms, 0 results
D/dalvikvm(21085): GC_CONCURRENT freed 334K, 6% free 9247K/9740K, paused 1ms+3ms, total 29ms
I/ConversationCursor(21085): [Query done Inbox: 1097539104]
I/ConversationCursor(21085): [Notify Inbox: onRefreshReady(), 1 listeners]
I/ConversationCursor(21085): [sync() Inbox]
I/ConversationCursor(21085): [Notify Inbox: onDataSetChanged()]
D/dalvikvm(21085): GC_CONCURRENT freed 257K, 5% free 9600K/10028K, paused 3ms+3ms, total 28ms
D/dalvikvm(21085): WAIT_FOR_CONCURRENT_GC blocked 22ms
I/ConversationCursor(21085): [Notify Inbox: onRefreshRequired()]
I/ConversationCursor(21085): [refresh() Inbox]
I/ConversationCursor(21085): [Start refresh of Inbox: 1097494336]
D/dalvikvm(21085): GC_CONCURRENT freed 739K, 9% free 9573K/10484K, paused 2ms+5ms, total 40ms
I/ConversationCursor(21085): ConversationCursor query: content://com.android.gmail.ui/caderoux@gmail.com/conversations/594525445, 21ms, 0 results
I/ConversationCursor(21085): [Query done Inbox: 1097494336]
I/ConversationCursor(21085): [Notify Inbox: onRefreshReady(), 1 listeners]
I/ConversationCursor(21085): [sync() Inbox]
I/ConversationCursor(21085): [Notify Inbox: onDataSetChanged()]
D/dalvikvm(21085): GC_CONCURRENT freed 612K, 8% free 9694K/10484K, paused 2ms+3ms, total 29ms
D/dalvikvm(21085): WAIT_FOR_CONCURRENT_GC blocked 20ms
I/ConversationCursor(21085): [Notify Inbox: onRefreshRequired()]
I/ConversationCursor(21085): [refresh() Inbox]
I/ConversationCursor(21085): [Start refresh of Inbox: 1096355048]
I/ConversationCursor(21085): ConversationCursor query: content://com.android.gmail.ui/caderoux@gmail.com/conversations/594525445, 8ms, 0 results
I/ConversationCursor(21085): [Query done Inbox: 1096355048]
I/ConversationCursor(21085): [Notify Inbox: onRefreshReady(), 1 listeners]
I/ConversationCursor(21085): [sync() Inbox]
I/ConversationCursor(21085): [Notify Inbox: onDataSetChanged()]
D/dalvikvm(21085): GC_CONCURRENT freed 799K, 10% free 9584K/10572K, paused 3ms+4ms, total 52ms
D/ConversationCursorLoader(21085): Reset loader/disable cursor: Inbox
D/ConversationCursorLoader(21085): Add loader: content://com.android.gmail.ui/caderoux@gmail.com/conversations/594525444
I/ConversationCursor(21085): [Resumed: All mail]
I/ConversationCursor(21085): Create: initial creation
I/Gmail   (21085): MainSyncRequestProto: lowestBkwdConvoId: 0, highestHandledServerOp: 7077940, normalSync: true
I/Gmail   (21085): lowestBackward conversation id 0
I/ConversationCursor(21085): ConversationCursor query: content://com.android.gmail.ui/caderoux@gmail.com/conversations/594525444?limit=50, 111ms, 0 results
I/ConversationCursor(21085): [refresh() All mail]
I/ConversationCursor(21085): [Start refresh of All mail: 1098489856]
D/dalvikvm(  432): GC_EXPLICIT freed 2545K, 38% free 18794K/30040K, paused 4ms+10ms, total 103ms
I/ConversationCursor(21085): ConversationCursor query: content://com.android.gmail.ui/caderoux@gmail.com/conversations/594525444, 133ms, 0 results
I/ConversationCursor(21085): [Query done All mail: 1098489856]
I/ConversationCursor(21085): [Notify All mail: onRefreshReady(), 1 listeners]
I/ConversationCursor(21085): [sync() All mail]
I/ConversationCursor(21085): [Notify All mail: onDataSetChanged()]
D/dalvikvm(21085): GC_CONCURRENT freed 575K, 9% free 9631K/10572K, paused 5ms+10ms, total 45ms
I/ConversationCursor(21085): [Notify All mail: onRefreshRequired()]
I/ConversationCursor(21085): [refresh() All mail]
I/ConversationCursor(21085): [Start refresh of All mail: 1098541328]
I/ConversationCursor(21085): ConversationCursor query: content://com.android.gmail.ui/caderoux@gmail.com/conversations/594525444, 14ms, 0 results
I/ConversationCursor(21085): [Query done All mail: 1098541328]
I/ConversationCursor(21085): [Notify All mail: onRefreshReady(), 1 listeners]
I/ConversationCursor(21085): [sync() All mail]
I/ConversationCursor(21085): [Notify All mail: onDataSetChanged()]
D/dalvikvm(21085): GC_FOR_ALLOC freed 567K, 10% free 9612K/10572K, paused 32ms, total 32ms
D/dalvikvm(21085): GC_FOR_ALLOC freed 480K, 10% free 9600K/10572K, paused 41ms, total 41ms
D/dalvikvm(21085): GC_CONCURRENT freed 590K, 8% free 9738K/10572K, paused 3ms+15ms, total 78ms
I/dalvikvm(21085): Jit: resizing JitTable from 4096 to 8192
D/dalvikvm(21085): GC_CONCURRENT freed 775K, 9% free 9693K/10620K, paused 2ms+2ms, total 75ms
I/ConversationCursor(21085): [Notify All mail: onRefreshRequired()]
I/ConversationCursor(21085): [refresh() All mail]
I/ConversationCursor(21085): [Start refresh of All mail: 1098632152]
D/dalvikvm(21085): GC_FOR_ALLOC freed 438K, 10% free 9639K/10620K, paused 27ms, total 27ms
I/ConversationCursor(21085): ConversationCursor query: content://com.android.gmail.ui/caderoux@gmail.com/conversations/594525444, 82ms, 88 results
D/dalvikvm(21085): GC_FOR_ALLOC freed 406K, 10% free 9624K/10620K, paused 25ms, total 25ms
I/ConversationCursor(21085): [Query done All mail: 1098632152]
I/ConversationCursor(21085): [Notify All mail: onRefreshReady(), 1 listeners]
I/ConversationCursor(21085): [sync() All mail]
I/ConversationCursor(21085): [Notify All mail: onDataSetChanged()]
I/ConversationCursor(21085): *** Underlying cursor position is -1 asking to move from -1 to 0
D/dalvikvm(21085): GC_FOR_ALLOC freed 511K, 10% free 9657K/10620K, paused 24ms, total 24ms
D/dalvikvm(21085): GC_CONCURRENT freed 423K, 6% free 10001K/10620K, paused 2ms+3ms, total 31ms
D/dalvikvm(21085): WAIT_FOR_CONCURRENT_GC blocked 8ms

Have you tried clearing app data?

@AlEverett Clearing the app data seems to have worked while removing and adding the account did not work.

Problem seems to be recurring, it's now lost all the mail from after July 6 and only shows that and older mail - same problem with the 30 days...

Have you checked to be sure the app doesn't have an update available?

@LorraineW No, there are no new updates for GMail in Play.  There was an answer here, but the problem recurred for that user and they've since deleted their answer.  I think there is a general problem with the app.

Can you turn off sync for that account, start adb logcat, turn on sync again and show the log here?

Forgot to say, I have a Nexus S with CM 9 and a Nexus 7 with today's update to 4.2, both can sync the mail account with no problem.

Compare with http://pastebin.com/r7kePgTZ it looks somewhat different.

I had the same problem because I had enabled "Sync last 30 days" for the All Mail folder in account settings → "Manage labels".  Apparently there is some bug which makes it sync everything but the last 30 days?  I disabled the sync for that folder and refreshed it a few times until went blank and actually reloaded all mail, including today's.
When I re-enable syncing it breaks again, though.

I have the same problem of the newest 30 days' E-mails missing from my Android device's "All mail" label.

This fixed my problem.  Stupid bug that Google should be ashamed to have still not fixed as of  "Android 6.0.1, July 5th, 2016 Security Patch".  I had my setting set to "Sync last 90 days", and you are right, All Mail was only syncing up to exactly 3 months ago.


text:
Samsung Galaxy Y won't connect to the computer
I'm having problem connecting my Samsung Galaxy Y GT-S5360 to the computer using via USB.
Whenever I connect it, it automatically charges. Before there was a prompt to connect it to the computer but now it just charges directly. I have tried downloading the Samsung Kies but it still won't connect.

Related, possible duplicate: http://android.stackexchange.com/questions/4319/how-can-i-get-kies-to-detect-my-galaxy-s-gt-i9000-on-windows-7

When I experience this, turning the phone off and on again with the USB connected seems to make it work.
I recommend you turn it on and off again.

2 places to check:

Settings -> Wireless and Network -> USB Settings, and select "Ask on connection".
Settings -> Applications -> Development -> USB debugging [disable USB debugging]

Which version(s) of Android do these work for?

I can confirm it works Upto Gingerbread.

Thanks. I get prompted (for MTP or PTP) when I plug in an SGS3 Mini (with 4.1.1). It connects (but does not work) under Nautilus/Ubuntu 12.10. But for my Samsung Tab2 7.0 tablet (with 4.0.3) I have no USB settings (except enable/disable debugging). My PC does not even detect the device attached.

Oh!
This post has some solutions : http://askubuntu.com/questions/43086/how-to-transfer-files-from-to-an-android-device

I've tried most of these. They don't seem very stable ,and do not generally work for Samsung devices.

I have here a Galaxy Y with the default Samsung-provided GB image, and the first setting you list does not exist.

i still don't find the said options.Under the Wirless and network settings there is only usb utilities option and if i click on that there's USB mass storage with tap the button below to copy files between computer and sd card.With a connect storage to pc button.When i click on that there's a Attention pop-up with USB is connected.Remove the cable.How do i get the said option>

Just slide downwards and tap "USB Connected".
From there, you'll see the "Connect USB storage" button.
Just tap it, and wait for the android image to change from green to orange.
Now, you're connected.

You might have a broken cable and/or connector:
Install aLogCat and unplug the USB cable then clear the logs, then re-plug the USB cable. You should see something like this:
--------- beginning of /dev/log/system
D/Vold    (  132): USB connected
D/Vold    (  132): Share method ums now available
I/StorageNotification(  263): UMS connection changed to true (media state mounted)
D/Vold    (  132): USB connected
D/Tethering(  185): sendTetherStateChangedBroadcast 1, 0, 0
D/Tethering(  185): interfaceAdded :usb0
D/BluetoothNetworkService(  185): updating tether state
D/BluetoothNetworkService(  185): interface usb0
W/Tethering(  185): active iface (usb0) reported as added, ignoring
D/dalvikvm(  580): GC_EXPLICIT freed 6K, 53% free 2705K/5639K, external 0K/0K, paused 57ms
D/dalvikvm(  639): GC_EXPLICIT freed 24K, 51% free 2814K/5639K, external 0K/0K, paused 61ms

If it's just something like this, your connection is not detected (broken cable,...):
D/SettingsAppWidgetProvider(  639): Widget is from a previous version... Let's update
D/SettingsAppWidgetProvider(  639): No instances yet... Wait for at least one instance to exist before adding global settings
D/dalvikvm(  263): GC_CONCURRENT freed 332K, 49% free 3079K/6023K, external 911K/990K, paused 4ms+3ms
D/dalvikvm(  639): GC_EXPLICIT freed 17K, 51% free 2814K/5639K, external 0K/0K, paused 60ms

Try removing and reinserting your SD card.


text:
To add widgets from the app drawer, launchers need to be installed in /system. Why?
ICS' stock launcher, Apex, Nova and Trebuchet all support adding widgets by dragging them from the app drawer. However they can only do this if they are installed as a system app. One of them - I think Nova - also provides a helper app that can be installed in /system while the rest of the app remains a regular app.
Why can't normally installed launchers provide this feature?

I don't think anyone except the developers of these launchers will be able to answer this.  I would suggest contacting them directly with this feature request.

This is not a feature request, this is a question why something is impossible.

I have clarified question title. If you don't like it, feel free to roll back.