Android :: Composite Operations In Droid Canvas?

Mar 31, 2010

I'm just starting with Android development and I'm coming from JavaScript/HTML world so I'm currently investigating the possibilities of the Android SDK.

The HTML 5 canvas supports composite operations (See here).

Is this possible in an Android Canvas? I scanned the API of the Canvas class but couldn't find anything useful. I need at least the composite operation "source-in" or (if this isn't possible) "source-atop".

Android :: Composite operations in droid Canvas?


HTC Droid Eris : VGA Or Composite Adapter / Video Signal Present On Bottom Connector

May 5, 2010

Google turned up nothing, but I wanted to see if anyone here was aware of any VGA or composite video adapter for the Eris. I don't even know if there is a video signal present on the bottom connector. I figured asking here was worth a shot.

View 9 Replies View Related

Android :: Low Level Operations With SD Card On Droid?

Nov 13, 2010

Is it possible to have low level access in Android with Java/NDK to create for example card scanner like scandisk or card defragmenter? I move a lots of stuff around my card and it gets fragmented quickly. I have experience with FAT32 defragmenting on Windows, but I'dliek to do this on Android.

View 2 Replies View Related

Android : Some Tutorials About Operations On Droid Emulator?

Mar 6, 2010

Can any body give me some tutorials about operations on the android emulator ?

View 2 Replies View Related

Android :: How Can I Create Custom Composite Widget?

Feb 25, 2009

I have read the LabelView example in APIDemo which show how to create a custom widget.However, what if I want to create a custom widget which is a composite of existing android widget?I know my custom widget need to be inherited from view, but if i do that, I can't do 'setContentView()' in my custom widget class (since that is an Activity method).so how can I apply the above xml to my custom widget class?

View 4 Replies View Related

Android :: Need Droid Apps That Alter Normal Phone Operations

Feb 19, 2010

So i was wondering if its possible to for an application that i would write to be constantly running in the background and alter regular phone operations. For example this could be something like as soon as you receive a text from anyone you forward it automatically to another number. Is something like this at all possible? Just to be clear I don't want to solve that particular problem through some other means, just want to know if apps can accomplish that. Also if that is possible is it possible for an app that i write to alter more immediate and instant things, like an incoming call.

View 1 Replies View Related

Android :: Reset Canvas - Draw A New Bitmap Into The Canvas

Jul 7, 2010

My loadMap() method generate a canvas.throwIfRecycled exception when i try to load a new map.
When i start the game, the initial map loads and work fine though,
its only when i try to load a new map that i get the exception ..

How can i "reset" canvas and the bitmap i use to draw into, so i can startover fresh with them ?
here's what i use to create and draw my maps:

CODE:.........

So basicaly once i created and used picDest and canvas, i cannot figure how to reset it all for when i want to load a new map..

View 1 Replies View Related

General :: Windows Is Not Recognizing Phone As Composite Device?

Jun 20, 2013

when I connect my Sony Xperia T to my home computer, the ADB driver will be installed properly. When I connect the same phone to my work computer, Windows just doesn't want to accept the drivers. The following things are equal:

- USB debugging is always on on the phone

- Both computer are running Windows 7 64bit

- On both computers I am pointing the Windows driver installation at the same folder with drivers downloaded from Sony.

The thing that is different is the device ID that Windows reports in the Details dialogue from Device manager:

On the home PC it is:
USBVID_0FCE&PID_5182&REV_0228&MI_01
USBVID_0FCE&PID_5182&MI_01
On the other PC where things go wrong it is:
USBVID_0FCE&PID_5182&REV_0228
USBVID_0FCE&PID_5182

So it seems Windows is not recognizing the phone as a composite device (MI is it multiplexing identifier?). I double checked that USB debugging is always on and also rebooted Windows.

View 2 Replies View Related

Android :: Do Network Operations In Appwidget?

Aug 22, 2010

I'm developing a Android AppWidget for my application. For updating my appwidget I need to download data from network. But when I try to do that in onUpdate method, my appWidget is killed by Android system. I learnt that time consuming operations can't be done in receivers so I launched a service from onUpdate method and launched a thread from that. But still the problem persists.
Can anyone please let me know how to do network operations in Appwidget?

View 1 Replies View Related

Android :: Handling Expensive Operations In UI Thread

Sep 16, 2009

OK I'm reading this page:
http://developer.android.com/guide/appendix/faq/commontasks.html#thre...

