Bundle putShort - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Bundle putShort method.

This code example shows how to use the following methods:putShort, remove
     */ 
    public Request put(String name, short value) {
        removeFromRequestData(name);
        mParamList.add(name);
        mTypeList.add(TYPE_SHORT);
        mBundle.putShort(name, value);
        return this;
    } 
 
    /** 
     * Add a int parameter to the request, replacing any existing value for the given name. 
     * 
     * @param name The parameter name. 
     * @param value The parameter value. 
     * @return This RequestData. 
     */ 
    public Request put(String name, int value) {
        removeFromRequestData(name);
        mParamList.add(name);
        mTypeList.add(TYPE_INT);

6
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:putShort
   * 
   * @param key a String, or null 
   * @param value a short 
   */ 
  public TaskResult add(String key, short value) {
    mBundle.putShort(key, value);
    return this;
  } 
 
  /** 
   * Inserts an int value into the mapping of this Bundle, replacing any existing value for the 
   * given key. 
   * 
   * @param key a String, or null 
   * @param value an int, or null 
   */ 
  public TaskResult add(String key, int value) {
    mBundle.putInt(key, value);
    return this;
  } 
5
CodeRank
Experience pair programming with AI  Get Codota for Java

Related Bundle putShort Questions & Answers:

putShort Method Overview
Inserts a short value into the mapping of this Bundle, replacing any existing value for the given key.
See Code Examples for other Android Bundle Methods: