Saturday, May 4, 2013

[General] android to firewire


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

[android help] Passing values to server by HttpPost Android

http post - Passing values to server by HttpPost Android - Stack Overflow







Tell me more ×

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
















Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.










default






.

stackoverflow.comm

[android help] New to Flash and Android

New to Flash and Android - Stack Overflow







Tell me more ×

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..



webView = (WebView) findViewById(R.id.webview);
webView.setVisibility(View.VISIBLE);
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setPluginsEnabled(true);
webView.getSettings().setAllowFileAccess(true);
String url = "file://"
+ this.getFilesDir().getAbsolutePath() + "/"
+ contentData;
webView.loadUrl(url);


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

[android help] Unable to instantiate activitiy Componentinfo


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++;
}


ArrayAdapter adapter = 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

[General] Cant post to Instagram from S4


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

[android help] how to add different images in different information window for different markers in google maps api v2 for android


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

[android help] Google Map Api v2 doesn't working

android - Google Map Api v2 doesn't working - Stack Overflow







Tell me more ×

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



05-04 11:57:09.128: D/dalvikvm(415): DexOpt: couldn't find field Landroid/content/res/Configuration;.smallestScreenWidthDp
05-04 11:57:09.128: W/dalvikvm(415): VFY: unable to resolve instance field 25
05-04 11:57:09.128: D/dalvikvm(415): VFY: replacing opcode 0x52 at 0x0012
05-04 11:57:09.138: D/dalvikvm(415): VFY: dead code 0x0014-0018 in Lcom/google/android/gms/common/GooglePlayServicesUtil;.b (Landroid/content/res/Resources;)Z
05-04 11:57:09.258: W/GooglePlayServicesUtil(415): Google Play services is missing.
05-04 11:57:09.278: W/GooglePlayServicesUtil(415): Google Play services is missing.
05-04 11:57:09.308: W/GooglePlayServicesUtil(415): Google Play services is missing.
05-04 11:57:09.318: W/GooglePlayServicesUtil(415): Google Play services is missing.
05-04 11:57:09.338: W/GooglePlayServicesUtil(415): Google Play services is missing.
05-04 11:57:09.378: W/GooglePlayServicesUtil(415): Google Play services is missing.
05-04 11:57:09.418: D/AndroidRuntime(415): Shutting down VM
05-04 11:57:09.418: W/dalvikvm(415): threadid=1: thread exiting with uncaught exception (group=0x40015560)
05-04 11:57:09.448: E/AndroidRuntime(415): FATAL EXCEPTION: main
05-04 11:57:09.448: E/AndroidRuntime(415): java.lang.RuntimeException: Unable to start activity ComponentInfo{androidapp.aroundme/androidapp.aroundme.MainActivity}: java.lang.NullPointerException
05-04 11:57:09.448: E/AndroidRuntime(415): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
05-04 11:57:09.448: E/AndroidRuntime(415): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
05-04 11:57:09.448: E/AndroidRuntime(415): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
05-04 11:57:09.448: E/AndroidRuntime(415): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
05-04 11:57:09.448: E/AndroidRuntime(415): at android.os.Handler.dispatchMessage(Handler.java:99)
05-04 11:57:09.448: E/AndroidRuntime(415): at android.os.Looper.loop(Looper.java:130)
05-04 11:57:09.448: E/AndroidRuntime(415): at android.app.ActivityThread.main(ActivityThread.java:3683)
05-04 11:57:09.448: E/AndroidRuntime(415): at java.lang.reflect.Method.invokeNative(Native Method)
05-04 11:57:09.448: E/AndroidRuntime(415): at java.lang.reflect.Method.invoke(Method.java:507)
05-04 11:57:09.448: E/AndroidRuntime(415): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
05-04 11:57:09.448: E/AndroidRuntime(415): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
05-04 11:57:09.448: E/AndroidRuntime(415): at dalvik.system.NativeStart.main(Native Method)
05-04 11:57:09.448: E/AndroidRuntime(415): Caused by: java.lang.NullPointerException
05-04 11:57:09.448: E/AndroidRuntime(415): at androidapp.aroundme.MainActivity.onCreate(MainActivity.java:37)
05-04 11:57:09.448: E/AndroidRuntime(415): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
05-04 11:57:09.448: E/AndroidRuntime(415): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
05-04 11:57:09.448: E/AndroidRuntime(415): ... 11 more
05-04 11:57:11.438: I/Process(415): Sending signal. PID: 415 SIG: 9


please solve my problem.
















Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.










default






.

stackoverflow.comm

[General] Need a phone with vanilla Android ASAP!


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

[android help] unable to insert into azure via android application


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

Google Voice on T-Mobile? [General]

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...