Sunday, June 9, 2013

[General] Samsung S3 LTE Gt-I9305 Screen Problem


Samsung S3 LTE Gt-I9305 Screen Problem



I have a S3 Gt-I9305

I am having problems with restoring my phone as I think there is a system file missing and I have tried nearly everything from flashing a stock Rom for the phone. The screen still won't respond. I am using CWM v5.0.4 I have downloaded CWM 6.0.2.9 which will flash onto my phone. I am not sure if S-Off or S-On could be the reason the phone touch screen won't work and though it might be due to problem with the kernel. This is the kernel I had on the phone before I tried to update/flash a new ROM. kernel version 3.0.31 se.infra@SEP-79#1 SMP PREEMPT Wed 2822:04 KST2012 I can't find that kernel if I search on Google and was wondering if anyone could guide me in the right direction, I can give you the build number.

I am not 100% sure what would be the right kernel for my phone or even which is the correct stock Rom for the phone. would it make a difference if I only got the build / Kernel after I rooted the phone. I am desperately trying to eliminate problems so I can start from scratch and build up from there knowing I have the right Stock ROM get the phone working again. I’m not an expert and learn quick from my mistakes. When you flash a stock ROM for your phone dose that re install all the phones drivers / system files if you can call them that?. The phone boots up but the touch screen won’t work but have all the Titanium Pro back up files is there any way to get the phone to restore from there if Titanium is no longer on the phone as I deleted it before I flashed the ROM?.

Hahaha at this stage any advice will help.

Any advice besides throwing it away?.

Many thanks!!.



.

forum.xda-developers.com

[General] What is up with my battery?


What is up with my battery?



What phone do you have and how long have you had it? Those are signs of a bad battery and the phone is getting improper readings of the battery.

You can see if things get better in the coming days. If not, it's time to replace the battery if it's removable.

Sent from my SPH-D710 using Tapatalk 2



.

forum.xda-developers.com

[General] Can't get files from phone to computer no matter what i do


Can't get files from phone to computer no matter what i do



The files on my phone, such as photos and videos, don't show up in the internal storage when i plug in my phone to the computer. So i can't drag and drop anything. I installed HTC sync manager on my computer, but when i try to connect with the phone it says some bull**** on the phone like "make sure you have installed the application on the computer and that it is open" I have installed it and it is open!!! What do i do? why is this so needlessly complicated????



.

forum.xda-developers.com

[General] Failed Logins


Failed Logins



I've been getting "Failed Login" notifications since 3:00pm yesterday every 15 minutes from an IP that appears to be mine. However I'm logged in with no issues. Can a site admin or moderator look into this issue.



.

forum.xda-developers.com

[General] Deoxoed???


Deoxoed???



Hey all,I downloaded ROM toolbox pro on my rooted android...Im trying to install themes but it says that things arent deoxoed...How do I fix this to make things work correctly?? Please help!!



.

forum.xda-developers.com

[General] Car bluetooth disables navigation voice


Car bluetooth disables navigation voice



I drive a VW Jetta with bluetooth, which has easily paired with my last two phones (Bionic and S4, respectively). While Google map's turn-by-turn map navigation works fine with my phone's bluetooth on, in so far as I can see directions on the map, the navigation voice is disabled. Only when my phone's bluetooth is off do I hear a voice. I'm not sure if this is a function of my phone or my car.



.

forum.xda-developers.com

[android help] Android In-App Billing Version 3 help/tutorial?


Android In-App Billing Version 3 help/tutorial?


java - Android In-App Billing Version 3 help/tutorial? - 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've had a look through the Android Developer's documentation, and the sample in-app billing app provided by Google, and I've been trying for a couple hours now, and I could not get it to work. All I want to do, is have one unmanaged purchasable (pro upgrade) product in my app, but I have not been able to achieve this. If there is anybody experienced with Android and/or in-app billing, if they could provide a very simplified tutorial, that would be most appreciated. Many thanks in advance.
















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










lang-java






.

stackoverflow.comm

[android help] Customizing change Text and Background Color of row Item programmatically in Android


Customizing change Text and Background Color of row Item programmatically in Android


