Wednesday, May 15, 2013

[General] No refund for in-app purchases?


A while ago I purchased the app "Drag Racing" from Creative Mobile. Well flash forward to last night and my 3 year old son is touching all the colorful buttons and purchases a $1.99 and then a $21.99 in app purchase for more coins or some bs.

Now, I usually have my PIN setup, but since I recently reflashed EOS4 on my TF101, I forgot to set the PIN again.

So I emailed Creative Mobile and and received a response that they CAN NOT refund my in-app purchase: "There is nothing we can do from our end, since the charges were confirmed through the Game Centre Server and the banking system. Moreover, the transactions are held by Google Play for quite a long period of time."

Is there anything else I can do to get a refund for my money? I do not want this purchase. I don't even play the game anymore. It has not been opened on my device since the purchase. I understand I should be more prudent and on top of things, but I also expect that I can get a refund for unwanted and unused purchases.

Any help is greatly appreciated.



.

forum.xda-developers.com

[General] How to stop Google maps from tilting in navigation?


Ah. Well I don't think you can do an top-down, heading-up mode. Tapping on the compass will switch between the 3D heading-up view and an overhead North-up mode though.

3D heading-up is pretty standard for GPS systems. Tilting the map allows you to see further ahead on your route for upcoming turns, while allowing the car's location to be "zoomed" in for more detail on the crossroads and stuff that are near your current location.

That being said, I'm sure a top-down, heading-up view would be used by a few people. There are probably other apps out there that would offer this.



.

forum.xda-developers.com

[General] HTC INCREDIBLE 2 no touch after boot


Hello all,
I have a HTC INCREDIBLE 2 that after boot up gos to unlock screen pull down, however there is no touch function, I have one other HTC Incredible 2 and removed the touch screen from the one and put on the other the one that did not work still does not work the other works great.

the factory reset does not work, loaded clockwork 2.5 . So question is this the phone boots up the glass is working as it was tested on the other phone how do you or is there a way to load the touch driver, rom, flash or what ever to get this phone back to working,

Some back ground phone was not recharging, loadeding starting or any thing. did a battery, RUU and other now have it working to this point.



.

forum.xda-developers.com

[General] APN on my at&t samsung galaxy s3 is not saving.


Hi,
I bought a galaxy s3 yesterday from a guy online. I am switching services from version to straight talk. I got the phone working with straight talk text and calls but when I try to enter the APN I click save and my APN never shows or saves. I was wondering if there is a solution to this problem?

Thanks,
Ryan



.

forum.xda-developers.com

[General] Samsung Galaxy Player 4.0 got locked by mistake


Hello Folks,

My nephew has a Samsung Galaxy Player 4.0 running Gingerbread. His litter sister was playing with the lock screen and it got locked after many attempts. My nephew tried to login through the google accounts but he cannot because he had switched off the "wifi" (i know this sucks).

Please him in unlocking his Galaxy Player 4.0. He has some very important pictures too stored in the player and has no way of accessing them.

Thanks in advance !!!!



.

forum.xda-developers.com

[General] My samsung galaxy ifuse 4g having switch on issues


My Samsung Infuse constantly shuts itself off without warning but always comes back on. This time it won't. It is stuck on the black screen with SAMSUNG flashing on and off.
I tried taking out the battery, leaving it out for awhile and putting it back in. Before I even try to turn it on, it's starts flashing SAMSUNG again.
I've tried holding the power button down and still nothing. I havent tried to do a hard reset yet because there is stuff on there I want to try to save if possible.
Any ideas what's wrong or what I should do?? Please hep



.

forum.xda-developers.com

Tuesday, May 14, 2013

[android help] Logcat message: error opening trace file: No such file or directory (2) Can anyone help me?


Java Code: public class SplashActivity extends Activity implements OnClickListener {



@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.welcome);

