Android NinePatch files seem to be standard .png files with extra information. Is there a spec for the format anywhere, as I'd like to be able to implement this on other platforms?
Hi, a program I am using tracks down my diskdrives and offers to write a dvd image to them. I would like to be able to write this image on HD in stead of on disk, but I have no option to browse the file system.
Therefore I would like a virtual dvd disk, that is in fact a folder, but that is recognized by the app. as a real, empty dvd.
I have tried MagicDisk, but it doesn't seem to offer the ability to couple an emulated disk drive to a folder...
As a Web-Developer what is the most efficient (automated) way to connect to a Virtual Machine (VM) running a development webserver from it’s Host Machine (the machine running the VM) when you do not have control over the networks (home, Startbucks, work, etc) you are connected to?
Currently I start my VM (a VirtualBox VM running CentOS), run ifconfig to determine the VM’s current IP. I then take that IP and map it my Host machine’s host file so that I can access the VM’s webserver from the Host.
I feel that this is not an efficient way to connect to my VM’s webserver because each time I connect to a new network (a few times a day) I need to repeat the IP look up and host file update, and sometimes restart the VM's network service.
Are there any good database abstraction layers/object relational mappers/ActiveRecord implementations/whatever they are called for Android? I'm aware that db4o is officially supported, but it has quite a large footprint and I'd rather use a more conventional database (SQLite).
Hi everybody,
My issue is as follows :
I have stored a few pictures into the sqlite database, using the blob format, which seems to work ok. now i want to get my pictures out of the DB and put then back into images... to complicate the matter, their format is variable (png, jpg, maybe something else, im not sure)
Is there a way of doing so in android?
thank you
My current setup is Ubuntu Desktop, running Apache + MySQL + PHP stack. I use this image to host my small website to the outside world.
I want to now run a virtual machine on the box, that will act as the FreeNAS box for my internal network. This sounds like a bad idea if the website gets hacked/attacked. Should I just give up and grab a dedicated machine instead? Can I instead virtualize the web server and NAS side by side on this machine?
I've been looking around for this for a long time but can never seem to find it in the Android documentation. There's all sorts of advanced things I see, but I can never find any solid documentation - there's the shapes package, but it provides no insight on how to use them in xml. The best I can do so far is finding other people's examples.
Is there some magical documentation that exists for the XML shapes?
I want to start making a program for a local charity on the Android platform.
Where can go I for resources and tutorials to learn? I'm very new at this, so would like something simple that can be followed by someone with minimal technical knowledge.
On the iPhone/iPod touch, settings could be kept in the Settings.app. Can you do this in Android? Or must you settings have to be in the actual appilcation?
Hi all I am new to android. I parsed the calendar file. I need to add events to Google calendar from my application. I am using eclipse ide. In eclipse how to use the Google calendar api? Any jar file is needed to use the calendar api?
We have a Hyper-V 2012 server with 8 VM's on. We have attached extra virtual hard-drives to each of the computers to store backups on. These drives are stored on a NAS.
After a power failure, we tried to boot the VM's and found that they couldn't be booted without the attached backup drives. We couldn't boot the NAS at that point and so we had to remove all the extra drives manually, boot the VM's and re-attach the drives at a later date when we got the NAS back up and running.
These backup drives are non-essential to the running of the system.
I would like to know if there is a way to boot a VM on Hyper-V 2012 with some of the hard-drives (scsi) missing so that we can recover automatically from a power failure.
I'm trying to upload to AWS S3 by using thier AWS for Android SDK but both sample project within SDK and my project give the following error on devices while emulator runs without problem. So there's no problem with my AWS account.
"Host name may not be null."
Upload Code :
s3Client.createBucket(Constants.getBucket());
PutObjectRequest por = new PutObjectRequest(Constants.getBucket(), record.getFile().getName(), record.getFile());
s3Client.putObject(por);
Any help is appreciated.
I have a series of virtual servers. I'm running a command to login to each one and take a look at the load averages using uptime.
What's the best way to work out if load values represent overloading? I'm running on rackspace cloud, so the servers have burst capability and can be all different sizes.
I'm a little stumped on how to come up with a consistent way of figuring out when I need to spin up new servers. I can do things like estimate the jobs running on each one, but I'd like a system that runs a little closer to the real resource use available on each instance, as it obviously varies quite a bit!
Help greatly appreciated!
Hi,
I have an ImageView in my layout xml file. I set the width to wrap_content and height to fill_parent. In hierarchy viewer, the width is 2 px and height is 120 px. But when i see it on device, my 9-patch image for the image view does not stretch to 120 px. Can you please tell me how can I trouble shoot this 9 patch image does not stretch error?
Thank you.
does anyone know what part of the opengl es thread on an androiddevice runs on the gpu (if it has one). just the method calls you make with the GL10 adapter class? or the complete onDraw method in your custom Renderer class?
What are some things you wish you had known about Android when you first started out or before you published your first app on the market? I am nearing completion on my first and am starting to make sure I have crossed my proverbial Ts and dotted the Is
I am first time to write a camera app. At program, I am using setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) and android:screenOrientation="landscape" in Manifest to set the landscape screen.
My problem is when use System.exit() or Intent. The screen will change to portrait automatically. But in my program, it haven't set any screen orientation again.
How can I prevent this problem?
Thanks!!
I'm developing a native app for Android and I'm trying to use functions such as glIsEnabled which appear to be only available in OpenGL ES 1.1. Google's docs claim that NDK 1.6R1 supports OpenGL ES v1.1 but the function call fails with "unimplemented Open GL ES API" and if i do a glGetString(GL_VERSION) it returns "OpenGL ES 1.0 CM" as the version.
So if 1.1 is available, what do I have to link against to get it or what else do i need to change to get it?
In our windows hosting we use the root (wwwroot) folder to host a JOOMLA website as public website. This is running IIS 7.
Then, we created a virtual directory called "App" to host there a ASP.NET MVC4 application.
When I enter www.mydomain.com it shows the joomla website correctly.
When I enter www.mydomain.com/App/ it somehow access my MVC app... as I see the URL changing to www.mydomain.com/App/Account/LogOn?ReturnUrl=%2fApp%2f BUT shows a 404 Joomla error as if it were looking that URL in Joomla.
BTW, the hosting has 2 ASP.NET IIS Setup options: 4.0 Classic and 4.0 integrated.
Using the Integrated one... it displays a blank page... using the classic one shows the 404 Joomla page.
Any idea where to look for this?
I want a TextView to have a rounded border. This can be done by using a drawable, specifying a shape in the drawable, and then using the drawable as the background of the TextView. android:background="@layout/border" Also shown here
However, my TextView already has a background color (which is gray) and thus I'm unable to use the above method to set a rounded border.
Is there any other method to do this which allows the background color of the TextView to remain gray and also surrounds it with a rounded border?
My understanding is that VMMs such as VMware's ESXi Server maintain shadow page tables to map virtual page addresses of guest operating systems directly to machine (hardware) addresses. I've been told that shadow page tables are then used directly by the processor's paging hardware to allow memory access in the VM to execute without translation overhead.
I would like to understand a bit more about how the shadow page table mechanism works in a VMM.
Is my high level understanding above correct?
What kind of data structures are used in the implementation of shadow page tables?
What is the flow of control from the guest operating system all the way to the hardware?
How are memory access translations made for a guest operating system before its shadow page table is populated?
How is page sharing supported?
Short of straight up reading the source code of an open source VMM, what resources can I look into to learn more about hardware virtualization?
I have an android app that periodically, say once a week downloads content from a server in XML. The content is used by the app, different Acitivities use different parts of the content.
My question is a design one, should I save the data in SQlite or just keep it as an XML file, which one would be faster to read?
The app can only use one content piece at a time, which means subsequent XML content downloads replace the old one.