Quantcast








     

Android: Get Time Spent Per Activity

stackoverflow.com - 2012-03-19 23:40:02 - Similar - Report/Block

Firstly, I'm not looking for time spent on a given application. There is already "an app for that", com.android.settings/.UsageStats , and a good deal of supporting code in the AOSP frameworks/base/services/java/com/androi d/server/am/UsageStatsService.java , etc. The code that I've examined so far does not seem to record elapsed time spen...

Passing values to an activity which I don't want to display

stackoverflow.com - 2012-06-05 14:51:55 - Similar - Report/Block

I've got an activity (say activity 1) which sends a bunch of extras to another activity (activity 2). I'd like those extras to be sent to activity 2, but I don't want that activity to display at all. I'd like to send the intent to activity 2, and go straight into activity 3. The reason for this is: Activity 1: User chooses some options fr...

Clear android activity stack starting a new activity

stackoverflow.com - 2012-04-06 20:42:17 - Similar - Report/Block

I have an application and every new created activity will start an async task to validate the user session. If the session is valid, the application flows continues. If not, the whole activity stack must be cleared and there should be only the login activity. This activity has a "no history" flag so it is never kept in the stack. I've bee...

Android activity lifecycle - activity restarts when coming from history

stackoverflow.com - 2012-03-20 20:47:04 - Similar - Report/Block

I have a splash activity (A) that calls a listview activity (B) which calls another activity (C). When I'm on activity C and I press Home, than kill the app (or wait of Android to do it), than longpress Home and come back to activity C there's a strange problem: When I click back I go back to B. Than I have a backbutton handler that asks...

android: On refresh of an activity, fragments(list fragment & detail fragment) in it are getting dettached

stackoverflow.com - 2012-07-12 09:50:09 - Similar - Report/Block

In the app - I have a header with refresh button & in the bottom I have 5 tabs, some tabs have activity with fragments & some have just the activity. Fragments are added to the activity through xml. Typically, I have one ListFragment & the other fragment is a kind of DetailFragment for the ListFragment. Onclick of the refresh...

How to Create a Transparent over another View in android?

stackoverflow.com - 2012-03-15 12:29:53 - Similar - Report/Block

I want to create a Transparent view upon my activity. The activity gets displayed on the click of a tab. What i want is once i click any image in my activity at that time a transparent view gets overlayed upon the activity but my Tabs remain clickable. Also when the Transparent view gets created then background items of the activity shou...

onNewIntent() will not fire until phone is awake

stackoverflow.com - 2012-03-28 02:52:25 - Similar - Report/Block

I have found some interesting behavior and do not know why or how to get around it. The activity is a singletask activity, which means onNewIntent() is for the activity while the activity is on the top of the stack. This works fine and well, while the phone's screen is on . Once the screen is off however, the new intent is not received...

app restarts if select app from recent apps only when activity is start from Notification

stackoverflow.com - 2012-04-04 11:33:57 - Similar - Report/Block

My app has activity stack like below A: loading activity B: main activity C: detail activity and manifest is like this <activity A> <intent-filter> <action android:name="android.intent.action.MAIN " /> <category android:name="android.intent.category.LA UNCHER" /> </intent-filter> </activity> &...

Android Activity starting parellel?

stackoverflow.com - 2012-03-10 13:10:32 - Similar - Report/Block

i have four activities where i use most of same data to process. like (1) (2) (3) (4). (1) is first activity or main activity. i have a bottom bar for these activities. if i click on (2) i want to open second activity. after this if i click on (3) i want to open third activity. and if i click on (4) i want to open fourth activity. after t...

Activity Life Cycle

stackoverflow.com - 2012-03-03 16:41:57 - Similar - Report/Block

I'm trying to understand An Activity full life-cycle. So I have searched on Google and found lots of tutorials regarding activity life-cycle, but in all tutorials I have not found these methods in life-cycle diagram: OnContentChanged() OnPostCreate() OnPostResume() OnWindowfocusChanged() OnuserLeaveHint() OnUserInteraction() OnDetachedFro...

Android -Stuck with Bundles

stackoverflow.com - 2013-03-25 06:13:18 - Similar - Report/Block

I have three Activities in my Android Application.Activity A ,Activity B,Activity C.. In Activity A ,I'm doing the Json Parsing and I send that values to Activity B using Bundles and handle that in many ways . here is the code I used in Activity B to get values. Intent in = getIntent(); Bundle b = in.getExtras(); /*/-Future Use - Stri...

Android: Unable to find explicit activity class... startActivity from a PreferenceActivity

stackoverflow.com - 2011-10-30 17:42:45 - Similar - Report/Block

Well guys, I solved it. It wasn't a problem with my code, but with Eclipse and the Android SDK. After some research, I did "Help -> Check for updates" in Eclipse and everything is working now. Thanks to who tried to help me! I'm trying to start a new Activity from a PreferenceActivity. However, it fails with "Unable to find explicit acti...

evolveStar Join

Unable to start activity ComponentInfo?

stackoverflow.com - 2012-04-19 17:20:05 - Similar - Report/Block

I am using the code below and I am trying to add a button to turn off wifi but I am getting the error java.lang.RuntimeException: Unable to start activity ComponentInfo Any Ideas? Does the button code need to be placed somewhere else? Thanks! import java.util.List; import android.app.Activity; import android.os.Bundle; import android.cont...

Seamless left to right activity transition animation in Android

stackoverflow.com - 2013-03-18 15:37:05 - Similar - Report/Block

I have two activities and I want that when the user touches a button on the first activity, the new activity slides in from the left and moves to the right while the first activity does the same, it moves to the right and slides out, so it would give an effect in which the new activity pushes the old one to the right and replaces it. In o...

android:launchMode="singleInstance" does not allow activity for results update

stackoverflow.com - 2012-05-29 08:27:01 - Similar - Report/Block

When set to single instance, the Activity does not allow another Activity to update it using Activity for results method. What is the flag I should set so that I do not have to remove the initial launch mode as single instance. Note: I am using another activity as Image Loader, that updates the launcher activity. Launcher activity should...

Android Base Activity: Base's Global Variables, Can't get from some activites

stackoverflow.com - 2012-07-07 02:48:36 - Similar - Report/Block

I'm taking an android class now, so I am somewhat new to android app development. My first assumption for a Base Activity is that it's Global Variables and it's values would be available to all activities. I have found that it is available to my Main Activity, but not any activities after that. In the Base Activity I am storing an ArrayLi...

using onBackPressed in android

stackoverflow.com - 2013-03-25 18:18:43 - Similar - Report/Block

I am working on an android application project which has more than 8 activities just up to now. I need to learn how back button behave in android. Because I need to override it and do some actions when it pressed. When back button pressed android looks up the trace file and go to the activity which you came from to the current activity.

Newly added Activity designated as Main is not always "Main" Activity shown

stackoverflow.com - 2012-02-20 00:11:44 - Similar - Report/Block

Allow me to explain my predicament. I have been building an app for a while now where it would immediately enter my MainActivity.class . I had this Activity declared in the AndroidManifest.xml file as such: <intent-filter> <action android:name="android.intent.action.MAIN " /> <category android:name="android.intent.categor...

Unable to find activity declared in other package

stackoverflow.com - 2012-04-20 00:16:00 - Similar - Report/Block

When clicking a button in my application, I want to start an activity from another package. This is my intent: final Intent myIntent = new Intent(getApplicationContext(), com.facebook.android.Places.class) and this is my manifest: <activity android:name=".com.facebook.android.Plac es" > </activity> But i am getting unable to...

Code before setContentView trouble

stackoverflow.com - 2012-04-14 13:50:39 - Similar - Report/Block

My question is if it is possible to write code before setContentView(R.layout.main) in the onCreate method of the main activity. For instance, below i try to run the setVariables(); before setContentView but this causes my application to crash. Every time i put setVariables after setContentview it all works fine. Why is this? please find...

Android create new Activity on Top despite "singleTop"

stackoverflow.com - 2012-04-15 20:10:11 - Similar - Report/Block

I have got a Activity with android:launchMode="singleTop" How can i manipulate an Intent in order to create a new Activity on Top. Cause in an exceptional case I need a new Activity. Or is it impossible?...