//////////////////////////////////////////////////////////////////////
//////// GAME MENU /////////////////////////////////////////////////
Button playBtn = (Button) findViewById(R.id.playBtn);
playBtn.setOnClickListener(this);
Button settingsBtn = (Button) findViewById(R.id.settingsBtn);
settingsBtn.setOnClickListener(this);
Button rulesBtn = (Button) findViewById(R.id.rulesBtn);
rulesBtn.setOnClickListener(this);
Button exitBtn = (Button) findViewById(R.id.exitBtn);
exitBtn.setOnClickListener(this);
}


/**
* Listener for game menu
*/
@Override
public void onClick(View v) {
Intent i;

switch (v.getId()){
case R.id.playBtn :
//once logged in, load the main page
//Log.d("LOGIN", "User has started the game");

//Get Question set //
List questions = getQuestionSetFromDb();

//Initialise Game with retrieved question set ///
GamePlay c = new GamePlay();
c.setQuestions(questions);
c.setNumRounds(getNumQuestions());
((ChuckApplication)getApplication()).setCurrentGame(c);

//Start Game Now.. //
i = new Intent(this, QuestionActivity.class);
startActivityForResult(i, Constants.PLAYBUTTON);
break;

case R.id.rulesBtn :
i = new Intent(this, RulesActivity.class);
startActivityForResult(i, Constants.RULESBUTTON);
break;

case R.id.settingsBtn :
i = new Intent(this, SettingsActivity.class);
startActivityForResult(i, Constants.SETTINGSBUTTON);
break;

case R.id.exitBtn :
finish();
break;
}

}


/**
* Method that retrieves a random set of questions from
* the database for the given difficulty
* @return
* @throws Error
*/
private List getQuestionSetFromDb() throws Error {
int diff = getDifficultySettings();
int numQuestions = getNumQuestions();
DBHelper myDbHelper = new DBHelper(this);
try {
myDbHelper.createDataBase();
} catch (IOException ioe) {
throw new Error("Unable to create database");
}
try {
myDbHelper.openDataBase();
}catch(SQLException sqle){
throw sqle;
}
List questions = myDbHelper.getQuestionSet(diff, numQuestions);
myDbHelper.close();
return questions;
}


/**
* Method to return the difficulty settings
* @return
*/
private int getDifficultySettings() {
SharedPreferences settings = getSharedPreferences(Constants.SETTINGS, 0);
int diff = settings.getInt(Constants.DIFFICULTY, Constants.MEDIUM);
return diff;
}

/**
* Method to return the number of questions for the game
* @return
*/
private int getNumQuestions() {
SharedPreferences settings = getSharedPreferences(Constants.SETTINGS, 0);
int numRounds = settings.getInt(Constants.NUM_ROUNDS, 20);
return numRounds;
}


}


when i hit the play button, the application stops. This button has to take to new activity to open a quiz qith 4 option radio button connected to a sqlite database.


Logcat messaege:



