• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Search results

  1. J

    Apps Looking for a unique phone identifier

    Hi, I'm trying to find a qay to uniquely identify a device that is not tied to the SIM card. That is, some sort of serial number or device identifier that will be different between two phones and will not change if the user swaps SIM cards. TelephonyManager.getDeviceId() and...
  2. J

    Apps App Chooser not being shown when google browser is the default

    I've seen a few other similar threads, but none that both matched my problem and had answers, so sorry if this retreads familiar ground. I've got a browser and I'm trying to catch the same intents as the google browser. I've even gone so far as to copy and paste them directly from Froyo's...
  3. J

    Apps Samsung Moment has two device IDs, anyone know how to get them both?

    The Samsung Moment has both a decimal and a hex device id on the settings page, but TelephonyManager.getDeviceId() only returns one of them. Does anyone know of a way to get both of them programmatically? Unfortunately (unless I'm missing something), they don't appear to be related to one...
  4. J

    Apps Contexts in a JUnit test?

    I've got a class that interfaces with the preferences that I'd like to unit test, but I can't figure out a way to pass it a context it can use for getSharedPreferences. Is there an easy (or even not-so-easy) way to do so? Thanks!