w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
I'm saving photo on android gallery but the photo have a delay to save
Ok. I solved this question doing this. The class I use to save the picture I changed this part... FileOutputStream out = new FileOutputStream(myImage); newImage.compress(Bitmap.CompressFormat.PNG, 100, out); bitmapFinal = newImage; out.flush(); and now I use this one... String nomeImagem = "TUBAGRAM_" + System.currentTimeMillis(); url = MediaStore.Images.Media.insertImage(preview.getContext().getContentResolver(), newImage ,nomeImagem, null); And the code I use to accept the photo and send to Intagram I changed to caminhoImagens = getRealPathFromURI(Uri.parse(hps.getUrl())); Log.i("Caminho imagem: ", caminhoImagens); shareIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://" + caminhoImagens)); shareIntent.setPackage("com.instagram.android"); And retire the cursor.

Categories : Android

Twitter Bootstrap carousel previous link throws error, carousel caption shifts after sliding
You need to abbreviate your previous code - <a class="carousel-control left" href="#landingpagecarousel" data-slide="prev">‹</a> I am trying to figure out why it is pushing the content down, give me a few on that one.

Categories : Twitter

background changing carousel help for my local carousel in Twitter Bootstrap
So the background color is changing via the CSS property of the following div. <div class="module colored home-solutions primary-one-background"> The above div is having the class primary-*-background updated, where * = 'one' or 'two' or 'three' or 'four' or 'five'. The CSS is being updated via Javascript in file: http://solutions.mckinsey.com/Index/scripts/main.js The relevant JS is the following: function updateBackground (pos) { $('.home-solutions').removeClass('primary-one-background') .removeClass('primary-two-background') .removeClass('primary-three-background') .removeClass('primary-four-background') .removeClass('primary-five-background') .addClass($(solution_list[pos]).attr('value')); .... It is removing the primary-*-backg

Categories : Jquery

Highcharts content in bootstrap carousel is not auto-resizing to carousel
I ran into the same problem and used the following solution to size my chart: $('#chart-carousel').bind('slid', function() { $("#value-stats").highcharts().setSize(500, 350); }); By binding the slid event - which signals a completed slide of the carousel - to the setSize() method of the chart, the chart gets resized properly. Two points: There's is a visual effect as you see the chart actually change size when the slide is completed. I tried to work it out with dynamic sizing using container.height and container.width but this had no effect at all hence the hard coded sizes. Not ideal but at least my charts get properly sized.

Categories : Twitter

photo carousel viewer in angular.js
Angular bootstrap has a carousel: http://angular-ui.github.io/bootstrap/ (but I image you already found that) Otherwise it would probably be pretty easy to write a directive to setup a jquery plugin that you like. You might try searching for "image/photo slider".

Categories : Javascript

Save pdf in Photo Gallery
Convert your PDF into an image and call: UIImageWriteToSavedPhotosAlbum(UIImage *image, id completionTarget, SEL completionSelector, void *contextInfo);

Categories : Iphone

How do I get a photo from the phone gallery?
Not sure what's causing your error message as it seems to be related to the device orientation but I managed to get this working with the following code: - (IBAction)attachPhotosClicked:(id)sender { if (![UIImagePickerController isCameraDeviceAvailable:UIImagePickerControllerCameraDeviceRear]) { _imagePickerController.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; [_popoverController presentPopoverFromRect:self.attachButton.frame inView:self.view permittedArrowDirections:(UIPopoverArrowDirectionLeft) animated:YES]; return; } else { UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"Choose a source"

Categories : Iphone

Carousel Clickable Image Gallery?
You will have to write some backend code, but I think YUI has an option to do that. There is support for a "multi-row" carousel. Maybe that's what you want? (http://developer.yahoo.com/yui/examples/carousel/csl_multirow_clean.html)

Categories : PHP