listview - Customizing change Text and Background Color of row Item programmatically 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.

















Help me! I have already fill adapter into Listview and It works fine. My problem is how to change Text and Background color in specific row Item (using TextView) when selected.



@Override
public void onItemClick(AdapterView a, View v, int position, long id) {
int visiblePosition = listView1.getFirstVisiblePosition();
View view = (View)listView1.getChildAt(position);


..... });


But it doesn't work as well. By the way, please show me how to prevent loading data when scrolling in Listview (using custom adapter) or how to fill adapter into all row when first run. Thanks for your time!!!


























it doesn't work because the children of a listview are being re-used each time you scroll.


you should either update the data and call notifyDataSetChanged , or update the data and use something like:



int visiblePosition = mListView.getFirstVisiblePosition();
View view = mListView.getChildAt(position - visiblePosition);
if(view!=null)
{
// update the view to have a different background and other stuff...
}


notes about the second way:























default






.

stackoverflow.comm

[android help] getFilesDir() stops camera from completing action


getFilesDir() stops camera from completing action



I am trying to take a picture inside my application and save it to



Android/data/com.androidproject/files/Camera/photo.png


I was using this code



private class ClickListener implements View.OnClickListener {
@Override
public void onClick(View v) {
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);

File file = new File(getActivity().getExternalFilesDir("Camera"),
"photo.png");
Uri outputFileUri = Uri.fromFile(file);
Log.v("FILE", "" + outputFileUri);
intent.putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri);
startActivityForResult(intent, CALL_BACK);
}

}


and someone suggested that I change the line starting with File file = ... to



File file = new File(getActivity().getFilesDir() + File.separator + "Camera" + File.separator + "photo.png");
file.mkdirs();


Which changes the path directory to what I wanted, however it also prevents the camera from completing the action. Meaning I click my button, the camera loads, I press the blue circle to snap the photo, then when I go to click the checkmark it does nothing. I can reload and retake the photo, or press x and cancel but I cannot select the checkmark.


Any ideas?


edit


After playing with it for a few hours I noticed something. When I go to click the checkmark and complete the photo taking operation there is a photo created in the folder. The checkmark doesn't close out the screen and go back to my activity but it creates a dummy type file. It's size is 0kb and its named "1092-309403.jpeg" not "photo.png". It's never fully saved though as my application never technically finishes the operation. As soon as I press x the picture deletes and its like it never happened. I also tried cleaning my project but that doesn't work.



.

stackoverflow.comm

[android help] Drawing on Canvas and refresginh (Sea Battle)


Drawing on Canvas and refresginh (Sea Battle)



I'm new to Android programming and now I'm trying to make a simple Sea Battle game for one person. Ships are places, player hits the field and see whether the shot hit or not. Basically, the field looks like this:


the field


The code is:



public void onDraw(Canvas canvas) {

if (getWidth() > getHeight()) {
rebro = getHeight();
} else {
rebro = getWidth(); // the smaller size of screen is "rebro"
}
rebro_piece = rebro / 10; // divide the screen by 10 (to get 10x10 field)

Paint background = new Paint();
background.setColor(getResources().getColor(R.color.game_background));
canvas.drawRect(0, 0, rebro, rebro, background); // draw background

Paint divider = new Paint();
divider.setColor(getResources().getColor(R.color.divider_black));

// drawing divider lines
for (int i=0; i<11; i++) {
canvas.drawLine(0, i*rebro_piece, rebro, i*rebro_piece, divider); // horizontal
canvas.drawLine(i*rebro_piece, 0, i*rebro_piece, rebro, divider); // vertical
}

canvas.drawLine(rebro-1, 0, rebro-1, rebro, divider);
}


That's how I make the "field."


In another class I have a method that collects numbers x and y of a 10×10 array that represents where the ships are placed. For debugging, I need to draw them on my field. Ship coordinates are retrieved in a cycle.


So I wrote a drawShip(int x, int y) method.


On Stack Overflow I've founded a question about "Why I can't paint outside onDraw()?" and I've changed my method to this:



public void drawShip(int x, int y) {
myX = x; //global
myY = y; //global
needToPaintShip = true; //boolean
invalidate(); // refreshibg?
needToPaintShip = false;
}


Here needToPaintShip decides whether the redrawing of canvas is needed or not.


Also I've edited the onDraw(Canvas canvas) method:



if(needToPaintShip == true) {
Paint ship = new Paint();
ship.setColor(getResources().getColor(R.color.ship_color));
Log.d(TAG, "onDraw(): rebro_piece = " + rebro_piece + " , myX = "+ myX + " , myY = " + myY); // I only get the last coordinates!
Rect r = new Rect(myX*(rebro_piece),myY*rebro_piece, myX*(rebro_piece+1), myY*(rebro_piece+1));
canvas.drawRect(r, ship);
}


but the result is awful:


the awful result


Guys, I'm desperate. How can I fix this and make "ships" be drawn on the field?



.

stackoverflow.comm

[android help] Unfortunately <MyProject> has stoped - error android


Unfortunately has stoped - error android


insert - Unfortunately <MyProject> has stoped - error 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.

















error unfortunately ..


how to fix problem ?


log



06-09 16:01:46.557: E/AndroidRuntime(1886): FATAL EXCEPTION: main
06-09 16:01:46.557: E/AndroidRuntime(1886): android.os.NetworkOnMainThreadException
06-09 16:01:46.557: E/AndroidRuntime(1886): at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1117)
06-09 16:01:46.557: E/AndroidRuntime(1886): at libcore.io.BlockGuardOs.connect(BlockGuardOs.java:84)
06-09 16:01:46.557: E/AndroidRuntime(1886): at libcore.io.IoBridge.connectErrno(IoBridge.java:127)
06-09 16:01:46.557: E/AndroidRuntime(1886): at libcore.io.IoBridge.connect(IoBridge.java:112)
06-09 16:01:46.557: E/AndroidRuntime(1886): at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:192)
06-09 16:01:46.557: E/AndroidRuntime(1886): at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:459)
06-09 16:01:46.557: E/AndroidRuntime(1886): at java.net.Socket.connect(Socket.java:842)
06-09 16:01:46.557: E/AndroidRuntime(1886): at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:119)
06-09 16:01:46.557: E/AndroidRuntime(1886): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:144)
06-09 16:01:46.557: E/AndroidRuntime(1886): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
06-09 16:01:46.557: E/AndroidRuntime(1886): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
06-09 16:01:46.557: E/AndroidRuntime(1886): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:360)
06-09 16:01:46.557: E/AndroidRuntime(1886): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
06-09 16:01:46.557: E/AndroidRuntime(1886): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
06-09 16:01:46.557: E/AndroidRuntime(1886): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
06-09 16:01:46.557: E/AndroidRuntime(1886): at com.abbmobile.khoir.library.JSONParser.getJSONFromUrl(JSONParser.java:43)
06-09 16:01:46.557: E/AndroidRuntime(1886): at com.abbmobile.khoir.library.UserFunctions.registerUser(UserFunctions.java:62)
06-09 16:01:46.557: E/AndroidRuntime(1886): at com.abbmobile.khoir.RegisterActivity$1.onClick(RegisterActivity.java:72)
06-09 16:01:46.557: E/AndroidRuntime(1886): at android.view.View.performClick(View.java:4202)
06-09 16:01:46.557: E/AndroidRuntime(1886): at android.view.View$PerformClick.run(View.java:17340)
06-09 16:01:46.557: E/AndroidRuntime(1886): at android.os.Handler.handleCallback(Handler.java:725)
06-09 16:01:46.557: E/AndroidRuntime(1886): at android.os.Handler.dispatchMessage(Handler.java:92)
06-09 16:01:46.557: E/AndroidRuntime(1886): at android.os.Looper.loop(Looper.java:137)
06-09 16:01:46.557: E/AndroidRuntime(1886): at android.app.ActivityThread.main(ActivityThread.java:5039)
06-09 16:01:46.557: E/AndroidRuntime(1886): at java.lang.reflect.Method.invokeNative(Native Method)
06-09 16:01:46.557: E/AndroidRuntime(1886): at java.lang.reflect.Method.invoke(Method.java:511)
06-09 16:01:46.557: E/AndroidRuntime(1886): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
06-09 16:01:46.557: E/AndroidRuntime(1886): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
06-09 16:01:46.557: E/AndroidRuntime(1886): at dalvik.system.NativeStart.main(Native Method)


















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










