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.

Android :: How to decide widget size in configure Activity?


Android :: App Widget Configure Activity Opens Main Activity

Jan 10, 2010

I hav an app that is like a relational database. There is a main app activity that users manage things with. There is also a widget that will display important info and add data to the database. When the widget is clicked, a configure class displays a way for the user to edit data. When the configure activity is done, the widget is updated and instead of going back to the home screen, the apps main activity is started. I can't find where the main activity is being called from. Wouldn't I have to create an intent and start Activity() to get this behavior? When done updating, I want the home screen and not my app.

View 3 Replies View Related

Android :: Widget : Get Data From Configure Activity To AppWidgetProvider?

Feb 14, 2010

I'm writing a widget where i first have a configure screen where the user makes a selection. Then I want to pass that data on to the actual widget. This must be really simple but I just can find out how to do it.

View 2 Replies View Related

Android :: TabActivity Crash When Create Tabbed View In Widget Configure Activity

Dec 4, 2009

I'm trying to create a tabbed view in my widget configure activity. I'm using a tab activity as my activity type and I have the following code..................

View 2 Replies View Related

Android :: Configure The Web Browser Cache Size?

Jul 30, 2009

Configure the web browser cache size? In HTC's new product HERO, they limit the cache size from 100KB to 6MB, and user can configure it manually. It can prevent browser sucking up memory space too much.

View 2 Replies View Related

Android :: How To Decide Between Galaxy-s Vs N900?

Sep 19, 2010

I am planning to buy a High End phone. Though my Basic requirement is mostly Emailing, IM and Web Browsing. My prime concern is whenever I visit a website the viewing has to be clear and comfortably big. So I am looking out for a phone with a decent screen. Now I have shortlisted two phones the Nokia N900 and the Samsung Galaxy S-i9000. I know that the SGS comes with an Amoled Screen, which supports 16 Million colors but frankly speaking a lot of people have been saying this to me besides the big, vibrant screen the SGS offers there is nothing special about it. Still running Android 2.1. Ok Offers Multi-touch screen, Pinch to Zoom ease and all. But frankly it cannot be the only deciding factor atleast not for me. Android Apps have reached to a staggering number but while everyone is happy about the numbers a lot remains to be desired on how much of those Apps are really useful. Though Multi-Tasking is also there on the SGS, the quality and the experience is Horrible is what I have heard from initial feedback, it keeps killing most of the apps in the background when you run a website on it.

View 33 Replies View Related

Android :: Can't Decide Between SOAP Or XML-RPC Protocol

Apr 7, 2010

We are designing an internal system that will have a .NET PC base station and many Android mobiles, communicating over WiFi. Can't decide between SOAP or XML-RPC protocol. Primary concerns are maturity, compatibility, and the minimizing of coding/integration, in that order. Which is best?

View 1 Replies View Related

Android : How To Decide Which Package Suitable For Testing App?

Jan 12, 2010

I need to know how to decide which package is best suitable for testing my app. Some info is provided in this link..

View 3 Replies View Related

HTC Droid Eris :: Charging - Cant Decide Between USB Or AC

Aug 25, 2010

I have a standard HTC Eris travel AC charge that I bought. Worked awesome. Charged Phone nice and fast. When I would plug it in. The battery widget would show a little plug.

Now when I attempt to plug the phone in. It thinks its charging by usb. Taking the phone off charge and replugging it in. It tells me its now charging by ac. If i touch the phone a tiny bit it will stop charging. Touch the wire and it begins to charge again. Only as usb. When its clearly plugged into the ac charger.

If i plug the phone into my car charger it say ac. I just dont get it.

Now when i left work. I attempted to tether the phone via pdanet. Now the phone wolnt go into usb debugging. Phone charges but computer wolnt recognize it.

Ive tried the usual. Power cycling both computer and phone. Tried restarting both computer and phone. As well as changed cords and chargers. All do the same thing. I fear maybe some of the contacts are bad on the phone.

View 3 Replies View Related

Android :: Dynamic Widget Size

