Thursday, September 19, 2013

[General] Samsung S3 toot and ROM: Clockworkmod recovery not booting up.


Samsung S3 toot and ROM: Clockworkmod recovery not booting up.



I have successfully rooted my Galaxy S3. I verified this with Root Checker and also was able to download Titanium Recovery. I then continued by downloading the Cyanogenmod version for my SGH-T999. The next step was for me to boot up to Clockworkmod recovery. That's where the problem persists, I can't boot up to clockworkmod recovery. I did it before when I finsihed with Odin after downloading my SiperSU .zip file but now everytime I press Volume up, center home and the power button it boots up to "Android recovery" and i have done this multiple times now.So I can't backup and restore and I can't boot up the cyanogenmod .zip file on the SD. Any help would be appreciated. Thanks

Posted via Android Central App



Read more

forum.xda-developers.com



[General] Need help - play store not working


Need help - play store not working



Hi,
This summer I went to Africa for a month in July and while I was there my phone started not working properly. Whenever I turned it on, it would be realy slow and would freeze and a bunch of "Unfortunately the process com.google.process.gapps has stopped" messages would pop up. When I got home I tried to download apps from the play store but whenever I opened the play store it would immediately crash. I tried downloading apps off of google chrome and the internet instead, but when they said that the apps would download they never did. I am still experiencing these problems and dont know to fix them or if i can. it still freezes a lot of the time and i still cant use play store or download any apps at all. the only app i have downloaded since was through utorrent.

Thanks,
http://cdn-forums.androidcentral.com...milies/sad.png



Read more

forum.xda-developers.com



[General] Please help


Please help



Press the menu button, then Settings, then Apps, and look under the Downloaded list. Can you find Pocket Fort there? If you can see it, tap it and select Uninstall.

It's possible that some other app you installed might have some shady code in it that downloads other apps, or places shortcuts on your homescreen that look like apps you've downloaded, but are in fact shortcuts to some website promoting useless stuff. I suggest uninstalling any recent apps you may have installed. As a last resort, you could always do a complete factory data reset, which wipes the phone and starts all over again (so obviously, back up all of your data first!). To reset, go to Settings/Backup & Reset/Factory Data Reset.

It may be helpful to install a security app like Lookout or Avast. Viruses aren't a huge problem yet on Android, but malware writers are always finding new ways to mess up people's lives, so I always think it's prudent to install a good security app.



Read more

forum.xda-developers.com



[General] charging issues with Stratosphere 1


charging issues with Stratosphere 1



I didn't have any problems with it until late last year. phone wouldn't charge unless I had the wire in a certain position. I tried switching to a generic cable, but that didn't help either. even so, the phone would still charge, so it was good enough.

but a few days ago, my phone started beeping constantly while giving me the "plug your charger in" message. now it hardly charges unless my phone's off, and it loses battery life while it's charging charge when it's on. I've tried switching cables and outlets, but nothing seems to be helping the issue.



Read more

forum.xda-developers.com



[General] USB Storage issue !!


USB Storage issue !!



Hi All,

This is my first thread in Androidcentral.

From the last few days My Nexus S Phone's USB storage automatically turns on whenever I connect it to a PC.
Also, the "Turn Off USB Storage" option is visible only for microseconds whenever I try to access it from the Notification bar.
The Only option to gain USB Storage back on phone is to reboot the Phone.

My phone is Rooted with CyanogenMod 10 running Jellybeans ver 4.1.1
Please help .



Read more

forum.xda-developers.com



[android help] Handling 3 finger tap in Android


Handling 3 finger tap in Android


touchscreen - Handling 3 finger tap 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 using OnTouchListener to capture multitouch events for ex. a 3 finger tap , I could able to detect up to 2 fingers. i.e event.getPointerCount() returns upto 2. Even same with onTouchEvent(). Is there any other API for handling this ? I have enabled 3 finger tap detection on my test device. This is what I have done so far:



package com.example.toucheventsample;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import android.widget.VideoView;

public class TouchEventActivity extends Activity implements OnTouchListener{

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

VideoView videoView = (VideoView) findViewById(R.id.video);
videoView.setOnTouchListener(this);
}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.touch_event, menu);
return true;
}

public boolean handleTouchEvent(MotionEvent event) {
boolean handled = true;
int action = event.getAction();
int count = event.getPointerCount();
switch (action & MotionEvent.ACTION_MASK) {

case MotionEvent.ACTION_POINTER_UP:
if (3 == count) {
// handle 3 finger tap
}
break;
}
return handled;
}

@Override
public boolean onTouch(View view, MotionEvent event) {
int count = event.getPointerCount();
handleTouchEvent(event);
return true;
}
}




























There are some apps that allow you to use more than 2 fingers. Try looking for: piano apps, keyboard apps.




















