Hi guys, new member here.
Just got a car which allows you to connect an iPhone/iPad to the radio via firewire. I am however an android guy. Does anybody know if there's a way to connect my S3 instead?
Thanks
.
forum.xda-developers.com
Hi guys, new member here.
Just got a car which allows you to connect an iPhone/iPad to the radio via firewire. I am however an android guy. Does anybody know if there's a way to connect my S3 instead?
Thanks
forum.xda-developers.com
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
I am trying to post some values to server by Http post method but i am always getting this error - org.apache.http.client.HttpResponseException: Not Found Detail message - not found I am using Keyvalue pair method to send values, Please hep me in this, Any help would be appreciated. Thanks | |||
default
stackoverflow.comm
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
I have a .Fla file which i have converted to Swf and I want to Play it on Android tablet is it possible ? It is an interactive swf file . I totally am new to this area kindly help | |||
Just go to the export settings of you file and select "AIR X.Y for Android". Now, you need to adjust the settings for the project and you should be good to go :) | |||
The best option to run .swf file or any other video files is to load in webview. Follow the below mentioned code snippet..
Where contentData is your filename.swf stored. url is complete path where your video is stored in your Android phone. Hope this helps. | |||
default
stackoverflow.comm
I know there are many other questions like this, but I read them all and can´t find an answer for my problem.
05-04 08:38:40.742: E/AndroidRuntime(18186): FATAL EXCEPTION: main
05-04 08:38:40.742: E/AndroidRuntime(18186): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.unserekinder/com.example.unserekinder.MainActivity}: java.lang.NullPointerException
05-04 08:38:40.742: E/AndroidRuntime(18186): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2106)
05-04 08:38:40.742: E/AndroidRuntime(18186): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
05-04 08:38:40.742: E/AndroidRuntime(18186): at android.app.ActivityThread.access$600(ActivityThread.java:141)
05-04 08:38:40.742: E/AndroidRuntime(18186): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
05-04 08:38:40.742: E/AndroidRuntime(18186): at android.os.Handler.dispatchMessage(Handler.java:99)
05-04 08:38:40.742: E/AndroidRuntime(18186): at android.os.Looper.loop(Looper.java:137)
05-04 08:38:40.742: E/AndroidRuntime(18186): at android.app.ActivityThread.main(ActivityThread.java:5041)
05-04 08:38:40.742: E/AndroidRuntime(18186): at java.lang.reflect.Method.invokeNative(Native Method)
05-04 08:38:40.742: E/AndroidRuntime(18186): at java.lang.reflect.Method.invoke(Method.java:511)
05-04 08:38:40.742: E/AndroidRuntime(18186): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
05-04 08:38:40.742: E/AndroidRuntime(18186): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
05-04 08:38:40.742: E/AndroidRuntime(18186): at dalvik.system.NativeStart.main(Native Method)
05-04 08:38:40.742: E/AndroidRuntime(18186): Caused by: java.lang.NullPointerException
05-04 08:38:40.742: E/AndroidRuntime(18186): at android.app.Activity.findViewById(Activity.java:1839)
05-04 08:38:40.742: E/AndroidRuntime(18186): at com.example.unserekinder.MainActivity.(MainActivity.java:34)
05-04 08:38:40.742: E/AndroidRuntime(18186): at java.lang.Class.newInstanceImpl(Native Method)
05-04 08:38:40.742: E/AndroidRuntime(18186): at java.lang.Class.newInstance(Class.java:1319)
05-04 08:38:40.742: E/AndroidRuntime(18186): at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
05-04 08:38:40.742: E/AndroidRuntime(18186): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)
Manifest.xml:
package="com.example.unserekinder"
android:versionCode="1"
android:versionName="1.0" >
android:minSdkVersion="8"
android:targetSdkVersion="17" />
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
android:name="com.example.unserekinder.MainActivity"
android:label="@string/app_name" >
android:name="com.example.unserekinder.NeuesKind"
android:label="@string/title_activity_neues_kind" >
How you can see, all my Activites are defined in my Manifest.xml
. There are also no abstract classes. Can´t find the problem.
My MainActivity:
package com.example.unserekinder;
...
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
//System.out.println("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%");
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
listview_fuellen();
Button b = (Button) findViewById(R.id.btNeuesKind);
b.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent i = new Intent(MainActivity.this, NeuesKind.class);
startActivity(i);
}
});
}
DBHelper db = new DBHelper(this);
ListView lv = (ListView) findViewById(R.id.lvKinder);
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.activity_main, menu);
return true;
}
public void listview_fuellen(){
Cursor c = db.select();
int count = c.getCount();
String values[] = new String[count+1];
int i = 0;
while(c.moveToNext())
{
values[i]= c.getString(c.getColumnIndex("name"));
i++;
}
ArrayAdapteradapter = new ArrayAdapter (getBaseContext(),
android.R.layout.activity_list_item, android.R.id.text1,values);
lv.setAdapter(adapter);
}
}
What else could be the problem?
stackoverflow.comm
Just got the S4 and i love it, only problem is every time i try to post a picture to instagram it shows up either distorted or just a black picture. Idk if it has to do with the photo resolution or size since the camera is a 13 mega pixel compared to my old phones 8 mega pixel. Anyone have any ideas or solutions?
Thanks
forum.xda-developers.com
i have made lot of markers now i want each information window of marker must be unique i have written xml for information window but its not working aaccordingly everytime a single image shows up.
// Setting a custom info window adapter for the google map
myMap.setInfoWindowAdapter(new InfoWindowAdapter() {
// Use default InfoWindow frame
public View getInfoWindow(Marker arg0) {
return null;
}
// Defines the contents of the InfoWindow
public View getInfoContents(Marker marker) {
// Getting view from the layout file info_window_layout
View v = getLayoutInflater().inflate(
R.layout.info_window_layout, null);
// Getting the position from the marker
LatLng latLng = marker.getPosition();
Double latitude=latLng.latitude;
Double langitude=latLng.longitude;
String lat = String.format("%.6f", latitude);
String lng = String.format("%.6f", langitude);
Toast.makeText(getApplicationContext(), lat+"----"+lng,Toast.LENGTH_SHORT).show();
// Getting reference to the TextView to set longitude
TextView tvLng = (TextView) v.findViewById(R.id.tv1);
ImageView icon = (ImageView) v.findViewById(R.id.icons);
if(lat.equals("73.057130") && lng.equals("33.721140"))
{
icon.setImageResource(R.drawable.hbl_icon);
}
else
{
icon.setImageResource(R.drawable.alflah_icon);
}
// Returning the view containing InfoWindow contents
return v;
}
});
in myMap.setInfoWindowAdapter the toast is showing the same latitude but the information window appearing is not showing the image in if condition and always showing a image in else condition.everything works fine but the image is not showing proper kindly help. my xml is :
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal" >
android:id="@+id/icons"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="5dp" />
android:id="@+id/tv1"
android:text="Get Directions"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="5dp" />
stackoverflow.comm
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
i am creating an app using google map api v2 but while launch the activity it will getting crashed. logcat
please solve my problem. | |||
default
stackoverflow.comm
Hi,
I run a website, and have never had a smart phone, but I have discover over the last few days that I need one. Really need one - and fast!
However, I would like it to run vanilla Android. I tried a Samsung tablet, and hate the way that they've ruined a perfectly good operating system compared to my Nexus 7. Plus it has the advantage of having the latest versions of Chrome, so I can see how my website loads with it, for example.
Is it the Nexus 4 or nothing? It's quite large, and rather expensive. I'd happily have a 3.5 or 4 inch screen, and ideally pay a bit less. Are there any other choices out there?
If not I might even go with a Windows phone!
Thanks!
forum.xda-developers.com
im doing a login register for my application and i have to integrate them together with microsoft azure. However, despite after following the tutorial given by microsoft azure, i still fail to insert my "string" into their database. There are also no error in the codes, hence i'm not very sure where is wrong. Below is my codes.
package mp.memberuse;
import java.net.MalformedURLException;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;
import android.widget.TextView;
import com.microsoft.windowsazure.mobileservices.*;
public class LoginRegister extends Activity {
Button btn1, btn2, btn3;
EditText tf1, tf2, tf3, tf4, tf5, tf6, tf7, tf8, tf9, tf10, tf11;
TextView tv1, tv2;
private MobileServiceClient mClient;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
TabHost tabs = (TabHost) this.findViewById(R.id.lt2tabhost);
tabs.setup();
TabSpec ts1 = tabs.newTabSpec("Login");
ts1.setIndicator("Login");
ts1.setContent(R.id.c1);
tabs.addTab(ts1);
TabSpec ts2 = tabs.newTabSpec("Register");
ts2.setIndicator("Register");
ts2.setContent(R.id.c2);
tabs.addTab(ts2);
btn1 = (Button)findViewById(R.id.button1);
btn2 = (Button)findViewById(R.id.button2);
btn3 = (Button)findViewById(R.id.button3);
tf1=(EditText) findViewById(R.id.editText1);
tf2=(EditText) findViewById(R.id.editText2);
tf3=(EditText) findViewById(R.id.editText3);
tf4=(EditText) findViewById(R.id.editText4);
tf5=(EditText) findViewById(R.id.editText5);
tf6=(EditText) findViewById(R.id.editText6);
tf7=(EditText) findViewById(R.id.editText7);
tf8=(EditText) findViewById(R.id.editText8);
tf9=(EditText) findViewById(R.id.editText9);
tf10=(EditText) findViewById(R.id.editText10);
tv1=(TextView) findViewById(R.id.login);
tv2=(TextView) findViewById(R.id.register);
try {
MobileServiceClient mClient = new MobileServiceClient("https://testrun.azure-mobile.net/","FOJanABDYiJEVMHkCECAylrXJCnVwF77",this);
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
btn1.setOnClickListener(new View.OnClickListener(){
public void onClick(View v)
{
String username, password;
username = tf1.getText().toString();
password = tf2.getText().toString();
/**if(username.equals(sqlusername) && password.equals(sqlpassword))
{
SharedPreferences prefs = getSharedPreferences("myPreferences",Context.MODE_PRIVATE);
SharedPreferences.Editor editor = prefs.edit();
editor.putString("fullname", fullname);
editor.commit();
Intent intent = new Intent(LoginRegister.this, SendMessage.class);
startActivity(intent);
}
else
{
tv1.setText("Invalid user");
} **/
}
}
);
btn2.setOnClickListener(new View.OnClickListener(){
public void onClick(View v)
{
String username, password, cpassword, fullname, nric, address, phone, email;
username = tf3.getText().toString();
password = tf4.getText().toString();
cpassword = tf5.getText().toString();
fullname = tf6.getText().toString();
nric = tf7.getText().toString();
address = tf8.getText().toString();
phone = tf9.getText().toString();
email = tf10.getText().toString();
Members members = new Members();
members.username = username;
members.password = password;
members.fullname = fullname;
members.nric = nric;
members.address = address;
members.phone = phone;
members.email = email;
if(!password.equals(cpassword))
{
tv2.setText("Password & Confirm Password does not match.");
}
else if(username.equals("") || password.equals("") || cpassword.equals("") || fullname.equals("") || nric.equals("") || address.equals("") || phone.equals("") || email.equals(""))
{
tv2.setText("Do not leave any field empty.");
}
else
{
mClient.getTable(Members.class).insert(members, new TableOperationCallback()
{
public void onCompleted(Members entity, Exception exception, ServiceFilterResponse response)
{
if (exception == null)
{
tv2.setText("Register Complete.");
tf3.setText("");
tf4.setText("");
tf5.setText("");
tf6.setText("");
tf7.setText("");
tf8.setText("");
tf9.setText("");
tf10.setText("");
}
else
{
tv2.setText("Fail to register!");
}
}
});
tv2.setText("Register Complete.");
tf3.setText("");
tf4.setText("");
tf5.setText("");
tf6.setText("");
tf7.setText("");
tf8.setText("");
tf9.setText("");
tf10.setText("");
}
}
});
btn3.setOnClickListener(new View.OnClickListener(){
public void onClick(View v)
{
tf3.setText("");
tf4.setText("");
tf5.setText("");
tf6.setText("");
tf7.setText("");
tf8.setText("");
tf9.setText("");
tf10.setText("");
}
});
}
}
stackoverflow.comm
Switched over from an iPhone to my Note II not too long ago and am really enjoying it but there are a couple things about iOS that I'm starting to wish android had as well. The first being better music capabilities. A quick double tap of the home button with the iphone brought up a simple player that tied in beautifully with the lockscreen (or multitask bar if your phone wasn't locked.) I can't seem to find anything for android that does this. There's also a jailbreak tweak for the iphone called Activator which basically let's you assign functions to anything. For example, I had the volume up button set to change tracks when long pressed. It was really handy when driving rather than having to take my eyes off the road and fumble with the phone to change tracks.
Thing number two: volume control. The volume buttons on the iphone control everything whereas the volume buttons on my phone control only the ringtone. I would like for all sounds to be linked together.
Anybody know of any root or non root apps that can do what I've mentioned? Thanks guys.
forum.xda-developers.com
I purchased a used Boost Mobile ZTE Warp
Sequent from a reputable seller on Ebay. Boost
tells me they can't activate it, the MEID isn't in
their system. This IS a Boost phone. It boots up
with the Boost logo, says Boost Mobile beneath
the signal strength indicator (which shows it
receiving a signal AND 3G). It has Call Balance,
Call Reboost, and Care Services in the
contacts, everything in the phone is set up for
Boost. Is Boost bending me over with no
reacharound because they want me to buy a
phone from them? I've been a Boost customer
for over 5 years. Is this how they reward loyalty?
forum.xda-developers.com
Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...