May 18, 2009

I define once in my /xml/widget.xml the minwidth. but what can i do when I need to inflate different sizes from my widget layouts for 1 one my 3 widgets thats fine, but the last 2 widgets would just need one icon size, so they always need the width of 2 icons. also when I make minwidth smaller.. it fits with the other 2 widgets but the large widget come cutted.How to solve that. I cant believe to create a total new receiver and a new /xml/widget2.xml just for another size?!

View 10 Replies View Related

Android :: Looking For A Stopwatch Widget Of Size 2x2

Jan 13, 2010

It seems so simple: I need a stopwatch widget, size 2x2. Just need it to be able to start and stop, laptimes would be a nice to have but no requirement. I don't need it to be very high resolution, seconds would be good enough (for my application, even minutes would suffice!). Any tips?

View 2 Replies View Related

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.

View 2 Replies View Related

Android :: Change Widget Size At Run-time

Oct 16, 2009

Is it possible to change widget size at run-time? I want to provide users with an option to chose size of the widget from configuration utility but can't figure out how to do that. The only way to specify size of the widget seems to be to explicitly do that in AndroidManifest.xml

View 2 Replies View Related

Android :: Dynamically Change The Size Of Widget?

Sep 22, 2010

Is there a way to dynamically change the size of a widget? Can an app have multiple widgets?

View 3 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 :: Widget Layout - Small Size Of Contents?

Sep 9, 2010

I am trying to make a widget to show on the home screen(s). My problem is lets say I set my icon to 30x30 when I load the widget on the screen the Icon is the correct size but the layout itself takes up a lot more space than what is actually needed. This means that I can't really place my widget next to other icons on the screen. Its like the bounding box is 3 times bigger than the content that fills it.

Here is my XML
[CODE]

I have tried wrap_content and other width/height settings but nothing seems to reduce the "Box" around my widget content. I clicked on my ATK widget and started to drag it around on my HTC Aria and it shows the bounding box around the widget and that one is the same size of the content inside same with all the other widgets on my screens.

View 6 Replies View Related

Android : How To Change App Widget Size On Home Screen?

May 26, 2009

I'm making App Widget program on Android 1.5 I wonder if I can change my app widget size on home screen . I can set my app widget's size in XML file. But, how can I change it's size after my app widget launched from home screen ? I want to add some button to my app widget that can change it's own app widget size. Is this possible?

View 3 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 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 :: Need Weather Widget Display In Single Icon Size?

Dec 29, 2009

Is there a simple weather widget that will display the current temperature on my home screen in a small size, like the size of a single icon? Something like what's on the Multimedia screen would be great. I don't want future weather, radar or maps... just the current temperature.

View 3 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

HTC Incredible :: News Widget Using - 1x4 In Size

Jun 11, 2010

I am looking for a news widget that is 1x4 in size. Will give a good mix of up-to-date news.

View 4 Replies View Related

General :: How To Change Default Widget Size

Mar 30, 2013

How to change a widget that defaults to 4x3 so it will be a 4x2 instead. I have an SIII accuweather widget I have modified to fit on S advance. But it starts at 4x3 then needs to be resized to 4x2. How I can make it 4x2,

View 1 Replies View Related

Motorola Droid X :: Weather Bug Elite Map Widget Size

Nov 29, 2010

I've been using Weatherbug Elite since soon after getting the Droid X. I'm running Launcher Pro Plus. I have always been able to resize the map widget of weatherbug to 3x3. Now (since last update I think) the widget sizes to about 2.5x2.5 from the standard 2x2 size. The other .5x.5 is grey screen. Has anyone else been having this problem or know if it can be fixed? I really like weatherbug but would like to fix this.

View 4 Replies View Related

Motorola Droid X :: Normal Size Home Widget Messed Up

Jul 24, 2010

I just downloaded beautiful widgets and love it.the only problem is that the normal size home widget is messed up when I use launcher pros five row setting. Anyone know a fix got this.

View 8 Replies View Related

Android :: How To Get Android Widget's Size After Layout Is Calculated

May 19, 2010

I have a layout which specifies sizes of widgets in relative dimension, for example:

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

Immediately after onCreate, I want to know how much is the height of the ImageView. How to do that?

If I call getHeight() in onCreate, I get 0.

I have also tried imageView.postDelayed, it works on 2.1 emulator but fails on 1.5 emulator (I got 0, too).

Finally, I tried to create a Handler, and then I call handler.postDelayed with 10 ms delay. It works in both 2.1 and 1.5 emulator, but failed when I start the program in eclipse debugger (So, I conclude that using the delay doesn't guarantee that the getting of the height happens after the imageview is layout-ted.)

View 1 Replies View Related

Android :: Can ListActivity / Tab Widget Be Use In One Activity?

Aug 9, 2009

My activity have to use List and Tab widget, one is left side,the other is right side, I means layout, but use List must to extends ListActivity, and use Tab widget must to extends TabActivity?

View 7 Replies View Related

Android :: Call Activity From Widget?

May 30, 2009

I've read through the Application Fundamentals three times today (and I had done so before), but I still can't quite wrap my ahead around the task concept. Or I guess I thought I understood it, but usually, the results I am seeing don't match up to what I would expect to happen (maybe a tool to see the current tasks/activities etc. for debugging purposes would be a nice addition).

I have multiple widgets from my provider in the Launcher desktop, and each is using a PendingIntent with a different URI as data (so they should be separate intents) to open an Activity.

I want there to be only once concurrent instance of this Activity that the user can access. So clicking the widget (1) , pressing HOME (2), clicking a different widget (3), pressing BACK (4) should bring the user back to the Desktop.

Now I did manage to do this using launchMode="singleTask" - the existing instance is brought to the top, onNewIntent() is called and I am pretty satisfied with it.

However, supposedly there are other ways to achieve an equivalent effect (say with having the activity restarted), and I'd like to understand why I don't seem to be able to get them to work: In every case, instead of seeing the home screen after step (4) (after pressing BACK), I see the *previous* instance of the Activity.

For example, if I read this correctly:

"There's another way to force activities to be removed from the stack. If an Intent object includes the FLAG_ACTIVITY_CLEAR_TOP flag, and the target task already has an instance of the type of activity that should handle the intent in its stack, all activities above that instance are cleared away so that it stands at the top of the stack and can respond to the intent. If the launch mode of the designated activity is "standard", it too will be removed from the stack, and a new instance will be launched to handle the incoming intent." http://developer.android.com/guide/topics/fundamentals.html

Then simply using using the following code to start my Activity from my widget should do what I want, no?

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

So in (3) My activity should be launched using FLAG_ACTIVITY_NEW_TASK by the launcher, which due to process affinity would find the existing task (which would consist of a single instance of my Activity), and launch the new instance on top of it. This explains what I am seeing. Why doesn't FLAG_ACTIVITY_CLEAR_TOP cause the existing instance in the task to be replaced?

Even setting android:launchMode explicitely to "standard", as mentioned in the doc quote above, this doesn't seem to change things.

I also tried android:finishOnTaskLaunch="true", but the behaviour is the exact same was just described with FLAG_ACTIVITY_CLEAR_TOP (which seems to be the exact same as when doing neither and really starting an activity without any special attributes).

I should mention that If I click the same widget in (3) as I clicked in (1), i.e. using the same PendingIntent twice, I do get the previous instance brought to the front (not restarted), but again, regardless of whether FLAG_ACTIVITY_CLEAR_TOP or finishOnTaskLaunch are being used.

I find this especially strange since the docs about tasks don't seem to mention the intent itself being relevant at all. Application Fundamentals does at one point say "For the default "standard" mode, a new instance is created to respond to every new intent", but it's not clear what "new intent" means then. Is triggering a PendingIntent multiple times through a widget not multiple "new" intents then?

I also tried various combinations of the other related options, but pretty much got nowhere.

View 2 Replies View Related







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