Android :: Iphone Web App Server Side View Template Selection
Sep 18, 2009
I'm going to develop a mobile version of my webapp. Most documentation I've read suggests one of the following approaches:create a separate domain (m.example.com)using conditional css style sheets, but serve the same html
I'd like to take a completely different approach. I'm using MVC, and would decide which template to render on the server side. My model and controller will be the same, the domain will be the same, but the html will be served differently for mobile users.Has anyone tried this? Any pitfalls to this approach?
View 1 Replies
Oct 30, 2009
As I understand it, Android will only play AAC format audio if it's encoded as MPEG-4 or 3GPP.
I'm able to play AAC audio encoded as M4A when it's local to the app, but it fails when obtaining it from a server.
The following works, as the m4a file is held locally in the res/raw directory.
CODE:........................
The following doesn't work. (But does with MP3's).
CODE:...................
Can anyone shed any light on why it fails when the m4a audio file is not local?
Here's (some of) the error...
CODE:...................
I'm targeting SDK 1.6.
View 4 Replies
View Related
Sep 3, 2009
I am beginner (Both Android and Server side programming),
Am having doubt about Server side for my Android mob application
My requirements are 1. Receive request from android mob application 2.Run algorithm on Huge Database Depending on some variable "xxx" inside query request from mob app 3. Send back the result produced to Android mob application.
What type of Server should i run? Database-mysql? How can i combine algorithm and database how can i parse the request from mobile application and run appropriate algorithm.
View 7 Replies
View Related
Mar 18, 2010
I'm having a problem in accessing a database on remote server from my android application. In some blogs i found that by using Webservices we can do it. but i dont know what are webservices? Can any one help me how do i do that?
View 3 Replies
View Related
Sep 30, 2010
I've gotten HTTP POST to send strings to the server side PHP script. My log is showing the correct return values. The script runs fine manually from the browser and inserts a new db table row. But can't get the script to run by having the apk call it... though, again, it returns all script page content including strings.
How can I get the script to run?
View 1 Replies
View Related
Oct 9, 2009
Is there a way I can identify a handset on the server side of an HTTP request? I realize many headers are included on the request, but I am uncertain as to how the handset might be uniquely identified? Perhaps the Sim signature or some such fingerprint?
View 3 Replies
View Related
Nov 3, 2010
In the past I have used Python for backend stuff along with Django for frontend stuff, but I don't know how well those two work with Android. Can anyone recommend a good way to go about making server-side software that works well with Android? Please take into account that I also want a web application as a frontend, so the backend should work with both the web app and the Android app.
View 1 Replies
View Related
Aug 1, 2010
I have a simple list view control
My queries are:
1) how to set first row selected on start (after fill data in list view)
2) when i navigate by hardware button i got AdapterView.OnItemSelectedListener and color of row background change, but when i click i not get any OnItemSelectedListener and no row selected. How to select row on click.
3) when i change focus list row selection removed.
View 1 Replies
View Related
Aug 6, 2010
I'm working with a list view trying to get specific activities to open when a certain item is selected. This is the code that I'm working with right now. I know its wrong but am not sure what I need to change it make it work. I think I need an intent and tried a few ideas but did not come up with much.
CODE:............
View 1 Replies
View Related
Aug 12, 2010
Edit: Okay, I found a solution. Don't know that it's the proper solution, but it does work correctly. Added to the code below. I'm trying to allow a user to select a number of directories from a checklist, and return them upon clicking a "Submit" button. Here's a snippet of my code. It populates the List View with all the directories on /sd card/, and for the initial selection (of however many I pick) when I submit, the log shows the correct choices returned. However, if I un check an item, and click "Submit" again, it still shows as if all are selected. Do I need to write a handler to un check an item? I thought that was taken care of by the choice Mode selection?
View 1 Replies
View Related
Jan 31, 2010
How do I do this per selected list item.I tried adding this to android:background
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_focused="true"
android:state_pressed="false"
android:drawable="@color/android_green" />
<item android:state_focused="true"
android:state_pressed="true"
android:drawable="@color/black_alpha" />
<item android:state_focused="false"
android:state_pressed="true"
android:drawable="@color/black_alpha" />
<item android:drawable="@color/white_alpha" />
</selector> but it does not work, it changes the entire list.
View 3 Replies
View Related
Oct 18, 2010
I was wondering if there is a way for placing a view to the right side of another view and centering it vertically on the second views height. In know this can be done using a LinearLayout, but for other reasons the 2 views must be part of the same RelativeLayout.
View 1 Replies
View Related
Oct 10, 2009
I want to place first image view in gallery view starting from left side of the screen, instead of centre. Right now, it always position of first tem always starts from centre. Any help on this would be highly appreciated.
View 3 Replies
View Related
Jun 11, 2010
Is there any sort of app for Android that works like Air Video Server?
View 3 Replies
View Related
Aug 4, 2009
I'm trying to use Spinner as a button with selection pop-up. Basically I want an icon and when user clicks it - the popup list is displayed and user can make a selection. The Spinner happily accepts icon image as drawable background. Unfortunately when I select a value the text overlays the background. Is it possible to set selection text color as a transparent? Or maybe there's a better way?
View 3 Replies
View Related
Jun 29, 2010
I've had no glitches for the past few weeks until now. The orientation of the internet stays in side view. Messaging orients fine in both views.
What to do, fellas?
View 4 Replies
View Related
Nov 3, 2009
Now i want to write an application to make a certain text to run slowly from right side screen to left side screen and rotate to repeat. How can i do that?
View 9 Replies
View Related
Aug 10, 2010
I'm trying to get my textview to hug the left side of the screen while the button hugs the right side (and if possible just for ocd sake have the text view center itself vertically to be in line with the button) but not do it using absolute values.I thought layout_gravity took care of what I'm trying to do but apparently not.
View 2 Replies
View Related
Feb 6, 2009
I'm trying to set the selection of a Gallery in code. I would like to have the Gallery smoothly roll down a few items over the duration of a second or two. At frist glance, it appears that two members would to the trick:Gallery.setAnimationDuration(int animationDurationMillis); Gallery.setSelection(int position, boolean animate); It turns out that the setAnimationDuration only seems to affect the rubber-bandy "return-to-center" effect of the Gallery. In other words, when a gallery comes to rest after a fling, and a gallery item is off center, the animationDurationMillis is used to control the duration of the Gallery centering up the item. However, the value seems to have no effect on the setSelection. No matter what value is set with setAnimationDuration, the Gallery seems to render about 2 or 3 frames when flying between items 1 and 10 for example. Is this working as designed? Does anyone know a trick or workaround that would let me properly animate setSelection? I'd be especially grateful if we could do it with an "Ease Out" effect.
View 3 Replies
View Related
Sep 6, 2010
I have 2 buttons side by side in RelativeLayout (170dip each) but in landscape view, they are too narrow - I want to increase their widths automatically for landscape. I need a 'fill_parent' for two buttons at once kinda thing.
View 5 Replies
View Related
Jul 31, 2009
I'm developing an app and i need to detect when the user shakes the phone from side to side , that means just along one axis (in this case X).I want to know when the user shakes the phone to the left and when to the right, the problem is that my code does not detect shaking but tilt, i have tested this code and it works when i tilt the phone to left or to the right, but not when a shake it from side to side (no matter the orientation of the phone).
View 2 Replies
View Related
Sep 20, 2010
I was going to contact the dev to see about a fix but it's not showing in the market anymore. I installed Battery Indicator just so I could put two side by side and show the difference. They both do the same exact thing so I'll just stay with the Indicator one.
View 1 Replies
View Related
Jun 30, 2010
I figured the X screen would only look a tad bigger than the 4.1" Fascinate. But side by side the X looks like so much more screen real estate.Hands-on with the Verizon Fascinate | Android Central
View 27 Replies
View Related
May 27, 2010
What would be the best way to write an app for the iPhone OS and the Android OS that allows access to a web blog (posted on blogspot.com)? Are there ways to manipulate the incoming data from the website to fit the UI of the phones, or will I have to re-do a lot of the blogs?Any help would be nice.
View 2 Replies
View Related
Sep 5, 2010
my buttons go one under the other, but I want them side by side.How do I place two buttons side by side?
View 8 Replies
View Related
Sep 25, 2009
i read the migration notes for 1.6 and I could not tell if 1.5 and 1.6 can co-exist side by side.i need to build applications for both 1.5 and 1.6, and i only have one build machine.other than changing my PATH variable, are there any other gotchas? especially for an automated build process which will need to build images for both platforms.also, i am a bit concerned about updating the ADT plugin. if I do that (update the ADT plugin), will that screw up my development on/for 1.5?
View 5 Replies
View Related
Jul 3, 2010
It seams for every kind of important function, there are at least 2-5 apps.With all the websites and forums there does not seem to be a place where Android apps are compared directly against each other.I'm constantly trying to find the "best in class" app before I download one of them.I'm trying to avoid downloading and removing a bunch of them in a "trial and error" fashion.I am amazed that these types of comparisons have not been done and documented a thousand times over.
View 9 Replies
View Related
Mar 24, 2010
I want to implement IPhone safari like view in Android. The scrolling can be done using Gallery I think. But how to minimize the views as done in the IPhone Safari. The Android Browser also have minimized view, can anyone tell me how to implement it?
View 8 Replies
View Related
Mar 26, 2010
The main concept goes like this. I have four listviews with its own data loaded at the same time. Only one listview will be visible to the user. Now, when the user presses a button, not only the current
listview but also other three listviews should be minimized and then user can just scroll just as in Gallery and select the listview that one wants to open.
View 2 Replies
View Related
Sep 25, 2010
So will two identical phones on the same carrier give the same results when speed tested side by side?Stock EVO running 2.2
View 5 Replies
View Related