[Solved] how can we send data from first activity to second activity and second activity to first activity bu using intent [duplicate]

[ad_1] first, define a variable in you first activity like this (100 is just random, pick whatever you want): private static final int SECOND_ACTIVITY = 100; then in your first activity you start the second activity like this: Intent intent = new Intent(FirstActivity.this, SecondActivity.class); startActivityForResult(intent, SECOND_ACTIVITY); also override onActivityResult in your first activity: @Override protected … Read more

[Solved] world map in terms of latitude and longitude [closed]

[ad_1] Here you are :- import java.util.Scanner; public class Distance { public static void main(String[] args) { Scanner in=new Scanner(System.in); double x1=0; double x2=0; double y1=0; double y2=0; double distance=0; System.out.println(“Enter the value of x1 : “); x1=in.nextDouble(); System.out.println(“Enter the value of y1 : “); y1=in.nextDouble(); System.out.println(“Enter the value of x2 : “); x2=in.nextDouble(); System.out.println(“Enter … Read more

[Solved] heap sort may be considered as insertion sort or selection sort done on a heap data structure instead of a list? Which one will it be?

[ad_1] heap sort may be considered as insertion sort or selection sort done on a heap data structure instead of a list? Which one will it be? [ad_2] solved heap sort may be considered as insertion sort or selection sort done on a heap data structure instead of a list? Which one will it be?

[Solved] How to get first three characters of a string and last three character of the same string in oracle, and display them, what will be the query?

[ad_1] How to get first three characters of a string and last three character of the same string in oracle, and display them, what will be the query? [ad_2] solved How to get first three characters of a string and last three character of the same string in oracle, and display them, what will be … Read more

[Solved] Embrossed Letterign style [duplicate]

[ad_1] It sounds like you want text-shadow: text-shadow: 1px 1px 1px #fff, -1px -1px 1px #000; color: [background color of the container] Basically you set a 1px shadow offset up and left one pixel, and then another offset down and right one pixel, with a colors that give you an inset or outset effect. This … Read more

[Solved] [C++} Not sure if this is even possible

[ad_1] You’ll probably need a vector like Soren mentioned. If you’re trying to get some averages for all employees (which that’s what I assume you’re trying to do), then let’s say we’re going to try and get an average for gross pay. You’ll need a vector global, like such: #include <iostream> #include <fstream> #include <iomanip> … Read more

[Solved] Printing part of a .txt file [closed]

[ad_1] Ok, continuing from the comment, and just as laid out in the comment, the first thing you need to do with any data handling problem is to read all of your data into a form that allows you to work with it as needed. Here you have varying types of data that all make … Read more

[Solved] Issues with getting $timeout function to work

[ad_1] You can just use angular $timeout to achieve the wanted like this: var timer; $scope.isFooCollapsed = true; $rootScope.$on(“bagNotification”, function() { $timeout.cancel(timer); $scope.isFooCollapsed = !$scope.isFooCollapsed; timer = $timeout(function() { $scope.isFooCollapsed = true; }, 3000); }); We cancel the timeout each time with $timeout.cancel to prevent multiple hide/shows when button is clicked multiple times. Plunkr: http://plnkr.co/edit/YbsCuicDiHVDGULwpap3?p=preview … Read more

[Solved] CONCAT in stored procedure returns null

[ad_1] The documentation says CONCAT() returns NULL if any argument is NULL. This is demonstrated by this example: http://sqlfiddle.com/#!2/d41d8/47037 You can find some documentation on working with nulls here: http://dev.mysql.com/doc/refman/5.0/en/working-with-null.html 2 [ad_2] solved CONCAT in stored procedure returns null

[Solved] How to determine if the user is 18 years old and up using jquery?

[ad_1] Try this: Jquery: $(‘#datepicker’).datepicker({ onSelect: function(value, ui) { var today = new Date(), age = today.getFullYear() – ui.selectedYear; if(age >= 18) $(‘#age’).text(“User is 18 years old”); else $(‘#age’).text(“User is 18 not years old”); }, maxDate: ‘+0d’, changeMonth: true, changeYear: true, yearRange: ‘-110:-30’ }); Html: <input type=”text” id=”datepicker” /> <div id=”age” /> 5 [ad_2] solved … Read more

[Solved] How to filter out only the number part (800000010627, 800000010040 and so on) from a list?

[ad_1] The easiest way: just cut the needed part from your bytes: only_numbers = [item[18:] for item in initial_list] This expression will create a new list named only_numbers with numbers extracted from original list items. Note that this method simply omits the first 17 symbols, so, if prefix part of your initial data will change … Read more

[Solved] Android Studio doesn’t recognize images in hdpi folder

[ad_1] Try making new drawable folders for putting images after right clicking res folder and name folders like this drawable-hdpi drawable-mdpi drawable-xhdpi drawable-xxhdpi drawable-xxxhdpi Drag and drop image with same name according to their dimensions. The android takes drawable folder as one entity, picks up the best suited image and shows it on different resolution … Read more