Skip to main content

Posts

Showing posts from April, 2014

windows 7 fix "user profile has failed and loading the default profile"

thanks to microsoft support i fixed that issue in my windows 7 link   http://support.microsoft.com/kb/947215 Symptoms When you log on to a Windows 7-based or a Windows Vista-based computer by using a temporary profile, you receive the following error message: The User Profile Service failed the logon. User profile cannot be loaded. Back to the top  |  Give Feedback Resolution Occasionally, Windows might not read your user profile correctly, such as if your antivirus software is scanning your computer while you try to log on. Before you follow the methods here, try restarting your computer and logging on with your user account again to resolve the issue. If you restart your computer and it does not resolve this issue, use the following methods to resolve this issue. Note  You must be able to log on to an administrator account to fix your user profile or copy your data to a new account. Before you resolve the issue, log on to Windows by using another account tha

android working with activities history stack

never override the default behavior and instead if you have to do it for a particular activity then  the following line is more than enough intent . setFlags ( Intent . FLAG_ACTIVITY_CLEAR_TOP ); or after you start activity  then call finish(); example Intent main = new Intent(LoginActivity.this, MainActivity.class); startActivity(main); finish();

android list view keep only the selected item marked

here i found a very useful solution http://www.michenux.net/android-listview-highlight-selected-item-387.html <ListView         android:id = "@android:id/list"         android:layout_width = "fill_parent"         android:layout_height = "wrap_content"         android:choiceMode = "singleChoice" > </ListView > Then, you need to create a selector. This is where you will configure colors for each defined state. The selected file is in res/drawable directory. <?xml   version = "1.0"   encoding = "utf-8" ?> <selector   xmlns:android = "http://schemas.android.com/apk/res/android"     android:exitFadeDuration = "@android:integer/config_mediumAnimTime" >     <item   android:drawable = "@android:color/holo_orange_dark"   android:state_pressed = "true" />     <item   android:drawable = "@android:color/holo_green_light"   android:state_selecte