default






.

stackoverflow.comm

[android help] Add header in ChildView from ExpandableListView (Android)


Add header in ChildView from ExpandableListView (Android)



I'm trying to find a solution for my answer through the Internet but I can't find a good one. I looked this topic: Android ExpandableListView Child Headers but it doesn't work for me.


What I have now (Screen):



And my code is:



private void fillData() {
ExpandableListView lv;
lv = (ExpandableListView) getActivity().findViewById(R.id.grades_view);
lv.setItemsCanFocus(false);
lv.setChoiceMode(ExpandableListView.CHOICE_MODE_SINGLE);

View view = View.inflate(getActivity(), R.layout.list_header, null);
lv.addHeaderView(view, null, false);

dbh = new DatabaseHelper(getActivity());
MyExpandableListAdapter mAdapter = new MyExpandableListAdapter(
getActivity(), dbh);
mAdapter.synchronize();
lv.setAdapter(mAdapter);
registerForContextMenu(lv);
}

public class MyExpandableListAdapter extends BaseExpandableListAdapter {

private List mSubjects = new ArrayList();
private List> mCourse = new ArrayList>();
private DatabaseHelper dbh;
private LayoutInflater inflater;

public MyExpandableListAdapter(Context context, DatabaseHelper dbh) {
this.dbh = dbh;
this.inflater = LayoutInflater.from(context);
}

public void synchronize() {

mSubjects = dbh.getSubjects();

for (Subject s : mSubjects) {
mCourse.add(dbh.getCourses(s));
}
}

@Override
public Object getChild(int groupPosition, int childPosition) {
return mCourse.get(groupPosition).get(childPosition);
}

@Override
public long getChildId(int groupPosition, int childPosition) {
return getChild(groupPosition, childPosition).hashCode();
}

@Override
public View getChildView(int groupPosition, int childPosition,
boolean isLastChild, View convertView, ViewGroup parent) {

Course c = (Course) getChild(groupPosition, childPosition);

if (convertView == null)
convertView = inflater.inflate(R.layout.list_item_child,
parent, false);

TextView txt = (TextView) convertView.findViewById(R.id.code);
txt.setText(c.getCode());
TextView txt1 = (TextView) convertView.findViewById(R.id.ects);
txt1.setText(String.valueOf(c.getEcts()));
TextView txt2 = (TextView) convertView.findViewById(R.id.grade);

if (c.getGrade() == -1) {
txt2.setText("-");
} else {
txt2.setText(String.valueOf(c.getGrade()));
}

return convertView;
}

@Override
public int getChildrenCount(int groupPosition) {
return mCourse.get(groupPosition).size();
}

@Override
public Object getGroup(int groupPosition) {
return mSubjects.get(groupPosition);
}

@Override
public int getGroupCount() {
return mSubjects.size();
}

@Override
public long getGroupId(int groupPosition) {
return mSubjects.get(groupPosition).hashCode();
}

@Override
public View getGroupView(int groupPosition, boolean isExpanded,
View convertView, ViewGroup parent) {

Subject s = (Subject) getGroup(groupPosition);

if (convertView == null)
convertView = inflater.inflate(R.layout.list_item, parent,
false);

TextView txt1 = (TextView) convertView.findViewById(R.id.name);
txt1.setText(String.valueOf(s.getName()));
TextView txt2 = (TextView) convertView.findViewById(R.id.semester);
txt2.setText(String.valueOf(s.getSemester()));

return convertView;

}

@Override
public boolean hasStableIds() {
return true;
}

@Override
public boolean isChildSelectable(int groupPosition, int childPosition) {
return true;
}

}


As we can see, to put the first-level header (Name and Sem) I used:



View view = View.inflate(getActivity(), R.layout.list_header, null);
lv.addHeaderView(view, null, false);


But I don't know how to do the same with the children (a header with Code, ECTS and Grade).


Thank you in advance.



.

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