The code is as in the example (see below). In my application, the worker thread has done loading of large bitmaps, and I need to notify the UI thread the filename of the bitmap that was loaded as they get loaded. How can I notify the UI thread of the filename of the bitmap just loaded? I can see anyway to for updateResultsInUi() to be able to take a parameter from the example below.

public class MyActivity extends Activity {
[ . . . ]
// Need handler for callbacks to the UI thread final Handler mHandler = new Handler();
// Create runnable for posting final Runnable mUpdateResults = new Runnable() { public void run() { updateResultsInUi();
} };
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
[ . . . ]
} protected void startLongRunningOperation() {
// Fire off a thread to do some work that we shouldn't do directly in the UI thread
Thread t = new Thread() { public void run() {
mResults = doSomethingExpensive();
mHandler.post(mUpdateResults);
} };
t.start();
} private void updateResultsInUi() {
// Back in the UI thread -- update our UI elements based on the data in mResults
[ . . . ]
}

View 5 Replies View Related

Android :: Stop Threads With Long Operations?

Aug 28, 2009

Android experts, I have a tricky question that I would like some advice on. code...

View 8 Replies View Related

Android :: JUnit Testing Database Operations?

Oct 18, 2010

I'm developing an Android application with database storage.

I want to test some classes that I use to access database.

I've found ActivityInstrumentationTestCase2 to test Activities but I haven't found anything to test classes.

How can I do that? I haven't used jUnit before.

View 1 Replies View Related

Android :: Avoiding Float Operations In Game Design

Jun 8, 2010

I've read this in a few articles, that one should avoid floating point operations within the physics update of a game.

But how do you really achieve this? Surely all half decent games are going to involve this kind of maths?

Does it mean, convert all your variables to int, or use double instead, or simply just cut it out as much as possible?

View 9 Replies View Related

General :: Galaxy S4 Android 4.4 / Program Crashes Operations

Nov 27, 2013

I've downloaded the android 4.4, but when i'm going to settings, security, the program crash the operations.

gti9505G
I9505XXUEMJ7
COMPILATION: KRT16S.S005.13116

I want to mark the option install apps out of play store.

View 1 Replies View Related

Android :: Can't Add 3 Images In A Canvas In Droid / Way To Do

Mar 10, 2010

I have 3 images that I want to add one after other on a canvas.
This is my code...

but this is not working.

Can someone please tell me what I am doing wrong here.

View 1 Replies View Related

Android :: File Operations Extremely Slow On Emulator - Totally Stuck

Jul 19, 2010

I am finding that file operations are extremely slow on emulator. The same operation which takes less than a few seconds in a real device, takes minutes on an emulator. I am using a ubuntu linux machine with 2.4Ghz CPU, 2 GB Ram. I would really appreciate any help in resolving this. I am totally stuck due to this.

View 2 Replies View Related

Android :: Design Application With Multiples Activities And Operations Running In Background?

Nov 22, 2010

I am designing an app that will have some activities separated in tabs. Some of them will have to perform tasks in the background will the user is in another tab. What is the best strategy for designing an app like this? I was thinking about using a service but it can be killed by android dalvik, isnt it?

View 1 Replies View Related

Android :: How Google Map Draw On Canvas In Droid

Sep 16, 2010

Can anybody tell me or send me some links if there is any..which tells how Google map draw on canvas in android. what is the logic behind that.

View 1 Replies View Related

Android :: Way To Get Pixel Values From Droid Canvas

Jul 9, 2010

I'm currently writing an Android game using surfaceView. I've optimized the game as much as possible and it runs quite smoothly. However, I have collision detection incorporated which is a bit messy. I would like to do collision detection by reading pixels directly from the canvas. Is this possible to do? The closest to this that I have found was to attach a new bitmap to the canvas using setBitmap. Then when I drew to the canvas, the bitmap would be updated. Would this be the way to go?

View 2 Replies View Related

Fake Permissions And Unauthorized Operations?

Apr 11, 2014

I do a lot of Android app testing. I use my regular phone, where I have my contacts and my regular gmail account. I never used a credit card on this account. I mostly use APK files to install the apps. I have 2 questions:

1. can an app display some permissions when installing, but have others hidden permissions ?

Example: instal APK file > says permissions "Network access" and that's it.

Can this app also read my data or make phone calls, even though those permissions were not displayed ?

What is I use an app to display ALL permissions ? Can it really display all or is there an way to still have hidden permissions ? I use Android 2.3.7 root and 4.1 no root.

2. Can an app make unauthorized hidden operations, like place phone calls or send texts or steal my gmail password ?