How do you call the main launcher activity from another activity?

stackoverflow.com - 2012-04-14 02:24:46 - Similar - Report/Block

In my program I have an activity that gets launched when the application opens. If I open a couple more activities, how can I go back to the main activity? In the intent filter, the name of the activity is "android.intent.action.MAIN", and it will not allow me to call startActivity() on it. What do I do?...

Issues with creating new Android MainActivity

stackoverflow.com - 2013-03-11 12:38:31 - Similar - Report/Block

I'm new to Android programming and am attempting to create a new Main Activity for my app (taken from the Android tutorial website). My original Main Activity is called "MainActivity". The new activity I want to be my Main Activity is called "Homepage" and it should contain a button that produces "MainActivity" upon clicking. I'm unsure w...

Run time Error in android application

stackoverflow.com - 2011-10-29 13:55:34 - Similar - Report/Block

While running the android application, I got the following error, 10-29 17:02:12.454: ERROR/AndroidRuntime(253): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dummies.android.silent modetoggle/com.dummies.android.silentmod etoggle.SilentModeToggleActivity}: java.lang.NullPointerException How can I solve it? Please h...

Integrate ZXing QR code scanner without installing BarCode Scanner

stackoverflow.com - 2011-12-01 12:49:30 - Similar - Report/Block

I am trying to Integrate ZXing QR Code into my android app without installing BarCode Scanner app, I have followed the steps as: 1) Firstly I have downloaded ZXing.zip file and extract it 2)open the ZXing project as an android existing project and then go to android folder and open the android folder and also include core.jar file into th...

How to grey out the background when UIActivityIndicator is on screen

stackoverflow.com - 2011-11-03 22:36:33 - Similar - Report/Block

I currently have a activity indicator appearing on screen for a second or two. I would like to grey out the background as this appears on screen but I am not sure how to do this... heres how I have initialized the indicator so far. - (void)viewDidLoad //... activity = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(0.0f, 0.0f,...

My BroadcastReceiver is not receiving the BOOT_COMPLETED intent after my N1 boots. Help Please!

stackoverflow.com - 2010-10-14 18:20:43 - Similar - Report/Block

I am unable to get my BroadcastReceiver onReceive method called using the BOOT_COMPLETED intent. AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.co m/apk/res/android" package="com.jerrellmardis.umbrella" android:versionCode="4" android:versionName="1.0.3"> <appli...

Eclipse Juno won't create Android Activity

stackoverflow.com - 2012-06-29 13:02:59 - Similar - Report/Block

I downloaded Eclipse Juno Java EE edition and installed ADT plugin . I created a new Android Application Project from Eclipse and in the wizard I created an activity called TaskariActivity. After I pressed finish, it created the project but not the activity and the wizard didn't close. I pressed cancel. No activity or anything in the s...

PayPal Error - Please make sure all fields have been entered

stackoverflow.com - 2012-04-01 12:18:40 - Similar - Report/Block

I have a problem in creating a working PayPal button in Sandbox environment. After I entering my email and password in the sandbox environment. This is what I see. Here are my codes AndroidManifest.xml <uses-sdk android:minSdkVersion="15" /> <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" >...

No love for Android, Nike? FuelBand app not in the works

phandroid.com - 2013-02-11 19:53:04 - Similar - Report/Block

Fans of fitness will have to look elsewhere if they hope to track their daily activity via their Android phone, as Nike has confirmed it currently has no plans to develop a FuelBand companion app for Google’s mobile platform. Shame, shame. The news first came by way of Twitter but was later confirmed by a Nike spokesperson. “[W]e are focu...

Robotium Activity Leak Causing Wrong Activity for other Tests

stackoverflow.com - 2012-05-25 17:55:31 - Similar - Report/Block

I am having some issues with my Robotium tests. I have 3 test classes that each have about 2 to 3 methods. They all test different activities in the Android Life Cycle. The problem I am finding is that when test A presses a button in A the intent is called for the next activity the test passes and then finishes. Then test B tries to start...

Android context outside of Activity class

stackoverflow.com - 2012-03-15 18:55:02 - Similar - Report/Block

