Android :: How To Get Visible Size On Activity?

Jun 17, 2010

How can I know the visible size of my activity? I'm trying to get the Activity real size, not the height and width from getHeight() and getWidth(),which gives me the screen full size.

Android :: How to get visible size on Activity?


Android :: Detect If Activity Front Most And Visible To User?

Jun 28, 2010

I would like to launch an intent when any of my activity is visible, otherwise I will put it up as a notification, and will be fired by the user. To decide this, I need to know if any of my activity is front-most, how do I that?

View 3 Replies View Related

Android :: Pause Flash Content In WebView When Activity Isn't Visible?

Aug 7, 2010

I am experimenting with using a WebView to display Flash content inside my activity. Everything is working pretty well, but when the user hits the home key to put the activity into the background, the Flash content keeps running (sound keeps playing, etc)

I have noticed that both the stock Android browser and Dolphin Browser seem to avoid this problem, and properly pause the Flash content when the browsing activity is put into the background.

Ideally I would like a solution that kills the WebView completely if the activity is finishing, but pauses it otherwise (basically copying the default behavior of the browser)

Here is a simple test I put together that loads a game on Kongregate which has some background music:

CODE:..............

I took a look at the latest source for the stock browser, and it seems to be doing something similar (calling pauseTimers/resumeTimers), although I fear the code I have been looking at is out of date, because it is calling functions that don't seem to exist anymore.

I did verify that the call to pauseTimers is working by testing with a simple JavaScript setInterval which updates a counter. Is there something else obvious that I should be trying in regard to Window or View management?

The documentation for the mobile Flash player says:


Flash Player will also automatically pause SWF playback it is not in view or the foreground application, for example when a call is received or alarm goes off, to reduce CPU utilization, battery usage and memory usage.


This seems to be working perfectly in both the stock browser and Dolphin Browser, but not in my app. Any ideas/solutions would be greatly appreciated!

Update: Here is the function we ended up adding to our activity to get this to work. We call it with "onPause" in the activity's onPause function and "onResume" in the activity's onResume function:

CODE:....................

View 2 Replies View Related

Android :: Activity Of Killed Process Still Visible In List After Home Pressed

Sep 23, 2010

like many others, I want to kill my Android application on "exit" button. Really kill, not just move to background and stop all active code. (I know very well that Android does not like it.) I found Process.killProcess(Process.myPid()); and System.exit(0) which both work fine (I have no problem with activity stack, the "exit" button is in my base Activity.). But there is a problem. When I kill my process and I am back in the shell, I press [Home] button. It shows list of applications that are on the background including my application which has been killed.

