This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static final double KAABA_LONGITUDE = 39.826228; | |
private static final double KAABA_LATITUDE = 21.422305; | |
private double getQiblaAngele(double myLatitude, double myLongitude) { | |
double sinMyLoMinusQLo = Math.sin(myLongitude - KAABA_LONGITUDE); | |
double cosMyLat = Math.cos(myLatitude); | |
double tanQLat = Math.tan(KAABA_LATITUDE); | |
double sinMyLat = Math.sin(myLatitude); | |
double cosMyLoMinusQlo = Math.cos(myLongitude - KAABA_LONGITUDE); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.andhradroid.util; | |
import java.io.File; | |
import java.io.IOException; | |
import java.io.RandomAccessFile; | |
import java.net.InetAddress; | |
import java.net.NetworkInterface; | |
import java.net.SocketException; | |
import java.text.DecimalFormat; | |
import java.util.Enumeration; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
T findViewByIdWithoutCasting(int id) { | |
T item = CS.as(getActivity().findViewById(id)); | |
return item; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Demo extends Activity { | |
private View.OnClickListener curlPostListener; | |
private Button curlPost; | |
/** Called when the activity is first created. */ | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.main); | |
InitializeApp(); | |
} |