Friday, May 24, 2013

[General] Can anyone recommend a free navigation app with traffic?


Waze. Works extremely well and is social media based using real time user feedback on traffic, construction, police, accidents, etc. I use it all the time.

Sent from my SAMSUNG-SGH-I337 using Android Central Forums



.

forum.xda-developers.com

[General] How do get information of installed application with the corresponding .apk file name


How do we find apk name corresponding to application installed on device. Assume that i have to all the root folders

Eg : If there is some xxxx.apk and application name is Email. Is there any way to know from device logs or device files that xxxx.apk is the apk name for Email application.?
Please help !!!

Thank You,



.

forum.xda-developers.com

[General] SD Card Directories


Would anyone be able to help me set up the proper directories on my SD card? I just formatted it, and presently all there is is DCIM and LOST.DIR.

Where do I put Music, ringtones, documents, voice notes, and stuff like that?

Thank you!



.

forum.xda-developers.com

[General] Problem with 'authorise HTC sense'


Hi, Android 4.1.1 on a Desire X.

I deleted my Flickr account (moved to ipernity) and uninstalled the flickr app. Now I'm getting the error "Authorise HTC Sense - flickr is not responding, try signing in". But of course I can't sign in, because I no longer have a flickr account.

How do I remove Flickr from HTC Sense on my phone? Where are the options for HTC Sense itself located?

Many thanks!

Stephen.

EDIT: Ah, under "Settings:Apps:All apps" there was a "Flickr for HTC Sense". I can't uninstall that, or open it, only Force Stop.

I can only see the main "HTC Sense" under Settings-Apps too, so can't open it directly to tell it to stop looking for Flickr. Any ideas?



.

forum.xda-developers.com

[General] Play Music question


Is there a way to play just a genre, like 80's rock? I can navigate to that but can't find a way to just play the entire genre...it just breaks it down to albums, artists and songs.



.

forum.xda-developers.com

[General] Help In Importing Contacts and Pictures


MY phone was hanging lately , so i had restarted the phone , but i had made sure that i synced my phone to my gmail and samsung account . now i dont know where can i get prevous data back

BTW i have the samsung galaxy grand



.

forum.xda-developers.com

[android help] Horizontal Scroll View not scrolling the TextView's

android - Horizontal Scroll View not scrolling the TextView's - 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.


















android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#ffffff"
android:orientation="horizontal" >

android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal" >

android:layout_width="100dp"
android:layout_height="wrap_content"
android:gravity="left"
android:paddingLeft="8dp"
android:text="Date/Time"
android:textColor="#000000" />

android:layout_width="80dp"
android:layout_height="wrap_content"
android:gravity="left"
android:paddingLeft="8dp"
android:text="BP"
android:textColor="#000000" />

android:layout_width="150dp"
android:layout_height="wrap_content"
android:gravity="left"
android:text="BP Position"
android:paddingLeft="8dp"
android:textColor="#000000" />

android:layout_width="150dp"
android:layout_height="wrap_content"
android:gravity="left"
android:text="Body Site"
android:paddingLeft="8dp"
android:textColor="#000000" />

android:layout_width="150dp"
android:layout_height="wrap_content"
android:gravity="left"
android:paddingLeft="8dp"
android:text="Laterality / Cuff Size"
android:textColor="#000000" />

android:layout_width="150dp"
android:layout_height="wrap_content"
android:gravity="left"
android:paddingLeft="8dp"
android:text="HR"
android:textColor="#000000" />

android:layout_width="150dp"
android:layout_height="wrap_content"
android:gravity="left"
android:paddingLeft="8dp"
android:text="RR"
android:textColor="#000000" />

android:layout_width="150dp"
android:layout_height="wrap_content"
android:gravity="left"
android:paddingLeft="8dp"
android:text="T(F)"
android:textColor="#000000" />

android:layout_width="150dp"
android:layout_height="wrap_content"
android:gravity="left"
android:paddingLeft="8dp"
android:textColor="#000000" />

android:layout_width="150dp"
android:layout_height="wrap_content"
android:gravity="left"
android:paddingLeft="8dp"
android:text="Wt"
android:textColor="#000000" />

android:layout_width="150dp"
android:layout_height="wrap_content"
android:gravity="left"
android:paddingLeft="8dp"
android:text="Ht"
android:textColor="#000000" />

android:layout_width="150dp"
android:layout_height="wrap_content"
android:gravity="left"
android:paddingLeft="8dp"
android:text="BMI"
android:textColor="#000000" />

android:layout_width="150dp"
android:layout_height="wrap_content"
android:gravity="left"
android:paddingLeft="8dp"
android:text="BSA"
android:textColor="#000000" />

android:layout_width="150dp"
android:layout_height="wrap_content"
android:gravity="left"
android:paddingLeft="8dp"
android:text="O2"
android:textColor="#000000" />






I have placed my TextView's inside a LinearLayout which is again under a HorizontalScrollView, but i don't see it getting scrolled.


























You should put your HorizontalListView inside a LinearLayout and pass the tag xlms to LinearLayout and the scroll will work perfectly!




















default






.

stackoverflow.comm

[android help] android.content.ActivityNotFoundException, unable to start activity


I am not sure what you are trying to do.


But a couple of suggestions to try.



package="com.eco4cloud.activities" // make sure package name is right


Mention the package name as above



android:name="com.eco4cloud.activities.Main"
// this probably MainActivity. Cross Check once
android:label="@string/app_name" >







Since you have explicit intent you don't require a intent-filter



// use this assuming Datacenters is in package com.eco4cloud.activities
android:name=".Datacenters"
android:label="@string/app_name" >



If you are starting a activity in a non-activity class



public void startDatacenters() {
Intent intent = new Intent(context, Datacenters.class);
// assuming context is the activity content
context.startActivity(intent);
//in your case you have activity.startActivity(intent)
// not sure what activity is
}


.

stackoverflow.comm

[android help] How do I add a 1dp line to the bottom of my textview cell ( not a table layout)


I am new to android, jsut a very plain simple question, how do i add a bottom line to a text view, so that it appears at the bottom of the cell as 1dp, here's the code so far:




android:layout_width="match_parent"
android:layout_height="47.5dp"
android:layout_marginLeft="2dp"
android:layout_marginRight="2dp"
android:paddingTop="13dp"
android:background="@drawable/line_str"
android:paddingLeft="8dp"
android:text="@string/manage_categories"
android:singleLine="true"
android:textColor="@color/white"
android:fontFamily="Roboto-Regular"
android:layout_gravity="center"
android:textSize="16sp"
/>


line_str.xml as follows:






















Any help appreciated. Thanks!Justin



.

stackoverflow.comm

[android help] How to add date in sqlite database


I have sqlite database



private static final String DB_PROCESS_CREATE = "create table "
+ DB_TABLE_PROCESS + "(" + PROCESS_ID
+ " integer primary key autoincrement, "
+ PROCESS_DATE + " date);";


I create it `db.execSQL(DB_PROCESS_CREATE);


How to add date value in this datebase? I tried :



String date = new SimpleDateFormat("yyyy.MM.dd").format(Calendar
.getInstance().getTime());
ContentValues cv = new ContentValues();
cv.put(db.PROCESS_DATE,Date.valueOf(date));
db.mDB.insert(db.DB_TABLE_PROCESS, null, cv));


But then I get error "The method put(String, String) in the type ContentValues is not applicable for the arguments (String, Date)".



.

stackoverflow.comm

[android help] How to start an activity from a thread class in android?

multithreading - How to start an activity from a thread class in 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 extending a thread class and from that class I want to start an activity. How to do this?





























You need to call startActivity() on the application's main thread. One way to do that is by doing the following:



  1. Initialize a Handler and associate it with the application's main thread.



    Handler handler = new Handler(Looper.getMainLooper());



  2. Wrap the code that will start the Activity inside an anonymous Runnable class and pass it to the Handler#post(Runnable) method.



    handler.post(new Runnable() {
    @Override
    public void run() {
    Intent intent = new Intent (MyActivity.this, NextActivity.class);
    startActivity(intent);
    }
    });























you can use Something like this.



public class MyActivity extends Activity
{
Handler hander = new Handler(){
public void handleMessage(Message m){
Intent intent = new Intent (MyActivity.this, Next.class);
startActivity(intent);
}
};
pubilc void onCreate(Bundle ic)
{
//your code setContentView() etc....
Thread toRun = new Thread()
{
public void run()
{
hander.sendMessage(1);
}
}
toRun.start();
}
}
























Well to start an activity of an class, a class should extends with activity according to me.


But if you want to start activity with some threading function you can do these things.


Instead of extends Thread, use implements Runnable. After that some class that have an Activity you just call the start thread and put your logic and that start Intent.


I think this is the good solution for you.























default






.

stackoverflow.comm

[android help] Pull to refresh example, Eclipse don't find setOnRefreshListener command


iam dealing with well known pull to refresh example from Git-hub


I loaded library and everything is working as it should but when i want to call method setOnRereshListener, Eclipse don't find it. What could be a problem?


This is code from example:



PullToRefreshListView pullToRefreshView = (PullToRefreshListView) findViewById(R.id.pull_to_refresh_listview);
pullToRefreshView.setOnRefreshListener(new OnRefreshListener() {
@Override
public void onRefresh(PullToRefreshBase refreshView) {
// Do work to refresh the list here.
new GetDataTask().execute();
}
});


And this is my code:



public class MainActivity extends Activity {
private static final String URL = "http://192.168.1.103/php-android/testphp.php";
private static final String TAG_DATA = "data";
private static final String TAG_ID = "name";
private static final String TAG_DATE = "date";
public PullToRefreshListView listView;
JSONArray data = null;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder() .detectAll().penaltyLog().build();
StrictMode.setThreadPolicy(policy);
getDataInArray();

PullToRefreshListView pullToRefreshView = (PullToRefreshListView) findViewById(R.id.pull_to_refresh_listview);
pullToRefreshView.setOnRefreshListener(new OnRefreshListener() {
@Override
public void onRefresh(PullToRefreshBase refreshView) {
// Do work to refresh the list here.
new GetDataTask().execute();
}
});
}


.

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