Is there a way how to do both: 1) kill the process and 2) remove it from the Android application list that is shown after user presses [Home] button? Thanks for all replays (with the exception of that stupid "you should not exit applications explicitly on Android"

View 2 Replies View Related

Android :: Progress Bar Not Visible With White Background In 1.6 Sdk / Make It Visible Under All Colors?

Sep 21, 2009

When i ran my old application in 1.6 i noticed that the progress bar was not showing up on the screen.When i analyzed it further i found the issue.The progress bar is getting activated but its not visible since my background color is also white.When i changed the background color i was able to see the progress bar.Is there no other way to make the progress bar visible other than changing the background color..Shouldn't the progress bar be visible under all background colors??

View 2 Replies View Related

Android :: Process Started / No Errors / Activity Not Visible On Android

Jul 5, 2010

I have developed an App that launches and works fine on Android 1.5 and 1.6. When I try and use it on version higher then that the app's activity starts, progress dialogs pop up and I can see my Async Task executing and the info being returned via Logcat. No errors or exceptions are shown. But the Activity never displays. All I see is the progress dialog showing over the home screen and then nothing. The process is active and running under the DDMS view.

View 1 Replies View Related

Android :: Android Surfaceview Is No Longer Visible After Back From Other Activity

Apr 4, 2010

i use surfaceview for camera preview. it works fine, but has one problem when i start other activity (by clicking something) and then back from that activity. after that, surfaceview is no longer visible. (but onclicklistener is working)but when i occur surfacecreated/destoryed by visible/invisible surfaceview in single activity, it works very good.

View 1 Replies View Related

Android :: Way To Change Font Size On Tab Activity?

Feb 18, 2009

Is there a way to change the font size on a tabbed Activity? I can add an icon but I'd like to shrink the font a bit?

View 3 Replies View Related

Android :: Activity Image Background Size?

Sep 12, 2010

I am a bit confused on creating an image which will be acting as a background for my activities. So, in short, my aim is that my application should be able to fit the different screen sizes. Therefore, what size in pixel should my three images be to be able to fill the screen of the device in ldpi, mdpi and hdpi?

View 2 Replies View Related

Android :: Activity Title Font Size / Style?

Jan 30, 2009

Anyone know what the default Activity Title font size/style is? I'm creating a custom title but would like to match the other Activities.

View 6 Replies View Related

Android :: How To Decide Widget Size In Configure Activity?

Feb 7, 2010

in HTC Sense, we can choose widgets of different size after tapping a single entry in the widget list. Is this also possible in pure Android Framework? I have tried to modify the widget's size in the configure Activity, but failed.

View 2 Replies View Related

Android :: How To Determine View Size Right After Activity Has Been Started?

Feb 19, 2010

I want to do some data processing (in a thread) right after my main Activity starts. For that data processing to be started I also need to know a visible size of my main View (which is a LinearLayout currently, but whatever).I wonder how to do that. I.e. I wonder what is the entry point (callback?) I should use to be sure that my main View has been layed out, so i can use view.getWidth/getHeight? Is creating a custom View and reimplementing it's onSizeChanged() - the only way? In this case how should I properly describe it in my xml layout file? (it will contain some child views)

View 1 Replies View Related

Android :: Emulator Resolution - Change Activity (Screen) Controls Size?

Dec 22, 2009

Accoding to emulator Resolution how to change the activity(Screen) controls size according to screen Resolution in android ? i have screen design like below. it is working in HVGA(320x480) resolution progressbar is coming bottom of screen but if i run in other resolution emulator VM (WQVGA432 - 240x432) i am getting the progressbar middle of the screen. i am not able to fix the in permenent(fixed) position. i am using below code in manifest file but no output

android:normalScreens="true"
android:largeScreens="true"
android:anyDensity="true" />

i am not getting the solution so please give some idea for resolve the issue.

View 3 Replies View Related

Android :: Scale Image To Maximum Size In Dialog-style Activity

Nov 24, 2010

I have an activity which uses android:theme="@android:style/Theme.Dialog". The activity contains an ImageView which can show images of different dimensions. The ImageView should scale the Image so that it entirely fits into the window, at least on axes fits entirely and maintains the original aspect ratio. The size of the dialog should only be as large as the ImageView (plus its border width).

I tried the following but the dialog window always uses the whole available space:

code:............................

View 1 Replies View Related

Android :: How Do I Make My Image View Fixed Size Regardless Of Size Of Bitmap

Sep 23, 2010

So I'm loading images from a web service, but the size of the images are sometimes smaller or bigger than other images and the visualization looks silly when I put them in a ListView in android. I'd like to fix the size of my ImageView so that it only shows a portion of the image if it's larger than a preset amount. I've tried everything I can think of setting the setMaxWidth/setMaxHeight, setting the scale type to centerCrop, using ClipableDrawable wrapping my BitmapDrawable, setting using Drawable.setBounds(). I've tried setting in the XML and programmatically, but neither worked. I'm very surprised setting max width/height didn't do anything. Below is the XML I'm using ImageView definition in my layout file

View 1 Replies View Related

Android :: About Size Of Resource Assets Files & Final Apk Size

Oct 2, 2009

I am currently developing a dictionary application with voice database. I would like to know about the current Android limitation on the file size. I am using a self-provided sqlite database ( > 50mb ) . I tested that once the built .apk size exceeds ~30mb the app will not be installed onto the simulator (INSTALL_FAILED_ INSUFFICIENT _STORAGE). Could anyone confirm me that if up until now there is no way to embed such large size files in a single apk ( Aimed to sell at Google Market without requiring user to download datafile afterwards). Also, is there a limitation of 1,048,576 bytes for a single file in the assets folder ?

View 3 Replies View Related

Android :: Size Of Image Is Larger Than Or Smaller Than Specified Display Size

Jan 22, 2009

if size of image is larger than or smaller than specified display size (on screen), then it is automatically, compressed and stretched resp by android run time or require to handle by explicitly.

View 2 Replies View Related

Android :: Skin Size 800x600px - How To Setup An Emulator With This Size

May 7, 2009

Hi,

I would like to see how my app works on a 800x600 android netbook. how can i setup an emulator with this size?

thanks chris

View 4 Replies View Related

Android :: Check Cache Size For Bitmaps / Fix Maximum Size Of It?

Jun 30, 2010

I manage a cache of bitmap. Do you have an advise to fix the maximum size of it?

View 2 Replies View Related

Android :: Installed Application Size Vs APK File Size

Jul 8, 2010

Can somebody explain to me what makes up the installed application size? I have an apk that is about 8 MB, and often when I install I get the INSUFFICIENT_STORAGE error. I have around 25-30 MB free space on the phone. I'm doing debugging so I have to upload lots of new versions. If I uninstall the previous version then I can install the new version. The application manager claims that the app is taking up 22 MB. So back to the original question, how come the app is taking up 22 MB when it really only is 8 MB?

View 7 Replies View Related

Android :: Shared Library So Size Versus Apk Size

Sep 14, 2010

I would like to know why the size of my shared library .so is bigger than my .apk file generated with Eclipse? Approximatly the so size is twice the apk one. What is strange is after having installed it in the device (2.1 firmware) I checked the size of the apk when I uninstalled it from the device and surprisingly the apk size indicated is bigger even than the .so one. Is there any explaination of that?

View 2 Replies View Related

Android :: Png Downloaded Size Different To Server Size?

Oct 7, 2010

My app downloads .png files to the sd card for later use. I kept getting OutOfMemoryErrors (if anyone could explain this too, that'd be great!) and so I took a look at the sizes of the images saved to the sd card, and they seem to be roughly double what they are on the server. Why is this, and how can I make them smaller?
public void onCreate(Bundle saved)
setContentView(R.layout.namedrxnscreen);
TextView t1 = (TextView)findViewById(R.id.rxn_text1);
TextView t2 = (TextView)findViewById(R.id.rxn_text2);
TextView t3 = (TextView)findViewById(R.id.rxn_text3);
TextView t4 = (TextView)findViewById(R.id.rxn_text4);
iv = (ImageView) findViewById(R.id.rxn_image);
pb = (ProgressBar) findViewById(R.id.rxn_loading);
vs = (ViewSwitcher) findViewById(R.id.rxn_switch);

View 1 Replies View Related

General :: How To Fit Button Size With Screen Size

Dec 19, 2012

I am programming an app using an absolute layout (@ eclipse). How to fit the button size with the screen size? (I have four buttons per row).

View 1 Replies View Related

Android :: App Not Visible On Donut

Jul 4, 2010

App is called Tasker. It should be visible in all Donut+ devices but it's only actually visible in Eclair+ devices. Tested on my G1, reported by other users (devices unknown).

Manifest:

<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="4" />

A dump from the compiled apk confirms that.

Here's the top of my Ant output:

Buildfile: build.xml [setup] Android SDK Tools Revision 6 [setup] Project Target: Android 1.6 [setup] API level: 4 [setup] Importing rules file: platforms/android-1.6/ant/ ant_rules_r2.xml

Copy protect is set to off.

And the app works fine when installed on a Donut device outside the market.

I noticed that appbrain also reports it as 2.0 and higher: http://www.appbrain.com/app/net.dinglisch.android.taskerm

View 12 Replies View Related

Android App Published But Not Visible?

Aug 30, 2012

It has being weeks that I published my Pashto Dictionary application. It is visible in playstore by some operations(ISPs) but not in all. When I search for my application at home; I cant find it but I can find it when searching at office. In both cases; I use my Laptop without plugging my device. (I search in play.google.com)

View 1 Replies View Related

Android :: Google Calendar - Other Not Visible

May 29, 2010

I have an "Other Calendar" (a business partner's Google Cal) that shows up perfectly on Google Calendar but is not listed as a choice in Droid Cal. What is strange, though, is that it was visible up until recently. I was able to toggle it on and off on by Droid Calendar just fine. Now it's gone. Yet the calendar has not gone away and is still active in Google Calendars. I need that calendar!

View 4 Replies View Related

Android :: Plugin Not Visible In Eclipse

Aug 17, 2010

My eclipse galileo was working fine till morning; when i checked for updates for it and also updated the ADT then it asked to restart eclipse. Now i cant see any kind of Android options/menu in eclipse. But i can see ADT in installed software. Even if i open my old projects in the workspace, eclipse is unable to recognize any of the Android classes.

View 2 Replies View Related

Android :: Set Cursor Visible In TextView

Apr 9, 2009

In the android reference site, it is written in the serCursorVisible section that cursor is visible by default and you can give its value as either "true or "false" to change the its visibility on the GUI screen. But in my case , cursor is remaining invisible irrespective of setting the visibility "true" or "false" using android:cursor Visible = "true" in the layout/main.xml. Should I do something more to make cursor visible on the GUI screen or its a bug in android?

View 4 Replies View Related

Android :: Some Installed Apps Not Visible

Aug 17, 2010

I have a HTC desire with Froyo 2.2, I'm not sure whether this is a Froyo issue but some of the apps I install are not visible in my all apps view, when I go to the market screen it says that they are installed and I can open them from there but they do not appear as a widget or app anywhere on my phone. The latest app to not install properly is the droid comic viewer, again I can use it from the market screen but can't find it anywhere else on the phone.

View 3 Replies View Related

Android :: Listview Last Visible Line

Jan 14, 2010

In my application, i've a list view, if the last visible line is truncated and I scroll down to this line, I wish that the line becomes fully visible. I have to scroll down once more for it to become fully visible.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved