Android :: App Icon To Drag Over And Interact With A Widget

Jun 5, 2009

Is it possible for an app icon to drag over and interact with a widget, similar to the action of deleting an icon or adding something to a folder?

Android :: app icon to drag over and interact with a widget


Android : Scroll And Drag A TileView Widget Around By Finger / Touch

Mar 31, 2009

In the Android API examples there is a Snake game. This game uses a class called SnakeView, which inherits from TileView.

I am doing something very similar to this. I am inheriting from TileView to create a class (SkyView), which will become a square board for a board game (similar to the board for Checkers).

However, I would like for my game board to be 400x400 pixels in size, which will be bigger than the screens of some Android devices (such as the G1). And I would like for the user to be able to freely scroll and drag the board around with their finger (both horizontal and vertical scrolling/dragging).

Can someone please point me in the correct direction for implementing this? The board must be no smaller than 400x400px in size. And however much of the board that can be displayed at once on the screen, should be displayed at once.

Should I wrap my SkyView widget in an AbsoluteLayout and use Scrollbars? If so, what Scrollbar properties to I need to use? I played around with Scrollbars in both directions but couldn't get it to work. Is there another view layout I should put it inside? Code examples would be nice! Thanks for the help. I am at a loss with this one.

View 5 Replies View Related

Unable To Initiate Drag After 30 Times Drag Event

Apr 5, 2012

I am able to create and drag and drop activity successfully but the only problem I faced is if I drag the view more than about 30 times, the drag event will stop to initiate and I am unable to drag anything. What is the causes?I am using onTouch() to drag the view.

View 1 Replies View Related

Android :: Setting Widget Icon Image On Widget Load

Oct 16, 2010

I am writing my first application and am trying to get my widget to load a different image when it is added to the home screen based on the state of the notification volume.It is detecting the notification state fine and the proper Toast messages appear when I add the widget, but I'm not getting any icon.I just get an empty button.I'm using the same code to change the icon in my onReceive() method to do other things and that works fine.Is this the proper way to accomplish that?

View 3 Replies View Related

Android :: Interact With The Call

Nov 1, 2010

Today, the focus of a cell phone's capabilities is drifting away from plain making a phone call.

And somehow, this shows in the API's too. Therefor I'm wondering: if I want to write an app that e.g. pitches up, records, scrambles... an incoming call - you know, the voice on the other side -, what aspect of the API should I use?

I looked into Android, into Windows Phone, iPhone... (briefly), but had no luck. Is this just unintended usage?

View 4 Replies View Related

Android :: Interact With Scripting Environment From An App?

Oct 4, 2009

I'd like to use python scripts as plugins for an app I'm developing. This seems to be possible by interacting with android-scripting-environment (ASE), as is done by Locale, but I haven't found any documentation about this. How you execute ASE scripts from your own app?

View 1 Replies View Related

Android :: Widget That Looks Like Launcher Icon?

Feb 22, 2010

I would like to write a widget that emulates the look of an application launcher shortcut. In particular I want the white font label on a black, semi-transparent background. As it should look the same as the launcher shortcut I wouldn't like too much to imitate the actual look, but to re-use/copy it. Any idea where I can get that?I checked the launcher app and found application-boxed.xml, but it doesn't seem to do what I want and I am probably way off anyway.

View 6 Replies View Related

Android :: Changing A Widget's Icon From OnUpdate

Dec 29, 2009

I have a widget that is meant to change its icon every time it receives the Update broadcast. However, the widget never manages to display its icon properly, displaying the text "Problem loading widget". The Logcat message is: WARN/AppWidgetHostView(612): updateAppWidget couldn't find any view, using error view
WARN/ App Widget HostView(612) : android.widget.RemoteViews$ActionException: can't find view: 0x7f060003 The code for my onUpdate is: public class ImageWidgetProvider extends AppWidgetProvider{private static final String TAG = "Steve"; public static final int[] IMAGES = { R.drawable.ic_launcher_alarmclock,/*and many more*/}; @Override public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds){for (int appWidgetId : appWidgetIds) {Log.d(TAG, "onUpdate:"); int imageNum = (new java.util.Random().nextInt(IMAGES.length)); Log.d(TAG, Integer.toString (IMAGES[imageNum])); RemoteViews remoteView = new RemoteViews(context.getPackageName(), R.layout.widget); emoteView.setImageViewResource (R.id.image_in_widget, IMAGES[ imageNum]);Now when I hover the mouse over "R.id.image_in_widget" it brings up that its value is equal to 0x7f060003 - the view that it can't find according to Logcat. Using the second Log statement, I verified that IMAGES[imageNum] does indeed refer to a random image from the IMAGES array. (In case it matters, it comes out as a decimal value rather than a hexadecimal one.) Any ideas what I'm doing wrong? Edit: Here is the layout file for the widget, where the image_in_widget ImageView is declared.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView android:name="@+id/image_in_widget"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/

View 4 Replies View Related

HTC EVO 4G :: What OS Do Use To Interact

Jun 15, 2010

just wonder what people used to interact with their Evo....I keep hearing Linux is better to use than windows? I'm trying to get linux up and running for when i get my evo if that is the case. Just wonder if its worth the trouble...is there anything i'm missing if i dont use linux.

View 12 Replies View Related

Android : Interact With External SQLite Databases From Droid?

Jul 21, 2009

I'm trying to work with a web service (that I have no control over) that returns a SQLite database when you query it. Is there any way to do this?

View 3 Replies View Related

General :: App To Interact With Basic Settings Of Android Phone

Mar 22, 2012

I am trying to get an application to interact with basic settings of an andriod phone so that the functionality of the app can be switched on or off in the main settings functions...

View 1 Replies View Related

Android :: Home Widget Behave Like A Launcher Icon

Jan 26, 2010

I have a widget that acts as a launcher on the home screen. How can I make it behave like a launcher icon?

I use this layout for portrait:

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

And this is the background selector:

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

This way if I use the DPAD the widget is focusable but the click doesn't work. The touch still works but the widget is not displayed as focused.

View 2 Replies View Related

Android :: Background Practices (Interact With Network And Check Location)

Aug 27, 2010

My application needs to perform some activities in background (like interacting with the network and check the location and some other stuff), having or not the main activity visible. Which is the best way to achieve this? Should I write a service for each kind of job? Or just one service that performs everything? I am aware that I will need to launch threads / asynctasks in any case because the service runs on the same thread of the UI, but maybe having several services is a more clear and readable structure.

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

Sprint HTC Hero :: Fun Apps On Phone That I Can Download To Interact With Other Android Users?

Sep 3, 2010

That I can download to interact with other android users.

View 2 Replies View Related

How Does App Interact With External Electronic Device

Apr 30, 2013

If I wanted to create an app that manipulates, reads the data of, or controls an external electronic device, what coding or technologies are involved in this? some apps control an toy RC plane in the room.

View 1 Replies View Related

Android :: Thread-safety When Creating Methods - Activities Which Interact With SQLite Database

Sep 20, 2010

I am creating an app which allows for many different Activities to be started from a TabActivity(up to ~25). Most of the activities require data from the sqlite database, so when onCreate is run, an AsyncTask creates an SQLiteOpenHelper object(which will open a readable/writable database), runs a query, data is retrieved, and everything is then closed.

I was just testing messing around to see if i could break something, so i added every Activityto the TabActivity's TabHost. I then started mashing each tab as quickly as possible.

I noticed that very quickly i began to see in the LogCat: Caused by: android.database.sqlite.SQLiteException: database is locked: BEGIN EXCLUSIVE; and the app proceeded to die.

Typically there will only be about 4-6 tabs(i can just limit the user anyway) for the TabHost. I haven't been able to break anything with a small amount of tabs to mash, but i am still worried that maybe i am accessing the database in a poor way.

How can i prevent my SQLiteDatabase objects to cause a lock?

If i create a ContentProvider will that eliminate the possibility of database locking?

Do you have any suggestions for changes I could make for accessing data from an SQLiteDatabase?

I ended up taking the approach of using the Application class and storing 1 SQLiteOpenHelper and trying my best to keep it synchronized. This seems to be working great - i put all my 25 activities in the TabHost and mashed away on them with no errors.

I am calling ((SQLiteDbApplication)getApplication()).setDbHelper(new DBHelper(this, Constants.DB_NAME, null, Constants.DB_VERSION_CODE)); method(shown below) in every onCreate() in my activities

Any further suggestions to this approach or to the changes i made using this Application class?

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

View 3 Replies View Related

HTC EVO 4G :: Moving Icon / Widget From One Screen To Another?

Jul 20, 2010

It seems there's a trick that I'm missing because I'm only successful 10% of the time I want to move an icon from one screen to the other. Most of the time I have to delete the icon, swipe to next screen, then add it again.

View 10 Replies View Related

General :: Get App / Widget Icon Back?

Jun 6, 2013

My child accidently removed my App/Widget Icon. The icon that takes you to your apps and widgets.

How do I get it back?

View 1 Replies View Related

Android :: Tab Widget With Icon On Left Of Text - Place Tabs On Bottom Instead Of Top Of Screen

Nov 1, 2010

I'm building a tab activity and but I don't want the tab text to appear bellow the icon. Is there any XML property to define this behavior? On the other hand, how can I place tabs in the bottom of the screen instead of the top?

View 1 Replies View Related

HTC EVO 4G :: Can I Make A Widget / Icon For Yahoo Calendar?

Oct 23, 2010

Can I make a widget or icon for Yahoo Calendar, so I can access the calendar quickly ?

View 4 Replies View Related

HTC Incredible :: Widget Icon Stuck Behind Dock

Nov 4, 2010

Anyone know how to get rid of a widget that has somehow found its way behind my dock so I cannot get to it to move it? I use LauncherPro+.

View 7 Replies View Related

Samsung EPIC 4G :: No Video Icon - Widget To Add Either / Take It?

Sep 1, 2010

I'm sure this will end up being a stupid question and I'm going to kick myself....

I have a camera icon, but no video icon. No widget to add either. How do I take video?

View 3 Replies View Related

HTC Incredible :: Weather Widget / Sunshine Icon At 10pm?

Apr 30, 2010

Not sure if this is a known issue, but WTF? i am still getting a bright sunshine and the temp if off by 7 degrees, plus i have it set to update every hour. Is there a fix?

View 37 Replies View Related

Motorola Droid X :: Power Widget Little Sync Icon For All App?

Jul 29, 2010

Just a simple? the power widget has the little sync icon. Is that for the sync of all apps on the phone like email, facebook, news, and anyother widget that updates and use data. It allows me to turn data on/off to all these programs rite? New to Andriod so please bear with me.

View 1 Replies View Related

HTC Incredible :: Changed Title Of Widget / Icon On Home Screen?

May 2, 2010

Is there a way to change the title of the widget/icon located on the Home screens?

View 2 Replies View Related

Motorola Droid :: Widget / Icon Disappear When Application Closed

Sep 20, 2010

When I exit out of an app the screen is blank for 30 seconds or so before my widgets and icons reappear. I had it back in November 2009 and I still have it after 2.0.1 and 2.1 and 2.2 and the other 2.2. I see a million threads here and on other forums asking about it. Just checking in to see if there was ever a solution discovered. Like all of you, I can always bring them back with a hard or soft reset.

I'm just wondering if anyone has found a way to prevent it from happening in the first place. I assume that it's related to available memory or processor or something, so every once in a while I think "I'm going to streamline this thing and give it all kinds of available memory" and it doesn't work. I kill all widgets and go to vanilla wallpaper and it still happens. Anyone figure this thing out?

View 12 Replies View Related

Sprint HTC Hero :: Weather Widget Displays Wrong Icon

Oct 20, 2009

On both the clock/weather and regular weather widgets I am getting the correct weather but the icon to represent what it looks like outside is off. For example, posting this at 9:30am, the moon icon is on the screen. I'm not quite sure what is causing this to happen.

View 1 Replies View Related

Android :: Android - Manifest TargetSdkVersion Change - Icon Not Visible - Widget No Longer Works - Cannot Access Data

Mar 20, 2010

I recently upgraded my Android app to support multiple resolutions. Previously, my Android.manifest file had a line:

To support multiple density and resolution devices, I changed this to:

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

I then added a couple of new directories, like drawable-hdpi-v4 and drawable-long-hdpi-v4 that includes the high-res versions of the graphics. That's about it.

Ever since releasing this update, there have been a decent number of users complaining about various problems:

the app icon doesn't appear (I did not create a high res version of the icon)
the home screen widget no longer works, even if they delete and re-add it (this code did not change with the update). I've had a user send me their error log, which shows:

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

There is one questionable section in my existing widget code that may be relevant:

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

And perhaps most troublesome: the sqlite database is no longer accessible/writeable for some users so their data is no longer available. I did add the WRITE_EXTERNAL_STORAGE permission to the manifest. This is only happening to certain users and it tends to be HTC Eris users. In that error log I see things such as:

CODE:.........

It's as if the update has caused a new process and it can't access the old process's data, or something.

View 1 Replies View Related

HTC EVO 4G :: Update - Factory-installed Voicemail Icon Was Showing That Couldn't Load Widget Message

Jun 29, 2010

After the update, the factory-installed Voicemail icon was showing that "Couldn't load widget" message. I removed and replace it without a problem. This morning, I got a voice message and now it doesn't show the new message count in the icon.

Not a big deal, but I guess that means they updated that app (current version is V.5.1.0.30). I was hoping they would at least improve the recording quality by providing options for raising the recording frequency so it doesn't sound so "tinny".

View 1 Replies View Related







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