Like I said, I never used a credit card, so at least that's not a problem. But I have my SIM card - can an app place a value added call or SMS (I don't know the exact English term - expensive call), without me knowing about it ?

Or compromise my Gmail account ? I have an alternate email for recovery.

View 1 Replies View Related

General :: How To Get Tab Back To Normal Operations

Nov 1, 2013

How to get my tab back to normal operations.After changing fonts it req for restarting and it's just hanging at booting process. Try to recover but it doesn't work. Then i try to use install 86vebc ROM by using CWM v6.0.2.8 and now it's keep on entering CWM again and again even after rebooting.I only able to give the specification as below because i couldn't find the exactly brand or model for my tab.

View 2 Replies View Related

Android :: Move Ball On Particular Angle In Droid Canvas?

Nov 11, 2010

How to move ball on particular angle in android canvas?

View 1 Replies View Related

Android :: Save Current State Of Canvas As An Image In Droid?

Nov 16, 2010

I'm developing an application which allows user to edit an image and save that edited image as new image on sd card I want to get the current state of the canvas object.

View 2 Replies View Related

Android :: How To Rotate A Canvas Without Disturbing Coordinate System In Droid

Sep 27, 2010

I am trying to rotate a canvas with canvas.rotate and move an object on it at the same time. The problem is that with the rotation, the coordinate system of the canvas rotates as well, so I get cases when my object is supposed to be moving along the y axis, but the y axis is rotated on place of the x axis. It is a mess. Is there a way to go around this?

View 1 Replies View Related

Android :: Rotate Particular Image Among Multiple Images Drawn To Canvas In Droid

Jun 16, 2010

I need a small help on rotating one image around its center of axis among multiple images which are drawn to canvas in android.

I am loading images to canvas like below.

canvas.drawBitmap(mMachineBackground, 0, 0, null);
canvas.drawBitmap(mMachineRotator, 0, 0, null);

I want to rotate only the second bitmap around its center of axis instead of rotating the entire canvas(which includes first bitmap also).

View 2 Replies View Related

Android :: Method To Draw Bitmaps Faster On Droid Canvas / OpenGL?

Jun 15, 2010

I currently have a game written using the Android canvas. It is completely 2D, and I draw bitmaps as sprites on the canvas, and it technically works, but I have a few features that I need to add that will require drawing many more bitmaps on the screen, and there will be a lot more movement.

The app needs more power.

What is the best way to go from this method of drawing Bitmaps on a canvas to using OpenGL so I can draw them faster?

View 2 Replies View Related

Android :: How To File Operations Works In Android

Mar 17, 2010

I was wondering how the file operations works in Android. As in J2ME it has FileConnection class that takes care of most of the File operation tasks.. and it FileConnection doesn't support Android, what is the best way to accomplish the File Operation tasks? I would appreciate if someone could send me some code snippet:

1) Create a Directory( check for its existence first, if not then create it) 2) Create a File in the newly created Directory 3) Write data into the file 4) Read from the file 5) Delete the file.............

View 8 Replies View Related

Android :: Hide Soft Keyboard On Activity Without Any Keyboard Operations

Oct 13, 2010

I have a tabbed view with one Activity per tab, and when I switch from the first tab, which has a TextView, to the second tab, which only shows a clickable list, the soft keyboard is still there. I want it to go away.

I tried this:

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

But this does not work, because there is no relevant view to provide, as there is no View on the screen that takes keyboard input.

View 1 Replies View Related

Android :: Importing Contacts To The Device - Contacts Operations Are Very Slow

Mar 23, 2010

I have some questions concerning importing contacts to the device, which is extremely slow.

First of all, if you delete all your contacts, google sync will restore it very quickly. However, when my app is adding contacts to the device, it's very slow (a few contacts per second). Even if I add almost empty contacts (with name only), it is a time-consuming process.

If I turn google sync off, importing 5000 contacts can take 1-2 hours (on HTC Magic). When google sync is on it can take up to 24hours. And this happens despite the fact, that application for the whole time is in the foreground, device is connected to charger and screen is on. I checked the logcat to make sure my app is adding the contacts the whole time, and it is.

I tried different methods and different devices. The results differ of course, yet manually adding contacts is always significantly slower that google sync. Is there any way that I can speed up the process? So that importing 5000 contacts will take less than an hour.

View 7 Replies View Related

Android :: Transparent Canvas

Apr 4, 2009

I'm trying to make an app that requires me to draw over a layout with buttons, etc. I want to build a transparent canvas over the current layout and draw onto that canvas. How is this done?

View 3 Replies View Related







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