`05-14 07:44:38.109: E/Trace(723): error opening trace file: No such file or directory (2)
05-14 07:44:39.629: D/dalvikvm(723): GC_FOR_ALLOC freed 203K, 13% free 2480K/2828K, paused 330ms, total 366ms
05-14 07:44:40.249: I/Choreographer(723): Skipped 69 frames! The application may be doing too much work on its main thread.
05-14 07:44:40.859: D/gralloc_goldfish(723): Emulator without GPU emulation detected.
05-14 07:44:57.139: E/SQLiteLog(723): (14) cannot open file at line 30176 of [00bb9c9ce4]
05-14 07:44:57.139: E/SQLiteLog(723): (14) os_unix.c:30176: (2) open(/data/data/com.pixy.quiz/databases/questionsDb) -
05-14 07:44:57.299: E/SQLiteDatabase(723): Failed to open database '/data/data/com.pixy.quiz/databases/questionsDb'.
05-14 07:44:57.299: E/SQLiteDatabase(723): android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14): Could not open database
05-14 07:44:57.299: E/SQLiteDatabase(723): at android.database.sqlite.SQLiteConnection.nativeOpen(Native Method)
05-14 07:44:57.299: E/SQLiteDatabase(723): at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:209)
05-14 07:44:57.299: E/SQLiteDatabase(723): at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:193)
05-14 07:44:57.299: E/SQLiteDatabase(723): at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:463)
05-14 07:44:57.299: E/SQLiteDatabase(723): at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:185)
05-14 07:44:57.299: E/SQLiteDatabase(723): at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:177)
05-14 07:44:57.299: E/SQLiteDatabase(723): at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:804)
05-14 07:44:57.299: E/SQLiteDatabase(723): at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:789)
05-14 07:44:57.299: E/SQLiteDatabase(723): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:694)
05-14 07:44:57.299: E/SQLiteDatabase(723): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:669)
05-14 07:44:57.299: E/SQLiteDatabase(723): at com.pixy.quiz.db.DBHelper.checkDataBase(DBHelper.java:69)
05-14 07:44:57.299: E/SQLiteDatabase(723): at com.pixy.quiz.db.DBHelper.createDataBase(DBHelper.java:46)
05-14 07:44:57.299: E/SQLiteDatabase(723): at com.pixy.quiz.SplashActivity.getQuestionSetFromDb(SplashActivity.java:97)
05-14 07:44:57.299: E/SQLiteDatabase(723): at com.pixy.quiz.SplashActivity.onClick(SplashActivity.java:55)
05-14 07:44:57.299: E/SQLiteDatabase(723): at android.view.View.performClick(View.java:4204)
05-14 07:44:57.299: E/SQLiteDatabase(723): at android.view.View$PerformClick.run(View.java:17355)
05-14 07:44:57.299: E/SQLiteDatabase(723): at android.os.Handler.handleCallback(Handler.java:725)
05-14 07:44:57.299: E/SQLiteDatabase(723): at android.os.Handler.dispatchMessage(Handler.java:92)
05-14 07:44:57.299: E/SQLiteDatabase(723): at android.os.Looper.loop(Looper.java:137)
05-14 07:44:57.299: E/SQLiteDatabase(723): at android.app.ActivityThread.main(ActivityThread.java:5041)
05-14 07:44:57.299: E/SQLiteDatabase(723): at java.lang.reflect.Method.invokeNative(Native Method)
05-14 07:44:57.299: E/SQLiteDatabase(723): at java.lang.reflect.Method.invoke(Method.java:511)
05-14 07:44:57.299: E/SQLiteDatabase(723): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
05-14 07:44:57.299: E/SQLiteDatabase(723): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
05-14 07:44:57.299: E/SQLiteDatabase(723): at dalvik.system.NativeStart.main(Native Method)
05-14 07:44:57.369: D/dalvikvm(723): GC_CONCURRENT freed 276K, 14% free 2633K/3052K, paused 73ms+45ms, total 220ms
05-14 07:44:57.610: D/AndroidRuntime(723): Shutting down VM
05-14 07:44:57.610: W/dalvikvm(723): threadid=1: thread exiting with uncaught exception (group=0x40a71930)
05-14 07:44:57.649: E/AndroidRuntime(723): FATAL EXCEPTION: main
05-14 07:44:57.649: E/AndroidRuntime(723): java.lang.ClassCastException: android.app.Application cannot be cast to com.pixy.quiz.ChuckApplication
05-14 07:44:57.649: E/AndroidRuntime(723): at com.pixy.quiz.SplashActivity.onClick(SplashActivity.java:61)
05-14 07:44:57.649: E/AndroidRuntime(723): at android.view.View.performClick(View.java:4204)
05-14 07:44:57.649: E/AndroidRuntime(723): at android.view.View$PerformClick.run(View.java:17355)
05-14 07:44:57.649: E/AndroidRuntime(723): at android.os.Handler.handleCallback(Handler.java:725)
05-14 07:44:57.649: E/AndroidRuntime(723): at android.os.Handler.dispatchMessage(Handler.java:92)
05-14 07:44:57.649: E/AndroidRuntime(723): at android.os.Looper.loop(Looper.java:137)
05-14 07:44:57.649: E/AndroidRuntime(723): at android.app.ActivityThread.main(ActivityThread.java:5041)
05-14 07:44:57.649: E/AndroidRuntime(723): at java.lang.reflect.Method.invokeNative(Native Method)
05-14 07:44:57.649: E/AndroidRuntime(723): at java.lang.reflect.Method.invoke(Method.java:511)
05-14 07:44:57.649: E/AndroidRuntime(723): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
05-14 07:44:57.649: E/AndroidRuntime(723): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
05-14 07:44:57.649: E/AndroidRuntime(723): at dalvik.system.NativeStart.main(Native Method)
05-14 07:49:57.010: I/Process(723): Sending signal. PID: 723 SIG: 9
`