photo gallery php echo pic on submit
instead of checking equality your if statements are setting the value of ship. so to fix it use this: if ( $_SESSION['ship'] === 1 ) { echo "<img src="img/space/battlestar.jpg"/>"; } if ( $_SESSION['ship'] === 2 ) { echo "<img src="img/space/enterprise.jpg"/>"; } if ( $_SESSION['ship'] === 3 ) { echo "<img src="img/space/integrity.jpg"/>"; } if ( $_SESSION['ship'] === 4 ) { echo "<img src="img/space/millenium.jpg"/>"; } if ( $_SESSION['ship'] === 5 ) { echo "<img src="img/space/planetes.jpg"/>"; } if ( $_SESSION['ship'] === 6 ) { echo "<img src="img/space/serenity.jpg"/>"; } edit: be better to use elseif as well so instead use: if ( $_SESSION['ship'] === 1 ) {

Categories : PHP

Add HTML to caption of photo gallery
In the _showImage function find the line that says if( title ) $rgGallery.find('div.rg-caption').show().children('p').empty().text( title ); Replace the text function on the second line with html. You could further make this functionality optional using another data attribute var skip_escape_html = $thumb.data('skip_escape_html'); and then calling a function based on that $rgGallery.find('div.rg-caption').show().children('p').empty()[ skip_escape_html ? 'html' : 'text' ]( title )

Categories : Jquery

Custom photo folder showing up in Gallery
to update the gallery app. simply after you click save just put this simple code after saving. sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://" + Environment.getExternalStorageDirectory()))); this code will tell the gallery app that something has been added so please rescan for media now :D.

Categories : Android

Can we use apple photo gallery image in our application?
No it may not be rejected by apple . Please go through the following link :- Does Apple reject apps that use images used in Apple's apps? "Reusing toolbar / button icons is fine and Apple probably appreciates UI consistency. Many many apps make use of the Apple icons not included in the core set which are in the app store. Using 'larger' art will be frowned upon though, like splash arts / stock images." Please check with the Apple forums. You can use the images but you can't use that image as an icon of the app. Hope this helps.

Categories : Iphone

Upload photo from gallery or take from camera in Webview
In your example wv.setWebViewClient(new WebViewClient() { public boolean shouldOverrideUrlLoading(WebView v, String url) { if (url.startsWith("testzapp:")) { //do whatever action you had intended } } }

Categories : Android

Open windows photo gallery from python
Don't use os.system(). Use the subprocess module instead: import subprocess subprocess.call("C:\Program Files (x86)\Windows Live\Photo Gallery\WLXPhotoGallery.exe")

Categories : Python

Photo Gallery in ruby on rails website
Well, if you are looking for a client-side implementation, i would recommend using Fancybox: http://fancyapps.com/fancybox/ This library is powerful, yet it is easy to use. If you are looking for a scroller, try using FlexSlider: https://github.com/woothemes/FlexSlider update Here is an example of how you can use Fancybox in rails app to display photos (taken from my working app): In javascript folder there are two files: jquery.fancybox.pack.js and jquery.fancybox-buttons.js (because i also needed to use control buttons for my gallery). Also i have MouseWheel library, but this one is optional. In application.js (of course, you can have other libraries): //= require jquery //= require jquery_ujs //= require jquery.ui.all //= require lib/jquery.mousewheel //= require lib/jquery.fancybo

Categories : Twitter

jQuery Photo Gallery Bug if mouse moves fast
I would strongly suggest hoverIntent when you play around mouse over and mouse out $(selector).hoverIntent({ over: function(){}, out: function(){}, selector: '.selector' }); http://cherne.net/brian/resources/jquery.hoverIntent.html Hope this helps

Categories : Javascript

HTML5 - iPhone photo gallery access via browser
Afraid not - Apple introduced support for input type=file in iOS 6 (or 5, can't recall) but that's basically all you can do from mobile Safari - which, when you think about it, is really the same security model as a desktop browser.

Categories : Javascript

Building jQuery Mobile Photo Gallery with Grid System
This is by setting only one side of the spine, "ui-block-a". to have the second column should set also the "ui-block-b" on a div. I suggest you count the number of umagens returned and divide into two arrays. with two loops, one on each array, you fill a column "ui-block-a" and the other "ui-block-b" Or, if you do not want to set two arrays teporarios not use the $. Each, use a simple FOR loop makes first start in half and puts the result in the first column "ui-block-a" and a second loop through the end result that places the second column "ui-block-b"

Categories : Jquery

Swiple photo inside the content div rather than opening in gallery mode
Wanns try this? This one is for mobile gallery. DEMO http://www.photoswipe.com/latest/examples/04-jquery-mobile.html WESITE http://www.photoswipe.com/

Categories : Jquery

Setting texture on 3D object using image from photo gallery (OpenGL ES 2.0)
All calls to OpenGL ES on Android must be made from a single thread. You may not realize that GLSurfaceView provides that thread automatically, so any OpenGL ES call made from any other thread will cause these problems. This article discusses this in more detail: http://software.intel.com/en-us/articles/porting-opengl-games-to-android-on-intel-atom-processors-part-1

Categories : Android

Android Newly Taken Photo from custom camera does not appear in gallery (media store)
Yes, you are true, you need to provide the newly created file to the MediaStore. MediaScannerConnection will help you. MediaScannerConnection provides a way for applications to pass a newly created or downloaded media file to the media scanner service. The media scanner service will read metadata from the file and add the file to the media content provider. The MediaScannerConnectionClient provides an interface for the media scanner service to return the Uri for a newly scanned file to the client of the MediaScannerConnection class.

Categories : Android

Bootstrap carousel: changing jquery slides to bootstrap caroulsel and binding a slide function
found a solution.This one gets the current index of the carousel $('#myCarousel').bind('slid',function(e){ var current = $(".active", e.target).index()+1; $('#activeSlideIndex').val(current); $('#popLightbox div.rating a').attr('rel', imageIdArray[current-1] +';media'); $('#popLightbox a.voteNegative').html('<img src="{$liveSite}/templates/{$theme}/desktop_images/images/unlike.png" align="absmiddle"><b class="sprite">&nbsp;</b> ' + voteCountArray[current-1][0]); $('#popLightbox a.votePlus').html('<img src="{$liveSite}/templates/{$theme}/desktop_images/images/approve.png" align="absmiddle"><b class="sprite">&nbsp;</b> ' + voteCountArray[current-1][1]); });

Categories : Javascript

Bootstrap 3 Carousel won't work. (Yes, I have jQuery loaded before Bootstrap)
Try one carousel-inner with multiple items inside.. <div id="Carousel" class="carousel slide"> <ol class="carousel-indicators"> <li data-target="Carousel" data-slide-to="0" class="active"></li> <li data-target="Carousel" data-slide-to="1"></li> <li data-target="Carousel" data-slide-to="2"></li> </ol> <div class="carousel-inner"> <div class="item active"> <img src="img/Carousel/001.jpg"> </div> <div class="item"> <img src="img/Carousel/002.jpg"> </div> <div class="item"> <img src="img/Carousel/003.jpg"> &l

Categories : Jquery

ANDROID ZXING: Saving a photo in onPreviewFrame saves a photo every frame. How to only save a single photo upon scan?
ZXing detects every received frame until finds out correct information. The image saving point is when ZXing returns a string which is not null. In addition, you can save file with different name "timestamp + .jpg", in case previous file will be overwritten.

Categories : Java

Bootstrap carousel ( TypeError: Object [object Object] has no method 'carousel' )
It works fine if you use the right syntax: <div class="carousel-inner"> <!-- All slides go inside .carousel-inner --> <div class="item active"> <img src="http://i.imm.io/1g9kc.png" alt="..." /> <div class="carousel-caption">aaaaa</div> </div> <div class="item"> <img src="http://i.imm.io/1g9kF.png" alt="..." /> <div class="carousel-caption">gggggg</div> </div> </div> The href of the .carousel-control links and the data-target of your indicators has to be id of your carousel. You originally had #carousel-example-generic but you carousel's id is #carousel-example-captions. Here it is working: http://jsfiddle.net/m5HBa/2/

Categories : Javascript

Bootstrap Carousel bug
After a bit of research, it seems that this was a known bug in Bootstrap 2.x. By upgrading to Bootstrap 3.0, the appearance of the carousel gets changed, but the bug is fixed. You can grab the CSS and JS from a CDN: <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> Oh, and you might still want to include the result from the other answer (that's now deleted, it seems) and change $(this).carousel({ interval: false }); to $(this).carousel('pause');, otherwise that piece of code doesn't do anything. And if upgrading to Bootstrap 3.0 isn't an option for some reason, there's a method provided on the bug report page to edit the Bootstrap Javascr

Categories : Javascript

Bootstrap Carousel with Animate.css
Place first jQuery JS Library then twitterbootstrap JS Library like <script src="js/jquery.js"></script> <script src="js/bootstrap.min.js"></script>

Categories : Javascript

Twitter Bootstrap - Carousel
Bootstrap plugins depends on jQuery. So you have to load it first. <script src="js/jquery.js"></script> <script src="js/bootstrap.js"></script> ...

Categories : Javascript

Bootstrap carousel not advancing
I came myself through the same issue a few weeks ago and i remember what was my isssue, I hope you are in the same case I was then ! You have to include both "transitions" and "carousel" JS plugins while creating your customized bootstrap package, i guess you only checked "carousel". If you replace this line : <script type="text/javascript" src="bootstrap/js/bootstrap.js"></script> By theses ones, it should work. <script type="text/javascript" src="http://twitter.github.io/bootstrap/assets/js/bootstrap-transition.js"></script> <script type="text/javascript" src="http://twitter.github.io/bootstrap/assets/js/bootstrap-carousel.js"></script> I copied / paste your code to a local file, I changed your link to resources for online resources and it wor

Categories : Twitter

Bootstrap Carousel Issues
3 things to fix in your code as @Blake said, your id must be myCarousel or you must change your selector you didn't specify what image will be visible first (class active on one of the item) you did something strange with the contributors-carousel Here is a bootply with your code fixed : http://bootply.com/69067

Categories : Jquery

Bootstrap Carousel Won't Load
The first thing I see is that you're missing a > on your first list item: <li data-target="#myCarousel" data-slide-to="0" class="active"</li> should be <li data-target="#myCarousel" data-slide-to="0" class="active"></li> Edit Are you including the Bootstrap CSS file? Everything appears to be working for me with the above change: jsFiddle

Categories : Jquery

Bootstrap 3.0 Product Carousel
If you are looking for a vertical carousel, you may have look here Not sure about bootstrap Version support, but it works for me Tutorial Drive's Vertical Carousel

Categories : HTML

Bootstrap Carousel issue
<a class="carousel-control left" href="#myCarousel" data-slide="prev">‹</a> <a class="carousel-control right" href="#myCarousel" data-slide="next">›</a> your code probably looks like this. You need to delete the little arrows between your a tags.

Categories : HTML

Bootstrap carousel resizing image
replace your image tag with <img src="http://localhost:6054/wp-content/themes/BLANK-Theme/images/material/images.jpg" alt="the-buzz-img3" style="width:640px;height:360px" /> use style attribute and make sure there is no css class for image which set image height and width

Categories : CSS

Resizing Carousel in Twitter Bootstrap
in your code, your write this <div id="aboutCarousel pull-right" class="carousel slide"> but you could write <div id="aboutCarousel" class="carousel slide pull-right"> and all work fine ..

Categories : Twitter

Bootstrap Carousel Text Fade
This works... It still sort of slides with the carousel, but you do get the fadeOut and fadeIn affect. $('#myCarousel').on('slide',function(){ $('#myCarousel .active .carousel-caption').fadeOut(); }); $('#myCarousel').on('slid',function(){ $('#myCarousel .active .carousel-caption').fadeIn(); }); Here is a fiddle demo.

Categories : Javascript

Can't Get Bootstrap Carousel Basic Example Working
See it this helps: http://www.bootply.com/70201 It's using Bootstrap 3, with the HTML lifted directly from the carousel example on the Bootstrap docs and javascript <script type="text/javascript" > $(document).ready(function() { $('.carousel').carousel() }); </script> I also noticed that the source for your placeholder images is down for me at the moment so I'm using another URL for the slide images Goold luck! HTML <div id="carousel-example-generic" class="carousel slide"> <!-- Indicators --> <ol class="carousel-indicators"> <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li> <li data-target="#carousel-example-generic" data-slide-to="1"></li> <li

Categories : Twitter

How to Customize Bootstrap Carousel Controls
How familiar are you with CSS? What I see in your screenshot could be adjusted via font-size and line-height properties Bootstrap is a CSS framework so customization is just a matter of overriding defaults, often using an id tag or something similar

Categories : Twitter

Bootstrap Carousel Caption Animation
I believe you over-complicated things a little bit with the timeout, you can simply use the events of slid ans slide to toggle your caption like this: var carouselContainer = $('.carousel'); var slideInterval = 3000; function toggleCaption(){ var caption = carouselContainer.find('.active').find('.carousel-caption'); caption.slideToggle(); } carouselContainer.carousel({ interval: slideInterval, cycle: true, pause: "hover" }).on('slid slide', toggleCaption).trigger('slid'); Demo fiddle

Categories : Jquery

Bootstrap Carousel not sliding from one picture to the next
I am not 100% clear as to what your exact issue is. But here is a fiddle which I started with your code. DEMO: http://jsfiddle.net/NzZTW/1/ To make bootstrap slide automatically you have to set and interval. $('#myCarousel').carousel({ interval: 2000 }); Note: The animation doesn't seem to be present, as to why this is I am not 100% certain. What I do know is that the animation on the bootstrap carousel is handled via CSS3 transitions. So its possibly a browser issue. However this appears to work as expected (for the most part).

Categories : Jquery



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.