Android : Portrait-oriented Menu In Lanscape-oriented View In Droid?
Aug 19, 2010
How can I have a portrait-oriented menu in my lanscape-oriented view in Android?
I'm building an application with some items that must be landscape-oriented. Everything else (menu, view for editing the item, list of item...) should change orientation according to the orientation of the device. To do that I set android:screenOrientation="landscape" in the AndroidManifest.xml for the activity showing my items. Now, how can I create a portrait-oriented menu for that activity?
I'm also wondering if setting the screen orientation of the activity is the only way? Isn't it possible to set the screenOrientation for each view?
View 1 Replies
Sep 21, 2010
What would be the best way to implement Aspect-oriented programming (AOP) in an Android application?
Would it be efficient with the mobile battery?
View 1 Replies
View Related
May 3, 2010
Is there an alternative to the HTC Sense People widget? Basically, I like it, but I would prefer it to be horizontally oriented, instead of the 2 modes available - Vertical and Full Screen
View 6 Replies
View Related
Oct 7, 2010
I'm fairly new to object-oriented programming, and I'm really interested in learning it correctly. My problem is this:I am trying to create a TabActivity which plots the user's data over time in each tab's content. Then only thing the tabs are going to control is the timespan of the graph. (i.e. one tab for 'past year', one for 'past month', one for 'all time', etc). As you can see, the layout used for each tab will be identical. The code used for each tab will only differ by a couple lines... (the starting and ending date of the x-axis).
I'm not sure how I can pull this off in a well-designed, object-o fashion. Any ideas?
View 1 Replies
View Related
Mar 27, 2009
I'm writing a content provider that returns data about game sessions. This data comes from an SQLite table. However, the client that consumes it will also want summary data: total wins, current/best winning streak, and so on. I'm not sure which approach to use.
* Possible Approach 1: Do nothing, let the client calculate what it needs.
The client could step through the whole table and calculate statistics itself. However, it's inefficient to send the entire database over the content provider link if the client only wants the summaries; this may also be prone to bugs because each client has to reimplement the summary calculations.
* Possible Approach 2: Separate content URIs for summary data.
The client could ask for a URI like content://myapp/summary/totalwins and get back a text/plain stream containing the number of wins. This seems like a big hassle to implement on both ends, though. Or it could ask for a URI like content://myapp/summary and get back an XML stream containing all the summary data, but this isn't much simpler.
* Possible Approach 3: A phony table.
The client could ask for a URI like content://myapp/summary and get back a cursor over a single row, with each summary value having its own column. This would not be an SQLite cursor but a custom in-memory cursor. It seems a little unnatural to use a table metaphor when there's always exactly one row, though.
* Possible Approach 4: The extras bundle.
Cursor has a getExtras() method that returns a bundle. The client could make a request for the main URI, content://myapp/sessions, and then just look at the extras bundle instead of reading any rows. However, there's no setExtras() method, so I'm stuck with whatever bundle object SQLite puts in there - and if it's Bundle.EMPTY, I'm out of luck.
View 6 Replies
View Related
Dec 3, 2009
This to all those who are into game development. i want to start on the game development in android, and just as a starter, can anyone suggest me an ebook or a simple procedure oriented blog or some link that'll help me to get things started.
View 4 Replies
View Related
Oct 13, 2010
Five years ago I used to program in SAS. Since then I've been doing software QA of various types. Mostly manual (video games + web apps) testing with a tiny bit of automation.
I'd really like to shift careers back into programming. Specifically the Android platform has caught my attention. These are the books I've been reading and working through.
Learning Java, Third Edition - O'Reilly
Beginning Android 2 - Mark Murphy
Hello, Android - Ed Burnette
However, I think I need something that looks at programming from a less language dependent standpoint. Something that takes a bird's eye view if that makes sense.
It's very easy to see how particular functions work, but I'm looking to get a better sense of how all the pieces fit together. How does one split up an app into individual classes and packages? Do I have a method in main that shuffles my deck of cards (object) or does the class deck of cards have a method I can call to shuffle itself?
I think I'm looking for a book on object oriented design? I've also been working through the tutorials and examples at http://developer.android.com/resources/index.html and also in the three books I've been reading so far. Maybe I just need to spend more time coding though?
View 3 Replies
View Related
Feb 23, 2010
I worked in a tabactivity, I set the gravity for tabs as bottom. If I change the screen from portrait to landscape, I can't see the tabs. How can I do it?
View 1 Replies
View Related
Nov 1, 2009
I know that I can watch video podcasts in portrait view on the ipod touch.Granted I'll watch all my TV shows in landscape but for when I just want to watch a quick clip I hope this is possible.Do you know if it is even an option with the DROID?
View 1 Replies
View Related
Feb 28, 2009
how the application knows that the view of device has changed from portrait to landscape.is there any way to know the application about view change.
View 2 Replies
View Related
Sep 3, 2010
I want my view to change when it has changed to horizontal orientation code...
This works, but I want my layout to switch back when it is in portrait mode.
View 2 Replies
View Related
Jun 22, 2010
Is there or will there be, a mod that will allow us to use the camera in portrait instead of landscape mode? I Would love the option.
View 2 Replies
View Related
Jul 30, 2010
Flashed the CM6 RC1 Rom and have been running smooth as glass. Suddenly, it is crashapaloosa on me. I am betting it is the hinky Flash 10.1 that is doing it. It happens mostly when I switch from portrait to landscape view.
Also getting odd messages like "Unable to Log In". Not sure what it is logging into but apparently it can't. Anyone else having issues? Will try dumping Flash 10.1, also will try shutting down SetCPU and see if those don't help. Ah bugs ;-)
View 5 Replies
View Related
Apr 28, 2010
Is anyone elses phone not flipping back and forth from portrait to landscape view when they rotate the phone? Ive check the settings and it is set to change orientation when phone rotates but for some reason it is not doing it.
View 29 Replies
View Related
May 21, 2010
I need to create a home screen (menu) with four to six items arranged in a grid view, each item needs to have an icon and a text below the icon. I googled and everything I could find were adapterView examples, with dynamic menu loading, and I want to make it with static xml, this view will not change so no need for dynamic code.
View 2 Replies
View Related
Jan 6, 2010
I cant seem to open a new view from an options menu item. The program keeps crashing as it applies the intent and listener to the item. I am just beginning, so please be nice. The current view is mnf sms, and the view I am trying to open is mnf sms_settings. I am developing for 1.5. Could someone please help me get the menu working. The menu (called options_menu.xml): Code...
View 5 Replies
View Related
Aug 4, 2010
How can I open a context menu for a view without registering it using registerForContextMenu()?
My activity overrides onTouchEvent to detect motion, and if I use registerForContextMenu() it stops working. I'm detecting a long press, so I'd like to forward that request to a method that would build the menu for me, but don't know if it can work that way.
View 2 Replies
View Related
May 28, 2010
In Android, onContextItemSelected has a single MenuItem argument and so it isn't clear how to identify the view selected. MenuItem.getMenuInfo provides access to Contextmenu.ContextMenuInfo, but while both known subclasses provide access to the target view, there does not appear to be an accessor on the interface.One alternative is to save the View provided in onCreateContextMenu in a private class variable which relies on onCreateContextMenu not being called again in the activity before onContextItemSelected. Another is to use the id of the View for the itemId argument of ContextMenu.add. If we do this, we would then need to identify the option selected from the context menu by using its (possibly internationalised) title.what is the best method for identifying the View selected in onContextSelected?
View 1 Replies
View Related
Sep 10, 2010
I chose a default viewer but before it always asked me if I wanted to use Dolphin HD, Internet (stock), or Youtube app to play mobile youtube videos. I cleared defaults for all three apps but it's still choosing Dolphin to play. Now that wouldn't be a problem but what happens if I use Dolphin is that it completely messes up my Full screen settings and changes the browser to use full screen until i exit and go back into Dolphin.
View 1 Replies
View Related
Nov 15, 2010
I need to change the colors and/or style of the ContextMenu when I long press an item of a ListView.I've looked everywhere for an answer and cannot find anything related to ContextMenu customization.
View 1 Replies
View Related
Sep 16, 2010
Trying to set ContextMenu title according to the ListView clicked item.The ListView contains Bookmarks list -> FAVICON + BOOKMARK TITLE @Override public void onCreate Context Menu (Context Menu menu, View v, ContextMenuInfo menuInfo) {super.onCreateContextMenu(menu, v, menuInfo); menu.add(0, EDIT_ID, 0, R.string.menu_edit); menu.add(0, DELETE_ID, 0, R.string .menu_delete); menu.add(0, SHARE_ID, 0, R.string.menu_share); AdapterView. Adapter ContextMenuInfo info = (AdapterView.AdapterContextMenuInfo)menuInfo; View itemID = (info.targetView); menu.setHeaderTitle("bla" + itemID);when I run this code it shows the android.widget.RelativeLayout@423d2389 or whatever and if I change the itemID to String itemID = ((TextView) info.targetView).getText().toString(); I get force close on long click even though no errors are shown in Eclipse or when I run the app.I also want to get the favicon in the same way.
View 1 Replies
View Related
Sep 9, 2010
I have a tab activity with three tabs and I want to display a listview in each tab. The list populates correctly, but for some reason I can not get the context menu or itemclicklistener to recognize gestures on the listviews. Anyone have any ideas why this might be? Below is my onCreate method: @Override public void onCreate(Bundle savedInstanceState) { super. onCreate (savedInstanceState);setContentView (R.layout.armory_header); TabHost mTabHost = getTabHost(); mTabHost.addTab (mTabHost. newTabSpec ("1"). setIndicator ("Weapons"). setContent (R.id.page1)); mTabHost.addTab (mTabHost.newTabSpec("2").setIndicator( "Armor" ).setContent(R.id.page2))TabHost.addTab(mTabHost.newTabSpec("3").setIndicator("Accessories"). setContent (R.id.page3)) ; weapons = (ListView) findViewById(R.id.weaponlist); registerFor ContextMenu(weapons) ;weapons.setOn ItemClickListener (new OnItemClickListener(){ @Override public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {// TODO Auto-generated method stub listId = weapons.getId(); position = arg2; showDialog (DIALOG);armor = (ListView) findViewById (R.id.armorlist) ;register ForContext Menu(armor); armor.setOnItemClickListener(new OnItemClickListener(){ @Override public void onItem Click(AdapterView<?> arg0, View arg1, int arg2, long arg3) { // TODO Auto-generated method stub listId = armor.getId();position = arg2; showDialog(DIALOG);
View 2 Replies
View Related
Jun 5, 2010
slide down when you touch and drag it? Mine does not! I can only view mine with home/menu/notifications option.
View 1 Replies
View Related
Sep 8, 2010
I am writing two xml files for landscape and portrait and create res/layout-land folder,execute my code but did not work portrait mode,have any setting set for work my code for landscape and portrait..please give any sample code for that.
View 1 Replies
View Related
May 8, 2010
How can I check if the Android phone is in Landscape or Portrait?
View 3 Replies
View Related
Sep 9, 2010
Is there anyway to find out if a device is portrait or landscape by default? In that I mean how you normally use the device.
Most phones have a portrait screen for normal usage but is there some flag for finding that out?
View 1 Replies
View Related
Jan 22, 2010
Do you use landscape or portrait mode? And which keyboard do you use to post, virtual or real, since the virtual one hides the screen for some reason? I posted this from my Droid, just to prove to myself that I could real keyboard, big hands no problemo. Few typos, but easily fixed. No worse than I do on a life-size keyboard at home.Droid looks to be about the size of a busines card next to my big thumb. I can still somehow peck the keys fairly quick.
View 10 Replies
View Related
Jun 6, 2010
This problem happened on my last Droid and I see something as simple as this is still a huge problem.Any picture you have on your phone that was taken in portrait always gets rotated 90 CCW...wtf is this? It's not the facebook app because when I try to set any of the pictures I have as wallpapers they all get rotated 90 degrees CCW.
View 1 Replies
View Related
Dec 9, 2009
I discovered something unusual today. I've been using a lot of the physical keyboard, especially for long winded texts and e-mails. I have tried and tried to get used to the landscape on-screen keyboard to no avail. I've tried Better Keyboard (and yes, it's better), and the HTC keyboard (that unfortunately doesn't fill the screen). They both have their benefits, but I cannot accurately and consistently type out a message on any of them. My problems: If I type too fast, half of the letters don't register. I've tried pressing harder, using a lighter touch, neither had any affect. I can't get used to the position I need to have my thumb in to actually register clicking certain letters on the keyboard. I always think I've got it, but then I look up at what I just typed (I find myself staring at the keys I'm pressing to make sure they're the right ones) and it is complete gibberish. Where I'm going with this, anyways, is the portrait keyboard. I used it a few times today just out of laziness, I didn't feel like turning the screen or opening up the device to use the physical. I noticed something unusual; I don't make the same mistakes on this tiny little keyboard, and I can actually type relatively quickly. My sentences weren't coming out meaningless, and I wasn't seeing unregistered presses. So my question to you is this - has anybody else noticed similar problems? I don't really think it's a fault of the phone. I think I'm just not used to on-screen keyboards (never used one before) and thus cannot type well on it. I'm hoping that - at some point - a multi-touch enabled keyboard comes out, because I feel like some of my problems are due to hitting two keys in rapid succession, and having one or both not register. Until then, I will continue to practice with it, but I just can't figure out why I can type on the tiny portrait keyboard and not on the full landscape version.
View 3 Replies
View Related
May 3, 2010
Just wondering what people use the most when using their phones, so I made a poll. I use mine mainly in portrait I just don't like typing with swype using landscape.
View 7 Replies
View Related