default






Read more

stackoverflow.comm



[android help] How we can change relative layout to ListView Android


How we can change relative layout to ListView Android


How we can change relative layout to ListView 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 want to convert relative layouts in a ListView .So that i can repeat the data as much as many times i get data from the server .The layout id that i want to be in a listview are depart_flight_details_duration,passenger_details_layout.How i can covert this two layouts in a ListView.Please help me on this i am new in android.


XML



android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >

android:id="@+id/imgLogo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginRight="5dip"
android:padding="3dip"
android:src="@drawable/logo_demo" />

android:id="@+id/main_scroll_view"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_below="@+id/imgLogo" >

android:id="@+id/main_ScrollView_Container"
android:layout_width="match_parent"
android:layout_height="wrap_content" >

android:id="@+id/trip_details_main"
android:layout_width="fill_parent"
android:layout_height="70dp"
android:background="@drawable/flight_detail"
android:gravity="center_vertical" >

android:id="@+id/trip_locations"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_marginLeft="5dp"
android:text="Delhi to Hydrabad"
android:textColor="#FFFFFF"
android:textSize="20sp"
android:textStyle="bold" />

android:id="@+id/depart_date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/trip_locations"
android:layout_marginLeft="5dp"
android:text="18 Sep 2013"
android:textColor="#FFFFFF"
android:textSize="15sp" />

android:id="@+id/imgRight"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginTop="12dp"
android:src="@drawable/cal" />


android:id="@+id/travel_itin_header"
android:layout_width="fill_parent"
android:layout_height="40dp"
android:layout_below="@+id/trip_details_main"
android:layout_marginTop="2dp"
android:background="@drawable/gray"
android:gravity="center_vertical" >

android:id="@+id/itinerary_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_marginLeft="90dp"
android:layout_marginTop="5dp"
android:text="Itinerary Details"
android:textColor="#FFFFFF"
android:textSize="15sp"
android:textStyle="bold" />


android:id="@+id/passenger_details_layout"
android:layout_width="fill_parent"
android:layout_height="40dp"
android:layout_below="@+id/travel_itin_header"
android:layout_marginTop="2dp"
android:background="@drawable/gray"
android:gravity="center_vertical" >

android:id="@+id/pax_image"
android:layout_width="wrap_content"
android:layout_height="50dip"
android:layout_alignParentLeft="true"
android:padding="3dip"
android:src="@drawable/black_man" />

android:id="@+id/first_pax_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/pax_image"
android:layout_marginLeft="12dp"
android:layout_marginTop="10dp"
android:layout_toRightOf="@+id/pax_image"
android:text=" XXX XXX XXX"
android:textColor="#FFFFFF"
android:textSize="15sp"
android:textStyle="bold" />

android:id="@+id/imgRight"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/first_pax_name"
android:layout_alignParentRight="true"
android:src="@drawable/arrow2" />


android:id="@+id/depart_flight_details_duration"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/passenger_details_layout"
android:layout_marginTop="2dp"
android:background="@drawable/small_search" >

android:id="@+id/flight_depart_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:padding="3dip"
android:src="@drawable/dep" />

android:id="@+id/depart_return_location"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/flight_depart_image"
android:layout_marginLeft="12dp"
android:layout_marginTop="10dp"
android:layout_toLeftOf="@+id/arrow_image"
android:layout_toRightOf="@+id/flight_depart_image"
android:text="Delhi to Hydrabad"
android:textColor="#FFFFFF"
android:textSize="15sp"
android:textStyle="bold" />

android:id="@+id/one_way_date_and_duration_details"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/depart_return_location"
android:layout_marginLeft="12dp"
android:layout_toRightOf="@+id/flight_depart_image"
android:text="18 Sep 2013 09:45 | Duration 2:45"
android:textColor="#FFFFFF"
android:textSize="12sp" />

android:id="@+id/arrow_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/depart_return_location"
android:layout_alignParentRight="true"
android:layout_marginTop="10dp"
android:src="@drawable/arrow2" />


android:id="@+id/travel_agency_header"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/depart_flight_details_duration"
android:layout_marginTop="2dp"
android:background="@drawable/travelagency_bg" >

android:id="@+id/travel_agency_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_marginLeft="10dp"
android:layout_marginTop="5dp"
android:text="Travel Agency"
android:textColor="#676767"
android:textSize="15sp"
android:textStyle="bold" />


android:id="@+id/tarvel_agency_details"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/travel_agency_header"
android:layout_marginTop="2dp" >

android:id="@+id/agent_logo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:src="@drawable/logo" />

android:id="@+id/mobile_logo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
android:layout_marginTop="10dp"
android:layout_toRightOf="@+id/agent_logo"
android:src="@drawable/mobile" />

