Android : LayoutInflater Ignoring Parameters?
Apr 29, 2010
I have the following xml object representing a ImageButton I try to inflate it and add it to a TableRow with the following code : Ok so I noticed that it didn't look as expected, so I fire up the Hierarchy Viewere and noticed that the ImageButton's actually have an layout_width = FILL_PARENT instead of WRAP_CONTENT, also the layout_gravity is NONE and there is no padding to be seen. Do, am I inflating it wrongly ? Or is maybe the new TableRow.LayoutParams() part doins omething wrong ? Code...
View 2 Replies
Mar 1, 2010
I've a list view with custom list adapter(list_item.xml). I have multiple layout folder to support multiple screen size. I found out when I inflate using LayoutInflater, its always taking the view from main "layout" folder.
I've a phone with screen size "427x320".
This is my code:....................
I want the layout inflater to pick the list_item.xml from "layout-427x320" folder and not "layout" folder.
View 1 Replies
View Related
Nov 15, 2009
I am new to Android development. I have installed Eclipse 3.5, SDK and ADT plugging successfully. But I am receiving following error to create an AVD - C:android-sdk-windows oils>android create avd --target 2 --name my_avd Error: Ignoring add-on 'google_apis-3-r03': Unable to find base platform with APO level '3' Error: Ignoring add-on 'google_apis-4-r01': Unable to find base platform with API level '4' Error: Ignoring add-on 'google_apis-5_r01': Unable to find base platform with API level '5' Error: Target id is not valid. Use 'android.bat list targets' to get the target ids. Please advise if i am missing any step - not sure why i am getting above error.
View 9 Replies
View Related
Aug 11, 2010
I usually will read the comments before I decide on downloading an app even if I already have an app and the comments are all negative I will not update the app. Now with that said, is there a way you can elect to IGNORE the update and wait for another one in the near future?
View 5 Replies
View Related
Mar 19, 2012
When I receive a call, I swipe the red slider to the left to ignore the call and for a second the list of texts come up, but only for a second. It is too fast for me to tap on a choice, so it sends the caller to the voicemail which is normal I think.
View 4 Replies
View Related
May 21, 2010
It seems every time I get a phonecall, I go to remove the phone from it's holster (leather horizontal type) and look down at the phone to get the "missed call" message... Doesn't matter if it's on the 1st, 3rd, 5th ring... it seems like it's auto-ignoring based on my attempts to get it out of the holster. Can someone tell me if this is a magnet deal, a setting i'm setting, or if there's an option I can turn off/program I can install that makes it harder to ignore calls? Perhaps I'm just brushing the ignore button? Unrelated, it seems if I get an email and don't look at my phone, it continues to beep at me every few minutes until I look at it, is there a way to tell it "notify once, then stfu"?
View 6 Replies
View Related
Jun 17, 2010
I am working on an app that has multiple tabs. In the first tab the user will enter values. In the other tabs it will display the results of calculations based off of those values.
Like in tab 1, the user will enter "3" and "2". In tab 2, the program will add them and display "5".
In tab 2 how do I access the ints "3" and "2"?
View 1 Replies
View Related
Apr 20, 2010
In requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, this); if I put time interval and distance as zero, will this work, or shall I need to give a value greater than zero.
View 4 Replies
View Related
Mar 2, 2009
I'm programming an Activity that launches a second one through startActivity just like in the Forwarding example. The main difference is that I'd like to pass some data to the second Activity when starting it, for example an item selected in a list owned by the first Activity. I can't find how to do that. Am I missing something? I guess I do.
View 3 Replies
View Related
Feb 17, 2009
I am trying the FaceDetector class using the code as shown in the following link: http://www.anddev.org/quick_and_easy_facedetector_demo-t3856.html Everything works fine as far as the activity drawing the bitmaps is concerned but I haven't had any success in getting Android to recognize a face. Has anyone tried this feature? Could anyone please help in understanding the parameters of the images to use or please post a link to some image that has worked for them?
View 2 Replies
View Related
Dec 15, 2009
Im using ksoap2 to call web .net services. The call works just fine except when I pass paramaters. The passed paramaters are always recieved as null values by the web service. I dont know what the problem is, I hope someone can help.
View 7 Replies
View Related
Oct 8, 2009
I want to use default Android credentials for specific phone to pass authentication test in Google Apps, but documentation is terrible :-(, and worst of all I'm a newbie. Anyone have a idea how to do it? There are some apache libs for it, but as I mentioned documentation is very weak. Here is reference to this class.
View 2 Replies
View Related
Oct 6, 2009
I want to use default user login/pwd in my app. Do you know how can I have access to this data?
View 1 Replies
View Related
Feb 18, 2010
This link describes how to search the Android Market for apps using various parameters:
http://developer.android.com/guide/publishing/publishing.html
I'm having a heck of a time figuring out how to format a link for my apps published by my company using this format. For searching by developer name, the doc says to use the following format:
market://search?q=pub:<Developer Name>
It also says it returns exact matches only. My publisher name is "Polyclef Software". I guess I'm wondering why Google can't make a market search feature that searches for substrings in the publisher's name, but aside from that, how am I supposed to format the link? Neither of the following work:
market://search?q=pub:Polyclef Software market://search?q=pub:Polyclef+Software
I've tried a number of variations now and nothing works.
View 4 Replies
View Related
Jun 2, 2010
I have a HTTP GET request that I am attempting to send. I tried adding the parameters to this request by first creating a BasicHttpParams object and adding the parameters to that object, then calling setParams( basicHttpParms ) on my HttpGet object. This method fails. But if I manually add my parameters to my URL (i.e. append '?param1=value1¶m2=value2') it succeeds.
View 3 Replies
View Related
Jul 20, 2010
I am trying to upload file to php server using following tutorial http://getablogger.blogspot.com/2008/01/android-how-to-post-file-to-php-server.html
I dont know how to add parameters like: userid="12312";sessionid="234" in it.
How to achieve this?
View 1 Replies
View Related
Jan 19, 2010
I am developing an app that uses the phone camera, and I want to set the Flash Mode, if flash exists. From documentation, it looks like I need to call Camera.Parameters.getFlashMode() and check if it returns null to determine if flash exists. Note: getFlashMode() is supported from API level 5
However, when I try to run this app on a phone with cupcake, I get an error: 01-19 14:02:43.404: ERROR/dalvikvm(18891): Could not find method android.hardware.Camera$Parameters.getFlashMode, referenced from method ...
I tried to call this code based on SDK version as follows, but that does not work either. Looks like there is a class verification thats fails at init:
CODE:............................
So now I am wondering if there is any other way to check if flash exists? or is there a way to conditionally compile code based on mSdkVersion?
View 2 Replies
View Related
Apr 19, 2010
Today I met a problem, I need to pass a ArrayList<MyClass> from an activity to another. I dont know what the Intent exactly do when I use putExtra to pass in an ArrayList<MyClass> object. I guess MyClass need to implement Parcelable interface, so I just did it. But still, it does not work. Maybe I need to create a Bundle and then use Bundle's putParcelableArrayList method to put my ArrayList<MyClass> object in, and then pass this bundle as parameter of putExtra to the intent. So crazy! I am lazy, I just want to pass an ArrayList<MyClass> object simply, is there a simple way??
View 10 Replies
View Related
Aug 20, 2010
I have read a lot of stuff about launching Google Maps in Android. That's pretty easy:
Uri uri = Uri.parse("geo:38.899533,-77.036476");
Intent it = new Intent(Intent.ACTION_VIEW, uri);
startActivity(it);
The problem is that the map is shown at a high zoom level and there is no marker on the map. So, if the user move a little bit or something happen, the point is lost. Is that possible to add a marker like this:
http://img.skitch.com/20100820-da3n4r7h5xbsu6bsx4p4ujjghc.jpg
or like this:
http://img.skitch.com/20100820-qg7k2m5wtwm3j5phphrgc8tb53.jpg
So I can be sure that even if the user move the map, he will be able to find this place again.
View 1 Replies
View Related
Oct 7, 2010
I'm trying to use the camera in an Android app using the 1.5 API. I want the camera to flash for every picture. However, when I looked at the API for camera.parameters, the setFlashMode() method is only supported for 2.0 and higher. Yet my Cliq XT, which runs 1.5, has a flash that I can set in the menu - I take this to mean there is a way to do this for the 1.5 API, though I was unable to find it.Does anyone know how to set the flash mode using the 1.5 API?
View 1 Replies
View Related
Aug 4, 2010
I am trying to do a Contacts search on Android using Contacts Contract. I would like to search on multiple parameters, e.g. - Where name = myname AND email = myemail AND nickname = mynickname, etc. I have it working w/ just name, but need the syntax to add email and nickname as search params. I know they are stored separately from display name & have a different format. The code below is what is working for the search by just name. How can I add to the selection variable to also search by email and nickname? CODE: String selection = ContactsContract.Contacts.IN_VISIBLE_GROUP + " = '" + ("1") + "'"; selection += "AND " + ContactsContract.Contacts.DISPLAY_NAME + "= '" + cp.name + "'"; Uri uri = ContactsContract. Contacts.CONTENT_URI; String sortOrder = contactsContract. Contacts. DISPLAY_NAME + " COLLATE LOCALIZED ASC"; Cursor myCursor = mApp.managedQuery(uri, null, selection, null, sortOrder);
View 2 Replies
View Related
Sep 20, 2010
I want to get a set of Views to redraw after I change some drawing parameters. I'm calling invalidate() and forceLayout() on the parent of the Views but nothing happens. If I rotate the screen then the Views redraw correctly using the new parameters, as you would expect. What else do I need to do to get the Views to redraw?
View 3 Replies
View Related
Jul 21, 2010
So Im trying to add an imageview to my current xml design - and its working decently. Now my main problem is that I cant seem to find a way to set the attributes for the image like where it needs to be displayed etc.
RelativeLayout mRelativeLayout = (RelativeLayout) findViewById(R.id.board);
ImageView i = new ImageView(this);
i.setImageResource(R.drawable.blue_1);
i.setAdjustViewBounds(true);
mRelativeLayout.addView(i);
setContentView(mRelativeLayout);
i tried messing around with setlayoutparams but got absolutely no clue what to do with it.
View 1 Replies
View Related
Mar 21, 2010
I've read through the FAQ of Android Dev Guid (http://developer.android.com/guide/appendix/faq/commontasks.html#opennewscreen) but I'm not sure how can I open a new screen with additional parameters passed into it.
Let's say I'm going to open screen2, with a variable indicating the current user name so that I could greet the users. Is it possible?
Intent i;
i = new Intent(this, screen2.class);
//How to pass variable to screen2?
startActivity(i);
View 3 Replies
View Related
May 23, 2009
This maybe a silly question, but I was wondering how to pass multiple parameters to AsyncTask
I have something like ,code...
I would like to pass in the 3 parameters , I am not sure (1) if it is possible and (2) what the syntax would be .
View 3 Replies
View Related
Nov 17, 2010
I have a custom ViewGroup that I wrote, and have been able to use it to lay out child elements in code just fine. However, now I'd like to be able to use it for layout in XML. I would also like to be able to add some custom attributes to the XML file to better control my layout. How do I set up, both in XML and in code, a set of custom attributes? Bonus if it can be used with the built in designer in Eclipse.
View 1 Replies
View Related
Dec 13, 2009
I'm trying to draw a very simple 2D triangle with opengl. but i have exception "illegal parameters"
The problematic line is
CODE:.....
I simply copied code from other examples. and it simply doesn't work.
I'm pretty sure the mVertexBuffer is successfully initialized. because i can see the size of the buffer is 48 right before the execution of the problematic line with the debugger. and this size is correct.
However it just doesn't work.
I initialized the buffer this way:
CODE:.....
The code was actually copied from a opensource example.
View 2 Replies
View Related
Oct 29, 2010
I am writing a class in Android that requires certain parameters from the class that calls its functions.
For Example my class is called "DoStuff"
DoStuff has 3 functions:
CODE:.....................
Is there a way for me to have canvas, tick and toggle implicetly passed to the "DoStuff" when I call on it's functions from somewhere else (that somewhere is unknown to DoStuff).
View 3 Replies
View Related
Feb 10, 2010
When providing a user on a mobile, a link to an android application via a web page, it is possible for params from the url to be passed to the app being installed.
I'm guessing the answer is no - but it doesn't help to ask.
The reasoning being that it would be handy for some situations to have a generic app that pulls config information from the referrer.
View 2 Replies
View Related
Mar 13, 2010
I can establish a connection using HttpUrlConnection.
My code below.
CODE:....................
Getting filenotfound exception. dont know why?
How to pass username and passwrod parameter to the url by code..
View 2 Replies
View Related