It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
In my application I play a video on device and when I tap on screen while video is playing a popup window is opened at the center of the screen with a volume button on that popup screen. When I click on that button volume should increase and after maximum level of volume it should decrease. I don't know how to do it programmatically in BlackBerry.
Check the article on video playing, Play a video in a UI field in a
BlackBerry device application, on section 8, the article
describes how to control volume.
To control the volume, you need to get javax.microedition.media.control.VolumeControl object from the javax.microedition.media.Player object.
Invoking Player.getControl(), using a String parameter with the name of the control will return the control object. Example code:
private VolumeControl getVolumeControl(Player player)
{
return (VolumeControl) player.getControl("VolumeControl");
}
After you have the VolumeControl object you can use int setLevel(int level) to set the volume level. API Link here.
You can check the Video Support section of the BlackBerry Java Application - Fundamental Guilds.
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I would like to have a button that changes it's image on click, and then stay clicked. I can use the Xcode interface builder to select different picture for 'default' and 'selected', but I want the picture I use for 'selected' to remain until the user presses the button again, and I want this all done within the button's code.
Second part to the question... what if I want this setup to last indefinitely, so that after a user restarts his phone, the button would still be selected and showing the alternate image? Could I use NSUserDefaults to save the state of the button and pass that to the image selector?
Thanks!
This is a problem of selected/default state of a button. You should think by yourself to an algorithm that will select/ "deselect" the button, after you find that algorithm and it's not working well edit the question and post the code and SO user will help you find the problem.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
What typically does Path iOS app use to make their views look so cool? Is this a specail view in iOS?
Is it a UITableView or something else?
Is there any special view you wanted to know about? Yes, you might wonder what's that effect on down-left (+) button. Okay, For of the effects like PATH APP for iPhone you can always check THIS and THIS
My generalized guess would be:
Most probably it's a UIScrollView (on which the main image remains on the top almost all the time) used with lots of other UI controls like UILabel, UIImageView, custom UIButton and many more of them. Important thing is they have wrote the perfect logic to set display frame for all of them. That's why It looks So organized and fluid. (Fluidity always depends on the device, of course, this app on iPhone 3GS lags, too much.)
For left and right side swipe menu, My guess would be, they are UIView containing UITableView with lots of customizations, again. Both this views are on the same ViewController on which Main View is there.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
After Googled a whole day I was unable to get any model for my need. Actually my need is
1.Provide a Selection area box on UIImagePicker like the image below:
2.User can resize the selection area so that both width and height can be modified.
3.Once the area selected, if user presses the capture button, the selected portion alone should be captured.
Is it possible to implement all above features?Please suggest some good tutorials.
And also the requirement for UIImageView.If I take the image from photo library, I am displaying the selected image.Here I want to provide the User can select the portion of the image and crop it before it is used.
Please suggest some solution.
Thank you.
I am not going to give you the full answer for this, just some starting points:
Use the library I pointed you, on the comments.
Implement the delegate, because it returns what you want:
Then implement the following delegate methods.
(void)userResizableViewDidBeginEditing:(SPUserResizableView *)userResizableView;
(void)userResizableViewDidEndEditing:(SPUserResizableView *)userResizableView
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I was playing around with xcode objects the other day and I must have done something to the user interface objects and some other objects have appear. As long as i remember there were some drop-down menu objects, some other sliders, etc. how do I get that menu?
You have managed to open the OSX object library instead of the iOS one. Note that those objects will not work with your iOS project. You can start a new OSX project if you want to explore it.
If you just want to open it (using your current project/workspace) do the following:
Close all your files (cmd-ctl-w multiple times).
Restart Xcode and open the same project.
Use cmd-alt-0 to show the utilites pane.
Object bar should have the whole object collection (iOS & OSX).
Once you open a storyboard/nib file for iOS, Object Library will reset to iOS mode.
You can take a more precise look at all the objects in your interface by clicking the triangle in the bottom left corner, this will expand the dock and show you everything in your Xib/Nib file, including all menu items. The only way the recover missing items is manually adding them again, or checking if they're still around in a back up.
Edit 1
Do you mean this?
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am trying to add Facebook comments box to the application using HTML5 code. The code is generated by FB tool.
The view is regular iOS UIWebView.
The problem is that comments box is too narrow for the iPad. When clicking "Login" button, the next login page comes up with the normal width (100% of the screen).
How can I force mobile version of the comments to be stretched to the width of the view?