android:id="@+id/at_logo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginTop="10dp"
android:layout_toRightOf="@+id/mobile_logo"
android:src="@drawable/at" />

android:id="@+id/email_logo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginTop="10dp"
android:layout_toRightOf="@+id/at_logo"
android:src="@drawable/at" />

android:id="@+id/travel_agency_address"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/agent_logo"
android:layout_marginLeft="5dp"
android:text="Address : XXXXXXXX"
android:textColor="#676767" />

android:id="@+id/travel_agency_fax"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/travel_agency_address"
android:layout_marginLeft="5dp"
android:layout_marginTop="2dp"
android:text="Fax : XXXXXXXX"
android:textColor="#676767" />


android:id="@+id/genral_remarks_header"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/tarvel_agency_details"
android:layout_marginTop="2dp"
android:background="@drawable/general_remar" >

android:id="@+id/genral_remark_header_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_marginLeft="10dp"
android:layout_marginTop="5dp"
android:text="Genral Remarks"
android:textColor="#676767"
android:textSize="15sp"
android:textStyle="bold" />


android:id="@+id/genral_remark_text_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/genral_remarks_header"
android:layout_marginTop="2dp" >

android:id="@+id/genral_remark_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:gravity="center_vertical"
android:text="HAVE A NICE TRIP"
android:textColor="#676767" />






























You have to use custom listview.


And for two listview in one layout see this link Link




















default






Read more

stackoverflow.comm



[android help] Image drop to previous position


Image drop to previous position



Touch listener not work. I need to drag the image over screen and drop to previous position itself.


For that i write the code as below:



class Mylistener implements OnTouchListener{

@Override
public boolean onTouch(View v, MotionEvent event) {
MarginLayoutParams marginParams = new MarginLayoutParams(v.getLayoutParams());
layoutParams2 = (RelativeLayout.LayoutParams) v.getLayoutParams();


//int left=0,top=0;
switch(event.getActionMasked())
{
case MotionEvent.ACTION_DOWN:
startx=(int) event.getRawX();
starty=(int) event.getRawY();
System.out.println("ACTION DOWN: "+startx+","+starty);
break;
case MotionEvent.ACTION_MOVE:


int left = (int) event.getRawX() - (v.getWidth() / 2);
int top = (int) event.getRawY() - (v.getHeight());
marginParams.setMargins(left, top, 0, 0);
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(marginParams);
v.setLayoutParams(layoutParams);

break;

case MotionEvent.ACTION_UP:

marginParams.setMargins(startx, starty, 0, 0);
layoutParams2 = new RelativeLayout.LayoutParams(marginParams);
System.out.println("ACTION UP: "+startx+","+starty);

v.setLayoutParams(layoutParams2);
default:
break;
}
return true;
}

}


But it drag over the screen and not drop in the previous position. Please provide me any help



Read more

stackoverflow.comm



[android help] How do I put listener in web.xml java?


How do I put listener in web.xml java?



as you see in the content model of wep-app:



Content Model : (((description*, display-name*, icon*)) | distributable | context-param | filter | filter-mapping |
listener | servlet | servlet-mapping | session-config | mime-mapping | welcome-file-list | error-page | jsp-config |
security-constraint | login-config | security-role | ((env-entry*, ejb-ref*, ejb-local-ref*, ((service-ref*)), resource-
ref*, resource-env-ref*, message-destination-ref*, persistence-context-ref*, persistence-unit-ref*, post-
construct*, pre-destroy*)) | message-destination | locale-encoding-mapping-list)*


it is a sibling of servlet not a child:




ProcessReg
ProcessReg

pract123
jdbc:odbc:practODBC




config



Read more

stackoverflow.comm



[android help] Getting Image path from URI not working for Picasa folder


Getting Image path from URI not working for Picasa folder




Cursor cursor = contentResolver.query(uri, null, null, null, null);
cursor.moveToFirst();
String filePath = cursor.getString(cursor.getColumnIndexOrThrow(MediaColumns.DATA));



Unlike other folders like Camera, Screenshots, Foursquare etc.., The Pictures from Picasa folder have less no.of columns, of which _data is not there



and Hence I get the Exception:


java.lang.IllegalArgumentException: column'_data' does not exist


There is a column named picasa_id and a Constant in android:



MediaStore.Images.Media.PICASA_ID


Will that help in getting the correct image path?


Also if I had to download the image from the folder and save in my-app-images folder and then get the actual path. How will I even know that the image URI is from Picasa?



Read more

stackoverflow.comm



Tuesday, September 17, 2013

[General] How to use Google voice search as a widget?


How to use Google voice search as a widget?



That's the widget below on the screen, but every time I press it just goes to the Google search page or if I hold it it just opens up Nova Launcher actions. Is there a way to do it from the homescreen using voice?



Read more

forum.xda-developers.com



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