I am trying to handle exceptions in my application. I am trying to log the exception, then use Toast to alert the user that there was a problem. I have this working find in all my class's that extend Activity. However, in any class that does not extended activity I can not use the toast method as I can't get the current context. Is there...

Android ::Close all activity in Tabhost when changeConfig

stackoverflow.com - 2012-03-06 13:56:05 - Similar - Report/Block

I try simple Tab application from http://ericharlow.blogspot.in/2010/09/ex perience-multiple-android-activities.htm l#comment-form I have simple problem,i run above application on emulator as well as device,I have five (such as; A , B , C, D,E). i wanna go to A-> E, after going E activity i change config using press key ctrl+ F11 on keyboar...

Mapview zoom level changes when going to other activity?

stackoverflow.com - 2012-03-31 15:03:44 - Similar - Report/Block

In one of my first activity i had a small portion of mapview and i did it. when clicking on the mapview it sholud load another activity which contains the full mapview. (Second activity).i second activity if i zoom the map and go back to the first activity the map is showing a zoomed as like the first activity. but i need not want this.

blank screen when press back

stackoverflow.com - 2012-06-09 07:31:52 - Similar - Report/Block

I want my application to use fb login(this is optional). So first I'm launching my base activity and then fb activity as a child activity. I want that when a user presses back button it should return to its parent activity. For the facebook activity, the contentview is not set, it's just a blank screen. I'm facing the following problem. W...

Android Videoview giving isPlaying() false

stackoverflow.com - 2013-05-20 14:21:16 - Similar - Report/Block

I have two activities, suppose Activity A and Activity B. My aim here is to have a function that will record a video and save it. Then once its done, we play it and printing at Logcat that its playing. We are using VideoView to play the video, and isPlaying() method to get the confirmation that its playing. Now in Activity A we are...

Android WebView back button causes force close

stackoverflow.com - 2012-08-03 22:53:36 - Similar - Report/Block

Here is my program code. I am new to Android and Java so it may seem messy. When I press the back button after adding in this code i get a Force Close. package com.alexriggs.android.gansterstreetwars; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.view.KeyEvent...

Android widget multiple sizes do you determine what size they picked in the configure activity

stackoverflow.com - 2012-03-02 03:20:22 - Similar - Report/Block

I have built a android widget that allows for multiple sizes 2x2 and 4x2. So when someone is on the widget picker screen they see both sizes. They click on one of the sizes and it goes to my configuration activity. How do I know what size they picked on the widget picker screen. I need to know which one was chosen on the configuration...

android.content.ActivityNotFoundException: No Activity found to handle Intent splash screen

stackoverflow.com - 2013-03-25 12:08:11 - Similar - Report/Block

I am having an issue with loading up a new intent after my splash screen. I have looked at questions relating to this exception but they all seem to be dealing with thing like google play or google maps not being referenced correctly this is not the case for me. These are the related questions I have looked at Not found activity to handle...

Android creates new process rather than returning to background activity

stackoverflow.com - 2013-04-10 03:35:53 - Similar - Report/Block

I have a simple activity that starts and stops a background service that logs GPS data. I then place the process in the background by clicking on the home button. When I return to the App by clicking on it's icon it creates a new process rather than reverting to the original activity. If I then close this process (by clicking the back but...




dialogShowMessage!

Fill out the form you see below. Registration is free, fast and simple.
If you are already registered, sign in page login.


Web Site :
Required Field
First Name :
Required Field
Last Name :
Required Field
Email :
Required Field
Sex :
Required Field

evolveStar.com is free for ever !


evolveStar.com provides a search engine that allows you to gather information to write their own blog.


evolveStar.com enhances the sources displaying the logo of the site.


If you want to remove your site or you believe a site listed infringes copyright, please report it to: info@evolvestar.com


Specifies the subject copyright violation and the url of the page


evolveStar.com respecting the law DMCA (Digital Millennium Copyright Act) will immediately remove whatever its merits.


Next will be effectual and relevant checks.







Who We Are Partner Advertising Contacts Privacy terms Help & FAQ

© Copyright 2010-2015 Fabrizio Fichera. All rights reserved.