My BDHelper Class:


public class DBHelper extends SQLiteOpenHelper{



//The Android's default system path of your application database.
private static String DB_PATH = "/data/data/com.pixy.quiz/databases/";
private static String DB_NAME = "questionsDb";
private SQLiteDatabase myDataBase;
private final Context myContext;

/**
* Constructor
* Takes and keeps a reference of the passed context in order to access to the application assets and resources.
* @param context
*/
public DBHelper(Context context) {
super(context, DB_NAME, null, 1);
this.myContext = context;
}

/**
* Creates a empty database on the system and rewrites it with your own database.
* */
public void createDataBase() throws IOException{

boolean dbExist = checkDataBase();
if(!dbExist)
{
//By calling this method and empty database will be created into the default system path
//of your application so we are gonna be able to overwrite that database with our database.
this.getReadableDatabase();

try {
copyDataBase();
} catch (IOException e) {
throw new Error("Error copying database");
}
}
}

/**
* Check if the database already exist to avoid re-copying the file each time you open the application.
* @return true if it exists, false if it doesn't
*/
private boolean checkDataBase(){
SQLiteDatabase checkDB = null;
try{
String myPath = DB_PATH + DB_NAME;
checkDB = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READONLY);
}catch(SQLiteException e){
//database does't exist yet.
}
if(checkDB != null){
checkDB.close();
}

return checkDB != null ? true : false;
}

/**
* Copies your database from your local assets-folder to the just created empty database in the
* system folder, from where it can be accessed and handled.
* This is done by transfering bytestream.
* */
private void copyDataBase() throws IOException{

//Open your local db as the input stream
InputStream myInput = myContext.getAssets().open(DB_NAME);

// Path to the just created empty db
String outFileName = DB_PATH + DB_NAME;

//Open the empty db as the output stream
OutputStream myOutput = new FileOutputStream(outFileName);

//transfer bytes from the inputfile to the outputfile
byte[] buffer = new byte[1024];
int length;
while ((length = myInput.read(buffer))>0){
myOutput.write(buffer, 0, length);
}

//Close the streams
myOutput.flush();
myOutput.close();
myInput.close();

}

public void openDataBase() throws SQLException{
//Open the database
String myPath = DB_PATH + DB_NAME;
myDataBase = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READONLY);
}

@Override
public synchronized void close() {
if(myDataBase != null)
myDataBase.close();
super.close();
}

@Override
public void onCreate(SQLiteDatabase db) {
}

@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
}

// Add your public helper methods to access and get content from the database.
// You could return cursors by doing "return myDataBase.query(....)" so it'd be easy
// to you to create adapters for your views.




public List getQuestionSet(int difficulty, int numQ){
List questionSet = new ArrayList();
Cursor c = myDataBase.rawQuery("SELECT * FROM question WHERE DIFFICULTY=" + difficulty +
" ORDER BY RANDOM() LIMIT " + numQ, null);
while (c.moveToNext()){
//Log.d("QUESTION", "Question Found in DB: " + c.getString(1));
Question q = new Question();
q.setQuestion(c.getString(1));
q.setAnswer(c.getString(2));
q.setOption1(c.getString(3));
q.setOption2(c.getString(4));
q.setOption3(c.getString(5));
q.setRating(difficulty);
questionSet.add(q);
}
return questionSet;
}


}



