Sunday, May 19, 2013

[General] How do I remove an account from the Play Store?


Version 4.0.4

I obtained an Android from a friend and created a second account for the Play Store. Now I want to remove the initial account (first on the list). It has as its ID a non Gmail account and I do not know the password associated with it.

I went into App settings and for Google Play Store clicked on Clear data. That did not remove either account.

What are the step to take to remove the initial account?



.

forum.xda-developers.com

[General] Anyone having location problem on their HTC One?


Hey,

Recently i got an On The Air Update for my HTC One, and i also updated my maps, google search too. On google now it will always show this card which say say to turn on my location services but i already turn it on. Is anyone having the same problem as me on their HTC One? Sorry if i didn't explain it in more details.



.

forum.xda-developers.com

[General] Cm 10 Reboot Loop P7500




Quote Originally Posted by Daniel Barbosa1 View Post

Good afternoon guys, something strange happened today on my tablet got cyanogem 10 installed and running on the tablet, when i go to market and installed the ebay application tablet reboot, and now will not start, I tried to format the partition / data tablet and after a few seconds Reboot...., can you help me? thank you



First some counter questions; are you sure the file you downloaded was for your exact model of device? Did you download and install the Google Apps file (gapps) and install that? Did you have any problems with the ROM before you went to Play?

If you have a copy of the stock ROM, I would reflash that, to start over. Next, retrace all your steps, making sure files are appropriate, etc. Cyanogen 10 is pretty widely used, but that doesn't mean you cancan flash it on anything.

What device is this?


.

forum.xda-developers.com

[General] customize folder look...


Hello all, i am a new android user, i got my new phone for about a week.
i played with it try to customize it for my needs, one thing that really disturb me is the way folder looks on the home page, not the icon of folder! but after u open a folder in your home screen i think it looks very nasty...
i would like to find a way to change that looks, i was google for it, and many people showed apps and ways to change the icon, but didnt found any way to change the looks of the folder it self, mainly i would like to change alpha and maybe color....
any ideas?
thanks a head for all replies...



.

forum.xda-developers.com

[android help] Android studio and gradle build error

Android studio and gradle build error - Stack Overflow







Tell me more ×

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

















I've been using the new preview of android studio and really like it. But recently my project won't build. I get the following error:



Gradle:
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':TestProj:compileDebug'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Could not execute build using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.6-bin.zip'.


Question is how do I enable the stack trace so I can get to the root of the error. As it is I really have no idea what's causing this.


























OK seems like a caching issue of some sort. There was indeed an error in code with the R.id.some_id not being found but the editor was not picking it up displaying that there were no errors.























I'm having the same issue. how did you manage to fix it?




















default






.

stackoverflow.comm

[android help] When I load ADT why do I receive the error "The Android SDK requires Android Developer Toolkit version XX.X.X or above?"

eclipse - When I load ADT why do I receive the error "The Android SDK requires Android Developer Toolkit version XX.X.X or above?" - Stack Overflow







Tell me more ×

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

















I just updated my Android SDK Tools to version 21.1. Unfortunately this is causing an error when I load the Android Developer Toolkit:



The Android SDK requires Android Developer Toolkit version 21.1.0 or above.


Current version is 21.0.1.2012-12-6-2-58.


Please update ADT to the latest version.



When I upgraded the SDK I was warned that I might need to upgrade ADT. I tried to do so by going to Help > Check for Updates. Unfortunately this returns a message that "No updates were found."


In case I've missed something here's a screenshot of my Android SDK Manager:


Android SDK Manager


Am I missing an install package? Do I need to go about updating ADT (Eclipse) another way? Should I just download a new copy of ADT?





























For some reason ADT (Eclipse) won't pick up on the fact that it does in fact need to be updated. Since the built in tools for updating are failing you you'll have to work around them. On the Help menu instead of selecting Check for Updates instead pick Install New Software (so Help > Install New Software).


On the Available Software screen in the Work With dropdown provide:
https://dl-ssl.google.com/android/eclipse/ if it's not already available. You should see a list of options including Developer Tools. Check everything that you want to update. In the list of checkboxes below uncheck "Contact all update sites during install to find required software."


Install New Software


Click Next and follow the remaining onscreen prompts. You may be warned that instead of an install an update will be performed. This is okay. Once the operation is complete you will no longer receive the "The Android SDK requires Android Developer Toolkit verxion 21.1.0 or above" error when you load ADT.




















default






.

stackoverflow.comm

[android help] maven dependency installation failure

android - maven dependency installation failure - Stack Overflow







Tell me more ×

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

















I am building an Android project with Eclipse and maven plugins. When I build it I get the error as following



27/1/12 2:34:02 PM IST: Build errors for ProjectName; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal


com.jayway.maven.plugins.android.generation2:maven-android-plugin:2.2.1:generate-sources (default-generate-sources) on project ProjectName: Execution default-generate-sources of goal com.jayway.maven.plugins.android.generation2:maven-android-plugin:2.2.1:generate-sources failed: Please provide a proper Android SDK directory path as configuration parameter ... in the plugin .


As an alternative, you may add the parameter to commandline: -Dandroid.sdk.path=... or by setting environment variable ANDROID_HOME



Even if I have set the ANDROID_HOME and path in ...





























Besides ANDROID_HOME environment variable, you also need add $ANDROID_HOME/tools and $ANDROID_HOME/platform-tools to your PATH environment variable:



Maven 3.0.3+ installed, see http://maven.apache.org/download.html


  1. Set environment variable ANDROID_HOME to the path of your installed Android SDK and add $ANDROID_HOME/tools as well as $ANDROID_HOME/platform-tools to your $PATH. (or on Windows %ANDROID_HOME%\tools and %ANDROID_HOME%\platform-tools).

  2. MacOS users: Note that for the path to work on the commandline and in IDE's started by launchd you have to set it in /etc/launchd.conf and NOT in .bashrc or something else


Check out the Getting Started page on android maven plugin website here.


Hope this help.























You also need to set the path location of the Android SDK in Eclispe as well, otherwise the m2e-android build will fail:


Go to Window -> Preferences and select Android. Click on the Browse... button next to the SDK Location text box and select the location of you locally installed Android SDK. Click Apply and then OK and your build should now work.




















default






.

stackoverflow.comm

[android help] Android will crash depending on layout positioning


Here's the layout that works :



xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/mainlayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity" >

android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical" >

android:id="@+id/tabs"
android:layout_width="match_parent"
android:layout_height="48dip" >


android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
tools:context=".MainActivity" >





and here my Activity OnCreate method:



protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

pager = (ViewPager) findViewById(R.id.pager);

adapter = new MyPagerAdapter(getSupportFragmentManager());

pager.setAdapter(adapter);

tabs = (PagerSlidingTabStrip) findViewById(R.id.tabs);
tabs.setViewPager(pager);
tabs.setDividerColor(Color.BLUE);
tabs.setBackgroundColor(Color.DKGRAY);
tabs.setTextColor(Color.WHITE);
tabs.setIndicatorColor(Color.GREEN);

}


If in the layout I inverse the PagerSlidingTabStrip and the ViewPager, the project will crash at startup, while in the first implementation, it will work fine.


Here's the error :



05-19 16:50:11.636: E/AndroidRuntime(305): FATAL EXCEPTION: main
05-19 16:50:11.636: E/AndroidRuntime(305): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.hsware.peeem/com.hsware.peeem.MainActivity}: java.lang.ClassCastException: android.support.v4.view.ViewPager
05-19 16:50:11.636: E/AndroidRuntime(305): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
05-19 16:50:11.636: E/AndroidRuntime(305): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
05-19 16:50:11.636: E/AndroidRuntime(305): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
05-19 16:50:11.636: E/AndroidRuntime(305): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
05-19 16:50:11.636: E/AndroidRuntime(305): at android.os.Handler.dispatchMessage(Handler.java:99)
05-19 16:50:11.636: E/AndroidRuntime(305): at android.os.Looper.loop(Looper.java:123)
05-19 16:50:11.636: E/AndroidRuntime(305): at android.app.ActivityThread.main(ActivityThread.java:4627)
05-19 16:50:11.636: E/AndroidRuntime(305): at java.lang.reflect.Method.invokeNative(Native Method)
05-19 16:50:11.636: E/AndroidRuntime(305): at java.lang.reflect.Method.invoke(Method.java:521)
05-19 16:50:11.636: E/AndroidRuntime(305): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
05-19 16:50:11.636: E/AndroidRuntime(305): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
05-19 16:50:11.636: E/AndroidRuntime(305): at dalvik.system.NativeStart.main(Native Method)
05-19 16:50:11.636: E/AndroidRuntime(305): Caused by: java.lang.ClassCastException: android.support.v4.view.ViewPager
05-19 16:50:11.636: E/AndroidRuntime(305): at com.hsware.peeem.MainActivity.onCreate(MainActivity.java:41)
05-19 16:50:11.636: E/AndroidRuntime(305): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
05-19 16:50:11.636: E/AndroidRuntime(305): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)


It appears that it can't retrieve de R.id.pager, I'm not sure.



.

stackoverflow.comm

[android help] How to construct a button on runtime (Android)


There's nothing on this particular feature of Android in the documentation (for example here:


http://developer.android.com/reference/android/widget/Button.html#Button(android.content.Context)


How do i add a button to exsiting layout (or create a layout on runtime as well)?


And then, how do i apply attributes to said button i've just created?



.

stackoverflow.comm

[android help] Display correct values with CursorLoader/Adapter Android


I'm attempting to query Nickname and SIP Address from the contacts. The issue I'm running into is that both of them are stored in DATA1 column. So when I run a query, I only retrieve the Nicknames. What's a method of retrieving both of them and passing them into the SimpleCursorAdapter below? My sql query is potentially incorrect.



CursorLoader c = new CursorLoader(getActivity(), baseUri, CONTACTS_NUMBER_PROJECTION2, Data.MIMETYPE+" ='" + Nickname.CONTENT_ITEM_TYPE+"'", null, ORDER);

private static final String[] CONTACTS_NUMBER_PROJECTION2 = new String[] {
SipAddress.DISPLAY_NAME,
SipAddress.SIP_ADDRESS,
BaseColumns._ID};


Using a SimpleCursorAdapter, both Nickname.NAME and SipAddress.SIP_ADDRESS are nicknames.



SimpleCursorAdapter adapter = new SimpleCursorAdapter(getActivity(), R.layout.contact_list, null,
new String[] {Nickname.NAME, SipAddress.SIP_ADDRESS},
new int[] {R.id.text1, R.id.text2}, 0);


The screen shot looks like this. The smaller font should be the Sip Address.


If I change Nickname.CONTENT_ITEM_TYPE to SipAddress.CONTENT_ITEM_TYPE I get Sip Addresses instead of nicknames. I'm not sure how to get both to show up.


enter image description here



.

stackoverflow.comm

Google Voice on T-Mobile? [General]

Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...