Affichage des articles dont le libellé est Sending. Afficher tous les articles
Affichage des articles dont le libellé est Sending. Afficher tous les articles

mardi 25 août 2015

Sending my rooted and xposed phone back to verizon.



What would be the best way to reset this thing to be ready to send back? Would I need to KDZ it or just use the superuser root removal process? Thanks in advance.



samedi 22 août 2015

stuck on sending recovery help please



I'm using yureka aio toolbox for flashing the recovery but it gets stuck on sending 'recovery'
can anyone help?



mercredi 19 août 2015

Warning T-mobile is sending the wrong Sim size



So I got my phone today and noticed that T-mobile sent me micro sim instead of a nano sim. I went to the T-mobile store near my to get a replacement sim card. I don't know why but something told me not to deal with the rep I was in line waiting for, it seemed like everyone he dealt with ended up pissed. I didn't listen *first mistake* and stayed in line I got up to the guy and I told him what was going on. He just grabs the phone out of my hand and says maybe you're just sticking it in wrong. So he tries to jam a micro sim into a tray made for a nano sim and manages to get it in. I said what the hell are you doing I just told you it was the wrong sim size, then he was like well I guess you're right. When he tries to get the sim card out he can't, so he takes it to the back to "work on it" 20 minutes later he comes out with my phone in his hand, I'm thinking alright got my new sim and everything is good to go. Boy was I wrong, the first thing out of his mouth was "well we had a little problem" and shows me the sim slot. Well the good news is he managed to get the sim tray out, the bad news is the sim card was stuck inside and it looks like they damaged the pins trying to get it out. I was like you're kidding me right and asked to speak to a manger because I couldn't deal with him anymore. The manager offered to replace it so he goes into his system and then tells me he can't place the order because the phone hasn't released yet. He told me I have to come back Friday get one if they have it in stock. Now I have a 800 dollar paper weight mocking me



mercredi 12 août 2015

( Volley > sending GET Request with parameters ) How to flatten Map pa



I got this custom volley request class that extends Request with the request parameters in Map<String,String> format, my question is how to flatten Map<String,String> parameters correctly into a query string and receive it with PHP $_GET?


Code:


public class GsonGetRequest_Exp5<T> extends Request<T> {

    private Response.Listener<T> listener;
    private Map<String, String> params;
    private Type type;
    private Gson gson;

    public GsonGetRequest_Exp5(String url, Map<String, String> params, Type type, Gson gson,
                              Response.Listener<T> reponseListener, Response.ErrorListener errorListener) {
        super(Method.GET, url, errorListener);
        this.type      = type;
        this.gson      = gson;
        this.listener  = reponseListener;
        this.params    = params;
    }

    public GsonGetRequest_Exp5(int method, String url, Map<String, String> params, Type type, Gson gson,
                              Response.Listener<T> reponseListener, Response.ErrorListener errorListener) {
        super(method, url, errorListener);
        this.type      = type;
        this.gson      = gson;
        this.listener  = reponseListener;
        this.params    = params;
    }

    @Override
    protected Map<String, String> getParams() throws com.android.volley.AuthFailureError {
        return params;
    };

    @Override
    protected void deliverResponse(T response) {
        listener.onResponse(response);
    }

    @Override
    protected Response<T> parseNetworkResponse(NetworkResponse response) {
        try {
            String jsonString = new String(response.data,
                    HttpHeaderParser.parseCharset(response.headers));
            return (Response<T>) Response.success
                    (
                            gson.fromJson(jsonString, type),
                    HttpHeaderParser.parseCacheHeaders(response)
            );
        } catch (UnsupportedEncodingException e) {
            return Response.error(new ParseError(e));
        } catch (JsonSyntaxException je) {
            return Response.error(new ParseError(je));
        }
    }

}



Code:


    public static GsonGetRequest_Exp5<ArrayList<FeedObject>> gsonGetRequest_exp6
    (
            Response.Listener<ArrayList<FeedObject>> listener,
            Response.ErrorListener errorListener,
            String str
    )
    {
        //final String url = "example.com/php.php";

        final Map<String, String> params = new HashMap<String, String>();
        final Gson gson = new GsonBuilder()
                .registerTypeAdapter(FeedObject.class, new FeedObjectDeserializer())
                .create();


        String test_url = "example.com/php.php";

        params.put("SearchKey", str);
       
       
       

        StringBuilder builder = new StringBuilder();

        for (String key : params.keySet())
        {
            Object value = params.get(key);
            if (value != null)
            {
                try
                {
                    value = URLEncoder.encode(String.valueOf(value), HTTP.UTF_8);


                    if (builder.length() > 0)
                        builder.append("&");
                    builder.append(key).append("=").append(value);
                }
                catch (UnsupportedEncodingException e)
                {
                }
            }
        }

        test_url += "?" + builder.toString();
       
       
       

        return new GsonGetRequest_Exp5
                (
                        test_url,
                        params,
                        new TypeToken<ArrayList<FeedObject>>() {}.getType(),
                        gson,
                        listener,
                        errorListener
                );
    }



problem with my code is, the "params" I keep getting "null", nothing is added to the end of my example.com url, can anyone point out what I did wrong?