.

stackoverflow.comm

[General] How to get Google+ Instant Upload free storage for any photo


You know that Google+ Instant Upload photos don't count against your storage, but do you want that free storage for any photo at all? Here is a little workaround

Simple, but effective: just hook your phone up to your computer and drag and drop any photos you want into your phone's camera folder and, viola, they are treated like newly taken photos and uploaded to G+. (or use a file manager right on your phone to copy and paste there). Then, just delete those photos from the camera folder afterwards.

Now, keep in mind that they will be reduced to the "free upload" pixel limit of 2048, just like any other instant uploads, but for many of us, our camera phone pictures are not much bigger anyway.

Extra pro-tip: videos are also "free storage" and they don't reduce their quality at all. You can really maximize your free G+ storage with video.



.

forum.xda-developers.com

[android help] Change TextView inside Fragment

android - Change TextView inside Fragment - 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 followed this guy's tutorial on how to make an ActionBar. Let's say I want to change the TextView inside one of the fragments. So I added this on my StartActivity.java, under onCreate:



TextView textview = (TextView) findViewById(R.id.textView1);
textview.setText("HI!");


When I start my app, it crashes. Can somebody point me to the right direction?


I hope somebody takes the time to look at the guy's tutorial because his layout is basically the same as mine. Thank you.


























If you want change your component, I suggest you to make a method inside the fragment like this:



import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

public class DetailFragment extends Fragment {

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.details, container, false);
return view;
}


public void setText(String text){
TextView textView = (TextView) getView().findViewById(R.id.detailsText);
textView.setText(text);
}

}






















default






.

stackoverflow.comm

[General] why does my brand new samsung galaxy 2 say generic in the right corner of the screen?


I just bought this phone today with my mother. We both got the same exact phone, except her settings are different than mine. like its better and she had options to change her settings from scratch and mine was just there and i cant change a thing. also it says generic in the top right corner and i don't even know what that is all about.
An additional question, why is there a red light beeping in the top corner of phone.



.

forum.xda-developers.com

[android help] Creating the folder with password protection


I am trying to create the media recorder for Android by creating the folders with password protection and audio files inside.


But now I only can create the folder and audio files which other Apps and user of the Android smartphone to access.


The purpose of implementing password protection is to not to let other Apps or users can access the file and folders unless password is provided?


Are there any ideas how to achieve this besides creating the password entering panel?


The below is my code.



public void onClick(View view) throws Exception {
if (count == 0) {

tbxRecordStatus.setText("Record");
btnRecord.setText("Stop Record");
Toast.makeText(MainActivity.this, "Recording Starts",
Toast.LENGTH_SHORT).show();
String dateInString = new SimpleDateFormat(
"yyyy-MM-dd-HH-mm-ss").format(new Date()).toString();
String fileName = "TasB_" + dateInString + " record.3gp";
SDCardpath = Environment.getExternalStorageDirectory();
myDataPath = new File(SDCardpath.getAbsolutePath() + "/My Recordings");
if (!myDataPath.exists())
myDataPath.mkdir();

audiofile = new File(myDataPath + "/" + fileName);
recorder = new MediaRecorder();
recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
recorder.setAudioEncodingBitRate(16);
recorder.setAudioSamplingRate(44100);
recorder.setOutputFile(audiofile.getAbsolutePath());



try
{
recorder.prepare();
}
catch (Exception e)
{
e.printStackTrace();
}
recorder.start();
count++;

} else {

tbxRecordStatus.setText("Stop");
btnRecord.setText("Start Record");
Toast.makeText(MainActivity.this, "Recording Stops",
Toast.LENGTH_SHORT).show();
if (recorder != null) {
recorder.stop();
recorder.release();
recorder = null;

} else {
tbxRecordStatus.setText("Warning!");
Toast.makeText(MainActivity.this, "Record First",
Toast.LENGTH_SHORT).show();
}
count = 0;
}
}


.

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